686228ca075ce15ed8a0e273051ebaebe514a37b
[gnulib.git] / ChangeLog
1 2012-05-24  Jim Meyering  <meyering@redhat.com>
2
3         maint.mk: compute $(gpg_key_ID) more portably
4         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5         That use of sed is not portable to some fringe systems.
6         Reported by Paul Eggert in
7         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
8
9 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10
11         mktime: sync from glibc
12         * config/srclist.txt: Uncomment mktime.c.
13         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
14         First, indent with tabs, since glibc uses tabs and doesn't want to
15         change and we'd rather be identical to glibc.  Also, two small
16         coding changes:
17         (isdst_differ): Use &&, not &, as && is the usual style.
18         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
19         for clarity.
20
21 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22
23         announce-gen: du -h is more portable than du --human
24         * build-aux/announce-gen (sizes): Invoke du with -h instead
25         of --human.  Accept leading white space in its output.
26
27 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28
29         announce-gen: Improve diagnostics.
30         * build-aux/announce-gen: When parsing command line options,
31         prefer "announce-gen: option --release-type requires an argument"
32         to "Option release-type requires an argument".
33
34 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35
36         maint.mk: gpg_key_ID: use sed more portably
37         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38         the closing brace.
39         (refresh-po): Fuse two sed invocations into one.
40
41 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
42
43         gitlog-to-changelog: support the log message format used in Bison.
44         * build-aux/gitlog-to-changelog: Support --strip-tab and
45         --strip-cherry-picked.
46
47 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
48
49         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
50         the rest of the current time slice to another thread in the current
51         process. So if the thread that feeds the file decscriptor we're
52         polling is not in the current process, we get busy-waiting.
53         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
54         Patch from Theodore Leblond.
55         * lib/select.c: Split polling out of the loop that sets the output
56         fd_sets.  Check for zero result and loop if the wait timeout is
57         infinite.
58
59 2012-05-21  Simon Josefsson  <simon@josefsson.org>
60
61         select: Fix build error on IRIX 6.5.
62         * lib/select.c: Include stddef.h for NULL.
63
64 2012-05-21  Simon Josefsson  <simon@josefsson.org>
65
66         gc: fix libgcrypt detection on older machines.
67         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
68         copyright years because the file has been distributed every year
69         since it was created.
70
71 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72
73         crypto: fix bug in large buffer handling
74         Problem reported by Serge Belyshev for glibc in
75         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
76         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
77         * lib/md4.c (md4_process_block):
78         * lib/md5.c (md5_process_block):
79         * lib/sha1.c (sha1_process_block):
80         * lib/sha256.c (sha256_process_block):
81         Don't assume the buffer length is less than 2**32.
82         * lib/sha512.c (sha512_process_block): Likewise.
83         Here, the bug is present only in the rare case where the host does
84         not support uint64_t or where size_t is wider than 64 bits.
85         Use u64size to work around the problems.
86         * lib/u64.h (u64size): New macro.
87
88 2012-05-15  Pádraig Brady  <P@draigBrady.com>
89
90         fsusage: fix block size returned on older Linux 2.6
91
92         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
93         which is available since Linux 2.6.
94         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
95         when the member is available so it can be used as a fallback.
96         * doc/posix-functions/statvfs.texi: Mention the hang issue
97         on Linux < 2.6.36.
98
99 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100
101         bootstrap: suppress stderr chatter
102         * build-aux/bootstrap (insert_sorted_if_absent, main program):
103         Omit unnecessary chatter to stderr.  The main program chatter
104         was there only inadvertantly.
105
106         bootstrap: .gitignore files created by autopoint, libtool
107         I ran into this problem when bootstrapping the latest diffutils.
108         After './bootstrap', 'git status' reported lots of untracked files
109         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
110         autopoint and do not need to be version-controlled.
111         * build-aux/bootstrap: Put into .gitignore the files that
112         autopoint and libtool create, by keeping track of files that exist
113         after but not before these programs are run.
114         (version_controlled_file): Move up.  2nd arg is now full file
115         name, not base name; this is more convenient.  Put CVS at the end,
116         as it's now somewhat deprecated.
117
118 2012-05-14  Jim Meyering  <meyering@redhat.com>
119
120         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
121         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
122         definition.  Reported by Bruno Haible.
123
124 2012-05-13  Bruno Haible  <bruno@clisp.org>
125             Paul Eggert  <eggert@cs.ucla.edu>
126
127         binary-io: Define set_binary_mode function.
128         * lib/binary-io.h (set_binary_mode): New function.
129         (SET_BINARY): Define in terms of set_binary_mode.
130         * modules/binary-io (configure.ac): Require AC_C_INLINE.
131         * tests/test-binary-io.c (main): Accept an argument, and test either
132         set_binary_mode or SET_BINARY depending on the argument.
133         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
134         argument. Clean up also t-bin-out0.tmp.
135
136 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
137
138         bootstrap: take advantage of POSIX shell features
139
140         The 'bootstrap' script offered by Gnulib script already uses POSIX
141         shell features (like $((...)) arithmetic expansions) that are not
142         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
143         means that bootstrap must already be run using a proper POSIX shell,
144         which will thus provide more features, like ${var#pattern} parameter
145         expansion or inversion of a command exit status with '!'.  We can
146         thus use these features to improve the clarity and the performances
147         of the bootstrap script.
148
149         Suggested by Eric Blake.
150
151         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
152         of sed/expr plus command substitutions, to save some forks.  While
153         we are at it, prefer the POSIX $(...) form of command substitution,
154         rather than the legacy form `...` (since the former is visually
155         clearer and interacts better with quoting), and prefer the idiom:
156           "if ! CMD; then ACTION ..."
157         over the idiom:
158           "if CMD; then :; else ACTION ..."
159         which was required by legacy Bourne shells not supporting '!'.
160
161 2012-05-12  Bruno Haible  <bruno@clisp.org>
162
163         system-quote: Add more comments.
164         * lib/system-quote.h: Add more comments about wilcards and limitations.
165         Suggested by Eli Zaretskii <eliz@gnu.org>.
166
167         sh-quote, system-quote: Add comments about wildcards.
168         * lib/sh-quote.h: Clarify what happens with wildcard characters.
169         * lib/system-quote.h: Likewise.
170         Reported by Eli Zaretskii <eliz@gnu.org>.
171
172 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
173
174         fsusage: check for GNU/Linux statvfs problem dynamically
175         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
176         Define STAT_STATFS2_BSIZE too, since in this case the code now
177         checks dynamically whether statvfs is reliable, falling back on
178         Linux-style statfs otherwise.
179         (statvfs_works): New function, for dynamically testing statvfs.
180         (get_fs_usage) [STAT_STATVFS]: Use it.
181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
182         statvfs on GNU/Linux hosts, since it's now done dynamically.
183
184 2012-05-10  Bruno Haible  <bruno@clisp.org>
185
186         system-quote, execute, spawn-pipe: Escape '?' on Windows.
187         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
188         '?' character.
189         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
190         * tests/test-system-quote-main.c (check_all): Check also strings like
191         "??????????".
192         Reported by Eli Zaretskii <eliz@gnu.org>.
193
194 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
195
196         _Noreturn: port config.h to gcc -Wundef
197         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
198         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
199         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
200
201 2012-05-10  Bruno Haible  <bruno@clisp.org>
202
203         system-quote: Refactor.
204         * lib/system-quote.h (system_quote_copy): Fix comment.
205         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
206         New functions, extracted from system_quote_copy.
207         (system_quote_length, system_quote_copy): Use these functions.
208         Reported by Paul Eggert.
209
210 2012-05-08  Bruno Haible  <bruno@clisp.org>
211
212         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
213         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
214
215 2012-05-08  Bruno Haible  <bruno@clisp.org>
216
217         Tests for module 'system-quote'.
218         * modules/system-quote-tests: New file.
219         * tests/test-system-quote.sh: New file.
220         * tests/test-system-quote-main.c: New file.
221         * tests/test-system-quote-child.c: New file.
222
223         New module 'system-quote'.
224         * lib/system-quote.h: New file.
225         * lib/system-quote.c: New file.
226         * modules/system-quote: New file.
227
228 2012-05-08  Bruno Haible  <bruno@clisp.org>
229
230         sh-quote: Make C++ safe and allow multiple inclusion.
231         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
232         declarations in extern "C".
233
234 2012-05-08  Bruno Haible  <bruno@clisp.org>
235
236         sh-quote tests: Make tests stricter.
237         * tests/test-sh-quote.c (check_one): Check the return value of
238         shell_quote_copy.
239         (main): Check a string with a CR character. Check a string that
240         contains UCHAR_MAX.
241
242 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
243
244         warnings.m4: provide a means to specify the program to compile.
245         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
246         (gl_WARN_ADD): here.
247         Use gl_AS_VAR_APPEND.
248         Support an argument to specify the program to compile.
249         (gl_WARN_ADD): Accept an argument to specify the program to compile.
250         AC_SUBST the WARN_CFLAGS when they are used.
251         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
252         leave this to gl_WARN_ADD.
253
254 2012-05-08  Eric Blake  <eblake@redhat.com>
255
256         doc: recommendations on gettext version
257         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
258         choice between versions.
259         * DEPENDENCIES (gettext): Cover both approaches.
260
261 2012-05-08  Jim Meyering  <meyering@redhat.com>
262
263         init.sh: explain why EXEEXT support uses aliases rather than functions
264         * tests/init.sh: Add a comment.
265
266         init.sh: don't let bash aliases interfere with tests
267         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
268         is bash.  This avoids problems for those who alias standard commands to
269         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
270         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
271
272 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
273
274         stdint: be more consistent with glibc, SunOS libc
275         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
276         (gl_int_fast16_t, gl_uint_fast16_t)
277         (gl_int_fast32_t, gl_uint_fast32_t)
278         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
279         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
280         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
281         Be consistent with glibc by default, and with SunOS 5.10 and later
282         if __sun is defined.  This lessens the likelihood of clashes if
283         code compiled for older hosts is combined with code compiled for
284         newer ones.  Problem reported by Niels Möller in
285         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
286
287 2012-05-07  Eric Blake  <eblake@redhat.com>
288
289         isatty: relax license to LGPLv2+
290         * modules/isatty (License): Relax license.
291
292 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
293
294         stat-size: comment fix
295         * lib/stat-size.h: Remove obsolete comment about indenting.
296
297 2012-05-06  Bruno Haible  <bruno@clisp.org>
298
299         Tests for module 'sh-quote'.
300         * modules/sh-quote-tests: New file.
301         * tests/test-sh-quote.c: New file.
302
303 2012-05-06  Bruno Haible  <bruno@clisp.org>
304
305         sh-quote: Improve shell_quote_argv's signature.
306         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
307         * lib/sh-quote.c (shell_quote_argv): Likewise.
308
309 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
310
311         stdint: document issues with int_fast8_t etc.
312         * doc/posix-headers/stdint.texi (stdint.h): Say that other
313         stdint.h substitutes may define these types differently.  See
314         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
315
316 2012-05-05  Bruno Haible  <bruno@clisp.org>
317
318         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
320         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
321         or 'guessing no (mishandles large arguments)'.
322
323 2012-05-05  Bruno Haible  <bruno@clisp.org>
324
325         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
326         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
327         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
328         set gl_cv_func_link_follows_symlink to "guessing no".
329
330 2012-05-05  Bruno Haible  <bruno@clisp.org>
331
332         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
333         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
334         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
335         "guessing no".
336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
337
338 2012-05-05  Bruno Haible  <bruno@clisp.org>
339
340         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
341         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
342         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
343         set gl_cv_struct_dirent_d_ino to "guessing yes".
344
345 2012-05-05  Bruno Haible  <bruno@clisp.org>
346
347         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
348         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
349         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
350         "guessing yes".
351
352 2012-05-05  Bruno Haible  <bruno@clisp.org>
353
354         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
355         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
356         compiling to a glibc system, set gl_cv_func_signbit and
357         gl_cv_func_signbit_gcc to "guessing yes".
358
359 2012-05-05  Bruno Haible  <bruno@clisp.org>
360
361         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
362         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
363         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
364         to "guessing yes".
365         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
366         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
367
368 2012-05-05  Bruno Haible  <bruno@clisp.org>
369
370         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
371         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
372         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
373         gl_cv_func_realpath_works to "guessing yes".
374
375 2012-05-05  Bruno Haible  <bruno@clisp.org>
376
377         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
379         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
380
381 2012-05-04  Bruno Haible  <bruno@clisp.org>
382
383         Tweak last commit.
384         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
385         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
386
387 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
388
389         unistd_h: make it easier to avoid sys_types_h
390         This is useful for Emacs, which has its own method of porting to
391         Windows, and which therefore does not need the sys_types_h module.
392         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
393         code moved here from gl_SYS_TYPES_H.
394         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
395         using the code directly.
396         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
397         gl_SYS_TYPES_H.
398         * modules/sys_types (Files):
399         * modules/unistd (Files): Add m4/off_t.m4.
400
401 2012-05-03  Bruno Haible  <bruno@clisp.org>
402
403         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
404         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
405         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
406         "guessing yes" or "guessing no".
407         (gl_FUNC_LSTAT): Update.
408         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
409         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
410         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
411
412 2012-05-03  Bruno Haible  <bruno@clisp.org>
413
414         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
415         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
416         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
417         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
418         cross-compiling, choose the first alternative on glibc systems.
419         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
420
421 2012-05-03  Bruno Haible  <bruno@clisp.org>
422
423         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
424         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
425         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
426
427 2012-05-03  Bruno Haible  <bruno@clisp.org>
428
429         chown: Avoid "guessing no" when cross-compiling to glibc systems.
430         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
431
432 2012-05-03  Bruno Haible  <bruno@clisp.org>
433
434         Avoid "guessing no" guesses when cross-compiling to glibc systems.
435         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
436         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
437         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
438         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
439         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
440         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
441         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
442         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
443         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
444         compiling to glibc systems, set gl_cv_func_chown_slash_works,
445         gl_cv_func_chown_ctime_works to "guessing yes".
446         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
447         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
448         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
449         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
450         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
452         compiling to glibc systems, set gl_cv_func_open_directory_works to
453         "guessing yes".
454         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
455         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
456         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
457         "guessing yes".
458         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
459         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
460         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
461         compiling to glibc systems, set gl_cv_func_floorf_ieee to
462         "guessing yes".
463         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
464         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
465         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
466         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
467         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
468         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
469         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
470         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
471         "guessing yes".
472         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
473         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
474         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
475         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
476         "guessing yes".
477         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
478         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
479         "guessing yes".
480         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
481         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
482         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
483         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
484         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
485         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
486         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
487         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
488         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
489         compiling to glibc systems, set gl_cv_func_log10f_ieee to
490         "guessing yes".
491         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
492         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
493         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
494         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
495         "guessing yes".
496         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
497         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
498         "guessing yes".
499         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
500         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
501         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
502         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
503         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
504         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
505         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
506         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
507         compiling to glibc systems, set gl_cv_func_mkfifo_works to
508         "guessing yes".
509         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
510         compiling to glibc systems, set gl_cv_func_mknod_works to
511         "guessing yes".
512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
513         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
514         "guessing yes".
515         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
516         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
517         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
518         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
519         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
520         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
521         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
522         compiling to glibc systems, set gl_cv_func_svid_putenv to
523         "guessing yes".
524         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
525         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
526         "guessing yes".
527         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
528         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
529         "guessing yes".
530         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
531         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
532         to "guessing yes".
533         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
534         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
535         to "guessing yes".
536         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
537         compiling to glibc systems, set gl_cv_func_rmdir_works to
538         "guessing yes".
539         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
540         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
541         gl_cv_func_unlink_parent_fails to "guessing yes".
542         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
543         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
544         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
545         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
546         gl_cv_func_rename_dest_works to "guessing yes".
547         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
548         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
549         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
550         compiling to glibc systems, set gl_cv_func_roundf_ieee to
551         "guessing yes".
552         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
553         compiling to glibc systems, set gl_cv_func_roundl_ieee to
554         "guessing yes".
555         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
556         compiling to glibc systems, set gl_cv_func_setenv_works to
557         "guessing yes".
558         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
559         compiling to glibc systems, set gl_cv_func_unsetenv_works to
560         "guessing yes".
561         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
562         compiling to glibc systems, set gl_cv_func_sleep_works to
563         "guessing yes".
564         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
565         compiling to glibc systems, set gl_cv_func_stat_file_slash to
566         "guessing yes".
567         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
568         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
569         "guessing yes".
570         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
571         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
572         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
573         compiling to glibc systems, set gl_cv_func_truncf_ieee to
574         "guessing yes".
575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
576         compiling to glibc systems, set gl_cv_func_truncl_ieee to
577         "guessing yes".
578         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
579         compiling to glibc systems, set gl_cv_func_usleep_works to
580         "guessing yes".
581         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
582         compiling to glibc systems, set gl_cv_func_futimesat_works to
583         "guessing yes".
584
585 2012-05-03  Bruno Haible  <bruno@clisp.org>
586
587         Say "guessing yes" or "guessing no" when cross-compiling.
588         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
589         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
590         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
591         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
592         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
593         am_cv_func_working_getline to "guessing yes" or "guessing no".
594         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
595         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
596         (gl_FUNC_MEMMEM): When cross-compiling, set
597         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
599         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
601         set gl_cv_func_strcasestr_works_always to "guessing yes" or
602         "guessing no".
603         (gl_FUNC_STRCASESTR): When cross-compiling, set
604         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
605         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
606         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
607         (gl_FUNC_STRSTR): When cross-compiling, set
608         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
609         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
610         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
611         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
612         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
613
614 2012-05-01  Bruno Haible  <bruno@clisp.org>
615
616         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
617         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
618         * build-aux/reloc-ldflags: Likewise.
619         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
620
621 2012-05-01  Bruno Haible  <bruno@clisp.org>
622
623         gnulib-tool: Remove transitional code.
624         * gnulib-tool: Don't warn about --import with 0 arguments any more.
625         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
626
627 2012-05-01  Bruno Haible  <bruno@clisp.org>
628
629         getcwd: Fix misindentation.
630         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
631
632 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
633
634         exclude: process exclude and include directives in order
635         This restores the pre-2009 behavior, and is part of a fix of a
636         grep bug reported by Quentin Arce in
637         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
638         * lib/exclude.c (struct exclude): Remove 'tail' member.
639         (new_exclude_segment): Prepend the new segment instead of appending.
640         Return void, since that's now more convenient.
641         (file_pattern_matches): Renamed from excluded_file_pattern_p.
642         (file_name_matches): Renamed from excluded_file_name_p.
643         (file_pattern_matches, file_name_matches):
644         Return true if the pattern matches, not if it excludes.
645         All callers changed.
646         (excluded_file_name): Process the list in reverse order;
647         since the list is now reversed this restores the pre-2009 behavior.
648         (add_exclude): Adjust to new reversed-order list.  Use local var
649         rather than macro, for clarity.
650         * tests/test-exclude7.sh: Adjust to corrected behavior.
651
652         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
653         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
654         it's not possible here.  Handle the case of \ at end of pattern
655         without dumping core.
656         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
657
658         _Noreturn: future-proof non-GNU and non-MSVC compilers
659         * build-aux/snippet/_Noreturn.h (_Noreturn):
660         * m4/gnulib-common.m4 (gl_COMMON_BODY):
661         Do not define _Noreturn if __STDC_VERSION__ indicates this is
662         C11 or later.  This is more likely to work with random future C
663         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
664         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
665
666         exclude: handle wildcards with FNM_EXTMATCH
667         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
668         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
669         comment that "has wildcards" really means "has or may have
670         wildcards".  Simplify by avoiding the need to call strcspn.
671
672 2012-04-29  Bruno Haible  <bruno@clisp.org>
673
674         gnulib-tool: Fix list of authors.
675         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
676
677 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
678
679         bootstrap: support Automake-NG in $buildreq
680         * bootstrap (check_versions): Handle automake and aclocal from
681         Automake-NG specially.  They can be specified as respectively
682         the "automake-ng" and "aclocal-ng" requirements.
683
684 2012-04-25  Eric Blake  <eblake@redhat.com>
685
686         bootstrap: only force latest Makefile.in.in for gettext module
687         * build-aux/bootstrap (with_gettext): Only install latest
688         Makefile.in.in for projects requesting bleeding edge gettext.
689
690 2012-04-22  Bruno Haible  <bruno@clisp.org>
691
692         doc: Mention reason for replacement on glibc/Linux systems.
693         * doc/posix-functions/dprintf.texi: Mention the problem with special
694         'long double' values.
695         * doc/posix-functions/fprintf.texi: Likewise.
696         * doc/posix-functions/printf.texi: Likewise.
697         * doc/posix-functions/snprintf.texi: Likewise.
698         * doc/posix-functions/sprintf.texi: Likewise.
699         * doc/posix-functions/vdprintf.texi: Likewise.
700         * doc/posix-functions/vfprintf.texi: Likewise.
701         * doc/posix-functions/vprintf.texi: Likewise.
702         * doc/posix-functions/vsnprintf.texi: Likewise.
703         * doc/posix-functions/vsprintf.texi: Likewise.
704         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
705         platforms with F_DUPFD_CLOEXEC problems.
706         * doc/posix-functions/glob.texi: Mention which platforms are affected
707         by the problem with symbolic links.
708         * doc/posix-functions/linkat.texi: Mention the problem with
709         AT_SYMLINK_FOLLOW on Linux.
710
711 2012-04-22  Bruno Haible  <bruno@clisp.org>
712
713         pwrite: Don't replace on all platforms.
714         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
715
716 2012-04-22  Bruno Haible  <bruno@clisp.org>
717
718         rint* tests: Avoid gcc warnings.
719         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
720         * tests/test-rintf.c (INFINITY, NAN): Likewise.
721         * tests/test-rintl.c (INFINITY, NAN): Likewise.
722
723 2012-04-21  Bruno Haible  <bruno@clisp.org>
724
725         users.txt: Update.
726         * users.txt: Add freedink, wdiff. Update URLs for projects that have
727         switched from CVS to git, bzr, or svn.
728
729 2012-04-21  Bruno Haible  <bruno@clisp.org>
730
731         Large File Support for native Windows platforms.
732
733         * m4/largefile.m4 (gl_LARGEFILE): New macro.
734         * modules/largefile (configure.ac): Require gl_LARGEFILE.
735
736         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
737         type.
738         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
739         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
740         * doc/posix-headers/sys_types.texi: Mention the effect of the
741         'largefile' module.
742
743         * lib/fcntl.in.h: Add comments about off_t.
744         * modules/fcntl-h (Depends-on): Add sys_types.
745
746         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
747         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
748         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
749         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
750         * modules/unistd (Depends-on): Add sys_types.
751         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
752
753         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
754         instead of lseek.
755         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
756         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
757         * modules/lseek (Depends-on): Add sys_types.
758
759         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
760         msvc-nothrow.h.
761         (SetFileSize): New function.
762         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
763         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
764         if Large File Support is requested.
765         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
766         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
767
768         * lib/stdio.in.h: Add comments about off_t.
769         * modules/stdio (Depends-on): Add sys_types.
770
771         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
772         instead of ftello.
773         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
774         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
775         (gl_PREREQ_FTELLO): New macro.
776         * modules/ftello (Depends-on): Add sys_types.
777         (configure.ac): Incoke gl_PREREQ_FTELLO.
778
779         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
780         instead of fseeko.
781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
782         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
783         (gl_PREREQ_FSEEKO): New macro.
784         * modules/fseeko (Depends-on): Add sys_types.
785         (configure.ac): Invoke gl_PREREQ_FSEEKO.
786
787         * lib/sys_stat.in.h: Add comments about off_t.
788         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
789         64-bit integer for st_size in 'struct stat'.
790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
791         Define _GL_WINDOWS_64_BIT_ST_SIZE.
792         * modules/sys_stat (Depends-on): Add sys_types.
793         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
794
795         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
796         instead of stat or _stat.
797
798         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
799         'struct _stati64' instead of fstat and 'struct stat'.
800         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
801         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
802
803         Reported by Ray Satiro <raysatiro@yahoo.com>.
804
805 2012-04-19  Eric Blake  <eblake@redhat.com>
806
807         bootstrap: accommodate older libtool
808         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
809         Reported by Daniel P. Berrange.
810
811 2012-04-19  Jim Meyering  <meyering@redhat.com>
812
813         announce-gen: avoid failure due to lack of Digest::SHA1
814         Even with the preferred Digest::SHA available, this script
815         would fail when the backup module, Digest::SHA1, was not installed.
816         * build-aux/announce-gen: Quote the conditional use of "use".
817         Reported by Reuben Thomas in:
818         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
819
820         bootstrap: don't let a user's CDPATH setting affect this script
821         When CDPATH is set, cd will sometimes generate output.
822         When "cd" is run in a subshell whose output matters, that
823         surprising-to-some output can cause malfunction.
824         Unsetting CDPATH turns off this shell "feature."
825         * build-aux/bootstrap (CDPATH): Unset.
826         Reported by Reuben Thomas in:
827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
828         and inspired by his patch here:
829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
830
831 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
832         and Jim Meyering  <meyering@redhat.com>
833
834         maint.mk: catch "see @xref{}" and similar
835         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
836         prohibit "See also @xref{", "Also see @pxref{", and similar.
837
838 2012-04-16  Jim Meyering  <meyering@redhat.com>
839
840         bootstrap: really use gnulib's po/Makefile.in.in
841         * build-aux/bootstrap: Correct the source file name in previous change.
842         Reported by Akim Demaille.
843
844         configmake: correct minor inconsistency in Makefile rule
845         * modules/configmake (Makefile.am): All other rules like this one
846         run the final "mv -f ..." in the same backslash-continued command
847         as the one that does everything else.  This one put the mv -f ...
848         command on a separate, non-backslash-continued line.
849         Make it like the others.
850
851         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
852         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
853         the one from gettext.  Reported by Akim Demaille.
854
855 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
856
857         Fix recursion of install-* into po directories.
858         Bison's install-pdf bug reported by Hans Aberg at
859         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
860         * build-aux/po/Makefile.in.in (install-dvi, install-html)
861         (install-info, install-pdf, install-ps): New targets.
862
863 2012-04-16  Jim Meyering  <meyering@redhat.com>
864
865         maint: avoid spurious "make sc_maint" failure
866         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
867         exempt all *.class file names, for lib/javaversion.class.
868
869 2012-04-15  Bruno Haible  <bruno@clisp.org>
870
871         lseek: Make configure test independent of environment.
872         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
873         Windows, we know that lseek() on pipes is broken; skip the runtime
874         test.
875
876 2012-04-14  Bruno Haible  <bruno@clisp.org>
877
878         stat: Bypass buggy override in mingw64.
879         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
880         * lib/stat.c (stat) [mingw64]: Define to _stat.
881         * doc/posix-functions/stat.texi: Mention mingw64 bug.
882
883 2012-04-14  Bruno Haible  <bruno@clisp.org>
884
885         pathmax: Fix compilation error on MSVC 9.
886         * modules/pathmax (Depends-on): Add unistd.
887
888 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
889
890         README: document pointer comparison assumption
891         * README (Portability guidelines): Document assumption about
892         pointer comparisons, in response to a recent bug-gnulib comment by
893         Jeffrey Kegler.
894
895 2012-04-12  Bruno Haible  <bruno@clisp.org>
896
897         Tests for module 'getrusage'.
898         * modules/getrusage-tests: New file.
899         * tests/test-getrusage.c: New file.
900
901         New module 'getrusage'.
902         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
903         warn-on-use.h.
904         (getrusage): New declaration.
905         * lib/getrusage.c: New file.
906         * m4/getrusage.m4: New file.
907         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
908         is declared.
909         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
910         HAVE_GETRUSAGE.
911         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
912         snippet/c++defs, snippet/warn-on-use.
913         (Makefile.am): Update generation of sys/resource.h. Substitute
914         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
915         * modules/getrusage: New file.
916         * doc/posix-functions/getrusage.texi: Mention the new module.
917
918 2012-04-12  Bruno Haible  <bruno@clisp.org>
919
920         Tests for module 'sys_resource'.
921         * modules/sys_resource-tests: New file.
922         * tests/test-sys_resource.c: New file.
923
924         New module 'sys_resource'.
925         * lib/sys_resource.in.h: New file.
926         * m4/sys_resource_h.m4: New file.
927         * modules/sys_resource: New file.
928         * doc/posix-headers/sys_resource.texi: Mention the new module.
929
930 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
931
932         ioctl: Fix compilation error on mingw.
933         * lib/ioctl.c: Include <windows.h>.
934         Also reported by Ray Satiro <raysatiro@yahoo.com>.
935
936 2012-04-04  Jim Meyering  <meyering@redhat.com>
937
938         regex: correct #pragma guard expression
939         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
940         not 4.3.  Correct its cpp guard expression.
941
942 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
943
944         regex: remove unnecessary type punning
945         Problem reported by Vladimir Serbinenko in
946         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
947         * lib/regex.h (struct re_pattern_buffer): Change the type of
948         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
949         Fix comment to match code.
950         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
951         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
952         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
953         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
954         (set_regs):
955         Omit no-longer-necessary casts.
956
957 2012-04-03  Bruno Haible  <bruno@clisp.org>
958
959         Tests for module 'ilogbl'.
960         * modules/ilogbl-tests: New file.
961         * tests/test-ilogbl.c: New file.
962
963         New module 'ilogbl'.
964         * lib/math.in.h (ilogbl): New declaration.
965         * lib/ilogbl.c: New file.
966         * m4/ilogbl.m4: New file.
967         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
969         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
970         Split sed invocation, to avoid the limit of 100 substitutions of
971         HP-UX 'sed'.
972         * modules/ilogbl: New file.
973         * tests/test-math-c++.cc: Check the declaration of ilogbl.
974         * doc/posix-functions/ilogbl.texi: Mention the new module.
975
976 2012-04-03  Bruno Haible  <bruno@clisp.org>
977
978         Tests for module 'ilogbf'.
979         * modules/ilogbf-tests: New file.
980         * tests/test-ilogbf.c: New file.
981
982         New module 'ilogbf'.
983         * lib/math.in.h (ilogbf): New declaration.
984         * lib/ilogbf.c: New file.
985         * m4/ilogbf.m4: New file.
986         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
988         REPLACE_ILOGBF.
989         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
990         REPLACE_ILOGBF.
991         * modules/ilogbf: New file.
992         * tests/test-math-c++.cc: Check the declaration of ilogbf.
993         * doc/posix-functions/ilogbf.texi: Mention the new module.
994
995 2012-04-03  Bruno Haible  <bruno@clisp.org>
996
997         Tests for module 'ilogb'.
998         * modules/ilogb-tests: New file.
999         * tests/test-ilogb.c: New file.
1000         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1001         tests/test-logb-ieee.h.
1002
1003         New module 'ilogb'.
1004         * lib/math.in.h (ilogb): New declaration.
1005         * lib/ilogb.c: New file.
1006         * m4/ilogb.m4: New file.
1007         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1009         REPLACE_ILOGB.
1010         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1011         REPLACE_ILOGB.
1012         * modules/ilogb: New file.
1013         * tests/test-math-c++.cc: Check the declaration of ilogb.
1014         * doc/posix-functions/ilogb.texi: Mention the new module.
1015
1016 2012-04-03  Bruno Haible  <bruno@clisp.org>
1017
1018         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1019         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1020         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1021         (main): Check their values.
1022         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1023         problem.
1024
1025 2012-04-03  Bruno Haible  <bruno@clisp.org>
1026
1027         Tests for module 'logbl-ieee'.
1028         * modules/logbl-ieee-tests: New file.
1029         * tests/test-logbl-ieee.c: New file.
1030
1031         New module 'logbl-ieee'.
1032         * modules/logbl-ieee: New file.
1033
1034         Tests for module 'logb-ieee'.
1035         * modules/logb-ieee-tests: New file.
1036         * tests/test-logb-ieee.c: New file.
1037
1038         New module 'logb-ieee'.
1039         * modules/logb-ieee: New file.
1040
1041         Tests for module 'logbf-ieee'.
1042         * modules/logbf-ieee-tests: New file.
1043         * tests/test-logbf-ieee.c: New file.
1044         * tests/test-logb-ieee.h: New file.
1045
1046         New module 'logbf-ieee'.
1047         * modules/logbf-ieee: New file.
1048
1049 2012-04-03  Bruno Haible  <bruno@clisp.org>
1050
1051         Tests for module 'logbl'.
1052         * modules/logbl-tests: New file.
1053         * tests/test-logbl.c: New file.
1054
1055         New module 'logbl'.
1056         * lib/math.in.h (logbl): New declaration.
1057         * lib/logbl.c: New file.
1058         * m4/logbl.m4: New file.
1059         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1061         REPLACE_LOGBL.
1062         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1063         REPLACE_LOGBL.
1064         * modules/logbl: New file.
1065         * tests/test-math-c++.cc: Check the declaration of logbl.
1066         * doc/posix-functions/logbl.texi: Mention the new module.
1067
1068 2012-04-02  Bruno Haible  <bruno@clisp.org>
1069
1070         Tests for module 'logbf'.
1071         * modules/logbf-tests: New file.
1072         * tests/test-logbf.c: New file.
1073
1074         New module 'logbf'.
1075         * lib/math.in.h (logbf): New declaration.
1076         * lib/logbf.c: New file.
1077         * m4/logbf.m4: New file.
1078         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1080         REPLACE_LOGBF.
1081         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1082         REPLACE_LOGBF.
1083         * modules/logbf: New file.
1084         * tests/test-math-c++.cc: Check the declaration of logbf.
1085         * doc/posix-functions/logbf.texi: Mention the new module.
1086
1087 2012-04-02  Bruno Haible  <bruno@clisp.org>
1088
1089         logb tests: More tests.
1090         * tests/test-logb.h: New file, based on tests/test-logb.c and
1091         tests/test-frexp.h.
1092         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1093         (main): Just invoke test_function.
1094         * modules/logb-tests (Files): Add tests/test-logb.h,
1095         tests/minus-zero.h, tests/randomd.c.
1096         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1097
1098         logb: Provide replacement and workarounds.
1099         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1100         is 1.
1101         * lib/logb.c: New file.
1102         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1103         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1105         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1106         * modules/logb (Files): Add lib/logb.c.
1107         (Depends-on): Add isfinite, frexp, isnand.
1108         (configure.ac): Compile the replacement code logb.c if needed.
1109         * tests/test-math-c++.cc: Check the declaration of logb.
1110         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1111         with subnormal numbers.
1112
1113 2012-04-02  Bruno Haible  <bruno@clisp.org>
1114
1115         log10* tests: Speed up.
1116         * tests/test-log10.h (test_function): Reduce amount of random numbers
1117         to test.
1118
1119 2012-04-01  Bruno Haible  <bruno@clisp.org>
1120
1121         logf-ieee: Fix test whether logf works.
1122         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1123
1124 2012-04-01  Bruno Haible  <bruno@clisp.org>
1125
1126         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1127         * lib/log10l.c: Include <float.h>
1128         (log10l): On IRIX, normalize the +Infinity value.
1129         * modules/log10l (Depends-on): Add 'float'.
1130         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1131         +Infinity.
1132
1133         log10f-ieee: Work around test failure on NetBSD 5.1.
1134         * m4/log10f-ieee.m4: New file.
1135         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1136         test whether log10f works with a negative argument. Replace it if not.
1137         * lib/log10f.c (log10f): For negative arguments, return NaN.
1138         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1139         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1140         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1141
1142         log10f-ieee: Work around test failure on Solaris 9.
1143         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1144         (configure.ac): Require gl_FUNC_LOG10F.
1145
1146         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1147         * m4/log10-ieee.m4: New file.
1148         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1149         whether log10 works with a negative argument. Replace it if not.
1150         * lib/log10.c (log10): For negative arguments, return NaN.
1151         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1152         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1153         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1154
1155         Tests for module 'log10l-ieee'.
1156         * modules/log10l-ieee-tests: New file.
1157         * tests/test-log10l-ieee.c: New file.
1158
1159         New module 'log10l-ieee'.
1160         * modules/log10l-ieee: New file.
1161
1162         Tests for module 'log10-ieee'.
1163         * modules/log10-ieee-tests: New file.
1164         * tests/test-log10-ieee.c: New file.
1165
1166         New module 'log10-ieee'.
1167         * modules/log10-ieee: New file.
1168
1169         Tests for module 'log10f-ieee'.
1170         * modules/log10f-ieee-tests: New file.
1171         * tests/test-log10f-ieee.c: New file.
1172         * tests/test-log10-ieee.h: New file.
1173
1174         New module 'log10f-ieee'.
1175         * modules/log10f-ieee: New file.
1176
1177 2012-04-01  Bruno Haible  <bruno@clisp.org>
1178
1179         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1180         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1181         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1182         workaround.
1183         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1184         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1186         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1187         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1188         (Depends-on): Update conditions.
1189         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1190         IRIX 6.5, OSF/1 5.1 problems.
1191
1192 2012-04-01  Bruno Haible  <bruno@clisp.org>
1193
1194         log10f: Work around OSF/1 5.1 bug.
1195         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1196         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1197         workaround.
1198         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1199         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1201         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1202         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1203         (Depends-on): Update conditions.
1204         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1205
1206 2012-04-01  Bruno Haible  <bruno@clisp.org>
1207
1208         log10: Work around OSF/1 5.1 bug.
1209         * lib/math.in.h (log10): New declaration.
1210         * lib/log10.c: New file.
1211         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1212         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1213         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1215         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1216         * modules/log10 (Files): Add lib/log10.c.
1217         (Depends-on): Add math.
1218         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1219         * tests/test-math-c++.cc: Check the declaration of log10.
1220         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1221
1222 2012-03-31  Bruno Haible  <bruno@clisp.org>
1223
1224         log10l tests: More tests.
1225         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1226         tests/minus-zero.h, tests/randoml.c.
1227         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1228         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1229         (main): Invoke test_function.
1230
1231         log10f tests: More tests.
1232         * modules/log10f-tests (Files): Add tests/test-log10.h,
1233         tests/minus-zero.h, tests/randomf.c.
1234         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1235         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1236         (main): Invoke test_function.
1237
1238         log10 tests: More tests.
1239         * tests/test-log10.h: New file.
1240         * modules/log10-tests (Files): Add tests/test-log10.h,
1241         tests/minus-zero.h, tests/randomd.c.
1242         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1243         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1244         (main): Invoke test_function.
1245
1246 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1247
1248         fflush: Fix syntax error.
1249         * lib/fflush.c: Include unused-parameter.h, needed for
1250         _GL_UNUSED_PARAMETER.
1251         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1252
1253 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1254
1255         regex: pacify GCC when compiling GRUB
1256         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1257         a diagnostic.  Reported by Vladimir Serbinenko in
1258         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1259
1260 2012-03-29  Eric Blake  <eblake@redhat.com>
1261
1262         stdio: don't assume gets any more
1263         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1264         support.
1265         * modules/stdio (Makefile.am): Likewise.
1266         * lib/stdio-read.c (gets): Likewise.
1267         * tests/test-stdio-c++.cc: Likewise.
1268         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1269         * lib/stdio.in.h (gets): Make warning occur in more places.
1270         * doc/posix-functions/gets.texi (gets): Update documentation.
1271         Reported by Christer Solskogen.
1272
1273         maint.mk: fix syntax checks without exclusions
1274         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1275         Reported by Daniel P. Berrange.
1276
1277         strerror_r: avoid compiler warning
1278         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1279         level.
1280
1281         fflush: avoid compiler warning
1282         * lib/fflush.c (update_fpos_cache): Mark variables that are
1283         potentially unused.
1284
1285 2012-03-25  Bruno Haible  <bruno@clisp.org>
1286
1287         Tests for module 'localeconv'.
1288         * modules/localeconv-tests: New file.
1289         * tests/test-localeconv.c: New file.
1290
1291         New module 'localeconv'.
1292         * lib/locale.in.h (localeconv): New declaration.
1293         * lib/localeconv.c: New file.
1294         * m4/localeconv.m4: New file.
1295         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1296         REPLACE_LOCALECONV.
1297         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1298         REPLACE_LOCALECONV.
1299         * modules/localeconv: New file.
1300         * modules/nl_langinfo (Depends-on): Add localeconv.
1301         * modules/human (Depends-on): Likewise.
1302         * doc/posix-functions/localeconv.texi: Mention the new module.
1303
1304 2012-03-25  Bruno Haible  <bruno@clisp.org>
1305
1306         locale: Provide a complete 'struct lconv'.
1307         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1308         'struct lconv' does not contain int_p_cs_precedes.
1309         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1310         * doc/posix-headers/locale.texi: Update.
1311
1312         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1313         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1314         * doc/posix-headers/locale.texi: Update.
1315
1316         locale: Provide a working 'struct lconv'.
1317         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1318         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1319         'struct lconv' does not even contain decimal_point.
1320         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1321         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1322         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1323         * doc/posix-headers/locale.texi: Mention the problems with
1324         'struct lconv'.
1325         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1326
1327 2012-03-24  Bruno Haible  <bruno@clisp.org>
1328
1329         Enable common subexpression optimization in GCC.
1330         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1331         macros.
1332         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1333         GCC attribute 'const'.
1334         (uc_locale_language): Declare with GCC attribute 'pure'.
1335         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1336         with GCC attribute 'const'.
1337         * lib/unictype.in.h (uc_is_general_category_withtable,
1338         uc_combining_class, uc_combining_class_name,
1339         uc_combining_class_long_name, uc_bidi_class_name,
1340         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1341         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1342         uc_decimal_value, uc_digit_value, uc_numeric_value,
1343         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1344         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1345         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1346         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1347         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1348         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1349         Declare with GCC attribute 'const'.
1350         (uc_general_category_name, uc_general_category_long_name,
1351         uc_general_category_byname, uc_general_category,
1352         uc_is_general_category, uc_combining_class_byname,
1353         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1354         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1355         Declare with GCC attribute 'pure'.
1356         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1357         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1358         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1359         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1360         with GCC attribute 'pure'.
1361         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1362         'const'.
1363         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1364         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1365         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1366         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1367         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1368         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1369         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1370         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1371         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1372         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1373         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1374         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1375         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1376         GCC attribute 'pure'.
1377         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1378         'const'.
1379         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1380         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1381         u32_strwidth): Declare with GCC attribute 'pure'.
1382
1383         Enable common subexpression optimization in GCC.
1384         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1385         (alphasort): Declare with GCC attribute 'pure'.
1386         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1387         (atoll): Declare with GCC attribute 'pure'.
1388         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1389         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1390         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1391         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1392         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1393         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1394         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1395
1396 2012-03-24  Bruno Haible  <bruno@clisp.org>
1397
1398         gnulib-tool: Avoid unintended error output from 'cmp'.
1399         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1400         "cmp -s", not "cmp > /dev/null".
1401
1402 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1403
1404         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1405
1406         It's not just Automake versions < 1.9b that creates an empty
1407         pkgdatadir at installation time if pkgdata_DATA is specified
1408         to empty; modern automake versions do this as well, at least
1409         until automake 1.11.4 (not yet released at the moment of writing,
1410         but soon to appear).  That behaviour was generally considered a
1411         feature rather than a bug, at least until this discussion:
1412         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1413
1414         See also automake bugs #10997 and #11030.
1415
1416         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1417         reference to relevant automake bug numbers.
1418         (func_emit_tests_Makefile_am): Likewise.
1419
1420 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1421
1422         announce-gen: use Digest::SHA when possible
1423         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1424         back to Digest::SHA1 if necessary.
1425
1426 2012-03-20  Jim Meyering  <meyering@redhat.com>
1427
1428         tests: avoid gcc warnings about argv vs. const initializers
1429         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1430         warnings about discarding 'const' qualifier from pointer target type.
1431         * tests/test-posix_spawn2.c (main): Likewise.
1432
1433 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1434
1435         README-release: simplify slightly
1436         * top/README-release: Run "git checkout master" only once.
1437
1438 2012-03-15  Mark Wielaard  <mark@klomp.org>
1439
1440         git-merge-changelog: add specific example on how to use with hg.
1441         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1442
1443 2012-03-18  Mark Wielaard  <mark@klomp.org>
1444
1445         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1446
1447 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1448
1449         git-version-gen: don't let "prefix" envvar cause trouble
1450         * build-aux/git-version-gen (prefix): Initialize properly,
1451         so as not to use a value specified via the environment.
1452         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1453
1454 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1455
1456         regex: diagnose too-large repeat counts in EREs
1457         Previously, the code did not diagnose the too-large repeat count
1458         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1459         as if it were 'b\{1000000000}', which is unexpected.
1460         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1461         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1462         is a reasonable one for this problem.  Another option would be to
1463         create a new REG_OVERFLOW error for repeat counts that are too large.
1464         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1465         count is too large, so that the caller can distinguish the two cases.
1466         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1467         "Too large" return code, and that repeat counts are one example of this.
1468
1469 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1470
1471         doc: some glibc x32 integer width issues
1472         * doc/posix-headers/sys_types.texi (sys/types.h):
1473         * doc/posix-headers/time.texi (time.h):
1474         Mention that glibc x32 does not conform to POSIX in a couple of
1475         areas related to integer widths.
1476
1477 2012-03-15  Bruno Haible  <bruno@clisp.org>
1478
1479         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1480         * lib/fma.c (VOLATILE): New macro.
1481         (FUNC): Use it to work around a GCC compiler bug.
1482
1483 2012-03-13  Bruno Haible  <bruno@clisp.org>
1484
1485         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1486         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1487         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1488         REPLACE_HYPOTL to 1.
1489         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1490
1491 2012-03-13  Bruno Haible  <bruno@clisp.org>
1492
1493         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1494         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1495         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1496         REPLACE_REMAINDERL to 1.
1497         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1498         bug.
1499
1500 2012-03-13  Bruno Haible  <bruno@clisp.org>
1501
1502         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1503         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1504         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1505         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1506         too big rounding errors.
1507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1508         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1509         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1510         (Depends-on): Update conditions.
1511         * tests/test-sqrtl.c (my_ldexpl): New function.
1512         (main): Add test of a particular value.
1513         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1514
1515 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1516
1517         doc: Update timer_* platform portability notes.
1518         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1519         that always return ENOSYS.
1520         * doc/posix-functions/timer_delete.texi: Likewise.
1521         * doc/posix-functions/timer_gettime.texi: Likewise.
1522         * doc/posix-functions/timer_settime.texi: Likewise.
1523
1524 2012-03-13  Bruno Haible  <bruno@clisp.org>
1525
1526         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1527         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1528         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1529         REPLACE_CBRTL to 1.
1530         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1531
1532 2012-03-13  Bruno Haible  <bruno@clisp.org>
1533
1534         remainderl: Avoid compilation error on AIX >= 5.2.
1535         * lib/math.in.h (remainderl): Undefine macro from the system header.
1536
1537 2012-03-13  Bruno Haible  <bruno@clisp.org>
1538
1539         Avoid compilation errors with MSVC option -fp:strict.
1540         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1541         * lib/cbrtf.c: Likewise.
1542         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1543
1544 2012-03-12  Bruno Haible  <bruno@clisp.org>
1545
1546         uninorm: Don't crash in out-of-memory conditions.
1547         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1548         gracefully.
1549         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1550         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1551
1552 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1553
1554         quote: fix syntax-check
1555         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1556         also exports quote_quoting_options.
1557
1558 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1559
1560         Collapse list of copyright years to ranges.  See
1561         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1562         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1563         build-aux/csharpexec.sh.in, build-aux/gnupload,
1564         build-aux/install-reloc, build-aux/javacomp.sh.in,
1565         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1566         build-aux/move-if-change, build-aux/reloc-ldflags,
1567         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1568
1569 2012-03-11  Bruno Haible  <bruno@clisp.org>
1570
1571         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1572         * m4/log2f-ieee.m4: New file.
1573         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1574         whether log2f works with a minus zero argument. Replace it if not.
1575         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1576         (Depends-on): Add log2-ieee.
1577         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1578         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1579
1580         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1581         * m4/log2-ieee.m4: New file.
1582         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1583         whether log2 works with a minus zero argument. Replace it if not.
1584         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1585         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1586         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1587
1588         Tests for module 'log2l-ieee'.
1589         * modules/log2l-ieee-tests: New file.
1590         * tests/test-log2l-ieee.c: New file.
1591
1592         New module 'log2l-ieee'.
1593         * modules/log2l-ieee: New file.
1594
1595         Tests for module 'log2-ieee'.
1596         * modules/log2-ieee-tests: New file.
1597         * tests/test-log2-ieee.c: New file.
1598
1599         New module 'log2-ieee'.
1600         * modules/log2-ieee: New file.
1601
1602         Tests for module 'log2f-ieee'.
1603         * modules/log2f-ieee-tests: New file.
1604         * tests/test-log2f-ieee.c: New file.
1605         * tests/test-log2-ieee.h: New file.
1606
1607         New module 'log2f-ieee'.
1608         * modules/log2f-ieee: New file.
1609
1610 2012-03-11  Bruno Haible  <bruno@clisp.org>
1611
1612         Tests for module 'log2l'.
1613         * modules/log2l-tests: New file.
1614         * tests/test-log2l.c: New file.
1615
1616         New module 'log2l'.
1617         * lib/math.in.h (log2l): New declaration.
1618         * lib/log2l.c: New file.
1619         * m4/log2l.m4: New file.
1620         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1622         REPLACE_LOG2L.
1623         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1624         REPLACE_LOG2L.
1625         * modules/log2l: New file.
1626         * tests/test-math-c++.cc: Check the declaration of log2l.
1627         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1628         and OSF/1 problems.
1629
1630 2012-03-11  Bruno Haible  <bruno@clisp.org>
1631
1632         Tests for module 'log2f'.
1633         * modules/log2f-tests: New file.
1634         * tests/test-log2f.c: New file.
1635
1636         New module 'log2f'.
1637         * lib/math.in.h (log2f): New declaration.
1638         * lib/log2f.c: New file.
1639         * m4/log2f.m4: New file.
1640         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1642         REPLACE_LOG2F.
1643         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1644         REPLACE_LOG2F.
1645         * modules/log2f: New file.
1646         * tests/test-math-c++.cc: Check the declaration of log2f.
1647         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1648         and OSF/1 and Cygwin problems.
1649
1650 2012-03-11  Bruno Haible  <bruno@clisp.org>
1651
1652         Tests for module 'log2'.
1653         * modules/log2-tests: New file.
1654         * tests/test-log2.c: New file.
1655         * tests/test-log2.h: New file.
1656
1657         New module 'log2'.
1658         * lib/math.in.h (log2): New declaration.
1659         * lib/log2.c: New file.
1660         * m4/log2.m4: New file.
1661         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1663         REPLACE_LOG2.
1664         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1665         REPLACE_LOG2.
1666         * modules/log2: New file.
1667         * tests/test-math-c++.cc: Check the declaration of log2.
1668         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1669         and OSF/1 and Cygwin problems.
1670
1671 2012-03-11  Bruno Haible  <bruno@clisp.org>
1672
1673         exp2* tests: More tests.
1674         * tests/test-exp2.h (test_function): Test all integral arguments that
1675         don't need to overflow or denormalized numbers.
1676         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1677         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1678         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1679
1680 2012-03-10  Bruno Haible  <bruno@clisp.org>
1681
1682         log1pl-ieee: Work around test failure on AIX 7.1.
1683         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1684
1685         log1pl-ieee: Work around test failure on IRIX 6.5.
1686         * m4/log1pl-ieee.m4: New file.
1687         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1688         test whether log1pl works with a minus zero argument. Replace it if
1689         not.
1690         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1692         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1693         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1694         (Depends-on): Update conditions.
1695         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1696         m4/signbit.m4.
1697         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1698         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1699
1700         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1701         * m4/log1pf-ieee.m4: New file.
1702         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1703         test whether log1pf works with a minus zero argument. Replace it if
1704         not.
1705         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1706         m4/signbit.m4.
1707         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1708         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1709
1710         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1711         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1712         (configure.ac): Require gl_FUNC_LOG1PF.
1713
1714         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1715         * m4/log1p-ieee.m4: New file.
1716         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1717         whether log1p works with a minus zero argument. Replace it if not.
1718         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1720         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1721         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1722         (Depends-on): Update conditions.
1723         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1724         m4/signbit.m4.
1725         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1726         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1727
1728         Tests for module 'log1pl-ieee'.
1729         * modules/log1pl-ieee-tests: New file.
1730         * tests/test-log1pl-ieee.c: New file.
1731
1732         New module 'log1pl-ieee'.
1733         * modules/log1pl-ieee: New file.
1734
1735         Tests for module 'log1p-ieee'.
1736         * modules/log1p-ieee-tests: New file.
1737         * tests/test-log1p-ieee.c: New file.
1738
1739         New module 'log1p-ieee'.
1740         * modules/log1p-ieee: New file.
1741
1742         Tests for module 'log1pf-ieee'.
1743         * modules/log1pf-ieee-tests: New file.
1744         * tests/test-log1pf-ieee.c: New file.
1745         * tests/test-log1p-ieee.h: New file.
1746
1747         New module 'log1pf-ieee'.
1748         * modules/log1pf-ieee: New file.
1749
1750 2012-03-10  Bruno Haible  <bruno@clisp.org>
1751
1752         Tests for module 'log1pl'.
1753         * modules/log1pl-tests: New file.
1754         * tests/test-log1pl.c: New file.
1755
1756         New module 'log1pl'.
1757         * lib/math.in.h (log1pl): New declaration.
1758         * lib/log1pl.c: New file.
1759         * m4/log1pl.m4: New file.
1760         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1762         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1763         * modules/log1pl: New file.
1764         * tests/test-math-c++.cc: Check the declaration of log1pl.
1765         * doc/posix-functions/log1pl.texi: Mention the new module.
1766
1767 2012-03-10  Bruno Haible  <bruno@clisp.org>
1768
1769         Tests for module 'log1pf'.
1770         * modules/log1pf-tests: New file.
1771         * tests/test-log1pf.c: New file.
1772
1773         New module 'log1pf'.
1774         * lib/math.in.h (log1pf): New declaration.
1775         * lib/log1pf.c: New file.
1776         * m4/log1pf.m4: New file.
1777         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1779         REPLACE_LOG1PF.
1780         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1781         REPLACE_LOG1PF.
1782         * modules/log1pf: New file.
1783         * tests/test-math-c++.cc: Check the declaration of log1pf.
1784         * doc/posix-functions/log1pf.texi: Mention the new module.
1785
1786 2012-03-10  Bruno Haible  <bruno@clisp.org>
1787
1788         log1p tests: More tests.
1789         * tests/test-log1p.h: New file.
1790         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1791         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1792         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1793         (main): Invoke test_function.
1794
1795         log1p: Provide replacement for Minix and MSVC.
1796         * lib/math.in.h (log1p): New declaration.
1797         * lib/log1p.c: New file.
1798         * m4/log1p.m4: New file.
1799         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1801         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1802         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1803         (Depends-on): Add math, isnand, log, round.
1804         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1805         HAVE_LOG1P is 0.
1806         * tests/test-math-c++.cc: Check the declaration of log1p.
1807         * doc/posix-functions/log1p.texi: Mention the replacement.
1808
1809 2012-03-10  Bruno Haible  <bruno@clisp.org>
1810
1811         math tests: Small simplification.
1812         * tests/test-exp.h (test_function): Use the same err_bound for
1813         'double' on platforms with sizeof (long double) == sizeof (double)
1814         than on platforms with sizeof (long double) > sizeof (double).
1815         * tests/test-exp2.h (test_function): Likewise.
1816         * tests/test-expm1.h (test_function): Likewise.
1817         * tests/test-log.h (test_function): Likewise.
1818
1819 2012-03-10  Bruno Haible  <bruno@clisp.org>
1820
1821         Fix some comments.
1822         * lib/expl.c: Fix an ambiguous comment.
1823         * lib/expm1.c: Likewise.
1824         * lib/expm1l.c: Likewise.
1825         * lib/exp2.c: Likewise.
1826         * lib/exp2l.c: Likewise.
1827
1828 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         regex: allow inclusion of <regex.h> before <limits.h>
1831         Without this patch, portable programs had to include <limits.h> before
1832         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1833         I ran into this problem with a test version of GNU grep on Solaris 8.
1834         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1835         This is done conditionally so that this change can be merged
1836         back to glibc.
1837         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1838         using the included regex.
1839
1840         fts: depend on fdopendir
1841         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1842         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1843         problem was introduced when fdopendir was split out.
1844
1845 2012-03-10  Bruno Haible  <bruno@clisp.org>
1846
1847         Remove unused variables.
1848         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1849         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1850
1851 2012-03-10  Bruno Haible  <bruno@clisp.org>
1852
1853         isnanf-nolibm: Fix last commit.
1854         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1855
1856         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1857         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1858
1859 2012-03-10  Bruno Haible  <bruno@clisp.org>
1860
1861         logf-ieee: Work around test failure on NetBSD 5.1.
1862         * m4/logf-ieee.m4: New file.
1863         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1864         whether logf works with a negative argument. Replace it if not.
1865         * lib/logf.c (logf): For negative arguments, return NaN.
1866         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1867         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1868         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1869
1870         logf-ieee: Work around test failure on Solaris 9.
1871         * modules/logf-ieee (Depends-on): Add log-ieee.
1872         (configure.ac): Require gl_FUNC_LOGF.
1873
1874         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1875         * m4/log-ieee.m4: New file.
1876         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1877         log works with a negative argument. Replace it if not.
1878         * lib/log.c (log): For negative arguments, return NaN.
1879         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1880         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1881         * doc/posix-functions/log.texi: Mention the log-ieee module.
1882
1883         Tests for module 'logl-ieee'.
1884         * modules/logl-ieee-tests: New file.
1885         * tests/test-logl-ieee.c: New file.
1886
1887         New module 'logl-ieee'.
1888         * modules/logl-ieee: New file.
1889
1890         Tests for module 'log-ieee'.
1891         * modules/log-ieee-tests: New file.
1892         * tests/test-log-ieee.c: New file.
1893
1894         New module 'log-ieee'.
1895         * modules/log-ieee: New file.
1896
1897         Tests for module 'logf-ieee'.
1898         * modules/logf-ieee-tests: New file.
1899         * tests/test-logf-ieee.c: New file.
1900         * tests/test-log-ieee.h: New file.
1901
1902         New module 'logf-ieee'.
1903         * modules/logf-ieee: New file.
1904
1905 2012-03-10  Bruno Haible  <bruno@clisp.org>
1906
1907         log: Fix bug introduced on 2012-03-09.
1908         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1909
1910 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1911
1912         timer-time: link explicitly with pthreads on glibc
1913         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1914         to support static linking, when newer glibc is
1915         detected, as that contains pthread emulation of
1916         POSIX timer functions where required.
1917         * modules/timer-time: Depend on threadlib to
1918         pull in the appropriate library to link.
1919
1920 2012-03-10  Bruno Haible  <bruno@clisp.org>
1921
1922         log* tests: More tests.
1923         * tests/test-log.h: New file.
1924         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1925         (main): Invoke test_function.
1926         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1927         (main): Invoke test_function.
1928         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1929         (main): Invoke test_function.
1930         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1931         tests/randomd.c.
1932         (Makefile.am): Add randomd.c to test_log_SOURCES.
1933         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1934         tests/randomf.c.
1935         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1936         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1937         tests/randoml.c.
1938         (Depends-on): Add 'float'.
1939         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1940
1941 2012-03-09  Bruno Haible  <bruno@clisp.org>
1942
1943         logl: Work around OSF/1 5.1 bug.
1944         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1945         * lib/logl.c (logl): If logl exists, use it and provide just the
1946         workaround.
1947         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1948         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1950         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1951         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1952         (Depends-on): Update conditions.
1953         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1954
1955 2012-03-09  Bruno Haible  <bruno@clisp.org>
1956
1957         logf: Work around OSF/1 5.1 bug.
1958         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1959         * lib/logf.c (logf): If logf exists, use it and provide just the
1960         workaround.
1961         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1962         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1964         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1965         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1966         (Depends-on): Update conditions.
1967         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1968
1969 2012-03-09  Bruno Haible  <bruno@clisp.org>
1970
1971         log: Work around OSF/1 5.1 bug.
1972         * lib/math.in.h (log): New declaration.
1973         * lib/log.c: New file.
1974         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1975         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1976         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1978         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1979         * modules/log (Files): Add lib/log.c.
1980         (Depends-on): Add math.
1981         (configure.ac): If REPLACE_LOG is 1, compile an override.
1982         * tests/test-math-c++.cc: Check the declaration of log.
1983         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1984
1985 2012-03-09  Jim Meyering  <meyering@redhat.com>
1986
1987         readtokens.c: adjust wording in a comment
1988         * lib/readtokens.c: Insert omitted "that" in a comment.
1989
1990 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         modechange: add notations +40, 00440, etc.
1993         * lib/modechange.c (mode_compile): Support new notations
1994         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1995
1996 2012-03-08  Bruno Haible  <bruno@clisp.org>
1997
1998         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1999         * m4/exp2l-ieee.m4: New file.
2000         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2001         test whether exp2l works with a NaN argument and with a negative
2002         infinity argument. Replace it if not.
2003         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2005         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2006         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2007         (Depends-on): Update conditions.
2008         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2009         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2010         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2011
2012         Tests for module 'exp2l-ieee'.
2013         * modules/exp2l-ieee-tests: New file.
2014         * tests/test-exp2l-ieee.c: New file.
2015
2016         New module 'exp2l-ieee'.
2017         * modules/exp2l-ieee: New file.
2018
2019         Tests for module 'exp2-ieee'.
2020         * modules/exp2-ieee-tests: New file.
2021         * tests/test-exp2-ieee.c: New file.
2022
2023         New module 'exp2-ieee'.
2024         * modules/exp2-ieee: New file.
2025
2026         Tests for module 'exp2f-ieee'.
2027         * modules/exp2f-ieee-tests: New file.
2028         * tests/test-exp2f-ieee.c: New file.
2029         * tests/test-exp2-ieee.h: New file.
2030
2031         New module 'exp2f-ieee'.
2032         * modules/exp2f-ieee: New file.
2033
2034 2012-03-08  Bruno Haible  <bruno@clisp.org>
2035
2036         Tests for module 'exp2l'.
2037         * modules/exp2l-tests: New file.
2038         * tests/test-exp2l.c: New file.
2039
2040         New module 'exp2l'.
2041         * lib/math.in.h (exp2l): New declaration.
2042         * lib/exp2l.c: New file.
2043         * lib/expl-table.c: New file, extracted from lib/expl.c.
2044         * lib/expl.c (gl_expl_table): New declaration.
2045         (expl): Remove expl_table. Update reference.
2046         * m4/exp2l.m4: New file.
2047         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2049         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2050         * modules/exp2l: New file.
2051         * modules/expl (Files): Add lib/expl-table.c.
2052         (configure.ac): Compile also expl-table.c.
2053         * tests/test-math-c++.cc: Check the declaration of exp2l.
2054         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2055         problem.
2056
2057 2012-03-08  Bruno Haible  <bruno@clisp.org>
2058
2059         Tests for module 'exp2f'.
2060         * modules/exp2f-tests: New file.
2061         * tests/test-exp2f.c: New file.
2062
2063         New module 'exp2f'.
2064         * lib/math.in.h (exp2f): New declaration.
2065         * lib/exp2f.c: New file.
2066         * m4/exp2f.m4: New file.
2067         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2069         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2070         * modules/exp2f: New file.
2071         * tests/test-math-c++.cc: Check the declaration of exp2f.
2072         * doc/posix-functions/exp2f.texi: Mention the new module and the
2073         IRIX problem.
2074
2075 2012-03-08  Bruno Haible  <bruno@clisp.org>
2076
2077         Tests for module 'exp2'.
2078         * modules/exp2-tests: New file.
2079         * tests/test-exp2.c: New file.
2080         * tests/test-exp2.h: New file.
2081
2082         New module 'exp2'.
2083         * lib/math.in.h (exp2): New declaration.
2084         * lib/exp2.c: New file.
2085         * m4/exp2.m4: New file.
2086         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2088         REPLACE_EXP2.
2089         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2090         REPLACE_EXP2.
2091         * modules/exp2: New file.
2092         * tests/test-math-c++.cc: Check the declaration of exp2.
2093         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2094         and OpenBSD problems.
2095
2096 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2097
2098         savedir: fix comment typo
2099         * lib/savedir.c (savedirstream): Fix typo in comment.
2100
2101 2012-03-08  Bruno Haible  <bruno@clisp.org>
2102
2103         test-readtokens.c: use const; remove unwarranted cast
2104         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2105
2106 2012-03-08  Bruno Haible  <bruno@clisp.org>
2107
2108         fmal: Avoid compilation error on AIX.
2109         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2110         AIX 5.2..7.1.
2111
2112 2012-03-08  Bruno Haible  <bruno@clisp.org>
2113
2114         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2115         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2116         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2117         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2118         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2119         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2120         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2121
2122 2012-03-08  Bruno Haible  <bruno@clisp.org>
2123
2124         remainderf: Override buggy system function on IRIX 6.5.
2125         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2126         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2127         when it exists.
2128         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2129
2130 2012-03-08  Jim Meyering  <meyering@redhat.com>
2131
2132         test-readtokens.c: avoid const-related compilation warnings
2133         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2134
2135 2012-03-07  Jim Meyering  <meyering@redhat.com>
2136             Bruno Haible  <bruno@clisp.org>
2137
2138         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2139         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2140         tests/randomd.c.
2141         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2142         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2143         tests/randoml.c.
2144         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2145
2146 2012-03-07  Bruno Haible  <bruno@clisp.org>
2147
2148         expm1l: Avoid compilation error on AIX.
2149         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2150         AIX 5.2..7.1.
2151
2152 2012-03-07  Bruno Haible  <bruno@clisp.org>
2153
2154         expm1l: Don't override undeclared system function on IRIX 6.5.
2155         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2156         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2157         it exists. Set HAVE_DECL_EXPM1L.
2158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2159         HAVE_EXPM1L.
2160         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2161         HAVE_EXPM1L.
2162         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2163
2164 2012-03-07  Bruno Haible  <bruno@clisp.org>
2165
2166         remainderl: Don't override undeclared system function on IRIX 6.5.
2167         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2168         HAVE_REMAINDERL.
2169         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2170         declared when it exists. Set HAVE_DECL_REMAINDERL.
2171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2172         not HAVE_REMAINDERL.
2173         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2174         HAVE_REMAINDERL.
2175         * doc/posix-functions/remainderl.texi: Mention missing declaration
2176         problem.
2177
2178 2012-03-07  Bruno Haible  <bruno@clisp.org>
2179
2180         rintf: Don't override undeclared system function on IRIX 6.5.
2181         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2182         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2183         exists. Set HAVE_DECL_RINTF.
2184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2185         HAVE_RINTF.
2186         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2187         HAVE_RINTF.
2188         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2189
2190 2012-03-07  Bruno Haible  <bruno@clisp.org>
2191
2192         roundl: Avoid compilation error on AIX.
2193         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2194         AIX 5.2..7.1.
2195
2196 2012-03-07  Bruno Haible  <bruno@clisp.org>
2197
2198         roundl: Don't override undeclared system function on IRIX 6.5.
2199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2200         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2201         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2202         * modules/roundl (configure.ac): For replacement code, test
2203         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2204         (Depends-on): Update conditions.
2205         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2206
2207 2012-03-07  Bruno Haible  <bruno@clisp.org>
2208
2209         roundf: Don't override undeclared system function on IRIX 6.5.
2210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2211         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2212         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2213         * modules/roundf (configure.ac): For replacement code, test
2214         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2215         (Depends-on): Update conditions.
2216         * modules/roundf-ieee (Depends-on): Update conditions.
2217         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2218
2219 2012-03-07  Bruno Haible  <bruno@clisp.org>
2220
2221         round: Don't override undeclared system function on IRIX 6.5.
2222         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2223         argument.
2224         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2225         also when it is not declared. Set HAVE_ROUND. For replacement code,
2226         test HAVE_ROUND, not HAVE_DECL_ROUND.
2227         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2228         not HAVE_DECL_ROUND.
2229         (Depends-on): Update conditions.
2230         * modules/round-ieee (Depends-on): Update conditions.
2231         * doc/posix-functions/round.texi: Mention the IRIX problem.
2232
2233 2012-03-07  Bruno Haible  <bruno@clisp.org>
2234
2235         copysignf: Don't override undeclared system function on IRIX 6.5.
2236         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2237         HAVE_COPYSIGNF.
2238         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2239         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2241         not HAVE_COPYSIGNF.
2242         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2243         HAVE_COPYSIGNF.
2244         * doc/posix-functions/copysignf.texi: Mention missing declaration
2245         problem.
2246
2247 2012-03-07  Jim Meyering  <meyering@redhat.com>
2248
2249         readtokens: add tests
2250         * modules/readtokens-tests: New file.
2251         * tests/test-readtokens.c: New file.
2252
2253 2012-03-07  Jim Meyering  <meyering@redhat.com>
2254
2255         quotearg: the module must now include quote.h
2256         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2257         So must the module.
2258         * modules/quotearg (Files): Add quote.h.
2259
2260 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2261
2262         readtokens: avoid core dumps with unusual calling patterns
2263         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2264         * lib/readtokens.c: Include limits.h.
2265         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2266         (readtoken): Don't cache the delimiters; the cache code was buggy
2267         if !delim && saved_delim, or if the new n_delim differs from the old.
2268         Also, it wasn't thread-safe.
2269
2270 2012-03-07  Bruno Haible  <bruno@clisp.org>
2271
2272         quote: Adhere to common module description layout.
2273         * modules/quote (Makefile.am): Add back empty section.
2274
2275 2012-03-06  Akim Demaille  <demaille@gostai.com>
2276
2277         quote: fuse into quotearg
2278         This patch is made for the benefit of Bison.
2279         quote does not leave the choice of the quoting style to the user.
2280         quoting_style provides poor customizability, yet quoting_options,
2281         which is very rich, is hidden inside quotearg.c.  So in order to
2282         allow quote customization, move its implementation to quotearg.c.
2283         * lib/quote.c: Remove.
2284         * modules/quote: Adjust.
2285         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2286         warning: provide all the members of literal structs.
2287         (quote_quoting_options): New.
2288         (quote, quote_n): Import implementation from quote.c.
2289         * lib/quote.h: Import the comments from quote.c.
2290         (quote_quoting_options): New.
2291
2292 2012-03-06  Bruno Haible  <bruno@clisp.org>
2293
2294         Tests for module 'expm1l-ieee'.
2295         * modules/expm1l-ieee-tests: New file.
2296         * tests/test-expm1l-ieee.c: New file.
2297
2298         New module 'expm1l-ieee'.
2299         * modules/expm1l-ieee: New file.
2300
2301         Tests for module 'expm1f-ieee'.
2302         * modules/expm1f-ieee-tests: New file.
2303         * tests/test-expm1f-ieee.c: New file.
2304
2305         New module 'expm1f-ieee'.
2306         * modules/expm1f-ieee: New file.
2307
2308         Tests for module 'expm1-ieee'.
2309         * modules/expm1-ieee-tests: New file.
2310         * tests/test-expm1-ieee.c: New file.
2311         * tests/test-expm1-ieee.h: New file.
2312
2313         New module 'expm1-ieee'.
2314         * modules/expm1-ieee: New file.
2315         * m4/expm1-ieee.m4: New file.
2316         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2317         whether expm1 works with a minus zero argument. Replace it if not.
2318         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2320         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2321         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2322         (Depends-on): Update conditions.
2323         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2324         AIX problem.
2325
2326 2012-03-06  Bruno Haible  <bruno@clisp.org>
2327
2328         Work around expm1f bug on IRIX 6.5.
2329         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2330         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2331         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2332         not work.
2333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2334         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2335         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2336         (Depends-on): Update conditions.
2337         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2338
2339 2012-03-06  Bruno Haible  <bruno@clisp.org>
2340
2341         Tests for module 'expm1l'.
2342         * modules/expm1l-tests: New file.
2343         * tests/test-expm1l.c: New file.
2344
2345         New module 'expm1l'.
2346         * lib/math.in.h (expm1l): New declaration.
2347         * lib/expm1l.c: New file.
2348         * m4/expm1l.m4: New file.
2349         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2351         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2352         * modules/expm1l: New file.
2353         * tests/test-math-c++.cc: Check the declaration of expm1l.
2354         * doc/posix-functions/expm1l.texi: Mention the new module.
2355
2356 2012-03-06  Bruno Haible  <bruno@clisp.org>
2357
2358         Tests for module 'expm1f'.
2359         * modules/expm1f-tests: New file.
2360         * tests/test-expm1f.c: New file.
2361
2362         New module 'expm1f'.
2363         * lib/math.in.h (expm1f): New declaration.
2364         * lib/expm1f.c: New file.
2365         * m4/expm1f.m4: New file.
2366         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2368         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2369         * modules/expm1f: New file.
2370         * tests/test-math-c++.cc: Check the declaration of expm1f.
2371         * doc/posix-functions/expm1f.texi: Mention the new module.
2372
2373 2012-03-06  Bruno Haible  <bruno@clisp.org>
2374
2375         Tests for module 'expm1'.
2376         * modules/expm1-tests: New file.
2377         * tests/test-expm1.c: New file.
2378         * tests/test-expm1.h: New file.
2379
2380         New module 'expm1'.
2381         * lib/math.in.h (expm1): New declaration.
2382         * lib/expm1.c: New file.
2383         * m4/expm1.m4: New file.
2384         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2386         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2387         * modules/expm1: New file.
2388         * tests/test-math-c++.cc: Check the declaration of expm1.
2389         * doc/posix-functions/expm1.texi: Mention the new module.
2390
2391 2012-03-06  Bruno Haible  <bruno@clisp.org>
2392
2393         math: Ensure declarations of math functions.
2394         * modules/acosf (Depends-on): Add 'extensions'.
2395         * modules/asinf (Depends-on): Likewise.
2396         * modules/atan2f (Depends-on): Likewise.
2397         * modules/atanf (Depends-on): Likewise.
2398         * modules/cbrt (Depends-on): Likewise.
2399         * modules/cbrtf (Depends-on): Likewise.
2400         * modules/cbrtl (Depends-on): Likewise.
2401         * modules/copysignf (Depends-on): Likewise.
2402         * modules/copysignl (Depends-on): Likewise.
2403         * modules/cosf (Depends-on): Likewise.
2404         * modules/coshf (Depends-on): Likewise.
2405         * modules/expf (Depends-on): Likewise.
2406         * modules/fabsf (Depends-on): Likewise.
2407         * modules/fabsl (Depends-on): Likewise.
2408         * modules/fmaf (Depends-on): Likewise.
2409         * modules/fmal (Depends-on): Likewise.
2410         * modules/fmodf (Depends-on): Likewise.
2411         * modules/fmodl (Depends-on): Likewise.
2412         * modules/frexpf (Depends-on): Likewise.
2413         * modules/frexpl (Depends-on): Likewise.
2414         * modules/hypot (Depends-on): Likewise.
2415         * modules/hypotf (Depends-on): Likewise.
2416         * modules/hypotl (Depends-on): Likewise.
2417         * modules/ldexpf (Depends-on): Likewise.
2418         * modules/ldexpl (Depends-on): Likewise.
2419         * modules/log10f (Depends-on): Likewise.
2420         * modules/log10l (Depends-on): Likewise.
2421         * modules/log1p (Depends-on): Likewise.
2422         * modules/logb (Depends-on): Likewise.
2423         * modules/logf (Depends-on): Likewise.
2424         * modules/modff (Depends-on): Likewise.
2425         * modules/modfl (Depends-on): Likewise.
2426         * modules/powf (Depends-on): Likewise.
2427         * modules/remainderf (Depends-on): Likewise.
2428         * modules/remainderl (Depends-on): Likewise.
2429         * modules/rintf (Depends-on): Likewise.
2430         * modules/rintl (Depends-on): Likewise.
2431         * modules/sinf (Depends-on): Likewise.
2432         * modules/sinhf (Depends-on): Likewise.
2433         * modules/sqrtf (Depends-on): Likewise.
2434         * modules/tanf (Depends-on): Likewise.
2435         * modules/tanhf (Depends-on): Likewise.
2436         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2437         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2438         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2439         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2440         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2441         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2442         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2443         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2444         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2445         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2446         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2447         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2448         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2449         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2450         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2451         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2452         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2453         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2454         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2455         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2456         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2457         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2458         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2459         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2461         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2462         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2463         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2464         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2465         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2466         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2467         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2468         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2469         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2470         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2471         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2472         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2473         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2474         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2475         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2476         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2477
2478 2012-03-06  Bruno Haible  <bruno@clisp.org>
2479
2480         math: Update module names in warnings.
2481         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2482         tanl): Use specific module name in warn-on-use warning.
2483
2484 2012-03-06  Bruno Haible  <bruno@clisp.org>
2485
2486         expl: Simplify computation.
2487         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2488
2489 2012-03-05  Bruno Haible  <bruno@clisp.org>
2490
2491         exp* tests: More tests.
2492         * tests/test-exp.h: New file.
2493         * tests/test-exp.c: Include <float.h> and test-exp.h.
2494         (main): Invoke test_function.
2495         * tests/test-expf.c: Include <float.h> and test-exp.h.
2496         (main): Invoke test_function.
2497         * tests/test-expl.c: Include <float.h> and test-exp.h.
2498         (main): Invoke test_function.
2499         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2500         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2501         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2502         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2503         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2504         (Depends-on): Add 'float'.
2505         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2506
2507         expl: Fix precision of computed result.
2508         * lib/expl.c: Completely rewritten.
2509         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2510         (Maintainer): Add me.
2511         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2512
2513 2012-03-05  Bruno Haible  <bruno@clisp.org>
2514
2515         cbrt* tests: More tests.
2516         * tests/test-cbrt.h: New file.
2517         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2518         (main): Invoke test_function.
2519         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2520         (main): Invoke test_function.
2521         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2522         (main): Invoke test_function.
2523         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2524         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2525         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2526         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2527         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2528         (Depends-on): Add 'float'.
2529         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2530
2531 2012-03-05  Bruno Haible  <bruno@clisp.org>
2532
2533         hypot* tests: More tests.
2534         * tests/test-hypot.h: New file, partially extracted from
2535         tests/test-hypotl.c.
2536         * tests/test-hypot.c: Include test-hypot.h.
2537         (main): Invoke test_function.
2538         * tests/test-hypotf.c: Include test-hypot.h.
2539         (main): Invoke test_function.
2540         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2541         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2542         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2543         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2544         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2545         tests/randomf.c.
2546         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2547         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2548         tests/randoml.c.
2549         (Depends-on): Add 'fpucw', 'float'.
2550         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2551
2552 2012-03-05  Bruno Haible  <bruno@clisp.org>
2553
2554         fpucw: Doc about FreeBSD.
2555         * lib/fpucw.h: Mention FreeBSD in comments.
2556
2557 2012-03-04  Bruno Haible  <bruno@clisp.org>
2558
2559         sqrt* tests: More tests.
2560         * tests/test-sqrt.h: New file.
2561         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2562         (main): Invoke test_function.
2563         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2564         (main): Invoke test_function.
2565         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2566         (main): Invoke test_function.
2567         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2568         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2569         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2570         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2571         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2572         (Depends-on): Add 'float'.
2573         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2574
2575 2012-03-04  Bruno Haible  <bruno@clisp.org>
2576
2577         remainder* tests: More tests.
2578         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2579         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2580         (main): Invoke test_function.
2581         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2582         (main): Invoke test_function.
2583         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2584         (main): Invoke test_function.
2585         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2586         tests/randomd.c.
2587         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2588         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2589         tests/randomf.c.
2590         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2591         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2592         tests/randoml.c.
2593         (Depends-on): Add 'float'.
2594         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2595
2596 2012-03-04  Bruno Haible  <bruno@clisp.org>
2597
2598         remainder, remainderf, remainderl: Fix computation for large quotients.
2599         * lib/remainder.c: Completely rewritten.
2600         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2601         USE_FLOAT.
2602         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2603         USE_LONG_DOUBLE.
2604         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2605         isnand, isinf. Remove round, fma.
2606         * modules/remainderf (Files): Add lib/remainder.c.
2607         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2608         Remove roundf, fmaf.
2609         * modules/remainderl (Files): Add lib/remainder.c.
2610         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2611         isinf. Remove roundl, fmal.
2612         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2613         REMAINDER_LIBM.
2614         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2615         REMAINDERF_LIBM.
2616         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2617         REMAINDERL_LIBM.
2618
2619 2012-03-04  Bruno Haible  <bruno@clisp.org>
2620
2621         fmod* tests: More tests.
2622         * tests/test-fmod.h (my_ldexp): New function.
2623         (test_function): Reduce amount of random numbers to test. Add tests
2624         of very large quotients x / y.
2625         * tests/test-fmod.c (MAX_EXP): New macro.
2626         * tests/test-fmodf.c (MAX_EXP): Likewise.
2627         * tests/test-fmodl.c (MAX_EXP): Likewise.
2628
2629 2012-03-04  Bruno Haible  <bruno@clisp.org>
2630
2631         fmod, fmodl: Fix computation for large quotients x / y.
2632         * lib/fmod.c: Completely rewritten.
2633         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2634         USE_LONG_DOUBLE.
2635         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2636         isnand. Remove fma.
2637         * modules/fmodl (Files): Add lib/fmod.c.
2638         (Depends-on): Add float, isfinite, signbit, fabsl,
2639         frexpl, ldexpl, isnanl. Remove fma.
2640         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2641         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2642
2643 2012-03-03  Bruno Haible  <bruno@clisp.org>
2644
2645         fmod* tests: More tests.
2646         * tests/test-fmod.h: New file.
2647         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2648         (main): Invoke test_function.
2649         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2650         (main): Invoke test_function.
2651         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2652         (main): Invoke test_function.
2653         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2654         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2655         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2656         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2657         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2658         (Depends-on): Add 'float'.
2659         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2660
2661 2012-03-03  Bruno Haible  <bruno@clisp.org>
2662
2663         rint* tests: More tests.
2664         * tests/test-rint.h: New file, partially extracted from
2665         tests/test-rintl.c.
2666         * tests/test-rint.c: Include test-rint.h.
2667         (main): Invoke test_function.
2668         * tests/test-rintf.c: Include test-rint.h.
2669         (main): Invoke test_function.
2670         * tests/test-rintl.c: Include test-rint.h.
2671         (main): Invoke test_function.
2672         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2673         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2674         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2675         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2676         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2677         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2678
2679 2012-03-03  Bruno Haible  <bruno@clisp.org>
2680
2681         modf* tests: More tests.
2682         * tests/test-modf.h: New file.
2683         * tests/test-modf.c: Include <float.h> and test-modf.h.
2684         (main): Invoke test_function.
2685         * tests/test-modff.c: Include <float.h> and test-modf.h.
2686         (main): Invoke test_function.
2687         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2688         (main): Invoke test_function.
2689         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2690         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2691         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2692         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2693         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2694         (Depends-on): Add 'float'.
2695         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2696
2697 2012-03-03  Bruno Haible  <bruno@clisp.org>
2698
2699         fabs* tests: More tests.
2700         * tests/test-fabs.h: New file, partially extracted from
2701         tests/test-fabsl.c.
2702         * tests/test-fabs.c (RANDOM): New macro.
2703         * tests/test-fabsf.c (RANDOM): New macro.
2704         * tests/test-fabsl.c (RANDOM): New macro.
2705         * modules/fabs-tests (Files): Add tests/randomd.c.
2706         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2707         * modules/fabsf-tests (Files): Add tests/randomf.c.
2708         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2709         * modules/fabsl-tests (Files): Add tests/randoml.c.
2710         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2711
2712 2012-03-03  Bruno Haible  <bruno@clisp.org>
2713
2714         ldexp* tests: More tests.
2715         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2716         * tests/test-ldexp.c (RANDOM): New macro.
2717         * tests/test-ldexpf.c (RANDOM): New macro.
2718         * tests/test-ldexpl.c (RANDOM): New macro.
2719         * modules/ldexp-tests (Files): Add tests/randomd.c.
2720         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2721         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2722         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2723         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2724         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2725
2726 2012-03-03  Bruno Haible  <bruno@clisp.org>
2727
2728         frexp* tests: More tests.
2729         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2730         * tests/test-frexp.c (RANDOM): New macro.
2731         * tests/test-frexpf.c (RANDOM): New macro.
2732         * tests/test-frexpl.c (RANDOM): New macro.
2733         * modules/frexp-tests (Files): Add tests/randomd.c.
2734         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2735         * modules/frexpf-tests (Files): Add tests/randomf.c.
2736         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2737         * modules/frexpl-tests (Files): Add tests/randoml.c.
2738         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2739
2740 2012-03-03  Bruno Haible  <bruno@clisp.org>
2741
2742         Support for pseudo-random numbers in tests.
2743         * tests/randomf.c: New file.
2744         * tests/randomd.c: New file.
2745         * tests/randoml.c: New file.
2746         * tests/macros.h (randomf, randomd, randoml): New declarations.
2747
2748 2012-03-03  Bruno Haible  <bruno@clisp.org>
2749
2750         frexp* tests: Refactor.
2751         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2752         * tests/test-frexp.c: Include and use it.
2753         * tests/test-frexpf.c: Likewise.
2754         * tests/test-frexpl.c: Likewise.
2755         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2756         * modules/frexpf-tests (Files): Likewise.
2757         * modules/frexpl-tests (Files): Likewise.
2758
2759 2012-03-02  Jim Meyering  <meyering@redhat.com>
2760
2761         maint: don't specify XZ_OPT=-9ev in dist-related rule
2762         Using xz's -9 option is warranted only if you have a very large
2763         tarball (see xz's documentation for the sizes vs. presets), and
2764         requires 64MiB of memory at decompression time.
2765         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2766         Automake's default of just "-e" is fine.  Override on a
2767         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2768
2769 2012-03-01  Eric Blake  <eblake@redhat.com>
2770
2771         maint.mk: allow announcement for non-gnulib project
2772         * maint.mk (announcement): Skip gnulib version if not used.
2773
2774 2012-03-01  Jim Meyering  <meyering@redhat.com>
2775
2776         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2777         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2778         envvar settings cannot interfere.  Otherwise, setting envvars like
2779         prohibit=foo require=bar, etc. would cause spurious test failures.
2780
2781 2012-03-01  Eric Blake  <eblake@redhat.com>
2782
2783         maint.mk: add per-line exclusions to prohibitions
2784         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2785         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2786         (sc_const_long_option): Use it.
2787
2788 2012-03-01  Bruno Haible  <bruno@clisp.org>
2789
2790         Tests for module 'expl-ieee'.
2791         * modules/expl-ieee-tests: New file.
2792         * tests/test-expl-ieee.c: New file.
2793
2794         New module 'expl-ieee'.
2795         * modules/expl-ieee: New file.
2796
2797         Tests for module 'exp-ieee'.
2798         * modules/exp-ieee-tests: New file.
2799         * tests/test-exp-ieee.c: New file.
2800
2801         New module 'exp-ieee'.
2802         * modules/exp-ieee: New file.
2803
2804         Tests for module 'expf-ieee'.
2805         * modules/expf-ieee-tests: New file.
2806         * tests/test-expf-ieee.c: New file.
2807         * tests/test-exp-ieee.h: New file.
2808
2809         New module 'expf-ieee'.
2810         * modules/expf-ieee: New file.
2811
2812 2012-02-29  Bruno Haible  <bruno@clisp.org>
2813
2814         cbrtl-ieee: Work around test failure on IRIX 6.5.
2815         * m4/cbrtl-ieee.m4: New file.
2816         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2817         test whether cbrtl works with a minus zero argument. Replace it if not.
2818         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2820         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2821         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2822         (Depends-on): Update conditions.
2823         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2824         m4/signbit.m4.
2825         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2826         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2827         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2828
2829         Tests for module 'cbrtl-ieee'.
2830         * modules/cbrtl-ieee-tests: New file.
2831         * tests/test-cbrtl-ieee.c: New file.
2832
2833         New module 'cbrtl-ieee'.
2834         * modules/cbrtl-ieee: New file.
2835
2836         Tests for module 'cbrt-ieee'.
2837         * modules/cbrt-ieee-tests: New file.
2838         * tests/test-cbrt-ieee.c: New file.
2839
2840         New module 'cbrt-ieee'.
2841         * modules/cbrt-ieee: New file.
2842
2843         Tests for module 'cbrtf-ieee'.
2844         * modules/cbrtf-ieee-tests: New file.
2845         * tests/test-cbrtf-ieee.c: New file.
2846         * tests/test-cbrt-ieee.h: New file.
2847
2848         New module 'cbrtf-ieee'.
2849         * modules/cbrtf-ieee: New file.
2850
2851 2012-02-29  Bruno Haible  <bruno@clisp.org>
2852
2853         cbrtf: Work around bug in IRIX 6.5 system function.
2854         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2855         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2856         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2857         work.
2858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2859         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2860         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2861         (Depends-on): Update conditions.
2862         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2863
2864 2012-02-29  Bruno Haible  <bruno@clisp.org>
2865
2866         Tests for module 'cbrtl'.
2867         * modules/cbrtl-tests: New file.
2868         * tests/test-cbrtl.c: New file.
2869
2870         New module 'cbrtl'.
2871         * lib/math.in.h (cbrtl): New declaration.
2872         * lib/cbrtl.c: New file.
2873         * m4/cbrtl.m4: New file.
2874         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2876         HAVE_DECL_CBRTL.
2877         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2878         HAVE_DECL_CBRTL.
2879         * modules/cbrtl: New file.
2880         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2881         * doc/posix-functions/cbrtl.texi: Mention the new module.
2882
2883 2012-02-29  Bruno Haible  <bruno@clisp.org>
2884
2885         Tests for module 'cbrtf'.
2886         * modules/cbrtf-tests: New file.
2887         * tests/test-cbrtf.c: New file.
2888
2889         New module 'cbrtf'.
2890         * lib/math.in.h (cbrtf): New declaration.
2891         * lib/cbrtf.c: New file.
2892         * m4/cbrtf.m4: New file.
2893         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2895         HAVE_DECL_CBRTF.
2896         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2897         HAVE_DECL_CBRTF.
2898         * modules/cbrtf: New file.
2899         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2900         * doc/posix-functions/cbrtf.texi: Mention the new module.
2901
2902 2012-02-29  Bruno Haible  <bruno@clisp.org>
2903
2904         cbrt: Provide replacement on MSVC and Minix.
2905         * lib/math.in.h (cbrt): New declaration.
2906         * lib/cbrt.c: New file.
2907         * m4/cbrt.m4: New file.
2908         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2910         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2911         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2912         (Depends-on): Add dependencies.
2913         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2914         * tests/test-math-c++.cc: Check the declaration of cbrt.
2915         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2916         replacement.
2917
2918 2012-02-29  Bruno Haible  <bruno@clisp.org>
2919
2920         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2921         * m4/hypotl-ieee.m4: New file.
2922         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2923         test whether hypotl works with mixed NaN and Infinity arguments.
2924         Replace it if not.
2925         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2927         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2928         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2929         (Depends-on): Update conditions.
2930         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2931         (Depends-on): Add hypot-ieee.
2932         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2933         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2934
2935         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2936         * m4/hypotf-ieee.m4: New file.
2937         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2938         test whether hypotf works with mixed NaN and Infinity arguments.
2939         Replace it if not.
2940         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2941         (Depends-on): Add hypot-ieee.
2942         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2943         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2944
2945         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2946         * lib/math.in.h (hypot): New declaration.
2947         * lib/hypot.c: New file.
2948         * m4/hypot-ieee.m4: New file.
2949         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2950         whether hypot works with mixed NaN and Infinity arguments. Replace it
2951         if not.
2952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2953         REPLACE_HYPOT.
2954         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2955         * modules/hypot (Files): Add lib/hypot.c.
2956         (Depends-on): Add dependencies.
2957         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2958         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2959         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2960         * tests/test-math-c++.cc: Check the declaration of hypot.
2961         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2962
2963         Tests for module 'hypotl-ieee'.
2964         * modules/hypotl-ieee-tests: New file.
2965         * tests/test-hypotl-ieee.c: New file.
2966
2967         New module 'hypotl-ieee'.
2968         * modules/hypotl-ieee: New file.
2969
2970         Tests for module 'hypot-ieee'.
2971         * modules/hypot-ieee-tests: New file.
2972         * tests/test-hypot-ieee.c: New file.
2973
2974         New module 'hypot-ieee'.
2975         * modules/hypot-ieee: New file.
2976
2977         Tests for module 'hypotf-ieee'.
2978         * modules/hypotf-ieee-tests: New file.
2979         * tests/test-hypotf-ieee.c: New file.
2980         * tests/test-hypot-ieee.h: New file.
2981
2982         New module 'hypotf-ieee'.
2983         * modules/hypotf-ieee: New file.
2984
2985 2012-02-29  Bruno Haible  <bruno@clisp.org>
2986
2987         Remove unused variables.
2988         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2989         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2990         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2991         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2992
2993 2012-02-29  Eric Blake  <eblake@redhat.com>
2994
2995         termios: fix pid_t always, not just for tcgetsid
2996         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2997         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2998         just when building tcgetsid.
2999
3000 2012-02-29  Bruno Haible  <bruno@clisp.org>
3001
3002         Tests for module 'hypotl'.
3003         * modules/hypotl-tests: New file.
3004         * tests/test-hypotl.c: New file.
3005
3006         New module 'hypotl'.
3007         * lib/math.in.h (hypotl): New declaration.
3008         * lib/hypotl.c: New file.
3009         * m4/hypotl.m4: New file.
3010         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3012         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3013         * modules/hypotl: New file.
3014         * tests/test-math-c++.cc: Check the hypotl declaration.
3015         * doc/posix-functions/hypotl.texi: Mention the new module.
3016
3017 2012-02-29  Eric Blake  <eblake@redhat.com>
3018
3019         tcgetsid: fix cygwin header bug
3020         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3021
3022         docs: update cygwin progress
3023         * doc/posix-functions/llround.texi (llround): Added in cygwin
3024         1.7.8.
3025         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3026         * doc/glibc-functions/program_invocation_name.texi
3027         (program_invocation_name): Likewise.
3028         * doc/glibc-functions/program_invocation_short_name.texi
3029         (program_invocation_short_name): Likewise.
3030         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3031         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3032         Likewise.
3033         * doc/posix-functions/pthread_spin_destroy.texi
3034         (pthread_spin_destroy): Added in cygwin 1.7.10.
3035         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3036         Likewise.
3037         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3038         Likewise.
3039         * doc/posix-functions/pthread_spin_trylock.texi
3040         (pthread_spin_trylock): Likewise.
3041         * doc/posix-functions/pthread_spin_unlock.texi
3042         (pthread_spin_unlock): Likewise.
3043         * doc/posix-functions/pthread_setschedprio.texi
3044         (pthread_setschedprio): Likewise.
3045         * doc/posix-functions/pthread_attr_getstack.texi
3046         (pthread_attr_getstack): Likewise.
3047         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3048         (pthread_attr_getstackaddr): Likewise.
3049         * doc/glibc-functions/pthread_getattr_np.texi
3050         (pthread_getattr_np): Likewise.
3051         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3052         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3053         * doc/posix-functions/clock_settime.texi (clock_settime):
3054         Likewise.
3055         * doc/posix-functions/pthread_attr_getguardsize.texi
3056         (pthread_attr_getguardsize): Likewise.
3057         * doc/posix-functions/pthread_attr_setguardsize.texi
3058         (pthread_attr_setguardsize): Likewise.
3059         * doc/posix-functions/pthread_attr_setstack.texi
3060         (pthread_attr_setstack): Likewise.
3061         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3062         (pthread_attr_setstackaddr): Likewise.
3063         * doc/posix-functions/clock_getcpuclockid.texi
3064         (clock_getcpuclockid): Likewise.
3065         * doc/posix-functions/pthread_getcpuclockid.texi
3066         (pthread_getcpuclockid): Likewise.
3067         * doc/glibc-functions/error.texi (error): Likewise.
3068         * doc/glibc-functions/error_at_line.texi (error_at_line):
3069         Likewise.
3070         * doc/glibc-functions/error_message_count.texi
3071         (error_message_count): Likewise.
3072         * doc/glibc-functions/error_one_per_line.texi
3073         (error_one_per_line): Likewise.
3074         * doc/glibc-functions/error_print_progname.texi
3075         (error_print_progname): Likewise.
3076         * doc/posix-functions/pthread_condattr_getclock.texi
3077         (pthread_condattr_getclock): Likewise.
3078         * doc/posix-functions/pthread_condattr_setclock.texi
3079         (pthread_condattr_setclock): Likewise.
3080         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3081         Likewise.
3082         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3083         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3084         * doc/glibc-functions/get_current_dir_name.texi
3085         (get_current_dir_name): Likewise.
3086         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3087         Likewise.
3088         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3089         wrong return type.
3090         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3091         1.7.11.
3092
3093 2012-02-29  Bruno Haible  <bruno@clisp.org>
3094
3095         Tests for module 'hypotf'.
3096         * modules/hypotf-tests: New file.
3097         * tests/test-hypotf.c: New file.
3098
3099         New module 'hypotf'.
3100         * lib/math.in.h (hypotf): New declaration.
3101         * lib/hypotf.c: New file.
3102         * m4/hypotf.m4: New file.
3103         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3105         REPLACE_HYPOTF.
3106         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3107         REPLACE_HYPOTF.
3108         * modules/hypotf: New file.
3109         * tests/test-math-c++.cc: Check the hypotf declaration.
3110         * doc/posix-functions/hypotf.texi: Mention the new module.
3111
3112         hypot: Prepare for hypotf module.
3113         * m4/hypot.m4: New file.
3114         * modules/hypot (Files): Add m4/hypot.m4.
3115         (configure.ac): Invoke gl_FUNC_HYPOT.
3116
3117 2012-02-29  Bruno Haible  <bruno@clisp.org>
3118
3119         hypot tests: More tests.
3120         * tests/test-hypot.c: Include <float.h>.
3121         (main): Add tests about overflow and underflow.
3122
3123 2012-02-29  Bruno Haible  <bruno@clisp.org>
3124
3125         math code: Add comments.
3126         * lib/acosl.c: Add comment about related glibc source files.
3127         * lib/asinl.c: Likewise.
3128         * lib/atanl.c: Likewise.
3129         * lib/expl.c: Likewise.
3130         * lib/logl.c: Likewise.
3131         * lib/sincosl.c: Likewise.
3132         * lib/sinl.c: Likewise.
3133         * lib/tanl.c: Likewise.
3134         * lib/trigl.c: Likewise.
3135         * lib/cosl.c: Likewise. Fix comments.
3136
3137 2012-02-28  Bruno Haible  <bruno@clisp.org>
3138
3139         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3140         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3141         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3142         HUGE_VALL are defined.
3143         (numeric_equald): Renamed from numeric_equal.
3144         (numeric_equalf, numeric_equall): New functions.
3145         (main): Check also HUGE_VALF, HUGE_VALL.
3146         * modules/math-tests (Files): Add tests/macros.h.
3147         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3148         HUGE_VALL.
3149
3150 2012-02-28  Bruno Haible  <bruno@clisp.org>
3151
3152         doc: Move ISO C11 feature notes into POSIX chapters.
3153         * doc/posix-functions/aligned_alloc.texi: Renamed from
3154         doc/glibc-functions/aligned_alloc.texi.
3155         * doc/posix-functions/quick_exit.texi: Renamed from
3156         doc/glibc-functions/quick_exit.texi.
3157         * doc/posix-headers/uchar.texi: Renamed from
3158         doc/glibc-headers/uchar.texi.
3159         * doc/posix-functions/c16rtomb.texi: Renamed from
3160         doc/glibc-functions/c16rtomb.texi.
3161         * doc/posix-functions/c32rtomb.texi: Renamed from
3162         doc/glibc-functions/c32rtomb.texi.
3163         * doc/posix-functions/mbrtoc16.texi: Renamed from
3164         doc/glibc-functions/mbrtoc16.texi.
3165         * doc/posix-functions/mbrtoc32.texi: Renamed from
3166         doc/glibc-functions/mbrtoc32.texi.
3167         * doc/gnulib.texi: Update.
3168         (Glibc uchar.h): Remove section.
3169         Suggested by Eric Blake.
3170
3171 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         stdnoreturn: port to MSVC better
3174         MSVC standard headers use __declspec(noreturn), so #define noreturn
3175         to empty on that platform.  Reported by Bruno Haible in
3176         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3177         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3178         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3179
3180 2012-02-28  Bruno Haible  <bruno@clisp.org>
3181
3182         doc: Mention new glibc headers and functions.
3183         * doc/glibc-headers/uchar.texi: New file.
3184         * doc/glibc-functions/aligned_alloc.texi: New file.
3185         * doc/glibc-functions/c16rtomb.texi: New file.
3186         * doc/glibc-functions/c32rtomb.texi: New file.
3187         * doc/glibc-functions/clock_adjtime.texi: New file.
3188         * doc/glibc-functions/fanotify_init.texi: New file.
3189         * doc/glibc-functions/fanotify_mark.texi: New file.
3190         * doc/glibc-functions/inet6_opt_append.texi: New file.
3191         * doc/glibc-functions/inet6_opt_find.texi: New file.
3192         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3193         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3194         * doc/glibc-functions/inet6_opt_init.texi: New file.
3195         * doc/glibc-functions/inet6_opt_next.texi: New file.
3196         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3197         * doc/glibc-functions/inet6_rth_add.texi: New file.
3198         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3199         * doc/glibc-functions/inet6_rth_init.texi: New file.
3200         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3201         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3202         * doc/glibc-functions/inet6_rth_space.texi: New file.
3203         * doc/glibc-functions/login.texi: New file.
3204         * doc/glibc-functions/mbrtoc16.texi: New file.
3205         * doc/glibc-functions/mbrtoc32.texi: New file.
3206         * doc/glibc-functions/name_to_handle_at.texi: New file.
3207         * doc/glibc-functions/ntp_gettimex.texi: New file.
3208         * doc/glibc-functions/open_by_handle_at.texi: New file.
3209         * doc/glibc-functions/prlimit.texi: New file.
3210         * doc/glibc-functions/process_vm_readv.texi: New file.
3211         * doc/glibc-functions/process_vm_writev.texi: New file.
3212         * doc/glibc-functions/recvmmsg.texi: New file.
3213         * doc/glibc-functions/scandirat.texi: New file.
3214         * doc/glibc-functions/sendmmsg.texi: New file.
3215         * doc/glibc-functions/setns.texi: New file.
3216         * doc/glibc-functions/timespec_get.texi: New file.
3217         * doc/gnulib.texi: Include them.
3218         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3219         sections.
3220         Reported by Eric Blake.
3221
3222 2012-02-28  Bruno Haible  <bruno@clisp.org>
3223
3224         Avoid compilation errors with MSVC option -fp:strict.
3225         * lib/floor.c: Use MSVC specific pragma fenv_access.
3226         * lib/ceil.c: Likewise.
3227         * lib/trunc.c: Likewise.
3228         * lib/round.c: Likewise.
3229         * lib/rint.c: Likewise.
3230         * lib/fma.c: Likewise.
3231         * lib/integer_length.c: Likewise.
3232         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3234         * tests/test-floor2.c: Likewise.
3235         * tests/test-floorf2.c: Likewise.
3236         * tests/test-ceil2.c: Likewise.
3237         * tests/test-ceilf2.c: Likewise.
3238         * tests/test-trunc2.c: Likewise.
3239         * tests/test-truncf2.c: Likewise.
3240         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3241
3242 2012-02-27  Bruno Haible  <bruno@clisp.org>
3243
3244         Tests for module 'sqrtl-ieee'.
3245         * modules/sqrtl-ieee-tests: New file.
3246         * tests/test-sqrtl-ieee.c: New file.
3247
3248         New module 'sqrtl-ieee'.
3249         * modules/sqrtl-ieee: New file.
3250
3251         Tests for module 'sqrt-ieee'.
3252         * modules/sqrt-ieee-tests: New file.
3253         * tests/test-sqrt-ieee.c: New file.
3254
3255         New module 'sqrt-ieee'.
3256         * modules/sqrt-ieee: New file.
3257
3258         Tests for module 'sqrtf-ieee'.
3259         * modules/sqrtf-ieee-tests: New file.
3260         * tests/test-sqrtf-ieee.c: New file.
3261         * tests/test-sqrt-ieee.h: New file.
3262
3263         New module 'sqrtf-ieee'.
3264         * modules/sqrtf-ieee: New file.
3265
3266 2012-02-27  Bruno Haible  <bruno@clisp.org>
3267
3268         remainderl-ieee: Work around test failure on OSF/1.
3269         * m4/remainderl-ieee.m4: New file.
3270         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3271         present, test whether remainderl works with a zero second argument.
3272         Replace it if not.
3273         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3275         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3276         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3277         (Depends-on): Update conditions.
3278         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3279         (Depends-on): Add remainder-ieee.
3280         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3281         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3282         module.
3283
3284         remainderf-ieee: Work around test failure on OSF/1.
3285         * m4/remainderf-ieee.m4: New file.
3286         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3287         present, test whether remainderf works with a zero second argument.
3288         Replace it if not.
3289         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3291         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3292         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3293         (Depends-on): Update conditions.
3294         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3295         (Depends-on): Add remainder-ieee.
3296         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3297         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3298         module.
3299
3300         remainder-ieee: Work around test failure on OSF/1.
3301         * m4/remainder-ieee.m4: New file.
3302         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3303         present, test whether remainder works with a zero second argument.
3304         Replace it if not.
3305         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3307         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3308         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3309         (Depends-on): Update dependencies.
3310         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3311         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3312         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3313
3314         Tests for module 'remainderl-ieee'.
3315         * modules/remainderl-ieee-tests: New file.
3316         * tests/test-remainderl-ieee.c: New file.
3317
3318         New module 'remainderl-ieee'.
3319         * modules/remainderl-ieee: New file.
3320
3321         Tests for module 'remainder-ieee'.
3322         * modules/remainder-ieee-tests: New file.
3323         * tests/test-remainder-ieee.c: New file.
3324
3325         New module 'remainder-ieee'.
3326         * modules/remainder-ieee: New file.
3327
3328         Tests for module 'remainderf-ieee'.
3329         * modules/remainderf-ieee-tests: New file.
3330         * tests/test-remainderf-ieee.c: New file.
3331         * tests/test-remainder-ieee.h: New file.
3332
3333         New module 'remainderf-ieee'.
3334         * modules/remainderf-ieee: New file.
3335
3336 2012-02-27  Bruno Haible  <bruno@clisp.org>
3337
3338         modff, modfl: Fix configure syntax error.
3339         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3340         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3341
3342 2012-02-27  Bruno Haible  <bruno@clisp.org>
3343
3344         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3345         * m4/fmodl-ieee.m4: New file.
3346         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3347         whether fmodl works with zero arguments. Replace it if not.
3348         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3349         (Depends-on): Add fmod-ieee.
3350         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3351         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3352
3353         fmodf-ieee: Work around test failure on OSF/1.
3354         * m4/fmodf-ieee.m4: New file.
3355         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3356         whether fmodf works with zero arguments. Replace it if not.
3357         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3359         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3360         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3361         (Depends-on): Update dependencies.
3362         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3363         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3364         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3365
3366         fmodf-ieee: Work around test failure on MSVC 9.
3367         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3368         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3369
3370         fmod-ieee: Work around test failures on OSF/1, mingw.
3371         * m4/fmod-ieee.m4: New file.
3372         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3373         whether fmod works with zero arguments. Replace it if not.
3374         * lib/math.in.h (fmod): New declaration.
3375         * lib/fmod.c: New file.
3376         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3378         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3379         * modules/fmod (Files): Add lib/fmod.c.
3380         (Depends-on): Add math, isinf, trunc, fma.
3381         (configure.ac): Arrange to compile lib/fmod.c if needed.
3382         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3383         m4/signbit.m4.
3384         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3385         * tests/test-math-c++.cc: Check the declaration of fmod.
3386         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3387
3388         fmodl-ieee: Fix test failures.
3389         * lib/fmodl.c (fmodl): Treat Inf specially.
3390         * modules/fmodl (Depends-on): Add isinf.
3391
3392         Tests for module 'fmodl-ieee'.
3393         * modules/fmodl-ieee-tests: New file.
3394         * tests/test-fmodl-ieee.c: New file.
3395
3396         New module 'fmodl-ieee'.
3397         * modules/fmodl-ieee: New file.
3398
3399         Tests for module 'fmod-ieee'.
3400         * modules/fmod-ieee-tests: New file.
3401         * tests/test-fmod-ieee.c: New file.
3402
3403         New module 'fmod-ieee'.
3404         * modules/fmod-ieee: New file.
3405
3406         Tests for module 'fmodf-ieee'.
3407         * modules/fmodf-ieee-tests: New file.
3408         * tests/test-fmodf-ieee.c: New file.
3409         * tests/test-fmod-ieee.h: New file.
3410
3411         New module 'fmodf-ieee'.
3412         * modules/fmodf-ieee: New file.
3413
3414 2012-02-27  Bruno Haible  <bruno@clisp.org>
3415
3416         Tests for module 'rintl-ieee'.
3417         * modules/rintl-ieee-tests: New file.
3418         * tests/test-rintl-ieee.c: New file.
3419
3420         New module 'rintl-ieee'.
3421         * modules/rintl-ieee: New file.
3422
3423         Tests for module 'rint-ieee'.
3424         * modules/rint-ieee-tests: New file.
3425         * tests/test-rint-ieee.c: New file.
3426
3427         New module 'rint-ieee'.
3428         * modules/rint-ieee: New file.
3429
3430         Tests for module 'rintf-ieee'.
3431         * modules/rintf-ieee-tests: New file.
3432         * tests/test-rintf-ieee.c: New file.
3433         * tests/test-rint-ieee.h: New file.
3434
3435         New module 'rintf-ieee'.
3436         * modules/rintf-ieee: New file.
3437
3438 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         regex: re_search etc. should return -2 when memory exhausted
3441         This bug was uncovered when testing 'grep'.  Without the fix,
3442         re_search and friends return -1 when memory is exhausted, but -1
3443         means no match, and this causes grep to falsely report no-match
3444         instead of memory-exhaustion.  See
3445         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3446         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3447         trouble; this can occur if re_search_internal ran out of memory.
3448
3449 2012-02-26  Bruno Haible  <bruno@clisp.org>
3450
3451         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3452         * m4/modfl-ieee.m4: New file.
3453         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3454         whether modfl works with Inf. Replace it if not.
3455         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3457         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3458         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3459         (Depends-on): Update dependencies.
3460         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3461         m4/signbit.m4.
3462         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3463         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3464
3465         modfl-ieee: Fix dependencies.
3466         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3467
3468         modfl-ieee: Fix test failures.
3469         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3470         * modules/modfl (Depends-on): Add isfinite, isinf.
3471
3472         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3473         * m4/modff-ieee.m4: New file.
3474         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3475         whether modff works with NaN and Inf. Replace it if not.
3476         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3478         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3479         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3480         (Depends-on): Update dependencies.
3481         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3482         m4/signbit.m4.
3483         (Depends-on): Add modf-ieee.
3484         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3485         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3486
3487         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3488         * m4/modf-ieee.m4: New file.
3489         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3490         whether modf works with NaN and Inf. Replace it if not.
3491         * lib/math.in.h (modf): New declaration.
3492         * lib/modf.c: New file.
3493         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3495         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3496         * modules/modf (Files): Add lib/modf.c.
3497         (Depends-on): Add math, isfinite, trunc, isinf.
3498         (configure.ac): Addrange to compile lib/modf.c if needed.
3499         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3500         m4/signbit.m4.
3501         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3502         * tests/test-math-c++.cc: Check the declaration of modf.
3503         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3504
3505         Tests for module 'modfl-ieee'.
3506         * modules/modfl-ieee-tests: New file.
3507         * tests/test-modfl-ieee.c: New file.
3508
3509         New module 'modfl-ieee'.
3510         * modules/modfl-ieee: New file.
3511
3512         Tests for module 'modf-ieee'.
3513         * modules/modf-ieee-tests: New file.
3514         * tests/test-modf-ieee.c: New file.
3515
3516         New module 'modf-ieee'.
3517         * modules/modf-ieee: New file.
3518
3519         Tests for module 'modff-ieee'.
3520         * modules/modff-ieee-tests: New file.
3521         * tests/test-modff-ieee.c: New file.
3522         * tests/test-modf-ieee.h: New file.
3523
3524         New module 'modff-ieee'.
3525         * modules/modff-ieee: New file.
3526
3527 2012-02-26  Bruno Haible  <bruno@clisp.org>
3528
3529         Tests for module 'fabsl-ieee'.
3530         * modules/fabsl-ieee-tests: New file.
3531         * tests/test-fabsl-ieee.c: New file.
3532
3533         New module 'fabsl-ieee'.
3534         * modules/fabsl-ieee: New file.
3535
3536         Tests for module 'fabs-ieee'.
3537         * modules/fabs-ieee-tests: New file.
3538         * tests/test-fabs-ieee.c: New file.
3539
3540         New module 'fabs-ieee'.
3541         * modules/fabs-ieee: New file.
3542
3543         Tests for module 'fabsf-ieee'.
3544         * modules/fabsf-ieee-tests: New file.
3545         * tests/test-fabsf-ieee.c: New file.
3546         * tests/test-fabs-ieee.h: New file.
3547
3548         New module 'fabsf-ieee'.
3549         * modules/fabsf-ieee: New file.
3550
3551 2012-02-26  Bruno Haible  <bruno@clisp.org>
3552
3553         Tests for module 'fmal-ieee'.
3554         * modules/fmal-ieee-tests: New file.
3555         * tests/test-fmal-ieee.c: New file.
3556
3557         New module 'fmal-ieee'.
3558         * modules/fmal-ieee: New file.
3559
3560         Tests for module 'fma-ieee'.
3561         * modules/fma-ieee-tests: New file.
3562         * tests/test-fma-ieee.c: New file.
3563
3564         New module 'fma-ieee'.
3565         * modules/fma-ieee: New file.
3566
3567         Tests for module 'fmaf-ieee'.
3568         * modules/fmaf-ieee-tests: New file.
3569         * tests/test-fmaf-ieee.c: New file.
3570         * tests/test-fma-ieee.h: New file.
3571
3572         New module 'fmaf-ieee'.
3573         * modules/fmaf-ieee: New file.
3574
3575 2012-02-26  Bruno Haible  <bruno@clisp.org>
3576
3577         Tests for module 'ldexpl-ieee'.
3578         * modules/ldexpl-ieee-tests: New file.
3579         * tests/test-ldexpl-ieee.c: New file.
3580
3581         New module 'ldexpl-ieee'.
3582         * modules/ldexpl-ieee: New file.
3583
3584         Tests for module 'ldexp-ieee'.
3585         * modules/ldexp-ieee-tests: New file.
3586         * tests/test-ldexp-ieee.c: New file.
3587
3588         New module 'ldexp-ieee'.
3589         * modules/ldexp-ieee: New file.
3590
3591         Tests for module 'ldexpf-ieee'.
3592         * modules/ldexpf-ieee-tests: New file.
3593         * tests/test-ldexpf-ieee.c: New file.
3594         * tests/test-ldexp-ieee.h: New file.
3595
3596         New module 'ldexpf-ieee'.
3597         * modules/ldexpf-ieee: New file.
3598
3599 2012-02-26  Bruno Haible  <bruno@clisp.org>
3600
3601         Refactor frexp*-ieee tests.
3602         * tests/test-frexp-ieee.h: New file.
3603         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3604         (main): Just call test_function.
3605         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3606         (main): Just call test_function.
3607         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3608         (main): Just call test_function.
3609         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3610         * modules/frexp-ieee-tests (Files): Likewise.
3611         * modules/frexpl-ieee-tests (Files): Likewise.
3612
3613         Tests for module 'frexpl-ieee'.
3614         * modules/frexpl-ieee-tests: New file.
3615         * tests/test-frexpl-ieee.c: New file.
3616
3617         New module 'frexpl-ieee'.
3618         * modules/frexpl-ieee: New file.
3619
3620         Tests for module 'frexp-ieee'.
3621         * modules/frexp-ieee-tests: New file.
3622         * tests/test-frexp-ieee.c: New file.
3623
3624         New module 'frexp-ieee'.
3625         * modules/frexp-ieee: New file.
3626
3627         Tests for module 'frexpf-ieee'.
3628         * modules/frexpf-ieee-tests: New file.
3629         * tests/test-frexpf-ieee.c: New file.
3630
3631         New module 'frexpf-ieee'.
3632         * modules/frexpf-ieee: New file.
3633
3634 2012-02-26  Bruno Haible  <bruno@clisp.org>
3635
3636         roundl-ieee tests: More tests.
3637         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3638         (main): Add tests for [MX] shaded specification in POSIX.
3639         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3640         (Depends-on): Add isnanl-nolibm.
3641
3642         round-ieee tests: More tests.
3643         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3644         (main): Add tests for [MX] shaded specification in POSIX.
3645         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3646         (Depends-on): Add isnand-nolibm.
3647
3648         roundf-ieee tests: More tests.
3649         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3650         (main): Add tests for [MX] shaded specification in POSIX.
3651         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3652         (Depends-on): Add isnanf-nolibm.
3653
3654         truncl-ieee tests: More tests.
3655         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3656         (main): Add tests for [MX] shaded specification in POSIX.
3657         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3658         (Depends-on): Add isnanl-nolibm.
3659
3660         trunc-ieee tests: More tests.
3661         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3662         (main): Add tests for [MX] shaded specification in POSIX.
3663         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3664         (Depends-on): Add isnand-nolibm.
3665
3666         truncf-ieee tests: More tests.
3667         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3668         (main): Add tests for [MX] shaded specification in POSIX.
3669         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3670         (Depends-on): Add isnanf-nolibm.
3671
3672         ceill-ieee tests: More tests.
3673         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3674         (main): Add tests for [MX] shaded specification in POSIX.
3675         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3676         (Depends-on): Add isnanl-nolibm.
3677
3678         ceil-ieee tests: More tests.
3679         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3680         (main): Add tests for [MX] shaded specification in POSIX.
3681         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3682         (Depends-on): Add isnand-nolibm.
3683
3684         ceilf-ieee tests: More tests.
3685         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3686         (main): Add tests for [MX] shaded specification in POSIX.
3687         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3688         (Depends-on): Add isnanf-nolibm.
3689
3690         floorl-ieee tests: More tests.
3691         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3692         (main): Add tests for [MX] shaded specification in POSIX.
3693         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3694         (Depends-on): Add isnanl-nolibm.
3695
3696         floor-ieee tests: More tests.
3697         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3698         (main): Add tests for [MX] shaded specification in POSIX.
3699         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3700         (Depends-on): Add isnand-nolibm.
3701
3702         floorf-ieee tests: More tests.
3703         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3704         (main): Add tests for [MX] shaded specification in POSIX.
3705         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3706         (Depends-on): Add isnanf-nolibm.
3707
3708 2012-02-26  Bruno Haible  <bruno@clisp.org>
3709
3710         fpieee: More comments.
3711         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3712
3713 2012-02-25  Bruno Haible  <bruno@clisp.org>
3714
3715         Tests for module 'log10l'.
3716         * modules/log10l-tests: New file.
3717         * tests/test-log10l.c: New file.
3718         * tests/test-math-c++.cc: Check the declaration of log10l.
3719
3720         New module 'log10l'.
3721         * lib/math.in.h (log10l): New declaration.
3722         * lib/log10l.c: New file.
3723         * m4/log10l.m4: New file.
3724         * modules/log10l: New file.
3725         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3727         HAVE_DECL_LOG10L.
3728         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3729         HAVE_DECL_LOG10L.
3730         * doc/posix-functions/log10l.texi: Mention the new module.
3731
3732 2012-02-25  Bruno Haible  <bruno@clisp.org>
3733
3734         fmodl, remainder*: Avoid wrong results due to rounding errors.
3735         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3736         expected bounds.
3737         * lib/remainderf.c (remainderf): Likewise.
3738         * lib/remainder.c (remainder): Likewise.
3739         * lib/remainderl.c (remainderl): Likewise.
3740
3741 2012-02-25  Bruno Haible  <bruno@clisp.org>
3742
3743         Tests for module 'remainderl'.
3744         * modules/remainderl-tests: New file.
3745         * tests/test-remainderl.c: New file.
3746         * tests/test-math-c++.cc: Check the declaration of remainderl.
3747
3748         New module 'remainderl'.
3749         * lib/math.in.h (remainderl): New declaration.
3750         * lib/remainderl.c: New file.
3751         * m4/remainderl.m4: New file.
3752         * modules/remainderl: New file.
3753         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3755         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3756         HAVE_REMAINDERL.
3757         * doc/posix-functions/remainderl.texi: Mention the new module.
3758
3759 2012-02-25  Bruno Haible  <bruno@clisp.org>
3760
3761         Tests for module 'remainderf'.
3762         * modules/remainderf-tests: New file.
3763         * tests/test-remainderf.c: New file.
3764         * tests/test-math-c++.cc: Check the declaration of remainderf.
3765
3766         New module 'remainderf'.
3767         * lib/math.in.h (remainderf): New declaration.
3768         * lib/remainderf.c: New file.
3769         * m4/remainderf.m4: New file.
3770         * modules/remainderf: New file.
3771         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3773         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3774         HAVE_REMAINDERF.
3775         * doc/posix-functions/remainderf.texi: Mention the new module.
3776
3777 2012-02-25  Bruno Haible  <bruno@clisp.org>
3778
3779         remainder: Support for MSVC.
3780         * lib/math.in.h (remainder): New declaration.
3781         * lib/remainder.c: New file.
3782         * m4/remainder.m4: New file.
3783         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3784         (Depends-on): Add math, round, fma.
3785         (configure.ac): Use results of gl_FUNC_REMAINDER.
3786         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3788         HAVE_DECL_REMAINDER.
3789         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3790         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3791         * tests/test-math-c++.cc: Check the declaration of remainder.
3792         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3793         problems are fixed.
3794
3795 2012-02-25  Bruno Haible  <bruno@clisp.org>
3796
3797         Tests for module 'fmodl'.
3798         * modules/fmodl-tests: New file.
3799         * tests/test-fmodl.c: New file.
3800         * tests/test-math-c++.cc: Check the declaration of fmodl.
3801
3802         New module 'fmodl'.
3803         * lib/math.in.h (fmodl): New declaration.
3804         * lib/fmodl.c: New file.
3805         * m4/fmodl.m4: New file.
3806         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3808         REPLACE_FMODL.
3809         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3810         REPLACE_FMODL.
3811         * modules/fmodl: New file.
3812         * doc/posix-functions/fmodl.texi: Mention the new module.
3813
3814 2012-02-25  Bruno Haible  <bruno@clisp.org>
3815
3816         Tests for module 'modfl'.
3817         * modules/modfl-tests: New file.
3818         * tests/test-modfl.c: New file.
3819         * tests/test-math-c++.cc: Check the declaration of modfl.
3820
3821         New module 'modfl'.
3822         * lib/math.in.h (modfl): New declaration.
3823         * lib/modfl.c: New file.
3824         * m4/modfl.m4: New file.
3825         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3827         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3828         * modules/modfl: New file.
3829         * doc/posix-functions/modfl.texi: Mention the new module.
3830
3831 2012-02-25  Bruno Haible  <bruno@clisp.org>
3832
3833         Tests for module 'fabsl'.
3834         * modules/fabsl-tests: New file.
3835         * tests/test-fabsl.c: New file.
3836         * tests/test-math-c++.cc: Check the declaration of fabsl.
3837
3838         New module 'fabsl'.
3839         * lib/math.in.h (fabsl): New declaration.
3840         * lib/fabsl.c: New file.
3841         * m4/fabsl.m4: New file.
3842         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3844         REPLACE_FABSL.
3845         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3846         REPLACE_FABSL.
3847         * modules/fabsl: New file.
3848         * doc/posix-functions/fabsl.texi: Mention the new module.
3849
3850 2012-02-25  Bruno Haible  <bruno@clisp.org>
3851
3852         fabs tests: More tests.
3853         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3854         (zero): New variable.
3855         (main): Add tests for signed zero.
3856         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3857
3858         fabsf tests: More tests.
3859         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3860         (zero): New variable.
3861         (main): Add tests for signed zero.
3862         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3863
3864 2012-02-24  Bruno Haible  <bruno@clisp.org>
3865
3866         atanl: Provide function definition on MSVC.
3867         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3868         function pointer.
3869         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3870
3871 2012-02-24  Bruno Haible  <bruno@clisp.org>
3872
3873         acosl: Provide function definition on MSVC.
3874         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3875         function pointer.
3876         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3877
3878 2012-02-24  Bruno Haible  <bruno@clisp.org>
3879
3880         asinl: Provide function definition on MSVC.
3881         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3882         function pointer.
3883         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3884
3885 2012-02-24  Bruno Haible  <bruno@clisp.org>
3886
3887         tanl: Provide function definition on MSVC.
3888         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3889         function pointer.
3890         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3891
3892 2012-02-24  Bruno Haible  <bruno@clisp.org>
3893
3894         cosl: Provide function definition on MSVC.
3895         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3896         function pointer.
3897         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3898
3899 2012-02-24  Bruno Haible  <bruno@clisp.org>
3900
3901         sinl: Provide function definition on MSVC.
3902         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3903         function pointer.
3904         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3905
3906 2012-02-24  Bruno Haible  <bruno@clisp.org>
3907
3908         logl: Provide function definition on MSVC.
3909         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3910         function pointer.
3911         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3912
3913 2012-02-24  Bruno Haible  <bruno@clisp.org>
3914
3915         expl: Provide function definition on MSVC.
3916         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3917         function pointer.
3918         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3919
3920 2012-02-24  Bruno Haible  <bruno@clisp.org>
3921
3922         sqrtl: Provide function definition on MSVC.
3923         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3924         a function pointer.
3925         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3926
3927 2012-02-24  Bruno Haible  <bruno@clisp.org>
3928
3929         ceill: Provide function definition on MSVC.
3930         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3931         used as a function pointer.
3932         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3933
3934 2012-02-24  Bruno Haible  <bruno@clisp.org>
3935
3936         floorl: Provide function definition on MSVC.
3937         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3938         used as a function pointer.
3939         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3940
3941 2012-02-24  Bruno Haible  <bruno@clisp.org>
3942
3943         ceilf: Provide function definition on MSVC.
3944         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3945         used as a function pointer.
3946         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3947
3948 2012-02-24  Bruno Haible  <bruno@clisp.org>
3949
3950         floorf: Provide function definition on MSVC.
3951         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3952         used as a function pointer.
3953         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3954
3955 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3956
3957         stdnoreturn: new module
3958         This implements a replacement for C11's <stdnoreturn.h>.
3959         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3960         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3961         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3962         * tests/test-stdnoreturn.c: New files.
3963
3964 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3965
3966         regex: fix false multibyte matches in some regular expressions
3967         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3968         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3969         * lib/regex_internal.c (re_string_skip_chars):
3970         Fix miscomputation of remain_len that may cause incomplete
3971         multi-byte character and false match.
3972
3973 2012-02-24  Jim Meyering  <meyering@redhat.com>
3974
3975         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3976         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3977         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3978         Remove now-unnecessary str''cmp obfuscation.
3979         Suggested by Akim Demaille.
3980
3981 2012-02-24  Bruno Haible  <bruno@clisp.org>
3982
3983         streq: Rename macro.
3984         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3985         * NEWS: Mention the change.
3986         * lib/mbrtowc.c (mbrtowc): Update.
3987         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3988         * lib/wcwidth.c (wcwidth): Update.
3989         Suggested by Akim Demaille and Jim Meyering.
3990
3991 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3992
3993         regex: fix typo in definition of MIN
3994         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3995         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3996
3997 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3998             Bruno Haible  <bruno@clisp.org>
3999
4000         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4001         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4002         entries into a stack-allocated buffer directly.
4003         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4004
4005 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4006             Bruno Haible  <bruno@clisp.org>
4007
4008         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4009
4010          - There were several instances of this pattern:
4011
4012              for (;;) {
4013                n = acl (f, GETACLCNT, 0, NULL);
4014                [ allocate an array A of size N ]
4015                if (acl (f, GETACL, n, a) == n)
4016                  break;
4017              }
4018
4019            This loop might never terminate if some other process is constantly
4020            manipulating the file's ACL.  The loop should be rewritten to
4021            terminate.
4022
4023          - The acl (... GETACLNT ...) call is merely an optimization; its value
4024            is merely a hint as to how big to make the array.  A better
4025            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4026            and just guess a reasonably-big size, growing the size and trying
4027            again if it's not large enough.  This guarantees termination, and
4028            saves a system call.
4029
4030         * lib/acl-internal.h: Include <limits.h>.
4031         (MIN, SIZE_MAX): New macros.
4032         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4033         a stack-allocated buffer, and use malloc if it does not fit. Don't
4034         use GETACLCNT.
4035         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4036
4037 2012-02-19  Bruno Haible  <bruno@clisp.org>
4038
4039         acl: Fix endless loop on Solaris with vxfs.
4040         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4041         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4042         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4043         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4044         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4045         Reported by Bill Jones in
4046         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4047
4048 2012-02-19  Bruno Haible  <bruno@clisp.org>
4049
4050         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4051         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4052         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4053         that this function returns 0 in some more cases.
4054
4055 2012-02-19  Bruno Haible  <bruno@clisp.org>
4056
4057         acl: Update doc references.
4058         * doc/acl-resources.txt: Update links to Solaris documentation.
4059
4060 2012-02-19  Bruno Haible  <bruno@clisp.org>
4061
4062         Fix test failure in many locales on Solaris 11.
4063         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4064         'tr' arguments.
4065         * tests/test-pipe-filter-ii1.c (main): Likewise.
4066         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4067         expressions in the C locale.
4068         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4069         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4070
4071 2012-02-19  Bruno Haible  <bruno@clisp.org>
4072
4073         gnulib-tool: Improve usage message.
4074         * gnulib-tool (func_usage): Move doc of --help and --version to the
4075         section "Operation modes".
4076
4077 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4078
4079         README-release: make it easier to execute commands
4080         * top/README-release: break commands out on to separate lines.
4081
4082 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4083
4084         GNUmakefile: simplify detection of unconfigured trees
4085         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4086         whether the tree make is being run from is already configured or
4087         not.  Related simplifications.
4088
4089 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4090
4091         * gnulib-tool (func_usage): Document --help and --version.
4092
4093 2012-02-11  Jim Meyering  <meyering@redhat.com>
4094
4095         bootstrap: don't exit 0 upon gnulib-tool failure
4096         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4097         its exit status, not 0.
4098
4099 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4100
4101         README-release: various improvements
4102         * top/README-release: Give a command to push changes for the
4103         release.  Add "distcheck" to list of other pre-release checks.
4104         Fix instance of "make stable" which should be "make TYPE".
4105
4106 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4107
4108         maint: replace FSF snail-mail addresses with URLs
4109         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4110         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4111         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4112         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4113         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4114         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4115         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4116         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4117         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4118         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4119         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4120         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4121         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4122         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4123         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4124         * lib/glthread/thread.c, lib/glthread/thread.h:
4125         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4126         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4127         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4128         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4129         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4130         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4131         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4132         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4133         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4134         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4135         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4136         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4137         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4138         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4139         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4140         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4141         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4142         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4143         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4144         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4145         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4146         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4147         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4148         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4149         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4150         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4151         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4152         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4153         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4154         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4155         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4156         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4157         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4158         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4159         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4160         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4161         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4162         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4163         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4164         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4165         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4166         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4167         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4168         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4169         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4170         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4171         * tests/test-poll.c, tests/test-quotearg-simple.c:
4172         * tests/test-quotearg.c, tests/test-quotearg.h:
4173         * tests/test-round-ieee.c, tests/test-round1.c:
4174         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4175         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4176         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4177         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4178         * tests/test-strerror.c, tests/test-strerror_r.c:
4179         * tests/test-strsignal.c, tests/test-strverscmp.c:
4180         * tests/test-xmemdup0.c:
4181         Replace FSF snail mail addresses with URLs, as per GNU coding
4182         standards.  See glibc bug
4183         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4184
4185 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4186
4187         README-release: capitalize a word and split a line
4188         * top/README-release: Fix punctuation and spacing.
4189
4190 2012-02-08  Akim Demaille  <demaille@gostai.com>
4191
4192         fatal-signal: use C prototypes (with explicit void).
4193         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4194         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4195
4196 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4197
4198         regex: spelling fix
4199         * lib/regexec.c: spelling fix
4200
4201         regex: rely on stdint.h for SIZE_MAX
4202         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4203
4204 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4205
4206         regex: merge glibc changes
4207
4208         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4209         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4210         (init_word_char): Work even if bitset words are not exactly 32 or
4211         64 bits wide.  Don't assume there are no padding bits.
4212         * lib/regex.c [_LIBC]: Do not include <config.h>.
4213         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4214         and -Wtype-limits.
4215         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4216         needless disagreement with glibc.  All uses changed.  Define it to
4217         1 only if _GNU_SOURCE, to match glibc.
4218         (_REG_RM_NAME): Remove; no longer needed, since the names in
4219         question are now all protected by __USE_GNU.
4220         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4221         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4222         * lib/regex_internal.h (MIN): New macro.
4223
4224         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4225         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4226
4227         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4228         * lib/regex_internal.c (re_string_fetch_byte_case):
4229         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4230         is miscompiled, and it turns out it is because of an incorrect
4231         attribute on re_string_fetch_byte_case.  Unlike
4232         re_string_peek_byte_case, this one is really not pure, it modifies
4233         memory (increments pstr->cur_idx), and with the pure attribute GCC
4234         assumed it doesn't and it cached the presumed value of
4235         regexp->cur_idx in a variable across the
4236          for (;; ++i)
4237            {
4238              if (i >= BRACKET_NAME_BUF_SIZE)
4239                return REG_EBRACK;
4240              if (token->type == OP_OPEN_CHAR_CLASS)
4241                ch = re_string_fetch_byte_case (regexp);
4242              else
4243                ch = re_string_fetch_byte (regexp);
4244              if (re_string_eoi(regexp))
4245                return REG_EBRACK;
4246              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4247                break;
4248              elem->opr.name[i] = ch;
4249            }
4250
4251         2011-11-29 Andreas Schwab <schwab@redhat.com>
4252         * lib/regcomp.c (build_equiv_class):
4253         Fix access after end of search string in regex matcher.
4254
4255         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4256         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4257
4258         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4259         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4260
4261         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4262         * lib/regcomp.c (parse_branch, parse_sub_exp):
4263         More regex memory leak fixes and tests.
4264         (parse_sub_exp, parse_bracket_exp):
4265         Fix memory leak for some invalid regular expressions.
4266
4267         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4268         * lib/regex_internal.c, lib/regexec.c:
4269         Fix unnecessary overallocation due to incomplete character.  When
4270         incomplete characters are found at the end of a string the code
4271         ran amok and allocated lots of memory.  Stricter limits are now in
4272         place.
4273
4274         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4275         * lib/regex.h: Update documentation.
4276
4277         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4278         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4279
4280         2010-05-05 Andreas Schwab <schwab@redhat.com>
4281         * lib/regexec.c (find_collation_sequence_value):
4282         Fix lookup of collation sequence value during regexp matching.
4283
4284         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4285         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4286
4287         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4288         * lib/regex.h: Cleanup namespace.
4289
4290         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4291         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4292
4293         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4294         * lib/regex_internal.h: Prevent some declarations and definitions
4295         to be seen when used in tests.
4296
4297         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4298         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4299         __libc_lock_* macros if not _LIBC.
4300         (struct re_dfa_t): Add lock.
4301
4302 2012-02-07  Eric Blake  <eblake@redhat.com>
4303
4304         maint.mk: also prohibit lower-case @var@
4305         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4306         lower case, like @top_srcdir@.
4307
4308 2012-02-04  Eric Blake  <eblake@redhat.com>
4309
4310         canonicalize: avoid uninitialized memory use
4311         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4312         random '/' left in dest.
4313         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4314
4315 2012-02-04  Bruno Haible  <bruno@clisp.org>
4316
4317         isatty: Fix test failure of ptsname_r on native Windows.
4318         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4319         and don't set errno.
4320         (isatty): Test first whether fd is valid. Set errno when returning 0.
4321
4322 2012-02-04  Bruno Haible  <bruno@clisp.org>
4323
4324         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4325         * tests/test-spawn-pipe-main.c: Include progname.h.
4326         (main): Invoke set_program_name.
4327         * modules/spawn-pipe-tests (Depends-on): Add progname.
4328
4329         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4330         * tests/test-nonblocking-socket-main.c: Include progname.h.
4331         (main): Invoke set_program_name.
4332         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4333
4334         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4335         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4336         (main): Invoke set_program_name.
4337         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4338
4339 2012-02-04  Eric Blake  <eblake@redhat.com>
4340
4341         canonicalize-lgpl: fix // handling
4342         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4343
4344         canonicalize: fix // handling
4345         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4346         /// to //, since only // is special.
4347
4348 2012-02-04  Bruno Haible  <bruno@clisp.org>
4349
4350         ioctl: Fix test failure on native Windows.
4351         * lib/ioctl.c: Include msvc-nothrow.h.
4352         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4353
4354 2012-02-04  Bruno Haible  <bruno@clisp.org>
4355
4356         fsync: Avoid test failure on native Windows.
4357         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4358         read-only.
4359
4360 2012-02-04  Bruno Haible  <bruno@clisp.org>
4361
4362         sys_select: Avoid syntax error on OpenBSD 5.0.
4363         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4364         currently being included, just include the system's <sys/select.h>.
4365
4366 2012-02-04  Bruno Haible  <bruno@clisp.org>
4367
4368         sys_select: Avoid syntax error on OpenBSD 5.0.
4369         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4370         <sys/select.h>, not before.
4371         Reported by Jiri B <jirib@devio.us>.
4372
4373 2012-02-04  Bruno Haible  <bruno@clisp.org>
4374
4375         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4376         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4377         global variables.
4378         * tests/test-get-rusage-data.c (main): Likewise.
4379         Reported by Jim Meyering.
4380
4381 2012-02-04  Bruno Haible  <bruno@clisp.org>
4382
4383         stdioext: Fix last commit.
4384         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4385
4386 2012-02-03  Bruno Haible  <bruno@clisp.org>
4387
4388         stdioext: Add tentative support for Plan9.
4389         * lib/stdio-impl.h: Include <errno.h>.
4390         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4391         * lib/freadable.c (freadable): Likewise.
4392         * lib/fwritable.c (fwritable): Likewise.
4393         * lib/fbufmode.c (fbufmode): Likewise.
4394         * lib/freading.c (freading): Likewise.
4395         * lib/fwriting.c (fwriting): Likewise.
4396         * lib/freadptr.c (freadptr): Likewise.
4397         * lib/freadseek.c (freadptrinc): Likewise.
4398         * lib/freadahead.c (freadahead): Likewise.
4399         * lib/fpurge.c (fpurge): Likewise.
4400         * lib/fseeko.c (rpl_fseeko): Likewise.
4401         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4402         Reported by Jens Staal <staal1978@gmail.com>.
4403
4404 2012-02-02  Jim Meyering  <meyering@redhat.com>
4405
4406         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4407         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4408         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4409         not even to try to add the attribute.  Instead, add a pragma to suppress
4410         the suggestion/warning.
4411
4412 2012-01-31  Karl Berry  <karl@gnu.org>
4413
4414         setstate doc: typo.
4415         * doc/posix-functions/setstate.texi (setstate): { not (.
4416
4417 2012-01-31  Bruno Haible  <bruno@clisp.org>
4418
4419         popen: Make more robust on Windows.
4420         * lib/popen.c: On native Windows, use the _popen based code even if
4421         HAVE_POPEN is set.
4422         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4423         environment variable on native Windows.
4424
4425 2012-01-30  Bruno Haible  <bruno@clisp.org>
4426
4427         pclose: Fix typo.
4428         * lib/stdio.in.h (pclose): Fix typo in warning message.
4429
4430 2012-01-30  Bruno Haible  <bruno@clisp.org>
4431
4432         doc about getlogin_r, setstate.
4433         * doc/posix-functions/getlogin_r.texi: List the incompatible
4434         declaration problem under "not fixed by gnulib".
4435         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4436         problem on Solaris 11 and other platforms.
4437
4438 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4439             Bruno Haible  <bruno@clisp.org>
4440
4441         poll tests: Make test more robust.
4442         * tests/test-poll.c: Include macros.h.
4443         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4444         return value of various I/O operations.
4445         * modules/poll-tests (Files): Add tests/macros.h.
4446
4447 2012-01-30  Bruno Haible  <bruno@clisp.org>
4448
4449         sys_stat: Fix support for mingw64 and MSVC.
4450         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4451         header files already do it.
4452         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4453         stat itself.
4454         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4455
4456 2012-01-30  Bruno Haible  <bruno@clisp.org>
4457
4458         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4460         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4461
4462 2012-01-29  Bruno Haible  <bruno@clisp.org>
4463
4464         quotearg: Fix test failure on MacOS X 10.5.
4465         * tests/test-quotearg-simple.c: Include localcharset.h.
4466         (main): If the locale encoding is not ASCII, bypass the tests of
4467         locale_quoting_style and clocale_quoting_style.
4468         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4469
4470 2012-01-29  Jim Meyering  <meyering@redhat.com>
4471
4472         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4473         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4474         detect uses of canonicalize_file_name.
4475
4476 2012-01-28  Bruno Haible  <bruno@clisp.org>
4477
4478         test-framework-sh: Fix test failure with AIX 7.1 diff.
4479         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4480         in column 1, like 'diff -c' does.
4481         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4482         whether 'diff -u' is used. Instead, test whether the output contains
4483         some '@' character.
4484
4485 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4486
4487         strtoimax: eliminate need for stdint.h, inttypes.h checks
4488         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4489         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4490         the prerequisites for a recently-introduced strtoimax test.
4491         I guess this might cause strtoimax to be replaced when not
4492         strictly necessary on older hosts, but this shouldn't introduce
4493         any bugs and it should make Emacs 'configure' faster on typical
4494         modern hosts.  Problem discovered when importing the latest gnulib
4495         to an Emacs test version.
4496         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4497
4498 2012-01-28  Bruno Haible  <bruno@clisp.org>
4499
4500         sys_time: Override 'struct timeval' on some native Windows platforms.
4501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4502         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4503         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4504         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4505         needs to be overridden.
4506         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4507         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4508         * tests/test-sys_select.c: Check that the tv_sec member has the same
4509         size as a 'time_t'.
4510         * tests/test-sys_time.c: Likewise.
4511         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4512         is set, set also REPLACE_GETTIMEOFDAY.
4513         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4514         convert the resulting 'struct timeval' before returning.
4515         * lib/select.c: Include <sys/time.h>.
4516         (select, timeval): Undefine at the right place.
4517         * modules/select (Depends-on): Add sys_time.
4518         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4519         some Windows platforms.
4520         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4521
4522 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4523
4524         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4525         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4526         an integer.
4527         * lib/fcntl.c (dupfd): Likewise.
4528         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4529
4530 2012-01-28  Bruno Haible  <bruno@clisp.org>
4531
4532         fcntl: Avoid compilation error on native Windows.
4533         * modules/fcntl (Depends-on): Add 'close'.
4534
4535 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4536
4537         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4538         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4539         pointer to an integer.
4540         * lib/poll.c (IsConsoleHandle): Likewise.
4541         * lib/isatty.c (IsConsoleHandle): Likewise.
4542
4543 2012-01-28  Jim Meyering  <meyering@redhat.com>
4544
4545         doc: clarify README-release
4546         * top/README-release: Clarify: you should make a point to have
4547         the latest stable versions of build tools in your PATH, and the
4548         reference to buildreq is solely for its list of tool names, not
4549         for its minimal-functional version numbers.
4550         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4551
4552         maint.mk: use more readable (yet functionally equivalent) quoting
4553         It is common to quote a single quote in a single quoted string like
4554         this:  '...'\''...'.  Unless you know the idiom, that looks like
4555         gibberish, so prefer to double-quote the string when possible.
4556         Then you can use a more readable, lone single quote: "...'..."
4557         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4558         "don't" is more readable than the equivalent 'don'\''t'.
4559         (sc_cast_of_x_alloc_return_value): Likewise.
4560         (sc_cast_of_alloca_return_value): Likewise.
4561         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4562         rather than '\'':'\''.
4563
4564 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         stdalign: relax _Alignof and tighten _Alignas test
4567         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4568         as it was too strict: alignof must divide offsetof, but it need
4569         not equal offsetof.  Inspired by Joseph S. Myers's comment
4570         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4571         Conversely, tighten the _Alignas test a bit, as the resulting
4572         alignment must be exactly 8.
4573
4574 2012-01-27  Bruno Haible  <bruno@clisp.org>
4575
4576         stdalign: Document the last change.
4577         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4578
4579 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4580
4581         stdalign: check that alignof and offsetof are consistent
4582         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4583         Problem reported for gnulib by Richard W.M. Jones in
4584         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4585
4586 2012-01-27  Jim Meyering  <meyering@redhat.com>
4587
4588         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4589         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4590         convert a sequence with gaps to the minimal containing range.
4591         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4592         * tests/test-update-copyright.sh: Test for this.
4593         The FSF confirmed it is ok to do this, assuming there is at
4594         least one significant change per year in the affected range:
4595         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4596
4597 2012-01-26  Bruno Haible  <bruno@clisp.org>
4598
4599         pipe2: refine doc about thread-safety
4600         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4601         multithread-safety problem.
4602         * doc/glibc-functions/accept4.texi: Likewise.
4603
4604 2012-01-26  Bruno Haible  <bruno@clisp.org>
4605
4606         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4607         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4608         In the test program, include <fcntl.h>, for O_RDONLY.
4609
4610 2012-01-26  Eric Blake  <eblake@redhat.com>
4611
4612         pipe2: document lack of thread-safety in replacement
4613         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4614         issue in replacement.
4615         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4616         Based on a report by Eric Wong.
4617
4618 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4619             Bruno Haible  <bruno@clisp.org>
4620
4621         malloca: Avoid warnings on x86_64 mingw64.
4622         * lib/malloca.c: Include <stdint.h>.
4623         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4624         * modules/malloca (Depends-on): Add stdint.
4625         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4626
4627 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4628
4629         obstack: remove __STDC__ conditionals
4630         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4631         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4632         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4633         m4/include_next.m4 as the only gnulib-maintained places that still
4634         refer to __STDC__.
4635
4636 2012-01-24  Bruno Haible  <bruno@clisp.org>
4637
4638         havelib: Modern quoting.
4639         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4640         the recent change to the GNU coding standards.
4641
4642 2012-01-24  Bruno Haible  <bruno@clisp.org>
4643
4644         stdint: Improve support for Android.
4645         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4646         Reported by Simon Josefsson <simon@josefsson.org>.
4647
4648 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4649
4650         doc: omit trailing empty lines from INSTALL etc.
4651         * doc/Makefile (INSTALL): Omit trailing empty lines.
4652         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4653         omit trailing empty lines.  This simplifies the build procedure.
4654
4655 2012-01-23  Jim Meyering  <meyering@redhat.com>
4656
4657         tests: avoid spurious warnings about gl_sockets_startup
4658         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4659         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4660         reporting a "statement with no effect".
4661         * tests/test-accept.c (main): Mark as "(void)".
4662         * tests/test-accept4.c (main): Likewise.
4663         * tests/test-bind.c (main): Likewise.
4664         * tests/test-connect.c (main): Likewise.
4665         * tests/test-getpeername.c (main): Likewise.
4666         * tests/test-getsockname.c (main): Likewise.
4667         * tests/test-getsockopt.c (main): Likewise.
4668         * tests/test-listen.c (main): Likewise.
4669         * tests/test-recv.c (main): Likewise.
4670         * tests/test-recvfrom.c (main): Likewise.
4671         * tests/test-send.c (main): Likewise.
4672         * tests/test-sendto.c (main): Likewise.
4673         * tests/test-setsockopt.c (main): Likewise.
4674         * tests/test-shutdown.c (main): Likewise.
4675
4676 2012-01-21  Bruno Haible  <bruno@clisp.org>
4677
4678         locale-fr.m4: Fix for Android.
4679         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4680         failure of the test program on Bionic libc.
4681
4682 2012-01-21  Jim Meyering  <meyering@redhat.com>
4683
4684         bootstrap: fail when bootstrap_post_import_hook fails
4685         Otherwise, it's far too easy to miss diagnostics emitted
4686         between gnulib-tool's output and that of running configure.
4687         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4688
4689 2012-01-17  Jim Meyering  <meyering@redhat.com>
4690
4691         maint: enable sc_trailing_blank
4692         * build-aux/pmccabe.css: Remove trailing blanks.
4693         * doc/acl-cygwin.txt: Likewise.
4694         * doc/gnu-oids.texi: Likewise
4695         * cfg.mk: Enable sc_trailing_blank.
4696         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4697
4698 2012-01-17  Jim Meyering  <meyering@redhat.com>
4699
4700         maint: enable sc_prohibit_openat_without_use
4701         * cfg.mk: Enable sc_prohibit_openat_without_use.
4702         Exempt lib/selinux-at.c.
4703
4704 2012-01-17  Jim Meyering  <meyering@redhat.com>
4705
4706         maint: enable sc_prohibit_cloexec_without_use
4707         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4708         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4709
4710 2012-01-17  Jim Meyering  <meyering@redhat.com>
4711
4712         maint: enable sc_prohibit_intprops_without_use
4713         * cfg.mk: Enable sc_prohibit_intprops_without_use
4714         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4715
4716 2012-01-17  Jim Meyering  <meyering@redhat.com>
4717
4718         maint: enable sc_prohibit_hash_pjw_without_use
4719         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4720         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4721         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4722         following " (".
4723
4724 2012-01-17  Jim Meyering  <meyering@redhat.com>
4725
4726         maint: enable double-word-prohibiting rule
4727         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4728         Exempt three files.
4729
4730 2012-01-17  Jim Meyering  <meyering@redhat.com>
4731
4732         maint: remove empty lines at EOF, but excluding modules/*
4733         Apply syntax rules at home as well as abroad.  Most changes
4734         were induced by running this:
4735           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4736             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4737             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4738         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4739         Exempt modules/* and two binary files.
4740         Also exempt doc/INSTALL*, per request from Bruno Haible.
4741         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4742         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4743         * doc/Copyright/request-assign.future: Likewise.
4744         * doc/Copyright/request-disclaim.changes: Likewise.
4745         * doc/INSTALL: Likewise.
4746         * doc/INSTALL.ISO: Likewise.
4747         * doc/INSTALL.UTF-8: Likewise.
4748         * doc/acl-cygwin.txt: Likewise.
4749         * doc/acl-resources.txt: Likewise.
4750         * doc/fdl-1.2.texi: Likewise.
4751         * doc/fdl-1.3.texi: Likewise.
4752         * doc/fdl.texi: Likewise.
4753         * lib/argp-pin.c: Likewise.
4754         * lib/round.c: Likewise.
4755         * lib/unicase/u16-totitle.c: Likewise.
4756         * lib/unictype/block_test.c: Likewise.
4757         * lib/uninorm/canonical-decomposition.c: Likewise.
4758         * m4/README: Likewise.
4759         * m4/relocatable-lib.m4: Likewise.
4760         * tests/test-isnand-nolibm.c: Likewise.
4761         * tests/test-isnand.c: Likewise.
4762         * tests/uninorm/NormalizationTest.txt: Likewise.
4763
4764 2012-01-17  Jim Meyering  <meyering@redhat.com>
4765
4766         maint: add framework to run syntax-check rules against gnulib sources
4767         * cfg.mk: New file, to disable all currently-failing tests.
4768         We'll enable them one by one, as they are made to pass.
4769         * Makefile (sc_maint): New rule.
4770
4771 2012-01-21  Bruno Haible  <bruno@clisp.org>
4772
4773         stdint: Add support for Android.
4774         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4775         include the system's <stdint.h>.
4776         Reported by Simon Josefsson <simon@josefsson.org>.
4777
4778 2012-01-19  Jim Meyering  <meyering@redhat.com>
4779
4780         bootstrap: add bootstrap_post_import_hook
4781         Bison does still need something like the gnulib_mk_hook whose
4782         invocation I had to remove along with slurp in commit 767ccd40.
4783         Technically, we could get along without it, but doing so would
4784         have required living with a warning and a mandatory post-bootstrap
4785         automake rerun.
4786         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4787         (bootstrap_post_import_hook): New function.
4788         Invoke it after gnulib-tool --import and before autoreconf.
4789
4790 2012-01-18  Jim Meyering  <meyering@redhat.com>
4791
4792         gitlog-to-changelog: don't use "no_"-prefixed variable name
4793         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4794         to enable both --cluster and --no-cluster.  Change variable name,
4795         s/\$no_cluster/$cluster/, and reverse usage to match.
4796
4797         gitlog-to-changelog: use "||", not "or" in expressions
4798         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4799         expressions.
4800
4801 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4802
4803         gitlog-to-changelog: new option --no-cluster
4804         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4805         clustering of adjacent commit messages.
4806
4807 2012-01-17  Jim Meyering  <meyering@redhat.com>
4808
4809         maint: spell file systems with two words, not one
4810         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4811         two words, not one.
4812
4813 2012-01-16  Jim Meyering  <meyering@redhat.com>
4814
4815         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4816         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4817
4818 2012-01-16  Eric Blake  <eblake@redhat.com>
4819
4820         bootstrap: cater to autoconf 2.59
4821         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4822         is not available.
4823
4824         bootstrap: properly check for libtool
4825         * build-aux/bootstrap (libtoolize): Also run libtool when older
4826         usage is detected.
4827
4828 2012-01-15  Bruno Haible  <bruno@clisp.org>
4829
4830         Improve support for MSVC 9.
4831         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4832         clashes on MSVC.
4833         * lib/fcntl.in.h: Likewise.
4834         * lib/stdlib.in.h: Likewise.
4835         * lib/sys_stat.in.h: Likewise.
4836
4837 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4838
4839         gnupload: we hold the master copy of this script now
4840         For motivation and more information, see:
4841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4842         * build-aux/gnupload: Make it clear in the heading comments that the
4843         master copy of this file is maintained by gnulib.  Since we are at
4844         it, bump its copyright year and ...
4845         ($scriptversion): ... the date in its version.
4846         ($usage): Patches and bug reports should be sent to the gnulib list,
4847         not the automake one.
4848         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4849         anymore.
4850
4851 2012-01-15  Bruno Haible  <bruno@clisp.org>
4852
4853         Fix module 'random'.
4854         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4855         initstate, setstate are declared.
4856
4857 2012-01-14  Bruno Haible  <bruno@clisp.org>
4858
4859         Tests for module 'random'.
4860         * modules/random-tests: New file.
4861         * tests/test-random.c: New file, based on tests/test-random_r.c.
4862
4863         New module 'random'.
4864         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4865         declarations.
4866         * lib/random.c: New file, based on glibc/stdlib/random.c.
4867         * m4/random.m4: New file.
4868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4869         HAVE_RANDOM.
4870         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4871         * modules/random: New file.
4872         * config/srclist.txt: Add an entry for random.c.
4873         * doc/posix-functions/random.texi: Mention the 'random' module.
4874         * doc/posix-functions/initstate.texi: Likewise.
4875         * doc/posix-functions/setstate.texi: Likewise.
4876         * doc/posix-functions/srandom.texi: Likewise.
4877
4878 2012-01-12  Bruno Haible  <bruno@clisp.org>
4879
4880         random_r: Use common idioms.
4881         * lib/random_r.c: Include <stdlib.h> first.
4882
4883         random_r: Override incompatible API on AIX, OSF/1.
4884         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4885         Override the system function if REPLACE_RANDOM_R is 1.
4886         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4887         and OSF/1, set REPLACE_RANDOM_R.
4888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4889         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4890         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4891         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4892         * doc/glibc-functions/random_r.texi: Likewise.
4893         * doc/glibc-functions/setstate_r.texi: Likewise.
4894
4895         random_r: Support for MSVC 9.
4896         * lib/random_r.c: Include stdint.h, not inttypes.h.
4897
4898 2012-01-12  Eric Blake  <eblake@redhat.com>
4899
4900         inet_ntop: guard extra work by IF_LINT
4901         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4902         better code generation when not checking for warnings.
4903         Suggested by Paul Eggert and Jim Meyering.
4904
4905         strptime: fix regression on mingw
4906         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4907         Fix regression.  Reported by Bruno Haible.
4908
4909 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4910             Bruno Haible  <bruno@clisp.org>
4911
4912         copy-file: add error-code-returning variant.
4913         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4914         (qcopy_file_preserving): New declaration.
4915         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4916         copy_file_preserving. Change return type to 'int'. Don't emit an error
4917         message here.
4918         (copy_file_preserving): New function.
4919         * tests/test-copy-file.c: Include <stdlib.h>.
4920         (main): Test qcopy_file_preserving if the environment variable
4921         NO_STDERR_OUTPUT is set.
4922         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4923         with NO_STDERR_OUTPUT
4924         * tests/test-copy-file-2.sh: Likewise.
4925
4926 2012-01-10  Bruno Haible  <bruno@clisp.org>
4927
4928         copy-file: Use 'quote' module consistently.
4929         * lib/copy-file.c (copy_file_preserving): Use quote().
4930
4931         copy-file: Refactor.
4932         * lib/copy-file.c: Include quote.h.
4933         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4934         message here.
4935         * modules/copy-file (Depends-on): Add quote.
4936
4937         acl: Export qcopy_acl.
4938         * lib/acl.h (qcopy_acl): New declaration.
4939         * lib/copy-acl.c (qcopy_acl): Make non-static.
4940
4941         acl: Rename a local variable.
4942         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4943
4944         acl: Align return values of copy_acl and qcopy_acl.
4945         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4946         maybe < -1.
4947
4948 2012-01-11  Eric Blake  <eblake@redhat.com>
4949
4950         strptime: silence gcc warnings
4951         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4952         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4953         Reported by Daniel P. Berrange.
4954
4955         inet_ntop: silence gcc warning
4956         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4957         Reported by Daniel P. Berrange.
4958
4959 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4960
4961         getloadavg test: skip the test on GNU/Linux without /proc mounted
4962         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4963         file.  When /proc is not mounted, it always fails with ENOENT.
4964         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4965         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4966
4967 2012-01-10  Bruno Haible  <bruno@clisp.org>
4968
4969         regex: Avoid link error on MSVC 9.
4970         * modules/regex (Depends-on): Add wctype.
4971
4972 2012-01-10  Bruno Haible  <bruno@clisp.org>
4973
4974         doc: Mention --with-tests option.
4975         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4976         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4977         --with-tests.
4978         Reported by Reuben Thomas.
4979
4980 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4981
4982         users.txt: order package names lexicographically.
4983         * users.txt: Order package names lexicographically.
4984
4985 2012-01-10  Jim Meyering  <meyering@redhat.com>
4986
4987         maint.mk: fix description in comment
4988         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4989
4990         ignore-value: remove deprecated ignore_ptr function
4991         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4992         * NEWS: Note this.
4993
4994 2012-01-09  Jim Meyering  <meyering@redhat.com>
4995
4996         test-init.sh: avoid a subshell
4997         * tests/test-init.sh: Remove protective subshell.
4998         Suggested by Bernhard Voelker.  While a subshell is normally
4999         required to protect against older shells (Solaris, FreeBSD) that
5000         warn about a missing program before performing redirection, the
5001         shell-selection tests performed by init.sh probably exclude any
5002         offending shell.
5003
5004 2012-01-08  Bruno Haible  <bruno@clisp.org>
5005
5006         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5007         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5008         variable.
5009
5010 2012-01-08  Bruno Haible  <bruno@clisp.org>
5011
5012         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5013         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5014         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5015         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5016         macro.
5017         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5018         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5019         * lib/spawn_faction_addopen.c: Add workaround implementation if
5020         HAVE_WORKING_POSIX_SPAWN.
5021         * modules/spawn (Makefile): Substitute
5022         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5023         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5024         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5025         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5026         (Depends-on): Update conditions.
5027         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5028         the Solaris 11 bug.
5029
5030 2012-01-08  Bruno Haible  <bruno@clisp.org>
5031
5032         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5033         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5034         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5035         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5036         macro.
5037         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5038         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5039         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5040         HAVE_WORKING_POSIX_SPAWN.
5041         * modules/spawn (Makefile): Substitute
5042         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5043         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5044         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5045         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5046         (Depends-on): Update conditions.
5047         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5048         the Solaris 11 bug.
5049
5050 2012-01-08  Bruno Haible  <bruno@clisp.org>
5051
5052         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5053         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5054         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5056         HAVE_WORKING_POSIX_SPAWN.
5057         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5058         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5060         * lib/spawn_faction_addclose.c: Add workaround implementation if
5061         HAVE_WORKING_POSIX_SPAWN.
5062         * modules/spawn (Makefile): Substitute
5063         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5064         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5065         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5066         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5067         (Depends-on): Update conditions.
5068         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5069         the Solaris 11 bug.
5070
5071 2012-01-08  Bruno Haible  <bruno@clisp.org>
5072
5073         doc: Update for Solaris 11 2011-11.
5074         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5075         * m4/printf.m4: Update comments.
5076
5077 2012-01-08  Bruno Haible  <bruno@clisp.org>
5078
5079         mktime: Avoid compilation error on Solaris 11.
5080         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5081
5082 2012-01-08  Bruno Haible  <bruno@clisp.org>
5083
5084         doc: Small fix.
5085         * doc/posix-headers/nl_types.texi: Correct platforms list.
5086
5087 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5088
5089         Add lgpl-3.0 module.
5090         * MODULES.html.sh (Support for building documentation): Add
5091         lgpl-3.0.
5092         * modules/lgpl-3.0: New file.
5093
5094 2012-01-08  Jim Meyering  <meyering@redhat.com>
5095
5096         select.c: indent with spaces, not TABs
5097         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5098
5099 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5100
5101         quotearg: do not use grave accent for left quote
5102         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5103         locale_quoting_style.
5104         (quotearg_buffer_restyled): Fix example.
5105         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5106
5107 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5108
5109         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5110         Most programs do not have translation catalogs for English and much
5111         less separate catalogs for British and American English.  Drop the
5112         suggestion to translators about these two, and provide it
5113         automatically for Unicode locales.  Like most programs, even those
5114         using American English, we use single quotation marks.  This conflicts
5115         with the American typographic convention, but works better when you
5116         cite the entire error message within double quotes.  It also tries not
5117         to clash with established practice and with what non-gnulib programs
5118         will usually do.
5119         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5120         using an UTF-8 or GB-18030 locale.  The list of other locales with
5121         quotes was provided by Bruno Haible.
5122         (quotearg_buffer_restyled): Adjust instructions to translators.
5123         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5124         text, since this would be wrong when using Unicode.
5125         * modules/quotearg: Depend on c-strcaseeq.
5126
5127 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5128
5129         quotearg: fix Wikipedia link
5130         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5131
5132 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5133
5134         Fix for mingw with MSVC9.
5135         * m4/ld-version-script.m4: Check that compiler rejects version
5136         scripts with syntax errors.  Reported by Bruno Haible
5137         <bruno@clisp.org>.
5138
5139 2012-01-06  Bruno Haible  <bruno@clisp.org>
5140
5141         Talk about "native Windows API", not "Woe32".
5142         * lib/accept4.c: Update comments to mention native Windows.
5143         * lib/execute.c: Likewise.
5144         * lib/fatal-signal.c: Likewise.
5145         * lib/localcharset.c: Likewise.
5146         * lib/nanosleep.c: Likewise.
5147         * lib/nl_langinfo.c: Likewise.
5148         * lib/pclose.c: Likewise.
5149         * lib/pipe-filter-gi.c: Likewise.
5150         * lib/pipe-filter-ii.c: Likewise.
5151         * lib/pipe.c: Likewise.
5152         * lib/pipe2.c: Likewise.
5153         * lib/popen.c: Likewise.
5154         * lib/progreloc.c: Likewise.
5155         * lib/relocatable.c: Likewise.
5156         * lib/sigaction.c: Likewise.
5157         * lib/sigprocmask.c: Likewise.
5158         * lib/spawn-pipe.h: Likewise.
5159         * lib/spawn-pipe.c: Likewise.
5160         * lib/spawni.c: Likewise.
5161         * lib/stat-time.h: Likewise.
5162         * lib/w32spawn.h: Likewise.
5163         * tests/test-isatty.c: Likewise.
5164         * lib/config.charset: More comments.
5165         * doc/gnulib-intro.texi: Mention native Windows.
5166         * doc/posix-functions/_Exit_C99.texi: Likewise.
5167         * doc/posix-headers/fcntl.texi: Likewise.
5168
5169 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5170
5171         argp: Avoid crash if translator uses % characters in a translation.
5172         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5173         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5174
5175 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5176
5177         doc: C11 and C++11 are now official
5178         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5179         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5180         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5181         * modules/stdalign:
5182         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5183
5184 2012-01-06  Bruno Haible  <bruno@clisp.org>
5185
5186         uc-is-grapheme-break tests: Tweak.
5187         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5188         message.
5189
5190 2012-01-06  Bruno Haible  <bruno@clisp.org>
5191
5192         test-init.sh: correct the test for diff -u
5193         * tests/test-init.sh: Also redirect stdout to /dev/null.
5194
5195 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         Use ', not `, for quoting output.
5198         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5199         (print_changelog_deltas, get_tool_versions, main program):
5200         * build-aux/git-version-gen:
5201         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5202         * build-aux/move-if-change (help):
5203         * build-aux/useless-if-before-free (usage, main program):
5204         * check-module (parse_module_file, usage)
5205         (find_included_lib_files, check_module):
5206         * lib/argmatch.c (main) [TEST]:
5207         * lib/argp-help.c (_help):
5208         * lib/getopt1.c (main) [TEST]:
5209         * lib/git-merge-changelog.c (usage):
5210         * lib/xstrtol-error.c (xstrtol_error):
5211         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5212         * m4/argz.m4 (gl_FUNC_ARGZ):
5213         * m4/bison.m4 (gl_BISON):
5214         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5215         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5216         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5217         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5218         * m4/gc-random.m4 (gl_GC_RANDOM):
5219         * m4/intl.m4 (gt_CHECK_DECL):
5220         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5222         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5224         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5225         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5226         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5227         * tests/test-dirname.c (main):
5228         * tests/test-getpass.c (main):
5229         * tests/test-iconvme.c (main):
5230         * tests/test-parse-datetime.c (LOG):
5231         * tests/test-xstrtoimax.sh:
5232         * tests/test-xstrtol.sh:
5233         * tests/test-xstrtoll.sh:
5234         * tests/test-xstrtoumax.sh:
5235         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5236         * top/GNUmakefile (abort-due-to-no-makefile):
5237         Quote 'like this', not `like this', as per the recent change to
5238         the GNU coding standards.
5239
5240 2012-01-05  Bruno Haible  <bruno@clisp.org>
5241
5242         strtoimax: Don't force a replacement on systems where intmax_t is int.
5243         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5244         'intmax_t' is not larger than 'int'.
5245         Reported by Pádraig Brady <P@draigBrady.com>.
5246
5247 2012-01-05  Bruno Haible  <bruno@clisp.org>
5248
5249         doc: Mention NetBSD bugs.
5250         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5251         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5252
5253 2012-01-05  Bruno Haible  <bruno@clisp.org>
5254
5255         strtoumax tests: Enhance tests.
5256         * tests/test-strtoumax.c (main): Add tests for large values.
5257
5258 2012-01-05  Bruno Haible  <bruno@clisp.org>
5259
5260         strtoimax: Work around AIX 5.1 bug.
5261         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5262         definition.
5263         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5264         Set HAVE_STRTOIMAX.
5265         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5266         REPLACE_STRTOIMAX.
5267         * modules/inttypes-incomplete (Makefile.am): Substitute
5268         REPLACE_STRTOIMAX.
5269         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5270         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5271         (Depends-on): Update conditions.
5272         * tests/test-strtoimax.c (main): Add tests for large values.
5273         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5274
5275 2012-01-05  Bruno Haible  <bruno@clisp.org>
5276
5277         inttypes: Modernize.
5278         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5279         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5280         (Makefile.am): Update inttypes.h rule.
5281
5282 2012-01-05  Jim Meyering  <meyering@redhat.com>
5283
5284         init.sh: don't waste a subshell just to redirect stderr
5285         * tests/init.sh: In testing for diff -u and diff -c, use a
5286         stderr-redirecting exec inside `...` rather than a subshell.
5287
5288         test-init.sh: avoid failure on HP-UX 11.00
5289         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5290         resolves to diff -c or cmp.  Reported by Bruno Haible.
5291
5292 2012-01-05  Bruno Haible  <bruno@clisp.org>
5293
5294         Tests for module 'strtoull'.
5295         * modules/strtoull-tests: New file.
5296         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5297
5298 2012-01-05  Bruno Haible  <bruno@clisp.org>
5299
5300         Tests for module 'strtoll'.
5301         * modules/strtoll-tests: New file.
5302         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5303
5304 2012-01-05  Bruno Haible  <bruno@clisp.org>
5305
5306         Tests for module 'strtoul'.
5307         * modules/strtoul-tests: New file.
5308         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5309
5310 2012-01-05  Bruno Haible  <bruno@clisp.org>
5311
5312         Tests for module 'strtol'.
5313         * modules/strtol-tests: New file.
5314         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5315
5316 2012-01-04  Jim Meyering  <meyering@redhat.com>
5317
5318         test-init.sh: accommodate Solaris 5.10's different diff -u output
5319         * tests/test-init.sh: Also exempt @@ lines from the comparison
5320         of diff output, since Solaris 5.10 and GNU diff formats differ.
5321         Reported by Stefano Lattarini.
5322
5323 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         test-posixtm: don't assume signed integer wraparound
5326         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5327         after signed integer overflow.  Inspired by (though it may not
5328         fix) Bruno Haible's bug report in
5329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5330
5331         Spell out "Windows 9x" and "Windows XP".
5332         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5333         "Windows 9x" and "WinXP" with "Windows XP".
5334
5335 2012-01-04  Jim Meyering  <meyering@redhat.com>
5336
5337         test-vc-list-files-cvs.sh: remove obsolete comment
5338         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5339         double exit.  Now that's all encapsulated via skip_ and Exit.
5340
5341 2012-01-04  Bruno Haible  <bruno@clisp.org>
5342
5343         Talk about "native Windows API", not "Win32".
5344         * lib/classpath.c: Update comments to mention native Windows.
5345         * lib/csharpexec.c: Likewise.
5346         * lib/dup2.c: Likewise.
5347         * lib/error.c: Likewise.
5348         * lib/fcntl.c: Likewise.
5349         * lib/filename.h: Likewise.
5350         * lib/findprog.c: Likewise.
5351         * lib/get-rusage-as.c: Likewise.
5352         * lib/get-rusage-data.c: Likewise.
5353         * lib/getpagesize.c: Likewise.
5354         * lib/javaexec.c: Likewise.
5355         * lib/msvc-inval.c: Likewise.
5356         * lib/msvc-nothrow.c: Likewise.
5357         * lib/nanosleep.c: Likewise.
5358         * lib/nonblocking.c: Likewise.
5359         * lib/printf-parse.c: Likewise.
5360         * lib/setlocale.c: Likewise.
5361         * lib/sigaction.c: Likewise.
5362         * lib/strerror_r.c: Likewise.
5363         * lib/tmpdir.c: Likewise.
5364         * lib/vasnprintf.c: Likewise.
5365         * lib/w32spawn.h: Likewise.
5366         * lib/waitpid.c: Likewise.
5367         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5368         * m4/locale-ar.m4: Likewise.
5369         * m4/locale-fr.m4: Likewise.
5370         * m4/locale-ja.m4: Likewise.
5371         * m4/locale-tr.m4: Likewise.
5372         * m4/locale-zh.m4: Likewise.
5373         * m4/printf.m4: Likewise.
5374         * tests/test-cloexec.c: Likewise.
5375         * tests/test-copy-acl.sh: Likewise.
5376         * tests/test-copy-file.sh: Likewise.
5377         * tests/test-file-has-acl.sh: Likewise.
5378         * tests/test-set-mode-acl.sh: Likewise.
5379         * tests/test-dup-safer.c: Likewise.
5380         * tests/test-dup2.c: Likewise.
5381         * tests/test-dup3.c: Likewise.
5382         * tests/test-fcntl.c: Likewise.
5383         * tests/test-nonblocking-pipe.h: Likewise.
5384         * tests/test-nonblocking-socket.h: Likewise.
5385         * tests/test-pipe.c: Likewise.
5386         * tests/test-pipe2.c: Likewise.
5387         * tests/test-spawn-pipe-child.c: Likewise.
5388         * doc/acl-resources.txt: Likewise.
5389         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5390         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5391         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5392         * lib/localcharset.c: Update comments to mention native Windows.
5393         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5394         * lib/localename.c: Likewise.
5395         * lib/progreloc.c: Likewise.
5396         * lib/relocatable.c: Likewise.
5397         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5398         (windows_compute_revents): Renamed from win32_compute_revents.
5399         (windows_compute_revents_socket): Renamed from
5400         win32_compute_revents_socket.
5401         * lib/select.c: Update comments to mention native Windows.
5402         (windows_poll_handle): Renamed from win32_poll_handle.
5403         * m4/threadlib.m4: Update comments to mention native Windows.
5404         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5405         --enable-threads=windows instead of --enable-threads=win32. Set
5406         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5407         * lib/glthread/lock.h: Update comments to mention native Windows.
5408         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5409         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5410         USE_WIN32_THREADS.
5411         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5412         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5413         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5414         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5415         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5416         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5417         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5418         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5419         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5420         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5421         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5422         * tests/test-tls.c: Likewise.
5423         Rationale:
5424         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5425         on both 32-bit and 64-bit Windows systems.
5426         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5427         line of distinction is between "native Windows" on one side and Unix/
5428         POSIX systems on the other side. More details in
5429         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5430         Suggested by Paul Eggert.
5431
5432 2012-01-03  Bruno Haible  <bruno@clisp.org>
5433
5434         isatty: Support for MSVC 9.
5435         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5436         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5437         (_isatty_nothrow): New function.
5438         (isatty): Use it instead of _isatty.
5439         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5440         * lib/poll.c (IsConsoleHandle): Likewise.
5441         * lib/select.c (IsConsoleHandle): Likewise.
5442         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5443         (gl_PREREQ_ISATTY): New macro.
5444         * modules/isatty (Depends-on): Add msvc-inval.
5445         (configure.ac): Invoke gl_PREREQ_ISATTY.
5446
5447 2012-01-03  Jim Meyering  <meyering@redhat.com>
5448
5449         maint.mk: remove temporary transition aid from over 1.5 years ago
5450         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5451         purpose was to aid in the transition (avoiding silent malfunction)
5452         from that old name to the new _sc_search_regexp.  This shim was
5453         added by commit 219c504b.
5454
5455         init.sh: do not try to accommodate compare arguments starting with "-"
5456         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5457         compare arguments that start with "-".  Besides, we do not worry
5458         about this when invoking diff or cmp; why start now with sed?
5459         Using "--" to separate options from argument would trigger sed
5460         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5461         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5462
5463 2012-01-02  Bruno Haible  <bruno@clisp.org>
5464
5465         Enhance tests for module 'isatty'.
5466         * modules/isatty-tests (Depends-on): Add pipe-posix.
5467         * tests/test-isatty.c: Include <fcntl.h>.
5468         (DEV_NULL): New macro.
5469         (main): Test the resut of isatty() also on regular files, pipes, and
5470         /dev/null.
5471
5472         New module 'isatty'.
5473         * lib/unistd.in.h (isatty): New declaration.
5474         * lib/isatty.c: New file, based on an idea of
5475         Bastien Roucariès <roucaries.bastien@gmail.com>.
5476         * m4/isatty.m4: New file.
5477         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5478         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5479         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5480         REPLACE_ISATTY.
5481         * modules/isatty: New file.
5482         * doc/posix-functions/isatty.texi: Mention the new module.
5483         Suggested by Paolo Bonzini.
5484
5485 2012-01-02  Bruno Haible  <bruno@clisp.org>
5486
5487         canonicalize: Tweak 2011-12-29 commit.
5488         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5489         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5490
5491 2012-01-02  Jim Meyering  <meyering@redhat.com>
5492
5493         gitlog-to-changelog: describe input syntax in --help output
5494         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5495
5496         gitlog-to-changelog: fix typo in --help: show backslash before email @
5497         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5498         in sources, but not in actual output.
5499
5500 2011-12-30  Jim Meyering  <meyering@redhat.com>
5501
5502         gitlog-to-changelog: don't malfunction when name contains %-directive
5503         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5504         in a name string cause trouble.  E.g., with a user name of "%s",
5505         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5506
5507 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5508
5509         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5510         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5511         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5512         the "  (tiny change)" notation that is appended to the standard
5513         ChangeLog "date  name  email" header line.
5514
5515 2012-01-01  Jim Meyering  <meyering@redhat.com>
5516
5517         test-framework-sh: init.sh: fix "make dist" failure
5518         When using gnulib-tool's --with-tests option and any module that
5519         depends on test-framework-sh, "make dist" would fail due to the
5520         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5521         in the gltests directory, and not in the gllib/ directory.
5522         One way to work around that is to move the EXTRA_DIST += init.sh
5523         from the primary module to the -tests one:
5524         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5525         * modules/test-framework-sh (Makefile.am): ...not here.
5526         Reported by Tom G. Christensen in
5527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5528
5529         version-etc: update copyright year reported by --version
5530         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5531
5532 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5533
5534         canonicalize: only stat() if required
5535         * lib/canonicalize.c (canonicalize_filename_mode):
5536         Avoid calling l?stat() when both CAN_MISSING,
5537         and CAN_NOLINKS are set, as we neither need
5538         to resolve symlinks or test component existence.
5539
5540 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5541
5542         doc: cover st_ino issues once; add OpenVMS etc.
5543         * doc/posix-functions/stat.texi (stat):
5544         * doc/posix-functions/lstat.texi (lstat):
5545         * doc/posix-functions/fstatat.texi (fstatat):
5546         * doc/posix-functions/fstat.texi (fstat):
5547         Move general 'struct stat' stuff to sys_stat.texi,
5548         leaving behind a pointer.
5549         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5550         Merge duplicate info about 'struct stat' problems into here.
5551         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5552         and suggest partial workarounds.
5553
5554         same-inode: port to OpenVMS
5555         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5556         three st_ino values.
5557
5558 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5559
5560         canonicalize: fix references to stat() and lstat()
5561         * lib/canonicalize.c (canonicalize_filename_mode):
5562         Ensure references always resolve to a replacement
5563         function if required (even via a macro).
5564
5565 2011-12-30  Jim Meyering  <meyering@redhat.com>
5566
5567         gitlog-to-changelog: remove a little duplication
5568         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5569         rather than twice.
5570
5571 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5572
5573         canonicalize: add support for not resolving symlinks
5574         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5575         indicate we don't want to follow symlinks.  Also
5576         provide CAN_MODE_MASK to aid setting these existing
5577         mutually exclusive values.
5578         * lib/canonicalize.c (canonicalize_filename_mode):
5579         Extract the flags from can_mode parameter, which
5580         are currently just used to select between stat()
5581         and lstat().  Also ensure that mutually exclusive
5582         values are flagged immediately as invalid.
5583         * tests/test-canonicalize.c: Verify symlinks are
5584         not followed, and that invalid flag combinations
5585         are diagnosed.
5586
5587 2011-12-25  Jim Meyering  <meyering@redhat.com>
5588
5589         gitlog-to-changelog: do not clump multi-paragraph entries
5590         Identical header lines (date,name,email+coauthors) are suppressed,
5591         thus putting all entries with those same characteristics under
5592         a single header.  However, when a log entry consists of two or
5593         more paragraphs, it may not be clear where it starts and ends.
5594         This change makes it so that such an entry is always separated
5595         from others by a header line, even when that header would
5596         otherwise be suppressed.
5597         * build-aux/gitlog-to-changelog: Implement the above.
5598         Inspired by a related request from Stefano Lattarini in
5599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5600
5601 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         announce-gen: fix `cmd' typo in diagnostic
5604         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5605         diagnostic: a missing '$' meant that the command was not output.
5606
5607 2011-12-23  Jim Meyering  <meyering@redhat.com>
5608
5609         test-framework-sh: distribute init.sh
5610         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5611         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5612         fail due to the lack of init.sh.
5613
5614         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5615         * modules/atexit-tests: Rather than listing tests/init.sh,
5616         now that there's a module for it, simply depend on that new module.
5617         * modules/closein-tests: Likewise.
5618         * modules/exclude-tests: Likewise.
5619         * modules/getcwd-tests: Likewise.
5620         * modules/perror-tests: Likewise.
5621         * modules/pread-tests: Likewise.
5622         * modules/pwrite-tests: Likewise.
5623         * modules/vc-list-files-tests: Likewise.
5624         * modules/verify-tests: Likewise.
5625         * modules/xalloc-die-tests: Likewise.
5626         * modules/xstrtoimax-tests: Likewise.
5627         * modules/xstrtol-tests: Likewise.
5628         * modules/xstrtoll-tests: Likewise.
5629         * modules/xstrtoumax-tests: Likewise.
5630         * modules/yesno-tests: Likewise.
5631
5632 2011-12-22  Jim Meyering  <meyering@redhat.com>
5633
5634         test-framework-sh: add minimal tests of init.sh's compare function
5635         * modules/test-framework-sh-tests: New file.
5636         * tests/test-init.sh: New file.
5637
5638         test-framework-sh: new module
5639         * modules/test-framework-sh: New file.
5640         * MODULES.html.sh (Support for maintaining and releasing projects):
5641         List it.
5642
5643         init.sh: do not emit simulated diff output to stderr
5644         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5645
5646 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5647
5648         .gitignore: ignore gnulib.dvi and regex.info
5649         * doc/.gitignore:add gnulib.dvi and regex.info
5650
5651 2011-12-22  Jim Meyering  <meyering@redhat.com>
5652
5653         init.sh: correct previous change
5654         * tests/init.sh (compare): My previous change was wrong.
5655         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5656
5657         init.sh: avoid unwarranted test failure when using "set -e"
5658         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5659         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5660         a use like "compare exp out" would get evoke an unconditional failure.
5661
5662 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5663
5664         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5665         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5666         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5667         autoreconf that did not.
5668         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5669         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5670
5671 2011-12-17  Jim Meyering  <meyering@redhat.com>
5672
5673         bootstrap: remove some now-unneeded code
5674         This script arose back when gnulib-tool was young.
5675         Since then, it has seen improvements that render much of this
5676         script unnecessary.  In particular, it can now make symlinks
5677         to the files it uses.  Also, I no longer see as much value in
5678         marking files as read-only via comments.
5679         If you relied on the symlink-creation feature of the preceding
5680         version of this script, you can get most of that functionality
5681         by adding the --symlink option to the definition of
5682         gnulib_tool_option_extras in your bootstrap.conf file.
5683         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5684         Run autopoint and libtoolize *before* gnulib-tool.
5685         After it, run an abbreviated autoreconf, rather than a loop around
5686         all tools.
5687         (slirp, bt_mark_as_generated): Remove functions.
5688
5689 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         ftoastr: fix typo
5692         * lib/ftoastr.h: Fix misspelling in comment.
5693
5694 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5695
5696         * top/README-release: fix punctuation.
5697
5698 2011-12-17  Jim Meyering  <meyering@redhat.com>
5699
5700         bootstrap: correct the recent buildreq change
5701         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5702         had no effect.
5703         * build-aux/bootstrap (buildreq): Bracket each search term with
5704         "*...*", so that the shell "case" statement works as intended.
5705         Add comments.
5706
5707 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5708
5709         build: let bootstrap resort to wget when downloading .po files
5710         * build-aux/bootstrap (download_po_files): Fallback to wget when
5711         downloading the .po files via rsync fails.  This is necessary to
5712         bootstrap from behind a strict firewall.
5713
5714 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5715
5716         stdint: don't assume C++11 when compiling with g++
5717         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5719         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5720         work also in C++ before C++11, as that improperly inhibits
5721         generating a substitute stdint.h for that case.
5722
5723 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5724
5725         alloca: protect comment from gnulib-tool
5726         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5727         that gnulib-tool doesn't think it's a license, and munge it to
5728         say "GCC version 3".
5729
5730 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5731
5732         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5733         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5734         $(abs_top_builddir) instead of $(top_builddir).
5735
5736 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5737
5738         strftime-tests: also test nanoseconds
5739         * tests/test-strftime.c (T): Add a test of %N.
5740
5741 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5742
5743         inttypes, stdint: add C++11 support
5744         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5745         when including inttypes.h and stdint.h.  Support this change to
5746         the standard.
5747         * doc/posix-headers/inttypes.texi (inttypes.h):
5748         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5749         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5750         Define if not defined already, for the benefit of pre-C++11 hosts.
5751         Define the standard format macros (e.g., PRId8) always.
5752         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5753         Likewise, if __cpluspus.  Define the standard constant and limit
5754         macros (e.g., INT8_C, INT8_MAX) always.
5755         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5756         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5757         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5758         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5759         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5760         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5761         Likewise.
5762
5763 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5764
5765         nonblocking tests: Fix test failure on Linux/PPC.
5766         Suggested by Prerna Saxena in
5767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5768         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5769         Set to 1100000.
5770
5771 2011-12-12  Jim Meyering  <meyering@redhat.com>
5772
5773         argmatch: don't hard-code `' when listing valid option arguments
5774         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5775         use the quote function to add quotes.  Use fputs rather than
5776         fprintf for the format string with no format directive.
5777
5778 2011-12-07  Eric Blake  <eblake@redhat.com>
5779
5780         bootstrap: detect tools required by gnulib-tool
5781         * build-aux/bootstrap (buildreq): Provide minimum implicit
5782         dependencies.
5783         * DEPENDENCIES: Mention patch as a prereq.
5784
5785 2011-12-04  Bruno Haible  <bruno@clisp.org>
5786
5787         sethostname: Port to Windows platforms.
5788         * lib/sethostname.c: Provide an alternate implementation for Windows
5789         platforms.
5790         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5791         (main): Skip the test if sethostname() fails with EPERM. On Windows
5792         platforms, don't check the result of gethostname().
5793
5794 2011-12-04  Bruno Haible  <bruno@clisp.org>
5795             Jim Meyering  <meyering@redhat.com>
5796
5797         tests: Avoid spurious error message on platforms without mktemp program.
5798         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5799
5800 2011-12-04  Bruno Haible  <bruno@clisp.org>
5801
5802         sethostname: Fix documentation.
5803         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5804         "not fixed" section.
5805
5806 2011-12-03  Bruno Haible  <bruno@clisp.org>
5807
5808         gnulib-tool: Verify that the License field is present and non-empty.
5809         * gnulib-tool (func_get_license_raw): New function, extracted from
5810         func_get_license.
5811         (func_get_license): Use it. Warn if the module is not a test module and
5812         has no license.
5813         Suggested by Jim Meyering.
5814
5815 2011-12-03  Bruno Haible  <bruno@clisp.org>
5816
5817         sethostname tests: Fix link error on mingw.
5818         * tests/test-sethostname1.c: New file, extracted from
5819         tests/test-sethostname.c.
5820         * tests/test-sethostname2.c: New file, extracted from
5821         tests/test-sethostname.c.
5822         * tests/test-sethostname.c: Remove file.
5823         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5824         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5825         (Depends-on): Add gethostname.
5826         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5827         Link the latter with $(GETHOSTNAME_LIB).
5828
5829         sethostname tests: Fix compilation error on mingw.
5830         * tests/test-sethostname.c: Don't include <sys/types.h>.
5831         (geteuid): Use a dummy value without uid_t.
5832         * modules/sethostname-tests (Depends-on): Remove sys_types.
5833
5834         sethostname tests: Avoid a gcc warning.
5835         * tests/test-sethostname.c (main): Remove an unused variable.
5836
5837         Tweak last commit.
5838         * modules/sethostname-tests (Files): Sort by decreasing importance.
5839         (configure.ac): Check for geteuid.
5840         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5841         the test when there's nothing to test. Drop an unnecessary cast.
5842         Improve an error message. Verify that the final sethostname() call
5843         succeeds.
5844
5845 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5846
5847         Add a test suite for the sethostname module.
5848         * modules/sethostname-tests: New file.  A test program
5849         for the sethostname module.
5850         * tests/test-sethostname.c: Likewise.
5851
5852 2011-12-03  Bruno Haible  <bruno@clisp.org>
5853
5854         Tweak last commit.
5855         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5856         Fix preprocessor directives indentation. Fix typos.
5857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5858         * modules/unistd (Makefile): Likewise.
5859
5860 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5861
5862         Integrate the sethostname module into unistd.
5863         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5864         into the unistd.h header.
5865         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5866         preprocessor directives.
5867         * modules/unistd: Setup the Makefile substitutions of the
5868         SETHOSTNAME preprocessor directives.
5869
5870 2011-12-03  Bruno Haible  <bruno@clisp.org>
5871
5872         Tweak last commit.
5873         * lib/sethostname.c: Don't include <string.h>.
5874         (sethostname): No need to copy the argument string to the stack. Don't
5875         call clearerr. Preserve errno when fprintf failed.
5876         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5877         Don't invoke AC_REPLACE_FUNCS.
5878         * modules/sethostname (Link): Remove empty section.
5879         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5880         failure problem.
5881
5882 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5883
5884         New module 'sethostname'.
5885         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5886         for systems that lack it.
5887         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5888         sethostname declaration and function.
5889         * modules/sethostname: New file.  Define the sethostname module.
5890
5891 2011-12-03  Bruno Haible  <bruno@clisp.org>
5892
5893         Tweak last commit.
5894         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5895
5896 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5897
5898         Split the HOST_NAME_MAX detection into a separate m4 macro.
5899         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5900         macro so it can be used by the pending sethostname module.
5901
5902 2011-12-03  Bruno Haible  <bruno@clisp.org>
5903
5904         Fix module descriptions syntax.
5905         * modules/argv-iter (License): Fix syntax.
5906         * modules/di-set (License): Likewise.
5907         * modules/ino-map (License): Likewise.
5908         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5909
5910 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5911
5912         stdalign: port to Clang 3.0
5913         Problem reported by Simon Josefsson in
5914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5915         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5916         which has <stdalign.h> but which does not define alignof.
5917         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5918
5919 2011-12-01  Eric Blake  <eblake@redhat.com>
5920
5921         mktempd: silence dd usage
5922         * build-aux/mktempd (rand_bytes): Silence dd.
5923
5924 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5925
5926         manywarnings: Don't mention gcc version in docstring.
5927         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5928         Jim Meyering <meyering@redhat.com>.
5929
5930 2011-11-30  Jim Meyering  <meyering@redhat.com>
5931
5932         hash: mark a few floating point constants with "f" suffix
5933         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5934         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5935         floating point constants with "f", since they're destined to be
5936         saved/used as "float"s.
5937
5938 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5939
5940         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5941         * tests/test-float.c (test_long_double): Correct and re-enable the
5942         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5943
5944 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5945
5946         Avoid subtracting two pointers that don't point into the same block.
5947         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5948         only pointers into the same memory block are subtracted. We cannot
5949         assume that sizeof (ptrdiff_t) == sizeof (void *).
5950
5951 2011-11-29  Eric Blake  <eblake@redhat.com>
5952
5953         maint.mk: add syntax check for use of compare from init.sh
5954         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5955         moved here from coreutils.
5956
5957         manywarnings: drop -Wunsuffixed-float-constants
5958         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5959         '1.0D', which is the only way to silence this warning for 'double'.
5960
5961 2011-11-29  Jim Meyering  <meyering@redhat.com>
5962
5963         hash: mark compute_bucket_size with the pure attribute
5964         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5965
5966         quotearg, propername: correct pragma guard expression
5967         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5968         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5969
5970 2011-11-28  Jim Meyering  <meyering@redhat.com>
5971
5972         propername: do not mark proper_name with the const attribute
5973         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5974         since it examines data pointed to by its parameter.
5975         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5976         the suggestion from -Wsuggest-attribute=const.
5977
5978         propername: mark one more function as const
5979         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5980
5981 2011-11-27  Jim Meyering  <meyering@redhat.com>
5982
5983         mark functions with const and pure attributes
5984
5985         Mark functions per suggestions from gcc-4.6 when using these options:
5986         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5987         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5988         Follow these guidelines: when possible, apply the attribute to
5989         an extern declaration, not to its definition.  Apply it to the
5990         definition only when the definition is static.
5991         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5992         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5993         * lib/base64.h (isbase64): Likewise.
5994         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5995         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5996         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5997         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5998         (c_tolower, c_toupper): Likewise.
5999         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6000         * lib/chdir-long.c (find_non_slash): Likewise.
6001         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6002         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6003         * lib/file-type.h (file_type): Likewise.
6004         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6005         * lib/filevercmp.c (verrevcmp): Likewise.
6006         * lib/freadahead.h (freadahead): Likewise.
6007         * lib/fts.c (fts_maxarglen): Likewise.
6008         * lib/hash-pjw.h (hash_pjw): Likewise.
6009         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6010         * lib/hash.c (is_prime, next_prime): Likewise.
6011         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6012         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6013         (hash_table_ok, hash_get_first, hash_string): Likewise.
6014         (compute_bucket_size): Likewise.
6015         * lib/i-ring.h (i_ring_empty): Likewise.
6016         * lib/isnan.c (isnanl): Likewise.
6017         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6018         * lib/memcasecmp.h (memcasecmp): Likewise.
6019         * lib/memchr2.h (memchr2): Likewise.
6020         * lib/memcmp2.h (memcmp2): Likewise.
6021         * lib/parse-datetime.y (lookup_zone): Likewise.
6022         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6023         [!WINDOWS_SOCKETS]: Likewise.
6024         * lib/strnlen1.h (strnlen1): Likewise.
6025         * lib/uniwidth.in.h (uc_width): Likewise.
6026         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6027         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6028         (quoting_options_from_style): Add a comment.
6029         * lib/propername.h (proper_name): Add a comment.
6030
6031 2011-11-27  Bruno Haible  <bruno@clisp.org>
6032
6033         Remove unused macros from !_LIBC code in glibc-borrowed files.
6034         * lib/fnmatch.c (STRCOLL): Remove macro.
6035         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6036         * lib/glob.c (__stat, __readdir64): Remove macros.
6037         * lib/tempname.c (__open64, __xstat64): Remove macros.
6038         Suggested by Paul Eggert.
6039
6040 2011-11-27  Bruno Haible  <bruno@clisp.org>
6041
6042         getcwd: Fix link error on MSVC 9.
6043         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6044
6045 2011-11-27  Bruno Haible  <bruno@clisp.org>
6046
6047         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6048         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6049         HAVE_OPENDIR is 0.
6050         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6051         HAVE_CLOSEDIR is 0.
6052         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6053         is 0.
6054         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6055
6056 2011-11-27  Bruno Haible  <bruno@clisp.org>
6057
6058         getcwd: Fix bug from 2011-08-17.
6059         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6060         platforms that need it.
6061         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6062         code of 4 to be a failure, not a success. This ensures that
6063         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6064
6065 2011-11-27  Bruno Haible  <bruno@clisp.org>
6066
6067         binary-io tests: Avoid test failure on mingw when libtool is used.
6068         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6069         Don't verify the size of t-bin-out1.tmp here.
6070         * tests/test-binary-io.sh: Verify it here.
6071         Reported by Simon Josefsson.
6072
6073 2011-11-26  Bruno Haible  <bruno@clisp.org>
6074
6075         Fix conflict between two instantiations of module 'unistd'.
6076         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6077         ${include_guard_prefix} also in the autoconf snippet.
6078         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6080         GNULIB_UNISTD_H_GETOPT.
6081         * modules/getopt-posix (configure.ac): Set the
6082         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6083         * modules/getopt-gnu (configure.ac): Likewise.
6084         * modules/unistd (Makefile.am): Change the substitution value of
6085         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6086         Reported by Simon Josefsson.
6087
6088 2011-11-25  Bruno Haible  <bruno@clisp.org>
6089
6090         pagealign_alloc: Doc and comments.
6091         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6092         module.
6093         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6094
6095 2011-11-25  Jim Meyering  <meyering@redhat.com>
6096
6097         test-update-copyright.sh: avoid false-positive failure
6098         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6099         around false positive failure on Cygwin/Windows.  The latter was
6100         matching erroneously-created files with names like
6101         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6102
6103 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6104
6105         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6106         * m4/valgrind-tests.m4: Check that the parameters that will be
6107         used works, not just a subset of them.  Reported by Bruno Haible
6108         <bruno@clisp.org>.
6109
6110 2011-11-24  Jim Meyering  <meyering@redhat.com>
6111
6112         test-stdalign.c: comment out long double tests
6113         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6114         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6115         error: '_Alignas' specifiers cannot reduce alignment of \
6116         'static_longdouble_alignas'.
6117
6118 2011-11-22  Jim Meyering  <meyering@redhat.com>
6119
6120         init.sh: make "compare /dev/null FILE" output more readable
6121         * tests/init.sh (compare_): Document the preferred order of arguments.
6122         (emit_diff_u_header_): New function.
6123         (compare_dev_null_): Emit a simulated diff, rather than just the
6124         contents of the unexpected file.  Suggestion from Bruno Haible.
6125
6126 2011-11-21  Jim Meyering  <meyering@redhat.com>
6127             Eric Blake  <eblake@redhat.com>
6128
6129         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6130         * tests/init.sh: Make our compare function slightly more portable.
6131         Reported by Bruno Haible in
6132         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6133
6134 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6135
6136         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6137         before using it, in code that ends up in config.h.
6138
6139 2011-11-20  Bruno Haible  <bruno@clisp.org>
6140
6141         getcwd: Work around getcwd bug on AIX 5..7.
6142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6143         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6144         Use a different value for gl_cv_func_getcwd_path_max. Move the
6145         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6146         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6147         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6148         Define HAVE_MINIMALLY_WORKING_GETCWD.
6149         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6150         where it is not even minimally working, that is, on AIX.
6151         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6152         m4/getcwd-path-max.m4.
6153         (main): Update exit code computation.
6154         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6155         getcwd does not handle long file names.
6156
6157 2011-11-20  Bruno Haible  <bruno@clisp.org>
6158
6159         getcwd: Fix bug from 2009-09-10.
6160         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6161         like "no".
6162
6163 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6164
6165         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6166
6167 2011-11-20  Bruno Haible  <bruno@clisp.org>
6168
6169         fma tests: Avoid shadowing local variables.
6170         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6171         expected.
6172
6173 2011-11-20  Bruno Haible  <bruno@clisp.org>
6174
6175         copysignf tests: Fix.
6176         * tests/test-copysignf.c: Fix signature check.
6177
6178 2011-11-20  Bruno Haible  <bruno@clisp.org>
6179
6180         fma: Remove unused code.
6181         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6182         unused macros.
6183
6184 2011-11-20  Bruno Haible  <bruno@clisp.org>
6185
6186         sethostname: Fix doc about AIX.
6187         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6188         sethostname; it has it.
6189
6190         sethostname: Mention more portability problems.
6191         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6192         problem.
6193         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6194
6195 2011-11-19  Bruno Haible  <bruno@clisp.org>
6196
6197         Depend on module fcntl-h when AT_FDCWD is used.
6198         * modules/utimens (Depends-on): Add fcntl-h.
6199         * modules/areadlinkat (Depends-on): Likewise.
6200         * modules/areadlinkat-with-size (Depends-on): Likewise.
6201         * modules/faccessat (Depends-on): Likewise.
6202         * modules/fchmodat (Depends-on): Likewise.
6203         * modules/fchownat (Depends-on): Likewise.
6204         * modules/getcwd (Depends-on): Likewise.
6205         * modules/mkdirat (Depends-on): Likewise.
6206         * modules/mkfifoat (Depends-on): Likewise.
6207         * modules/readlinkat (Depends-on): Likewise.
6208         * modules/symlinkat (Depends-on): Likewise.
6209         * modules/dup2-tests (Depends-on): Likewise.
6210         * modules/fdutimensat-tests (Depends-on): Likewise.
6211         * modules/futimens-tests (Depends-on): Likewise.
6212
6213 2011-11-19  Bruno Haible  <bruno@clisp.org>
6214
6215         euidaccess: Update a comment.
6216         * lib/euidaccess.c: Update comment about platforms with faccessat.
6217
6218 2011-11-19  Bruno Haible  <bruno@clisp.org>
6219
6220         openat: Fix file list.
6221         * modules/openat (Files): Remove lib/at-func.c.
6222
6223 2011-11-19  Bruno Haible  <bruno@clisp.org>
6224
6225         fstatat: Simplify.
6226         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6227         gnulib should define rpl_fstatat, there is a
6228         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6229
6230 2011-11-19  Bruno Haible  <bruno@clisp.org>
6231
6232         Ensure 'inline' can be used in tests/test-utimens-common.h.
6233         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6234         * modules/futimens-tests (configure.ac): Likewise.
6235         * modules/utimens-tests (configure.ac): Likewise.
6236         * modules/utimensat-tests (configure.ac): Likewise.
6237
6238 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6239
6240         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6241         not hash_insert0.
6242         (hash_insert_if_absent): Doc fix.
6243
6244 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6245
6246         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6247
6248 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6249
6250         test-getcwd: disambiguate exit status
6251         * tests/test-getcwd.c (test_long_name): Return 0..7.
6252         (main): Exit with an unambiguous exit status.  The old
6253         code yielded a mysterious mixture of two failure codes.
6254
6255         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6256         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6257         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6258         rpl_fstatat or fstatat.  This should fix the other problem
6259         reported by Kai Habel in
6260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6261         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6263         and I reproduced it on a Solaris 8 host we still have in production.
6264
6265 2011-11-18  Jim Meyering  <meyering@redhat.com>
6266
6267         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6268         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6269         Add a sentence to the comment.
6270         (hash_insert0): New function that simply calls hash_insert_if_absent.
6271         * lib/hash.h (hash_insert_if_absent): Declare it.
6272         (hash_insert0): Add deprecation attribute.
6273         (_GL_ATTRIBUTE_DEPRECATED): Define.
6274         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6275         not hash_insert0.
6276         * NEWS: Mention it, even though it's not really an incompatible change.
6277
6278 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6279
6280         openat: avoid compilation failure due to lack of <errno.h> inclusion
6281         * lib/openat.c: Include <errno.h>.
6282
6283 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         * modules/getcwd (Depends-on): Add fdopendir.
6286         This fixes one of the two problems reported by Kai Habel in
6287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6288
6289         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6290         stdalign problem reported by Ian Beckwith in
6291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6292         * modules/crypto/gc-arcfour (Depends-on):
6293         Depend conditionally on crypto/arcfour.
6294         * modules/crypto/gc-arctwo (Depends-on):
6295         Depend conditionally on crypto/arctwo.
6296         * modules/crypto/gc-des (Depends-on):
6297         Depend conditionally on crypto/des.
6298         * modules/crypto/gc-hmac-md5 (Depends-on):
6299         Depend conditionally on crypto/hmac-md5.
6300         * modules/crypto/gc-hmac-sha1 (Depends-on):
6301         Depend conditionally on crypto/hmac-sha1.
6302         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6303         * modules/crypto/gc-md4 (Depends-on):
6304         Depend conditionally on crypto/md4.
6305         * modules/crypto/gc-md5 (Depends-on):
6306         Depend conditionally on crypto/md5.
6307         * modules/crypto/gc-rijndael (Depends-on):
6308         Depend conditionally on crypto/rijndael.
6309         * modules/crypto/gc-sha1 (Depends-on):
6310         Depend conditionally on crypto/sha1.
6311         * modules/crypto/gc-arcfour:
6312         * modules/crypto/gc-arctwo:
6313         * modules/crypto/gc-des:
6314         * modules/crypto/gc-hmac-md5:
6315         * modules/crypto/gc-hmac-sha1:
6316         * modules/crypto/gc-md2:
6317         * modules/crypto/gc-md4:
6318         * modules/crypto/gc-md5:
6319         * modules/crypto/gc-rijndael:
6320         * modules/crypto/gc-sha1:
6321         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6322         now that the conditional dependencies do the work for us.
6323
6324 2011-11-17  Jim Meyering  <meyering@redhat.com>
6325
6326         tests: factor st_ctime-comparison out of two headers
6327         * tests/test-utimens-common.h (ctime_compare): Define.
6328         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6329         * tests/test-lutimens.h (test_lutimens): Likewise.
6330         * tests/test-utimens.h (test_utimens): Likewise.
6331
6332         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6333         Invoke the test program via an init.sh-using wrapper.
6334         * tests/test-getcwd.sh: New file.
6335         * modules/getcwd-tests (Files): Add it.
6336         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6337
6338 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6339
6340         gitlog-to-changelog: support multi-author commits.
6341         The FSF cares about keeping track of all authors of patches to its
6342         projects, but Git doesn't provide obvious support for multi-author
6343         changesets. Consensus seems to be forming around the use of extra
6344         Signed-off-by inspired lines in the log message formatted as
6345         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6346         multi-author commits between version control systems.
6347         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6348         log message and output in standard ChangeLog multi-author format.
6349         Reported by Peter Rosin <peda@lysator.liu.se>
6350
6351 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6352             Bruno Haible  <bruno@clisp.org>
6353
6354         Fix some modules' file list.
6355         * modules/fstatat (Files): Add m4/lstat.m4.
6356         * modules/openat (Files): Likewise.
6357         * modules/unlinkat (Files): Likewise.
6358
6359 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6360
6361         maint.mk: fix tight-scope.mk generation in VPATH builds.
6362         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6363         reference with $(srcdir) so that the file is found correctly even
6364         when running `make syntax-check' in a VPATH build.
6365
6366 2011-11-13  Bruno Haible  <bruno@clisp.org>
6367             Jim Meyering  <meyering@redhat.com>
6368
6369         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6370         * tests/init.sh (compare): Remove "No differences encountered" or
6371         synonymous output from the 'diff' program.
6372
6373 2011-11-13  Bruno Haible  <bruno@clisp.org>
6374
6375         Makefile: Tweak indentation.
6376         * Makefile: Use tab as first character in every line that contains rule
6377         commands.
6378
6379 2011-11-13  Bruno Haible  <bruno@clisp.org>
6380
6381         Syntax check for copyright statements.
6382         * check-copyright: New file.
6383         * Makefile (sc_check_copyright): New rule.
6384
6385 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6386
6387         * build-aux/git-version-gen: Add --prefix to configure the tag
6388         match string.
6389
6390 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6391
6392         * build-aux/git-version-gen: Add --help and --version.
6393
6394 2011-11-12  Jim Meyering  <meyering@redhat.com>
6395
6396         revamp the other test-exclude?.sh scripts to use init.sh, too
6397         * tests/test-exclude1.sh: Use init.sh.
6398         * tests/test-exclude2.sh: Likewise.
6399         * tests/test-exclude3.sh: Likewise.
6400         * tests/test-exclude4.sh: Likewise.
6401         * tests/test-exclude5.sh: Likewise.
6402         * tests/test-exclude6.sh: Likewise.
6403         * tests/test-exclude7.sh: Likewise.
6404         * tests/test-exclude8.sh: Likewise.
6405         * modules/exclude-tests (Files): List init.sh.
6406
6407         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6408         These shell scripts ignored failure of the binary test-exclude,
6409         so making the latter return 77 didn't cause them to be skipped.
6410         * tests/test-exclude5.sh: Exit with test-exclude's error status
6411         when that program fails.  Revamp to use init.sh.
6412         * tests/test-exclude2.sh: Likewise.
6413
6414         test-exclude: fix a typo
6415         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6416
6417 2011-11-11  Bruno Haible  <bruno@clisp.org>
6418
6419         obstack: Fix compilation error on MSVC 9.
6420         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6421
6422 2011-11-11  Jim Meyering  <meyering@redhat.com>
6423
6424         test-exclude: skip tests rather than failing on deficient systems
6425         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6426         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6427         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6428         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6429
6430 2011-11-10  Bruno Haible  <bruno@clisp.org>
6431
6432         ptsname_r test: Avoid gcc warning on glibc systems.
6433         * tests/test-ptsname_r.c (null_ptr): New function.
6434         (test_errors): Use it.
6435
6436 2011-11-10  Bruno Haible  <bruno@clisp.org>
6437
6438         ptsname_r: Avoid compilation error on OSF/1 5.1.
6439         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6441         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6442         function is not declared or incompatibly declared.
6443         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6444         * modules/ptsname_r (Depends-on, configure.ac): Update.
6445         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6446
6447 2011-11-10  Bruno Haible  <bruno@clisp.org>
6448
6449         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6450         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6451         When cross-compiling, guess yes on all platforms except AIX.
6452         Reported by Ludovic Courtès <ludo@gnu.org>.
6453
6454 2011-11-09  Bruno Haible  <bruno@clisp.org>
6455
6456         ptsname_r tests: Fix bugs.
6457         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6458         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6459
6460 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6461
6462         fstatat: work with cross-compilation
6463         Problem reported by Ludovic Courtès in
6464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6465         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6466         "cross-compiling" and assume the bug is present.  Replace
6467         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6468         an inverted sense, to be more conservative about our assumptions.
6469         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6470
6471 2011-11-09  Bruno Haible  <bruno@clisp.org>
6472
6473         Improve MODULES.html output.
6474         * modules/mkfifoat (Description): Use the word "function".
6475         * modules/readlinkat (Description): Likewise.
6476         * modules/symlinkat (Description): Likewise.
6477
6478 2011-11-09  Eric Blake  <eblake@redhat.com>
6479
6480         ptsname_r-tests: new test module
6481         * modules/ptsname_r-tests: New module.
6482         * tests/test-ptsname_r.c: New file.
6483
6484         ptsname_r: new module
6485         * modules/ptsname_r: New module.
6486         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6487         * lib/ptsname.c (__ptsname_r): Split...
6488         * lib/ptsname_r.c: ...into new file.
6489         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6490         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6491         * modules/stdlib (Makefile.am): Substitute witnesses.
6492         * lib/stdlib.in.h (ptsname_r): Declare it.
6493         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6494         * MODULES.html.sh (Misc): Likewise.
6495         * modules/ptsname (Depends-on): Alter dependency.
6496         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6497
6498 2011-11-09  Jim Meyering  <meyering@redhat.com>
6499
6500         announce-gen: be more concise when there's only one URL+tarball
6501         * build-aux/announce-gen (get_tool_versions): When you distribute
6502         only one type of tarball, combine the first two "Here are..."
6503         sections and make the key-checking grammar independent of
6504         how many tarballs there are.
6505
6506 2011-11-09  Eric Blake  <eblake@redhat.com>
6507
6508         openpty: provide a stub on mingw
6509         * lib/pty.in.h (includes): Provide forward declarations.
6510         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6511
6512         raise: fix mingw handling of SIGPIPE
6513         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6514
6515 2011-11-08  Bruno Haible  <bruno@clisp.org>
6516
6517         More conditional dependencies.
6518         * modules/faccessat (Depends-on): Add conditions.
6519         * modules/fchmodat (Depends-on): Likewise.
6520         * modules/fchownat (Depends-on): Likewise.
6521         * modules/fstatat (Depends-on): Likewise.
6522         * modules/mkfifoat (Depends-on): Likewise.
6523         * modules/readlinkat (Depends-on): Likewise.
6524         * modules/symlinkat (Depends-on): Likewise.
6525         * modules/unlinkat (Depends-on): Likewise.
6526         * modules/utimensat (Depends-on): Likewise.
6527         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6528         * modules/linkat (Depends-on): Refine the conditions.
6529         * modules/renameat (Depends-on): Likewise.
6530
6531 2011-11-08  Bruno Haible  <bruno@clisp.org>
6532
6533         faccessat: Move AC_LIBOBJ invocation to module description.
6534         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6535         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6536         invocation from here...
6537         * modules/faccessat (configure.ac): ... to here. Invoke
6538         gl_PREREQ_FACCESSAT.
6539
6540 2011-11-08  Bruno Haible  <bruno@clisp.org>
6541
6542         faccessat: Simplify autoconf macro.
6543         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6544         gl_FUNC_EUIDACCESS.
6545
6546 2011-11-08  Bruno Haible  <bruno@clisp.org>
6547
6548         renameat: Fix dependencies.
6549         * modules/renameat (Depends-on): Add stdbool.
6550
6551 2011-11-08  Bruno Haible  <bruno@clisp.org>
6552
6553         mkfifoat: Fix module description.
6554         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6555         not gl_UNISTD_MODULE_INDICATOR.
6556
6557 2011-11-08  Bruno Haible  <bruno@clisp.org>
6558
6559         fstatat: Remove unused dependency.
6560         * modules/fstatat (Depends-on): Remove fstat.
6561
6562 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6563
6564         GNUmakefile: behave when Makefile is missing.
6565         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6566
6567 2011-11-08  Bruno Haible  <bruno@clisp.org>
6568
6569         openat: Conditionalize dependencies.
6570         * lib/openat.c: Reduce the scope of some #includes.
6571         * modules/openat (Depends-on): Add conditions.
6572
6573 2011-11-07  Jim Meyering  <meyering@redhat.com>
6574
6575         maint.mk: extract GPG key ID without using a temporary file
6576         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6577         without using a temporary file.  Based on a suggestion from Werner Koch
6578         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6579
6580 2011-11-07  Eric Blake  <eblake@redhat.com>
6581
6582         grantpt: fix typo
6583         * lib/stdlib.in.h (grantpt): Check correct function.
6584
6585         maint.mk: silence new syntax check
6586         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6587
6588 2011-11-06  Bruno Haible  <bruno@clisp.org>
6589
6590         Doc about floating-point and math API.
6591         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6592         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6593
6594 2011-11-06  Bruno Haible  <bruno@clisp.org>
6595
6596         stdalign tests: Skip the test when compiled by Sun C.
6597         * tests/test-stdalign.c (main): Skip the test on Sun C.
6598
6599 2011-11-06  Bruno Haible  <bruno@clisp.org>
6600
6601         ansi-c++-opt: Complete the 2011-06-05 change.
6602         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6603         does not support namespaces, set the variable to "no", not to ":".
6604
6605 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6606
6607         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6608
6609 2011-11-06  Bruno Haible  <bruno@clisp.org>
6610
6611         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6612         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6613         (minus_zerol) [HP-UX]: New macro.
6614         (unary_minus) [HP-UX]: New function.
6615         (copysignl) [HP-UX]: Use unary_minus function.
6616
6617 2011-11-06  Bruno Haible  <bruno@clisp.org>
6618
6619         ldexp, ldexpf, ldexpl: Enhance tests.
6620         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6621         and tests/test-ldexpl.c.
6622         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6623         LDEXP, MIN_EXP, MAX_EXP): New macros.
6624         Include test-ldexp.h.
6625         (main): Just call test_function.
6626         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6627         infinity.h, nan.h.
6628         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6629         MAX_EXP): New macros.
6630         Include test-ldexp.h.
6631         (x, y): Remove variables.
6632         (main): Just call test_function.
6633         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6634         infinity.h, nan.h.
6635         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6636         MAX_EXP): New macros.
6637         Include test-ldexp.h.
6638         (x, y): Remove variables.
6639         (main): Just call test_function.
6640         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6641         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6642         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6643         (Depends-on): Add isnand-nolibm, signbit, float.
6644         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6645         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6646         (Depends-on): Add isnanf-nolibm, signbit, float.
6647
6648 2011-11-06  Bruno Haible  <bruno@clisp.org>
6649
6650         math tests: Cosmetics.
6651         * tests/test-math-c++.cc: Reorder declarations.
6652
6653 2011-11-05  Bruno Haible  <bruno@clisp.org>
6654
6655         fma*: Simplify test.
6656         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6657         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6658
6659         Tests for module 'fmal'.
6660         * modules/fmal-tests: New file.
6661         * tests/test-fmal1.c: New file.
6662         * tests/test-fmal2.c: New file.
6663
6664         New module 'fmal'.
6665         * lib/math.in.h (fmal): New declaration.
6666         * lib/fmal.c: New file.
6667         * m4/fmal.m4: New file.
6668         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6670         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6671         REPLACE_FMAL.
6672         * modules/fmal: New file.
6673         * doc/posix-functions/fmal.texi: Mention the new module and the various
6674         bugs.
6675
6676         Tests for module 'fmaf'.
6677         * modules/fmaf-tests: New file.
6678         * tests/test-fmaf1.c: New file.
6679         * tests/test-fmaf2.c: New file.
6680
6681         New module 'fmaf'.
6682         * lib/math.in.h (fmaf): New declaration.
6683         * lib/fmaf.c: New file.
6684         * m4/fmaf.m4: New file.
6685         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6687         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6688         REPLACE_FMAF.
6689         * modules/fmaf: New file.
6690         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6691         bugs.
6692
6693         Tests for module 'fma'.
6694         * modules/fma-tests: New file.
6695         * tests/test-fma1.c: New file.
6696         * tests/test-fma1.h: New file.
6697         * tests/test-fma2.c: New file.
6698         * tests/test-fma2.h: New file.
6699
6700         New module 'fma'.
6701         * lib/math.in.h (fma): New declaration.
6702         * lib/fma.c: New file.
6703         * m4/fma.m4: New file.
6704         * m4/fegetround.m4: New file.
6705         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6707         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6708         REPLACE_FMA.
6709         * modules/fma: New file.
6710         * doc/posix-functions/fma.texi: Mention the new module and the various
6711         bugs.
6712
6713         Extend gl_MATHFUNC.
6714         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6715         Support 'void' as argument type.
6716         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6717
6718 2011-11-05  Jim Meyering  <meyering@redhat.com>
6719
6720         maint.mk: also prohibit inclusion of dirent.h without use
6721         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6722
6723 2011-11-05  Bruno Haible  <bruno@clisp.org>
6724
6725         ldexpl tests: Avoid test failure on MSVC 9.
6726         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6727         value. Needed in order to enforce the conversion from a value greater
6728         than LDBL_MAX to Infinity.
6729
6730 2011-11-05  Bruno Haible  <bruno@clisp.org>
6731
6732         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6733         * modules/at-internal: New file, extracted from modules/openat.
6734         * modules/openat-h: New file.
6735         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6736         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6737         * modules/openat (Description): Add reference to POSIX function.
6738         (Files): Remove lib/openat.h, lib/openat-proc.c.
6739         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6740         intprops, unistd.
6741         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6742         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6743         gl_FCNTL_MODULE_INDICATOR.
6744         (Include): Remove unistd.h, openat.h.
6745         * modules/areadlinkat (Files): Add lib/at-func.c.
6746         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6747         openat-die, openat-h, save-cwd.
6748         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6749         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6750         openat-die, openat-h, save-cwd, unistd.
6751         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6752         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6753         openat-h, save-cwd. Remove fcntl-h, openat.
6754         * modules/fchmodat (Files): Remove lib/openat.h.
6755         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6756         openat, stdbool, unistd.
6757         * modules/fchownat (Files): Remove lib/openat.h.
6758         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6759         openat, stdbool, sys_stat.
6760         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6761         lib/openat-proc.c.
6762         (Depends-on): Add at-internal.
6763         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6764         * modules/fstatat (Files): Remove lib/openat.h.
6765         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6766         stdbool, unistd.
6767         * modules/fts (Depends-on): Add openat-h.
6768         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6769         openat.
6770         * modules/mkdirat (Files): Remove lib/openat.h.
6771         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6772         openat, stdbool, sys_stat.
6773         * modules/mkfifoat (Files): Add lib/at-func.c.
6774         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6775         openat-h, save-cwd. Remove fcntl-h, openat.
6776         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6777         * modules/readlinkat (Files): Add lib/at-func.c.
6778         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6779         openat-h, save-cwd. Remove fcntl-h, openat.
6780         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6781         openat.
6782         * modules/selinux-at (Files): Add lib/at-func.c.
6783         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6784         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6785         * modules/symlinkat (Files): Add lib/at-func.c.
6786         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6787         openat-h, save-cwd. Remove fcntl-h, openat.
6788         * modules/unlinkat (Files): Remove lib/openat.h.
6789         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6790         stdbool.
6791         * modules/utimensat (Files): Add lib/at-func.c.
6792         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6793         openat-die, openat-h, save-cwd.
6794         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6795         * modules/fdutimensat-tests (Depends-on): Add openat.
6796         * modules/fstatat-tests (Depends-on): Add openat-h.
6797         * modules/readlinkat-tests (Depends-on): Add openat.
6798         * modules/symlinkat-tests (Depends-on): Add openat.
6799
6800 2011-11-05  Bruno Haible  <bruno@clisp.org>
6801
6802         openat: Include <stdbool.h>.
6803         * lib/openat.c: Include <stdbool.h>.
6804
6805 2011-11-04  Bruno Haible  <bruno@clisp.org>
6806
6807         fchownat, renameat, unlinkat: Fix dependencies.
6808         * modules/fchownat (Depends-on): Add fstatat.
6809         * modules/renameat (Depends-on): Likewise.
6810         * modules/unlinkat (Depends-on): Likewise.
6811
6812 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6813
6814         openat: remove direct dependency on dirent
6815         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6816         and hasn't been needed ever since fdopendir was split into its own
6817         module on 2009-08-31.
6818         * modules/openat (Depends-on): Remove dirent.
6819
6820 2011-11-04  Bruno Haible  <bruno@clisp.org>
6821
6822         renameat: Optimize code size.
6823         * modules/renameat (configure.ac): Don't compile at-func2.c if
6824         REPLACE_RENAMEAT is 1.
6825
6826 2011-11-04  Bruno Haible  <bruno@clisp.org>
6827
6828         openat tests: Fix file list.
6829         * modules/openat-tests (Files): Add tests/test-open.h.
6830
6831 2011-11-04  Bruno Haible  <bruno@clisp.org>
6832
6833         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6834         * modules/fchmodat (Depends-on): Add openat-die.
6835         * modules/fchownat (Depends-on): Likewise.
6836         * modules/linkat (Depends-on): Likewise.
6837         * modules/renameat (Depends-on): Likewise.
6838         * modules/openat (Depends-on): Add dirent.
6839
6840 2011-11-04  Jim Meyering  <meyering@redhat.com>
6841
6842         at-func*.c: fix comments
6843         * lib/at-func2.c: Correct/improve first-line comment.
6844         * lib/at-func.c: Correct grammar in first-line comment.
6845
6846 2011-11-04  Bruno Haible  <bruno@clisp.org>
6847
6848         New module 'mkdirat', split off from module 'openat'.
6849         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6850         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6851         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6852         * modules/mkdirat: New file, extracted from modules/openat.
6853         * modules/openat (Files): Remove lib/mkdirat.c.
6854         (Depends-on): Remove mkdir.
6855         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6856         (Include): Remove <sys/stat.h>.
6857         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6858         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6859         tests/test-mkdir.h.
6860         (Depends-on): Remove ignore-value.
6861         (Makefile.am): Remove rules for test-mkdirat.
6862         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6863         of module 'openat'.
6864         * NEWS: Mention the change.
6865
6866 2011-11-04  Bruno Haible  <bruno@clisp.org>
6867
6868         closedir: Avoid warning on mingw.
6869         * lib/closedir.c: Include <unistd.h>.
6870
6871 2011-11-04  Bruno Haible  <bruno@clisp.org>
6872
6873         New module 'fstatat', split off from module 'openat'.
6874         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6875         defined.
6876         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6877         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6878         gl_FUNC_FSTATAT.
6879         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6880         * modules/fstatat: New file, extracted from modules/openat.
6881         * modules/openat (Files): Remove lib/fstatat.c.
6882         (Depends-on): Remove lstat.
6883         (configure.ac): Remove AC_LIBOBJ of fstatat.
6884         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6885         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6886         tests/test-lstat.h, tests/test-stat.h.
6887         (Depends-on): Remove getcwd-lgpl.
6888         (Makefile.am): Remove rules for test-fstatat.
6889         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6890         of module 'openat'.
6891         * NEWS: Mention the change.
6892         * modules/getcwd (Depends-on): Add fstatat.
6893         * modules/linkat (Depends-on): Likewise.
6894         * modules/mkfifoat-tests (Depends-on): Likewise.
6895         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6896
6897 2011-11-03  Bruno Haible  <bruno@clisp.org>
6898
6899         New module 'unlinkat', split off from module 'openat'.
6900         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6901         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6902         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6903         * modules/unlinkat: New file, extracted from modules/openat. Correct
6904         the dependency conditions.
6905         * modules/openat (Files): Remove lib/unlinkat.c.
6906         (Depends-on): Remove rmdir, unlink.
6907         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6908         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6909         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6910         tests/test-rmdir.h, tests/test-unlink.h.
6911         (Depends-on): Remove unlinkdir.
6912         (Makefile.am): Remove rules for test-unlinkat.
6913         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6914         of module 'openat'.
6915         * NEWS: Mention the change.
6916         * modules/linkat-tests (Depends-on): Add unlinkat.
6917         * modules/mkfifoat-tests (Depends-on): Likewise.
6918         * modules/readlinkat-tests (Depends-on): Likewise.
6919
6920 2011-11-02  Bruno Haible  <bruno@clisp.org>
6921
6922         New module 'fchmodat', split off from module 'openat'.
6923         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6924         defined.
6925         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6926         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6927         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6928         * modules/fchmodat: New file, extracted from modules/openat.
6929         * modules/openat (Files): Remove lib/fchmodat.c.
6930         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6931         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6932         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6933         (Makefile.am): Remove rules for test-fchmodat.
6934         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6935         of module 'openat'.
6936         * NEWS: Mention the change.
6937
6938 2011-11-02  Jim Meyering  <meyering@redhat.com>
6939
6940         putenv: indent #definition of "environ" to placate cppi
6941         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6942
6943         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6944         Git logs are often treated as immutable, because editing them
6945         changes the SHA1 checksums of all descendants.  Thus, errors in
6946         git logs tend to stay there forever.  However, when we generate
6947         a ChangeLog file -- typically for distribution -- from that git log,
6948         we can actually make corrections in the generated file.  The key
6949         lies in recording in machine-readable/applicable form the desired
6950         corrections.  See --help for description and an example.
6951         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6952         (usage): Describe it; alphabetize option descriptions.
6953         (main): Honor the new option, carefully.
6954
6955 2011-11-01  Jim Meyering  <meyering@redhat.com>
6956
6957         gitlog-to-changelog: avoid an infloop
6958         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6959         that ends up being empty.
6960
6961 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6964         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6965         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6966         contains (possibly-quoted) backslashes.  This should avoid
6967         all-too-common shell bugs if COMPLICATED contains backslashes in
6968         the "wrong" places.  Reported by David Evans in
6969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6970         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6971         because we want ASCII ranges.  Is there some reason we don't use
6972         the C locale everywhere in this script?
6973         (func_module, top level): Avoid unwanted pathname expansion when
6974         $repo_url_prefix or $repo_url_suffix_repl contain shell
6975         metacharacters like '?' and '*'.
6976
6977 2011-11-01  Bruno Haible  <bruno@clisp.org>
6978
6979         fchownat: Improve description.
6980         * modules/fchownat (Description): Add link to function.
6981
6982 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6983
6984         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6985         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6987         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6988
6989 2011-11-01  Bruno Haible  <bruno@clisp.org>
6990
6991         alignof: Avoid collision with stdalign module.
6992         * lib/alignof.h (alignof): Remove macro.
6993         * NEWS: Mention the change.
6994         Reported by Paul Eggert.
6995
6996 2011-11-01  Bruno Haible  <bruno@clisp.org>
6997
6998         New module 'fchownat', split off from module 'openat'.
6999         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7000         defined.
7001         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7002         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7003         invoke gl_FUNC_FCHOWNAT.
7004         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7005         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7006         * modules/fchownat: New file, extracted from modules/openat.
7007         * modules/openat (Files): Remove lib/fchownat.c.
7008         (Depends-on): Remove lchown.
7009         (configure.ac): Remove AC_LIBOBJ of fchownat.
7010         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7011         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7012         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7013         (Depends-on): Remove mgetgroups, usleep, stat-time.
7014         (configure.ac): Remove test for getegid.
7015         (Makefile.am): Remove rules for test-fchownat.
7016         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7017         of module 'openat'.
7018         * NEWS: Mention the change.
7019
7020 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7021
7022         stdalign: port better to MSVC and to Sun C 5.11
7023         This fixes some of the problems reported by Bruno Haible in
7024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7025         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7026         shortcomings of MSVC and of Sun C 5.11.
7027         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7028         around __declspec arg.
7029         * modules/stdalign-tests (Files): Add tests/macros.h.
7030         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7031         Include macros.h, for ASSERT.
7032         (DECLARE_ALIGNED): Remove.
7033         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7034         to catch bug), and to 1 if not (simplifies the rest of the code).
7035         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7036         (CHECK_AUTO): Remove.
7037         (CHECK_ALIGNED): Check only the alignment of the static vars,
7038         since auto var alignment isn't supported by Sun C 5.11.
7039         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7040         ASSERT failures are easier to diagnose.
7041
7042 2011-10-31  Bruno Haible  <bruno@clisp.org>
7043
7044         doc about some IRIX 5.3 problems.
7045         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7046         on IRIX 5.3.
7047         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7048         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7049         5.3.
7050         * doc/posix-functions/grantpt.texi: Likewise.
7051         * doc/posix-functions/unlockpt.texi: Likewise.
7052         * doc/posix-functions/lgamma.texi: Likewise.
7053         * doc/posix-functions/nextafter.texi: Likewise.
7054         * doc/posix-functions/remainder.texi: Likewise.
7055         * doc/posix-functions/select.texi: Mention misplaced declaration on
7056         IRIX 5.3.
7057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7058
7059 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7060
7061         gitlog-to-changelog: fix git-log invocation.
7062         git-log mishandles date strings before 1970-01-01 UTC, and there is
7063         no use to specify --since=1970-01-01 by default anyway.
7064         * build-aux/gitlog-to-changelog: By default, when no --since option
7065         was given, do not specify explicit --since option to git-log.
7066
7067 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7068
7069         gitlog-to-changelog: new option --append-dot.
7070         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7071         first non-blank line of each commit message terminated with a dot.
7072
7073 2011-10-30  Bruno Haible  <bruno@clisp.org>
7074
7075         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7076         * lib/ffsl.h: Include <config.h>.
7077         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7078
7079 2011-10-30  Jim Meyering  <meyering@redhat.com>
7080
7081         GNUmakefile: reenable "make syntax-check" for most projects
7082         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7083         build-aux variable", "syntax-check" would do nothing but succeed with
7084         the "No version control files detected..." diagnostic (unless you
7085         happened to override _build-aux via cfg.mk).
7086         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7087         to precede inclusion of maint.mk.  Otherwise, these variables would
7088         be used undefined in any project that does not override the default.
7089
7090 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7091
7092         gitlog-to-changelog: treat a message with only blank lines as empty.
7093         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7094         trailing blank lines before the code that issues a warning about an
7095         empty commit message.
7096
7097 2011-10-30  Jim Meyering  <meyering@redhat.com>
7098
7099         test-parse-datetime.c: avoid new DST-related false positive test failure
7100         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7101         based on the time/date we'll convert, not the current time.
7102         Otherwise, the moment we cross a DST boundary like today's in
7103         Europe, (CEST to CET), that offset ends up being one hour off.
7104
7105 2011-10-27  Bruno Haible  <bruno@clisp.org>
7106
7107         fstat: Tweak documentation.
7108         * modules/fstat (Description): More precise description.
7109
7110 2011-10-27  Bruno Haible  <bruno@clisp.org>
7111
7112         Update documentation regarding 'largefile' module.
7113         * doc/posix-functions/fstat.texi: Tweak wording.
7114         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7115         problems with huge directories and/or small ino_t types.
7116         * doc/posix-functions/readdir.texi: Likewise.
7117         * doc/posix-functions/rewinddir.texi: Likewise.
7118
7119 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7120
7121         maint.mk: don't maintain a second build-aux variable.
7122         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7123         depends on GNUmakefile, which already maintains a cfg.mk
7124         overridable $(_build-aux) for projects with a non-standard
7125         build-aux directory location, although without the $(srcdir)
7126         prefix.  Use that variable consistently instead of introducing a
7127         second one.  Adjust all call sites.
7128
7129 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7130
7131         Add stdalign module and use it in other modules.
7132         This is based on a previous proposal by Bruno Haible
7133         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7134
7135         stdalign: new module
7136         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7137         * modules/stdalign: New files.
7138         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7139         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7140
7141         stdalign-tests: new module
7142         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7143
7144         argp: use stdalign
7145         * lib/argp-parse.c: Include <stdalign.h>.
7146         (alignof): Remove.
7147         * modules/argp (Depends-on): Add stdalign.
7148
7149         crypto libraries: use stdalign
7150         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7151         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7152         Do not include <stdlib.h> twice, in md4.c.
7153         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7154         because we are accessing a pointer's bit-pattern, not a size.
7155         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7156         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7157         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7158         * modules/crypto/sha512: Likewise.
7159
7160         sys_socket: use stdalign, not alignof
7161         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7162         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7163
7164 2011-10-27  Bruno Haible  <bruno@clisp.org>
7165
7166         raise test: Avoid a test failure on Linux/MIPS.
7167         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7168         because 99 is a valid signal on Linux/MIPS.
7169
7170 2011-10-27  Bruno Haible  <bruno@clisp.org>
7171
7172         nonblocking tests: Fix test failure on Linux/MIPS.
7173         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7174         Set to 270000.
7175
7176 2011-10-27  Bruno Haible  <bruno@clisp.org>
7177
7178         utimensat: Work around problem on Linux/hppa.
7179         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7180         values.
7181         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7182
7183 2011-10-25  Jim Meyering  <meyering@redhat.com>
7184
7185         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7186         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7187         after symbols like NULL, size_t, etc.
7188         Reported by Alfred M. Szmidt.
7189
7190         maint.mk: exempt ENODATA from a syntax-check rule
7191         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7192         from the sc_prohibit_always-defined_macros syntax-check rule.
7193         Add a comment.  See this for more details:
7194         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7195
7196 2011-10-23  Jim Meyering  <meyering@redhat.com>
7197
7198         fts: close parent dir FD before returning from post-traversal fts_read
7199         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7200         unlink A, even though an FD open on A remained.  This is suboptimal
7201         (holding a file descriptor open longer than needed), but otherwise not
7202         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7203         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7204         that represents a real problem: it causes the removal of A to fail
7205         with e.g., "rm: cannot remove `A': Device or resource busy"
7206
7207         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7208         directory file descriptors.  After completing the final, FTS_DP,
7209         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7210         cache, but then proceeded to add a new FD to it via the subsequent
7211         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7212         final file descriptor would be closed only via fts_close's call to
7213         fd_ring_clear.  Now, it is usually closed earlier, via the final
7214         FTS_DP-returning fts_read call.
7215         * lib/fts.c (restore_initial_cwd): New function, converted from
7216         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7217         Update callers.
7218         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7219         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7220
7221 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7222             Bruno Haible  <bruno@clisp.org>
7223             Jim Meyering  <jim@meyering.net>
7224
7225         readme-release: improve safety of release prep instructions.
7226         * README-release: Don't git pull all branches when only master
7227         is needed for the release process.
7228         Run make maintainer-clean before changing trees and merging.
7229         Don't try to run ./configure right after git pull in case files
7230         that influence the bootstrap process have changed, move the
7231         ./configure step to after running ./bootstrap.
7232         Don't bootstrap "one last time"... it's the first time!
7233
7234 2011-10-22  Bruno Haible  <bruno@clisp.org>
7235
7236         errno, strerror-override: Support for MSVC 10.
7237         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7238         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7239         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7240         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7241         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7242         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7243         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7244         Assign values compatible with MSVC 10.
7245         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7246         New macros.
7247         (GNULIB_defined_EWINSOCK): New macro.
7248         * lib/strerror-override.c (strerror_override): Update accordingly.
7249         * lib/strerror-override.h: Likewise.
7250         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7251         longer equal to the corresponding errno value.
7252         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7253
7254 2011-10-22  Bruno Haible  <bruno@clisp.org>
7255
7256         perror: Recognize when test program crashes.
7257         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7258         strerror, set gl_cv_func_perror_works to no.
7259         Reported by Daniel Richard G. <skunk@iskunk.org>.
7260
7261         perror: Fix indentation.
7262         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7263
7264 2011-10-22  Bruno Haible  <bruno@clisp.org>
7265
7266         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7267         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7268         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7269         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7270         functions, not as a macro.
7271         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7272         macros.
7273         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7274         absence of macro.
7275         Suggested by Eric Blake.
7276         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7277
7278 2011-10-21  Bruno Haible  <bruno@clisp.org>
7279
7280         relocatable-prog-wrapper: Don't leave object files behind.
7281         * build-aux/install-reloc: Re-synchronize list of .o files to be
7282         removed with list of compilation units.
7283
7284 2011-10-20  Bruno Haible  <bruno@clisp.org>
7285
7286         openpty, posix_openpt: Remove code duplication.
7287         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7288         * lib/openpty.c: Include <stdlib.h>.
7289         (openpty): Use posix_openpt on all platforms except IRIX.
7290         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7291
7292 2011-10-20  Bruno Haible  <bruno@clisp.org>
7293
7294         unlockpt: Detect invalid argument.
7295         * lib/unlockpt.c: Include <fcntl.h>.
7296         (unlockpt): Check whether fd is valid, using fcntl().
7297         * modules/unlockpt (Depends-on): Add fcntl-h.
7298
7299 2011-10-20  Bruno Haible  <bruno@clisp.org>
7300
7301         openpty: Avoid compilation error on AIX 6.1.
7302         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7303
7304 2011-10-20  Bruno Haible  <bruno@clisp.org>
7305
7306         posix_openpt: Support for OpenBSD.
7307         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7308         (posix_openpt) [OpenBSD]: New code.
7309         * lib/grantpt.c: Include <fcntl.h>.
7310         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7311         * modules/grantpt (Depends-on): Add fcntl-h.
7312
7313 2011-10-20  Bruno Haible  <bruno@clisp.org>
7314
7315         posix_openpt test: Coding style.
7316         * tests/test-posix_openpt.c: Use GNU coding style.
7317
7318 2011-10-20  Bruno Haible  <bruno@clisp.org>
7319
7320         grantpt: Support --avoid=pt_chown.
7321         * modules/grantpt (Files): Add lib/pty-private.h.
7322
7323 2011-10-20  Bruno Haible  <bruno@clisp.org>
7324
7325         posix_openpt: Fix autoconf macro.
7326         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7327         unneeded check for _getpty.
7328
7329 2011-10-20  Bruno Haible  <bruno@clisp.org>
7330
7331         openpty: Update comments.
7332         * lib/openpty.c: Add comments about Minix.
7333
7334 2011-10-19  Eric Blake  <eblake@redhat.com>
7335
7336         openpty: relax license
7337         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7338
7339         pt_chown: use configmake to simplify build
7340         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7341
7342         ptsname and others: relax license
7343         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7344         * modules/unlockpt (License): Likewise.
7345         * modules/pt_chown (License): Likewise.
7346         * modules/ptsname (License): Likewise.
7347         * modules/ttyname_r (License): Likewise.
7348
7349 2011-10-19  Jim Meyering  <meyering@redhat.com>
7350
7351         posix_openpt: remove spurious #endif
7352         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7353
7354 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7355
7356         maint.mk: Respect $(build_aux) in web-manual rule.
7357         * top/maint.mk (web-manual): Find gen-announce script in user's
7358         $(build_aux) directory instead of hard-coding 'build-aux'.
7359
7360 2011-10-19  Bruno Haible  <bruno@clisp.org>
7361
7362         posix_openpt: Fix compilation error.
7363         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7364         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7365         Mention the openpty module as an alternative.
7366
7367 2011-10-19  Bruno Haible  <bruno@clisp.org>
7368
7369         Support for old NeXTstep 3.3 frexp().
7370         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7371         execution time of the test to 5 seconds.
7372         Reported by Daniel Richard G. <skunk@iskunk.org>.
7373
7374 2011-10-19  Bruno Haible  <bruno@clisp.org>
7375
7376         Support for old NeXTstep 3.3 sed.
7377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7378         part, use /.../, not \|...|. Escape periods in the header file name.
7379         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7380         Reported by Daniel Richard G. <skunk@iskunk.org>.
7381
7382 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7383
7384         Support for old NeXTstep 3.3 gcc.
7385         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7386         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7387         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7388         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7389         * lib/regex.h (_Restrict_arr_): Likewise.
7390         * lib/regex_internal.h (re_token_t): Likewise.
7391         * lib/regexec.c (check_node_accept_bytes): Likewise.
7392         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7393
7394 2011-10-18  Eric Blake  <eblake@redhat.com>
7395
7396         posix_openpt: new module
7397         * modules/posix_openpt: New module.
7398         * m4/posix_openpt.m4: New file.
7399         * lib/posix_openpt.c: Likewise.
7400         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7401         (gl_STDLIB_H_DEFAULTS): Set defaults.
7402         * modules/stdlib (Makefile.am): Substitute macros.
7403         * lib/stdlib.in.h (posix_openpt): Declare.
7404         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7405         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7406         * modules/posix_openpt-tests: New test module.
7407         * tests/test-posix_openpt.c: New test.
7408
7409 2011-10-15  Bruno Haible  <bruno@clisp.org>
7410
7411         xstrtoll: Fix compilation failure.
7412         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7413         from lib/strtol.c.
7414         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7415         some platforms.
7416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7417
7418 2011-10-15  Bruno Haible  <bruno@clisp.org>
7419
7420         vasnprintf: Optimize bit search operation.
7421         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7423         gl_DOUBLE_EXPONENT_LOCATION.
7424         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7425         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7426         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7427         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7428         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7429         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7430         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7431         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7432         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7433
7434 2011-10-15  Bruno Haible  <bruno@clisp.org>
7435
7436         vasnprintf: Fix comments.
7437         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7438
7439 2011-10-14  Bruno Haible  <bruno@clisp.org>
7440
7441         Tests for module 'integer_length_ll'.
7442         * modules/integer_length_ll-tests: New file.
7443         * tests/test-integer_length_ll.c: New file.
7444
7445         New module 'integer_length_ll'.
7446         * lib/integer_length_ll.c: New file.
7447         * modules/integer_length_ll: New file.
7448
7449 2011-10-14  Bruno Haible  <bruno@clisp.org>
7450
7451         Tests for module 'integer_length_l'.
7452         * modules/integer_length_l-tests: New file.
7453         * tests/test-integer_length_l.c: New file.
7454
7455         New module 'integer_length_l'.
7456         * lib/integer_length_l.c: New file.
7457         * modules/integer_length_l: New file.
7458
7459 2011-10-14  Bruno Haible  <bruno@clisp.org>
7460
7461         Tests for module 'integer_length'.
7462         * modules/integer_length-tests: New file.
7463         * tests/test-integer_length.c: New file.
7464
7465         New module 'integer_length'.
7466         * lib/integer_length.h: New file.
7467         * lib/integer_length.c: New file.
7468         * modules/integer_length: New file.
7469
7470 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7471
7472         popen: Fix dependency conditions.
7473         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7474
7475 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7476
7477         perror: Fix autoconf test.
7478         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7479         <stdlib.h> and <string.h>.
7480
7481 2011-10-14  Bruno Haible  <bruno@clisp.org>
7482
7483         ffsl: Optimize on 64-bit platforms.
7484         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7485         unrolling.
7486
7487 2011-10-13  Bruno Haible  <bruno@clisp.org>
7488
7489         ffsl: Optimize on 32-bit platforms.
7490         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7491         use ffs() without a loop.
7492
7493         ffsl, ffsll: Optimize for GCC.
7494         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7495         * lib/ffsl.c (GCC_BUILTIN): New macro.
7496         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7497
7498 2011-10-13  Bruno Haible  <bruno@clisp.org>
7499
7500         ffs, bcopy, memset: Support symbol renaming via config.h.
7501         * lib/ffs.c: Include <config.h>.
7502         * lib/bcopy.c: Likewise.
7503         * lib/memset.c: Likewise.
7504
7505 2011-10-10  Bruno Haible  <bruno@clisp.org>
7506
7507         atanl: Simplify for platforms where 'long double' == 'double'.
7508         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7509         alternative implementation.
7510         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7511         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7512         * modules/atanl (Depends-on): Add atan. Update conditions.
7513
7514 2011-10-10  Bruno Haible  <bruno@clisp.org>
7515
7516         acosl: Simplify for platforms where 'long double' == 'double'.
7517         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7518         alternative implementation.
7519         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7520         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7521         * modules/acosl (Depends-on): Add acos. Update conditions.
7522
7523 2011-10-10  Bruno Haible  <bruno@clisp.org>
7524
7525         asinl: Simplify for platforms where 'long double' == 'double'.
7526         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7527         alternative implementation.
7528         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7529         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7530         * modules/asinl (Depends-on): Add asin. Update conditions.
7531
7532 2011-10-10  Bruno Haible  <bruno@clisp.org>
7533
7534         tanl: Simplify for platforms where 'long double' == 'double'.
7535         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7536         implementation.
7537         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7538         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7539         * modules/tanl (Depends-on): Add tan. Update conditions.
7540         (configure.ac): Don't compile trigl.c if
7541         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7542
7543 2011-10-10  Bruno Haible  <bruno@clisp.org>
7544
7545         cosl: Simplify for platforms where 'long double' == 'double'.
7546         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7547         implementation.
7548         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7549         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7550         * modules/cosl (Depends-on): Add cos. Update conditions.
7551         (configure.ac): Don't compile sincosl.c and trigl.c if
7552         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7553
7554 2011-10-10  Bruno Haible  <bruno@clisp.org>
7555
7556         sinl: Simplify for platforms where 'long double' == 'double'.
7557         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7558         implementation.
7559         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7560         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7561         * modules/sinl (Depends-on): Add sin. Update conditions.
7562         (configure.ac): Don't compile sincosl.c and trigl.c if
7563         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7564
7565 2011-10-10  Bruno Haible  <bruno@clisp.org>
7566
7567         logl: Simplify for platforms where 'long double' == 'double'.
7568         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7569         implementation.
7570         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7571         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7572         * modules/logl (Depends-on): Add log. Update conditions.
7573
7574 2011-10-10  Bruno Haible  <bruno@clisp.org>
7575
7576         expl: Simplify for platforms where 'long double' == 'double'.
7577         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7578         implementation.
7579         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7580         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7581         * modules/expl (Depends-on): Add exp. Update conditions.
7582
7583 2011-10-10  Bruno Haible  <bruno@clisp.org>
7584
7585         sqrtl: Simplify for platforms where 'long double' == 'double'.
7586         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7587         alternative implementation.
7588         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7589         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7590         * modules/sqrtl (Depends-on): Update conditions.
7591
7592 2011-10-10  Bruno Haible  <bruno@clisp.org>
7593
7594         ldexpl: Simplify for platforms where 'long double' == 'double'.
7595         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7596         alternative implementation.
7597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7598         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7599         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7600
7601 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7602
7603         ffsll: set correct witness
7604         * modules/ffsll (configure.ac): Fix typo.
7605
7606 2011-10-10  Bruno Haible  <bruno@clisp.org>
7607
7608         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7609         * lib/printf-frexpl.c: Include <config.h>.
7610         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7611         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7612         second time.
7613         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7614         gl_LONG_DOUBLE_VS_DOUBLE.
7615         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7616         conditions.
7617
7618 2011-10-10  Bruno Haible  <bruno@clisp.org>
7619
7620         frexpl: Simplify for platforms where 'long double' == 'double'.
7621         * lib/frexpl.c: Include <config.h>.
7622         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7623         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7624         time.
7625         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7626         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7627         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7628         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7629         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7630         conditions.
7631
7632 2011-10-10  Jim Meyering  <meyering@redhat.com>
7633
7634         test-renameat: don't leave behind a temporary file
7635         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7636           ERROR: files left in build directory after distclean:
7637           ./gltests/test-renameat.too
7638           make[1]: *** [distcleancheck] Error 1
7639         Reported by Tom G. Christensen.
7640
7641 2011-10-09  Bruno Haible  <bruno@clisp.org>
7642
7643         rint: Determine RINT_LIBM correctly on AIX 7.
7644         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7645         directly, not only through a function pointer. Also accept an optional
7646         4th argument with extra code.
7647         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7648         rintf() call by gcc when optimizing.
7649
7650         mathfunc.m4: Refactor.
7651         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7652         m4 variable.
7653
7654 2011-10-09  Bruno Haible  <bruno@clisp.org>
7655
7656         rintl: Simplify for platforms where 'long double' == 'double'.
7657         * lib/rintl.c: Include <config.h>.
7658         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7659         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7660         time.
7661         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7662         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7663         * modules/rintl (Depends-on): Add rint. Update conditions.
7664
7665 2011-10-09  Bruno Haible  <bruno@clisp.org>
7666
7667         roundl: Simplify for platforms where 'long double' == 'double'.
7668         * lib/roundl.c: Include <config.h>.
7669         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7670         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7671         time.
7672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7673         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7674         * modules/roundl (Depends-on): Add round. Update conditions.
7675
7676 2011-10-09  Bruno Haible  <bruno@clisp.org>
7677
7678         truncl: Simplify for platforms where 'long double' == 'double'.
7679         * lib/truncl.c: Include <config.h>.
7680         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7681         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7682         time.
7683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7684         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7685         * modules/truncl (Depends-on): Add trunc. Update conditions.
7686
7687 2011-10-09  Bruno Haible  <bruno@clisp.org>
7688
7689         ceill: Simplify for platforms where 'long double' == 'double'.
7690         * lib/ceill.c: Include <config.h>.
7691         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7692         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7693         time.
7694         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7695         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7696         * modules/ceill (Depends-on): Add ceil. Update conditions.
7697
7698 2011-10-09  Bruno Haible  <bruno@clisp.org>
7699
7700         floorl: Simplify for platforms where 'long double' == 'double'.
7701         * lib/floorl.c: Include <config.h>.
7702         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7703         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7704         time.
7705         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7706         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7707         * modules/floorl (Depends-on): Add floor. Update conditions.
7708
7709 2011-10-09  Bruno Haible  <bruno@clisp.org>
7710
7711         rint: Fix ordering constraints.
7712         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7713         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7714         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7715
7716 2011-10-09  Bruno Haible  <bruno@clisp.org>
7717
7718         copysignl: Simplify for platforms where 'long double' == 'double'.
7719         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7720         alternative.
7721         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7722         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7723         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7724
7725 2011-10-09  Bruno Haible  <bruno@clisp.org>
7726
7727         Tests for module 'rintl'.
7728         * modules/rintl-tests: New file.
7729         * tests/test-rintl.c: New file.
7730
7731         New module 'rintl'.
7732         * lib/math.in.h (rintl): New declaration.
7733         * lib/rintl.c: New file.
7734         * m4/rintl.m4: New file.
7735         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7737         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7738         * modules/rintl: New file.
7739         * tests/test-math-c++.cc: Check the declaration of rintl.
7740         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7741         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7742         * doc/posix-functions/rintl.texi: Mention the new module.
7743
7744 2011-10-09  Bruno Haible  <bruno@clisp.org>
7745
7746         Tests for module 'rintf'.
7747         * modules/rintf-tests: New file.
7748         * tests/test-rintf.c: New file.
7749
7750         New module 'rintf'.
7751         * lib/math.in.h (rintf): New declaration.
7752         * lib/rintf.c: New file.
7753         * m4/rintf.m4: New file.
7754         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7756         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7757         * modules/rintf: New file.
7758         * tests/test-math-c++.cc: Check the declaration of rintf.
7759         * doc/posix-functions/rintf.texi: Mention the new module.
7760
7761 2011-10-09  Bruno Haible  <bruno@clisp.org>
7762
7763         rint: Support for MSVC.
7764         * lib/math.in.h (rint): New declaration.
7765         * lib/rint.c: New file.
7766         * m4/rint.m4: New file.
7767         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7769         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7770         * modules/rint (Description): Fix.
7771         (Files): Add lib/rint.c, m4/rint.m4.
7772         (Depends-on): Add math.
7773         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7774         gl_MATH_MODULE_INDICATOR.
7775         * tests/test-math-c++.cc: Check the declaration of rint.
7776         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7777         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7778         * doc/posix-functions/rint.texi: Mention the replacement provided by
7779         the module.
7780
7781         rint tests: More tests.
7782         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7783         minus-zero.h, infinity.h, nan.h.
7784         (main): Skip the test if the current rounding mode is not standard. Add
7785         tests for negative numbers, minus zero, infinity, NaN.
7786         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7787         tests/nan.h.
7788         (Depends-on): Add isnand-nolibm.
7789
7790 2011-10-09  Bruno Haible  <bruno@clisp.org>
7791
7792         Tests for module 'copysignl'.
7793         * modules/copysignl-tests: New file.
7794         * tests/test-copysignl.c: New file.
7795
7796         New module 'copysignl'.
7797         * lib/math.in.h (copysignl): New declaration.
7798         * lib/copysignl.c: New file.
7799         * m4/copysignl.m4: New file.
7800         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7802         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7803         HAVE_COPYSIGNL.
7804         * modules/copysignl: New file.
7805         * tests/test-math-c++.cc: Check the declaration of copysignl.
7806         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7807         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7808         * doc/posix-functions/copysignl.texi: Mention the new module.
7809
7810 2011-10-09  Bruno Haible  <bruno@clisp.org>
7811
7812         Tests for module 'copysignf'.
7813         * modules/copysignf-tests: New file.
7814         * tests/test-copysignf.c: New file.
7815
7816         New module 'copysignf'.
7817         * lib/math.in.h (copysignf): New declaration.
7818         * lib/copysignf.c: New file.
7819         * m4/copysignf.m4: New file.
7820         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7822         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7823         HAVE_COPYSIGNF.
7824         * modules/copysignf: New file.
7825         * tests/test-math-c++.cc: Check the declaration of copysignf.
7826         * doc/posix-functions/copysignf.texi: Mention the new module.
7827
7828 2011-10-09  Bruno Haible  <bruno@clisp.org>
7829
7830         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7831         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7832         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7833         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7835         gl_SIGNAL_H_DEFAULTS.
7836
7837 2011-10-09  Bruno Haible  <bruno@clisp.org>
7838
7839         poll: Make macro safer.
7840         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7841         ac_cv_header_poll_h is not set.
7842
7843 2011-10-09  Bruno Haible  <bruno@clisp.org>
7844
7845         copysign: Provide replacement.
7846         * lib/math.in.h (copysign): New declaration.
7847         * lib/copysign.c: New file.
7848         * m4/copysign.m4: New file.
7849         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7851         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7852         HAVE_COPYSIGN.
7853         * modules/copysign (Description): Clarify.
7854         (Files): Add lib/copysign.c, m4/copysign.m4.
7855         (Depends-on): Add math, signbit.
7856         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7857         gl_MATH_MODULE_INDICATOR.
7858         * tests/test-math-c++.cc: Check the declaration of copysign.
7859         * doc/posix-functions/copysign.texi: Mention the effects of the module
7860         on Minix and MSVC.
7861
7862 2011-10-09  Bruno Haible  <bruno@clisp.org>
7863
7864         isinf: Ensure macro on AIX 5.1.
7865         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7866         macro.
7867         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7868
7869 2011-10-09  Bruno Haible  <bruno@clisp.org>
7870
7871         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7872         * modules/snprintf-posix-tests (configure.ac): Require
7873         gl_LONG_DOUBLE_VS_DOUBLE.
7874         * modules/sprintf-posix-tests (configure.ac): Likewise.
7875         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7876         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7877         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7878         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7879         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7880         tests on platforms where 'long double' is the same as 'double'.
7881         * tests/test-sprintf-posix.h (test_function): Likewise.
7882         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7883         * tests/test-vasprintf-posix.c (test_function): Likewise.
7884
7885         *printf: Fix for platforms where 'long double' == 'double'.
7886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7887         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7888         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7889         * modules/fprintf-posix (Files): Likewise.
7890         * modules/obstack-printf-posix (Files): Likewise.
7891         * modules/snprintf-posix (Files): Likewise.
7892         * modules/sprintf-posix (Files): Likewise.
7893         * modules/vasnprintf (Files): Likewise.
7894         * modules/vasnprintf-posix (Files): Likewise.
7895         * modules/vasprintf-posix (Files): Likewise.
7896         * modules/vdprintf-posix (Files): Likewise.
7897         * modules/vfprintf-posix (Files): Likewise.
7898         * modules/vsnprintf-posix (Files): Likewise.
7899         * modules/vsprintf-posix (Files): Likewise.
7900         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7901         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7902         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7903         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7904         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7905         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7906         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7907
7908         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7909         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7910         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7911         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7912         'long double'.
7913         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7914
7915         isinf: Fix for platforms where 'long double' == 'double'.
7916         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7917         Don't blindly assume 80-bit 'long double'.
7918
7919         isfinite: Fix for platforms where 'long double' == 'double'.
7920         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7921         Don't blindly assume 80-bit 'long double'.
7922
7923         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7924         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7925         * modules/isfinite-tests (configure.ac): Require
7926         gl_LONG_DOUBLE_VS_DOUBLE.
7927         * modules/isinf-tests (configure.ac): Likewise.
7928         * modules/isnan-tests (configure.ac): Likewise.
7929         * modules/isnanl-tests (configure.ac): Likewise.
7930         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7931         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7932         tests on platforms where 'long double' is the same as 'double'.
7933         * tests/test-isinf.c (test_isinfl): Likewise.
7934         * tests/test-isnan.c (test_long_double): Likewise.
7935         * tests/test-isnanl.h (main): Likewise.
7936
7937 2011-10-08  Bruno Haible  <bruno@clisp.org>
7938
7939         Tests for module 'tanhf'.
7940         * modules/tanhf-tests: New file.
7941         * tests/test-tanhf.c: New file.
7942
7943         New module 'tanhf'.
7944         * lib/math.in.h (tanhf): New declaration.
7945         * lib/tanhf.c: New file.
7946         * m4/tanhf.m4: New file.
7947         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7949         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7950         * modules/tanhf: New file.
7951         * tests/test-math-c++.cc: Check the declaration of tanhf.
7952         * doc/posix-functions/tanhf.texi: Mention the new module.
7953
7954         tanh: Use a .m4 file.
7955         * m4/tanh.m4: New file.
7956         * modules/tanh (Files): Add it.
7957         (configure.ac): Just invoke gl_FUNC_TANH.
7958
7959 2011-10-08  Bruno Haible  <bruno@clisp.org>
7960
7961         Tests for module 'coshf'.
7962         * modules/coshf-tests: New file.
7963         * tests/test-coshf.c: New file.
7964
7965         New module 'coshf'.
7966         * lib/math.in.h (coshf): New declaration.
7967         * lib/coshf.c: New file.
7968         * m4/coshf.m4: New file.
7969         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7971         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7972         * modules/coshf: New file.
7973         * tests/test-math-c++.cc: Check the declaration of coshf.
7974         * doc/posix-functions/coshf.texi: Mention the new module.
7975
7976         cosh: Use a .m4 file.
7977         * m4/cosh.m4: New file.
7978         * modules/cosh (Files): Add it.
7979         (configure.ac): Just invoke gl_FUNC_COSH.
7980
7981 2011-10-08  Bruno Haible  <bruno@clisp.org>
7982
7983         Tests for module 'sinhf'.
7984         * modules/sinhf-tests: New file.
7985         * tests/test-sinhf.c: New file.
7986
7987         New module 'sinhf'.
7988         * lib/math.in.h (sinhf): New declaration.
7989         * lib/sinhf.c: New file.
7990         * m4/sinhf.m4: New file.
7991         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7993         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7994         * modules/sinhf: New file.
7995         * tests/test-math-c++.cc: Check the declaration of sinhf.
7996         * doc/posix-functions/sinhf.texi: Mention the new module.
7997
7998         sinh: Use a .m4 file.
7999         * m4/sinh.m4: New file.
8000         * modules/sinh (Files): Add it.
8001         (configure.ac): Just invoke gl_FUNC_SINH.
8002
8003 2011-10-08  Bruno Haible  <bruno@clisp.org>
8004
8005         Tests for module 'atan2f'.
8006         * modules/atan2f-tests: New file.
8007         * tests/test-atan2f.c: New file.
8008
8009         New module 'atan2f'.
8010         * lib/math.in.h (atan2f): New declaration.
8011         * lib/atan2f.c: New file.
8012         * m4/atan2f.m4: New file.
8013         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8015         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8016         * modules/atan2f: New file.
8017         * tests/test-math-c++.cc: Check the declaration of atan2f.
8018         * doc/posix-functions/atan2f.texi: Mention the new module.
8019
8020         atan2: Use a .m4 file.
8021         * m4/atan2.m4: New file.
8022         * modules/atan2 (Files): Add it.
8023         (configure.ac): Just invoke gl_FUNC_ATAN2.
8024
8025 2011-10-08  Bruno Haible  <bruno@clisp.org>
8026
8027         Tests for module 'atanf'.
8028         * modules/atanf-tests: New file.
8029         * tests/test-atanf.c: New file.
8030
8031         New module 'atanf'.
8032         * lib/math.in.h (atanf): New declaration.
8033         * lib/atanf.c: New file.
8034         * m4/atanf.m4: New file.
8035         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8037         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8038         * modules/atanf: New file.
8039         * tests/test-math-c++.cc: Check the declaration of atanf.
8040         * doc/posix-functions/atanf.texi: Mention the new module.
8041
8042         atan: Use a .m4 file.
8043         * m4/atan.m4: New file.
8044         * modules/atan (Files): Add it.
8045         (configure.ac): Just invoke gl_FUNC_ATAN.
8046
8047 2011-10-08  Bruno Haible  <bruno@clisp.org>
8048
8049         Tests for module 'acosf'.
8050         * modules/acosf-tests: New file.
8051         * tests/test-acosf.c: New file.
8052
8053         New module 'acosf'.
8054         * lib/math.in.h (acosf): New declaration.
8055         * lib/acosf.c: New file.
8056         * m4/acosf.m4: New file.
8057         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8059         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8060         * modules/acosf: New file.
8061         * tests/test-math-c++.cc: Check the declaration of acosf.
8062         * doc/posix-functions/acosf.texi: Mention the new module.
8063
8064         acos: Use a .m4 file.
8065         * m4/acos.m4: New file.
8066         * modules/acos (Files): Add it.
8067         (configure.ac): Just invoke gl_FUNC_ACOS.
8068
8069 2011-10-08  Bruno Haible  <bruno@clisp.org>
8070
8071         Tests for module 'asinf'.
8072         * modules/asinf-tests: New file.
8073         * tests/test-asinf.c: New file.
8074
8075         New module 'asinf'.
8076         * lib/math.in.h (asinf): New declaration.
8077         * lib/asinf.c: New file.
8078         * m4/asinf.m4: New file.
8079         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8081         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8082         * modules/asinf: New file.
8083         * tests/test-math-c++.cc: Check the declaration of asinf.
8084         * doc/posix-functions/asinf.texi: Mention the new module.
8085
8086         asin: Use a .m4 file.
8087         * m4/asin.m4: New file.
8088         * modules/asin (Files): Add it.
8089         (configure.ac): Just invoke gl_FUNC_ASIN.
8090
8091 2011-10-08  Bruno Haible  <bruno@clisp.org>
8092
8093         Tests for module 'tanf'.
8094         * modules/tanf-tests: New file.
8095         * tests/test-tanf.c: New file.
8096
8097         New module 'tanf'.
8098         * lib/math.in.h (tanf): New declaration.
8099         * lib/tanf.c: New file.
8100         * m4/tanf.m4: New file.
8101         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8103         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8104         * modules/tanf: New file.
8105         * tests/test-math-c++.cc: Check the declaration of tanf.
8106         * doc/posix-functions/tanf.texi: Mention the new module.
8107
8108         tan: Use a .m4 file.
8109         * m4/tan.m4: New file.
8110         * modules/tan (Files): Add it.
8111         (configure.ac): Just invoke gl_FUNC_TAN.
8112
8113 2011-10-08  Bruno Haible  <bruno@clisp.org>
8114
8115         Tests for module 'cosf'.
8116         * modules/cosf-tests: New file.
8117         * tests/test-cosf.c: New file.
8118
8119         New module 'cosf'.
8120         * lib/math.in.h (cosf): New declaration.
8121         * lib/cosf.c: New file.
8122         * m4/cosf.m4: New file.
8123         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8125         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8126         * modules/cosf: New file.
8127         * tests/test-math-c++.cc: Check the declaration of cosf.
8128         * doc/posix-functions/cosf.texi: Mention the new module.
8129
8130         cos: Use a .m4 file.
8131         * m4/cos.m4: New file.
8132         * modules/cos (Files): Add it.
8133         (configure.ac): Just invoke gl_FUNC_COS.
8134
8135 2011-10-08  Bruno Haible  <bruno@clisp.org>
8136
8137         Tests for module 'sinf'.
8138         * modules/sinf-tests: New file.
8139         * tests/test-sinf.c: New file.
8140
8141         New module 'sinf'.
8142         * lib/math.in.h (sinf): New declaration.
8143         * lib/sinf.c: New file.
8144         * m4/sinf.m4: New file.
8145         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8147         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8148         * modules/sinf: New file.
8149         * tests/test-math-c++.cc: Check the declaration of sinf.
8150         * doc/posix-functions/sinf.texi: Mention the new module.
8151
8152         sin: Use a .m4 file.
8153         * m4/sin.m4: New file.
8154         * modules/sin (Files): Add it.
8155         (configure.ac): Just invoke gl_FUNC_SIN.
8156
8157 2011-10-08  Bruno Haible  <bruno@clisp.org>
8158
8159         Tests for module 'powf'.
8160         * modules/powf-tests: New file.
8161         * tests/test-powf.c: New file.
8162
8163         New module 'powf'.
8164         * lib/math.in.h (powf): New declaration.
8165         * lib/powf.c: New file.
8166         * m4/powf.m4: New file.
8167         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8169         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8170         * modules/powf: New file.
8171         * tests/test-math-c++.cc: Check the declaration of powf.
8172         * doc/posix-functions/powf.texi: Mention the new module.
8173
8174         pow: Use a .m4 file.
8175         * m4/pow.m4: New file.
8176         * modules/pow (Files): Add it.
8177         (configure.ac): Just invoke gl_FUNC_POW.
8178
8179 2011-10-08  Bruno Haible  <bruno@clisp.org>
8180
8181         Tests for module 'log10f'.
8182         * modules/log10f-tests: New file.
8183         * tests/test-log10f.c: New file.
8184
8185         New module 'log10f'.
8186         * lib/math.in.h (log10f): New declaration.
8187         * lib/log10f.c: New file.
8188         * m4/log10f.m4: New file.
8189         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8191         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8192         * modules/log10f: New file.
8193         * tests/test-math-c++.cc: Check the declaration of log10f.
8194         * doc/posix-functions/log10f.texi: Mention the new module.
8195
8196         log10: Use a .m4 file.
8197         * m4/log10.m4: New file.
8198         * modules/log10 (Files): Add it.
8199         (configure.ac): Just invoke gl_FUNC_LOG10.
8200
8201 2011-10-08  Bruno Haible  <bruno@clisp.org>
8202
8203         Tests for module 'logf'.
8204         * modules/logf-tests: New file.
8205         * tests/test-logf.c: New file.
8206
8207         New module 'logf'.
8208         * lib/math.in.h (logf): New declaration.
8209         * lib/logf.c: New file.
8210         * m4/logf.m4: New file.
8211         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8213         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8214         * modules/logf: New file.
8215         * tests/test-math-c++.cc: Check the declaration of logf.
8216         * doc/posix-functions/logf.texi: Mention the new module.
8217
8218         log: Use a .m4 file.
8219         * m4/log.m4: New file.
8220         * modules/log (Files): Add it.
8221         (configure.ac): Just invoke gl_FUNC_LOG.
8222
8223 2011-10-08  Bruno Haible  <bruno@clisp.org>
8224
8225         Tests for module 'expf'.
8226         * modules/expf-tests: New file.
8227         * tests/test-expf.c: New file.
8228
8229         New module 'expf'.
8230         * lib/math.in.h (expf): New declaration.
8231         * lib/expf.c: New file.
8232         * m4/expf.m4: New file.
8233         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8235         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8236         * modules/expf: New file.
8237         * tests/test-math-c++.cc: Check the declaration of expf.
8238         * doc/posix-functions/expf.texi: Mention the new module.
8239
8240         exp: Use a .m4 file.
8241         * m4/exp.m4: New file.
8242         * modules/exp (Files): Add it.
8243         (configure.ac): Just invoke gl_FUNC_EXP.
8244
8245 2011-10-08  Bruno Haible  <bruno@clisp.org>
8246
8247         Tests for module 'sqrtf'.
8248         * modules/sqrtf-tests: New file.
8249         * tests/test-sqrtf.c: New file.
8250
8251         New module 'sqrtf'.
8252         * lib/math.in.h (sqrtf): New declaration.
8253         * lib/sqrtf.c: New file.
8254         * m4/sqrtf.m4: New file.
8255         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8257         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8258         * modules/sqrtf: New file.
8259         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8260         * doc/posix-functions/sqrtf.texi: Mention the new module.
8261
8262 2011-10-08  Bruno Haible  <bruno@clisp.org>
8263
8264         Tests: Avoid link failures w.r.t. libintl.
8265         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8266         $(LIBINTL).
8267         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8268         $(LIBINTL).
8269         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8270         against $(LIBINTL).
8271         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8272         $(LIBINTL).
8273         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8274         $(LIBINTL).
8275         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8276
8277 2011-10-08  Bruno Haible  <bruno@clisp.org>
8278
8279         pow tests: Defeat compiler optimizations.
8280         * tests/test-pow.c (main): Assign arguments to x and y before use.
8281
8282 2011-10-08  Bruno Haible  <bruno@clisp.org>
8283
8284         gnulib-tool: Improve last commit.
8285         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8286         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8287         ignore dependencies that are not among the modules list.
8288
8289 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8290
8291         gnulib-tool: don't follow dependencies to avoided modules
8292         This fixes a bug that is related to the previous one.
8293         * gnulib-tool (func_modules_transitive_closure)
8294         (func_emit_autoconf_snippets):
8295         Check whether a dependency is acceptable before using it.
8296         (--extract-dependencies): Report an error if --avoid is also used,
8297         since this combination of options is not yet supported.
8298
8299         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8300         Problem reported by Peter Dyballa in
8301         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8302         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8303         when echoing "$condition".
8304
8305 2011-10-07  Bruno Haible  <bruno@clisp.org>
8306
8307         Fix documentation about math functions on MacOS X.
8308         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8309         MacOS X 10.5.
8310         * doc/posix-functions/fdim.texi: Likewise.
8311         * doc/posix-functions/feclearexcept.texi: Likewise.
8312         * doc/posix-functions/fegetenv.texi: Likewise.
8313         * doc/posix-functions/fegetround.texi: Likewise.
8314         * doc/posix-functions/feholdexcept.texi: Likewise.
8315         * doc/posix-functions/feraiseexcept.texi: Likewise.
8316         * doc/posix-functions/fesetenv.texi: Likewise.
8317         * doc/posix-functions/fesetround.texi: Likewise.
8318         * doc/posix-functions/fetestexcept.texi: Likewise.
8319         * doc/posix-functions/feupdateenv.texi: Likewise.
8320         * doc/posix-functions/fmax.texi: Likewise.
8321         * doc/posix-functions/fmin.texi: Likewise.
8322         * doc/posix-functions/log2.texi: Likewise.
8323         * doc/posix-functions/modff.texi: Likewise.
8324         * doc/posix-functions/nan.texi: Likewise.
8325         * doc/posix-functions/nanf.texi: Likewise.
8326         * doc/posix-functions/nextafterf.texi: Likewise.
8327         * doc/posix-functions/remquo.texi: Likewise.
8328
8329 2011-10-07  Bruno Haible  <bruno@clisp.org>
8330
8331         modff: Drop assumption about library that defines modff.
8332         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8333         AC_CHECK_FUNCS.
8334         * modules/modff (Files): Add m4/mathfunc.m4.
8335
8336 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8337
8338         raise tests: Avoid a GCC warning.
8339         * tests/test-raise.c (handler): Use _Noreturn.
8340
8341 2011-10-07  Bruno Haible  <bruno@clisp.org>
8342
8343         Tests for module 'ldexpf'.
8344         * modules/ldexpf-tests: New file.
8345         * tests/test-ldexpf.c: New file.
8346
8347         New module 'ldexpf'.
8348         * lib/math.in.h (ldexpf): New declaration.
8349         * lib/ldexpf.c: New file.
8350         * m4/ldexpf.m4: New file.
8351         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8353         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8354         * modules/ldexpf: New file.
8355         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8356         * doc/posix-functions/ldexpf.texi: Mention the new module.
8357
8358 2011-10-06  Bruno Haible  <bruno@clisp.org>
8359
8360         frexpf: Work around problems on IRIX and mingw.
8361         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8363         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8364         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8365         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8366         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8367         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8368
8369 2011-10-06  Bruno Haible  <bruno@clisp.org>
8370
8371         fabsf: Drop assumption about library that defines fabsf.
8372         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8373         AC_CHECK_FUNCS.
8374         * modules/fabsf (Files): Add m4/mathfunc.m4.
8375
8376 2011-10-06  Bruno Haible  <bruno@clisp.org>
8377
8378         frexpf: Drop assumption about library that defines frexpf.
8379         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8380         'int *', 'float *', 'long double *', 'float', 'long double'.
8381         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8382         AC_CHECK_FUNCS.
8383         * modules/frexpf (Files): Add m4/mathfunc.m4.
8384
8385         Tests for module 'frexpf'.
8386         * modules/frexpf-tests: New file.
8387         * tests/test-frexpf.c: New file.
8388
8389         New module 'frexpf'.
8390         * lib/math.in.h (frexpf): New declaration.
8391         * lib/frexpf.c: New file.
8392         * m4/frexpf.m4: New file.
8393         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8395         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8396         * modules/frexpf: New file.
8397         * tests/test-math-c++.cc: Check the declaration of frexpf.
8398         * doc/posix-functions/frexpf.texi: Mention the new module.
8399
8400 2011-10-06  Bruno Haible  <bruno@clisp.org>
8401
8402         math: Sort function declarations of math.in.h.
8403         * lib/math.in.h (frexp, logb): Move declarations.
8404
8405 2011-10-05  Bruno Haible  <bruno@clisp.org>
8406
8407         Tests for module 'modff'.
8408         * modules/modff-tests: New file.
8409         * tests/test-modff.c: New file.
8410
8411         New module 'modff'.
8412         * lib/math.in.h (modff): New declaration.
8413         * lib/modff.c: New file.
8414         * m4/modff.m4: New file.
8415         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8417         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8418         * modules/modff: New file.
8419         * tests/test-math-c++.cc: Check the declaration of modff.
8420         * doc/posix-functions/modff.texi: Mention the new module.
8421
8422         modf tests: Make test sharper.
8423         * tests/test-modf.c (main): Strengthen upper bound.
8424
8425         modf: Use a .m4 file.
8426         * m4/modf.m4: New file.
8427         * modules/modf (Files): Add it.
8428         (configure.ac): Just invoke gl_FUNC_MODF.
8429
8430 2011-10-05  Bruno Haible  <bruno@clisp.org>
8431
8432         Tests for module 'fmodf'.
8433         * modules/fmodf-tests: New file.
8434         * tests/test-fmodf.c: New file.
8435
8436         New module 'fmodf'.
8437         * lib/math.in.h (fmodf): New declaration.
8438         * lib/fmodf.c: New file.
8439         * m4/fmodf.m4: New file.
8440         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8442         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8443         * modules/fmodf: New file.
8444         * tests/test-math-c++.cc: Check the declaration of fmodf.
8445         * doc/posix-functions/fmodf.texi: Mention the new module.
8446
8447         fmod: Use a .m4 file.
8448         * m4/fmod.m4: New file.
8449         * modules/fmod (Files): Add it.
8450         (configure.ac): Just invoke gl_FUNC_FMOD.
8451
8452 2011-10-05  Bruno Haible  <bruno@clisp.org>
8453
8454         Tests for module 'fabsf'.
8455         * modules/fabsf-tests: New file.
8456         * tests/test-fabsf.c: New file.
8457
8458         New module 'fabsf'.
8459         * lib/math.in.h (fabsf): New declaration.
8460         * lib/fabsf.c: New file.
8461         * m4/fabsf.m4: New file.
8462         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8464         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8465         * modules/fabsf: New file.
8466         * tests/test-math-c++.cc: Check the declaration of fabsf.
8467         * doc/posix-functions/fabsf.texi: Mention the new module.
8468
8469         fabs: Use a .m4 file.
8470         * m4/fabs.m4: New file.
8471         * modules/fabs (Files): Add it.
8472         (configure.ac): Just invoke gl_FUNC_FABS.
8473
8474 2011-10-05  Jim Meyering  <meyering@redhat.com>
8475
8476         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8477         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8478         ls -lL regression introduced in coreutils-8.12, it does so at the
8479         cost of an additional stat call in the common case.  Besides, now
8480         that the kernel change that prompted commit 95f7c57f has been reverted
8481         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8482         we have no use for commit 95f7c57f, "file-has-acl: use
8483         acl_extended_file_nofollow if available".
8484
8485 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8486
8487         file-has-acl: revert unintended change in behavior of ls -L
8488         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8489         derived from...
8490         (file_has_acl): ...code here.  Call it.
8491         This problem was introduced with 2011-07-22 commit 95f7c57f,
8492         "file-has-acl: use acl_extended_file_nofollow if available".
8493         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8494
8495 2011-10-03  Bruno Haible  <bruno@clisp.org>
8496
8497         poll: Avoid link errors on MSVC.
8498         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8499         * modules/poll (Depends-on): Add sockets.
8500         (Link): New section.
8501         * NEWS: Mention the change.
8502         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8503         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8504         $(LIB_POLL) instead of $(LIBSOCKET).
8505
8506 2011-10-03  Bruno Haible  <bruno@clisp.org>
8507
8508         sys_select tests: Fix link error on MSVC 9.
8509         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8510         with $(LIB_SELECT) instead of $(LIBSOCKET).
8511
8512 2011-10-03  Bruno Haible  <bruno@clisp.org>
8513
8514         sys_select: Fix compilation error on mingw.
8515         * lib/sys_select.in.h: On native Windows, include <io.h>.
8516
8517 2011-10-03  Bruno Haible  <bruno@clisp.org>
8518
8519         wmemset: Support for MSVC.
8520         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8521         whether wmemset() exists.
8522
8523 2011-10-03  Bruno Haible  <bruno@clisp.org>
8524
8525         wmemmove: Support for MSVC.
8526         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8527         whether wmemmove() exists.
8528
8529 2011-10-03  Bruno Haible  <bruno@clisp.org>
8530
8531         wmemcpy: Support for MSVC.
8532         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8533         whether wmemcpy() exists.
8534
8535 2011-10-03  Bruno Haible  <bruno@clisp.org>
8536
8537         wmemcmp: Support for MSVC.
8538         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8539         whether wmemcmp() exists.
8540
8541 2011-10-03  Bruno Haible  <bruno@clisp.org>
8542
8543         wmemchr: Support for MSVC.
8544         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8545         whether wmemchr() exists.
8546
8547 2011-10-03  Bruno Haible  <bruno@clisp.org>
8548
8549         glthread/*, strsignal: Support for MSVC.
8550         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8551         including <winsock.h> on MSVC 9.
8552         * lib/glthread/lock.h: Likewise.
8553         * lib/glthread/thread.h: Likewise.
8554         * lib/glthread/tls.h: Likewise.
8555         * lib/glthread/yield.h: Likewise.
8556         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8557         if HAVE_UNISTD_H is false.
8558         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8559
8560 2011-10-03  Bruno Haible  <bruno@clisp.org>
8561
8562         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8563         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8564         Set to 100000.
8565
8566 2011-10-03  Bruno Haible  <bruno@clisp.org>
8567
8568         acl: Fix specification.
8569         * lib/file-has-acl.c (file_has_acl): Fix specification.
8570
8571 2011-10-03  Bruno Haible  <bruno@clisp.org>
8572
8573         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8574         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8575         (compute_curr_prefix, shared_library_fullname,
8576         find_shared_library_fullname, get_shared_library_fullname, relocate):
8577         Use it together with PIC && INSTALLDIR.
8578         Reported by <jojelino@gmail.com>
8579         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8580
8581 2011-10-01  Jim Meyering  <meyering@redhat.com>
8582
8583         maint.mk: adjust a release-related rule not to require use of gzip
8584         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8585         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8586         projects that build only .tar.xz files.  Also fix an erroneous test.
8587
8588         test-linkat: don't leave behind a temporary file
8589         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8590         Otherwise, coreutils' "make distcheck" would fail with this:
8591           Only in /c/cu/tests/torture/coreutils/test/\
8592             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8593           make[2]: *** [my-distcheck] Error 1
8594
8595         float, math: add omitted file
8596         * lib/itold.c: Add file, required for yesterday's float change.
8597
8598 2011-10-01  Bruno Haible  <bruno@clisp.org>
8599
8600         isinf: Fix for OpenBSD/x86.
8601         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8602         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8603         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8604
8605 2011-10-01  Bruno Haible  <bruno@clisp.org>
8606
8607         isfinite: Fix syntax error in configure test.
8608         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8609
8610         isfinite: Fix typo.
8611         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8612         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8613
8614 2011-10-01  Bruno Haible  <bruno@clisp.org>
8615
8616         nonblocking tests: Fix test failure on Linux/IA-64.
8617         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8618         Set to 270000.
8619
8620 2011-10-01  Bruno Haible  <bruno@clisp.org>
8621
8622         mkfifoat tests: Fix a test failure on mingw.
8623         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8624         with error ENOSYS.
8625
8626 2011-09-30  Bruno Haible  <bruno@clisp.org>
8627
8628         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8629         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8630         'long double'. Set REPLACE_ITOLD.
8631         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8632         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8633         * lib/itold.c: New file.
8634         * modules/float (Files): Add lib/itold.c.
8635         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8636         (Makefile.am): Substitute REPLACE_ITOLD.
8637         * modules/math (Depends-on): Add float.
8638         (Makefile.am): Substitute REPLACE_ITOLD.
8639         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8640         * doc/posix-headers/math.texi: Likewise.
8641         * doc/posix-functions/logl.texi: Likewise.
8642
8643 2011-09-30  Bruno Haible  <bruno@clisp.org>
8644
8645         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8646         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8647         Set to 140000.
8648
8649 2011-09-30  Bruno Haible  <bruno@clisp.org>
8650
8651         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8652         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8653         invocation, say "right after AC_PROG_CC_STDC", not "right after
8654         AC_PROG_CC".
8655         Reported by Gary V. Vaughan <gary@gnu.org>.
8656
8657 2011-09-30  Bruno Haible  <bruno@clisp.org>
8658
8659         Centralize C99 requirement.
8660         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8661         * modules/stdarg (configure.ac-early): Invoke it instead of
8662         AC_PROG_CC_STDC.
8663         Reported by Gary V. Vaughan and Paul Eggert.
8664
8665 2011-09-29  Bruno Haible  <bruno@clisp.org>
8666
8667         float: Fix LDBL_MAX value on Linux/PowerPC.
8668         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8669         on Linux/PowerPC.
8670         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8671         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8672         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8673         platform.
8674         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8675
8676 2011-09-29  Bruno Haible  <bruno@clisp.org>
8677
8678         doc: Improve doc about gl_EARLY.
8679         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8680         AC_PROG_CC_STDC invocation.
8681         Reported by Gary V. Vaughan <gary@gnu.org>.
8682
8683 2011-09-28  Bruno Haible  <bruno@clisp.org>
8684
8685         fgetc, fputc, fread, fwrite tests: Fix link error.
8686         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8687         on non-MSVC platforms.
8688         * tests/test-fputc.c (main): Likewise.
8689         * tests/test-fread.c (main): Likewise.
8690         * tests/test-fwrite.c (main): Likewise.
8691         Reported by Jim Meyering.
8692
8693 2011-09-27  Bruno Haible  <bruno@clisp.org>
8694
8695         fputc, fwrite tests: Avoid test failure on MSVC.
8696         * tests/test-fgetc.c: Include msvc-inval.h.
8697         (main): Invoke gl_msvc_inval_ensure_handler.
8698         * tests/test-fputc.c: Include msvc-inval.h.
8699         (main): Invoke gl_msvc_inval_ensure_handler.
8700         * tests/test-fread.c: Include msvc-inval.h.
8701         (main): Invoke gl_msvc_inval_ensure_handler.
8702         * tests/test-fwrite.c: Include msvc-inval.h.
8703         (main): Invoke gl_msvc_inval_ensure_handler.
8704         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8705         * modules/fputc-tests (Depends-on): Likewise.
8706         * modules/fread-tests (Depends-on): Likewise.
8707         * modules/fwrite-tests (Depends-on): Likewise.
8708
8709 2011-09-27  Bruno Haible  <bruno@clisp.org>
8710
8711         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8712         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8713         (raise): Remove older, duplicated declaration.
8714         (_gl_raise_SIGPIPE): New declaration.
8715         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8716         (rpl_raise): Remove function.
8717         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8718         a gnulib-defined SIGPIPE here.
8719         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8720         'sigprocmask' has detected missing signal-blocking and the module
8721         'sigpipe' is enabled.
8722         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8723
8724 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8725
8726         base64-tests: avoid memory leak
8727         * tests/test-base64.c (main): Plug memory leak.
8728
8729         base32: new module
8730         * modules/base32: New module.
8731         * lib/base32.c: New file.
8732         * lib/base32.h: Likewise.
8733         * m4/base32.m4: Likewise.
8734         * modules/base32-tests: New test.
8735         * tests/test-base32.c: Likewise.
8736         * MODULES.html.sh (Misc): Mention it.
8737
8738 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8739
8740         gnulib: use more-standard license notice wording
8741         * gnulib-tool (func_emit_copyright_notice): When emitting a
8742         license notice into a file, use the standard wording as suggested
8743         by the current information for GNU maintainers, except say "file"
8744         rather than "program".  The new wording gives a license version
8745         number, which addresses an issue raised by Glenn Morris in
8746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8747         * m4/onceonly.m4: Use that same wording here, too.
8748
8749         dup2: minor simplification
8750         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8751         as lib/dup2.c no longer uses 'inline'.
8752
8753 2011-09-25  Bruno Haible  <bruno@clisp.org>
8754
8755         strings: Fix compilation error on MSVC.
8756         * lib/strings.in.h: Include <stddef.h> for size_t.
8757
8758 2011-09-25  Bruno Haible  <bruno@clisp.org>
8759
8760         fflush et al.: Document limitation on MSVC.
8761         * doc/posix-functions/fflush.texi: Document possible crash in handling
8762         mode other than DEFAULT_HANDLING.
8763         * doc/posix-functions/fgetc.texi: Likewise.
8764         * doc/posix-functions/fputc.texi: Likewise.
8765         * doc/posix-functions/fread.texi: Likewise.
8766         * doc/posix-functions/fwrite.texi: Likewise.
8767
8768 2011-09-25  Bruno Haible  <bruno@clisp.org>
8769
8770         msvc-inval: Allow three invalid parameter handling modes.
8771         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8772         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8773         macros.
8774         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8775         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8776         SANE_LIBRARY_HANDLING as a no-op.
8777         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8778         <stdlib.h>.
8779         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8780
8781 2011-09-25  Bruno Haible  <bruno@clisp.org>
8782
8783         msvc-inval: Make handler multithread-safe.
8784         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8785         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8786         declarations.
8787         (gl_msvc_inval_current): New declaration.
8788         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8789         Operate on the structure returned by gl_msvc_inval_current().
8790         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8791         Remove varaiables.
8792         (tls_index, tls_initialized): New variables.
8793         (not_per_thread): New variable.
8794         (gl_msvc_inval_current): New function.
8795         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8796         returned by gl_msvc_inval_current().
8797
8798 2011-09-25  Bruno Haible  <bruno@clisp.org>
8799
8800         msvc-inval: Install handler globally.
8801         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8802         !_MSC_VER.
8803         (gl_msvc_invalid_parameter_handler): Remove declaration.
8804         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8805         declarations.
8806         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8807         Install the handler globally, don't uninstall it.
8808         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8809         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8810         currently valid, call RaiseException instead.
8811         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8812         for !_MSC_VER.
8813
8814 2011-09-25  Bruno Haible  <bruno@clisp.org>
8815
8816         strerror_r-posix: Fix for MSVC 9.
8817         * lib/strerror_r.c (local_snprintf): New function.
8818         (snprintf): Define to local_snprintf, not to _snprintf.
8819
8820 2011-09-25  Bruno Haible  <bruno@clisp.org>
8821
8822         ftruncate: Support for MSVC 9.
8823         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8824         (chsize_nothrow): New function.
8825         (chsize): Redefine as a macro.
8826         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8827         * modules/ftruncate (Depends-on): Add msvc-inval.
8828
8829 2011-09-25  Bruno Haible  <bruno@clisp.org>
8830
8831         New module 'fstat'.
8832         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8833         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8834         * lib/fchdir.c (rpl_fstat): Remove function.
8835         * m4/fstat.m4: New file.
8836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8838         declared.
8839         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8840         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8841         * modules/fstat: New file.
8842         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8843         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8844         is set.
8845         * doc/posix-functions/fstat.texi: Mention the new module and the
8846         problem on MSVC.
8847         * NEWS: Mention the change.
8848         * modules/acl (Depends-on): Add fstat.
8849         * modules/chdir-safer (Depends-on): Likewise.
8850         * modules/chown (Depends-on): Likewise.
8851         * modules/copy-file (Depends-on): Likewise.
8852         * modules/fchdir (Depends-on): Likewise.
8853         * modules/fdopendir (Depends-on): Likewise.
8854         * modules/fopen (Depends-on): Likewise.
8855         * modules/fts (Depends-on): Likewise.
8856         * modules/getcwd (Depends-on): Likewise.
8857         * modules/isapipe (Depends-on): Likewise.
8858         * modules/linkat (Depends-on): Likewise.
8859         * modules/lseek (Depends-on): Likewise.
8860         * modules/mkdir-p (Depends-on): Likewise.
8861         * modules/open (Depends-on): Likewise.
8862         * modules/openat (Depends-on): Likewise.
8863         * modules/read-file (Depends-on): Likewise.
8864         * modules/renameat (Depends-on): Likewise.
8865         * modules/utimens (Depends-on): Likewise.
8866
8867 2011-09-25  Bruno Haible  <bruno@clisp.org>
8868
8869         linkat: Fix compilation on MSVC 9.
8870         * lib/linkat.c: Don't include <stdint.h>.
8871
8872 2011-09-25  Bruno Haible  <bruno@clisp.org>
8873
8874         fclose: Support for MSVC 9.
8875         * lib/fclose.c: Include msvc-inval.h.
8876         (fclose_nothrow): New function.
8877         (rpl_fclose): Use it.
8878         * modules/fclose (Depends-on): Add msvc-inval.
8879         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8880
8881 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8882
8883         dup2: minor simplifications
8884         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8885         that it's a performance win.
8886         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8887         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8888
8889 2011-09-24  Jim Meyering  <meyering@redhat.com>
8890
8891         test-futimens: avoid a warning from gcc -Wshadow
8892         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8893         to avoid a shadowing warning.
8894
8895 2011-09-24  Bruno Haible  <bruno@clisp.org>
8896
8897         fdopen: Support for MSVC 9.
8898         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8899         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8900         * lib/fdopen.c: Include msvc-inval.h.
8901         (fdopen_nothrow): New function.
8902         (rpl_fdopen): Use it.
8903         * modules/fdopen (Depends-on): Add msvc-inval.
8904         * modules/fclose-tests (Depends-on): Add fdopen.
8905         * modules/fflush-tests (Depends-on): Likewise.
8906         * modules/fgetc-tests (Depends-on): Likewise.
8907         * modules/fputc-tests (Depends-on): Likewise.
8908         * modules/fread-tests (Depends-on): Likewise.
8909         * modules/freopen-tests (Depends-on): Likewise.
8910         * modules/fseeko-tests (Depends-on): Likewise.
8911         * modules/ftello-tests (Depends-on): Likewise.
8912         * modules/fwrite-tests  (Depends-on): Likewise.
8913         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8914
8915 2011-09-24  Bruno Haible  <bruno@clisp.org>
8916
8917         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8918         * modules/fgetc-tests (Depends-on): Add unistd.
8919         * modules/fputc-tests (Depends-on): Likewise.
8920         * modules/fread-tests (Depends-on): Likewise.
8921         * modules/fwrite-tests (Depends-on): Likewise.
8922
8923 2011-09-24  Bruno Haible  <bruno@clisp.org>
8924
8925         dup: Simplify autoconf test.
8926         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8927         on gl_MSVC_INVAL's result.
8928
8929 2011-09-24  Bruno Haible  <bruno@clisp.org>
8930
8931         Tests for function fwrite().
8932         * modules/fwrite-tests: New file.
8933         * tests/test-fwrite.c: New file.
8934         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8935
8936         Tests for function fread().
8937         * modules/fread-tests: New file.
8938         * tests/test-fread.c: New file.
8939         * modules/stdio-tests (Depends-on): Add fread-tests.
8940
8941         Activate fputc tests.
8942         * modules/stdio-tests (Depends-on): Add fputc-tests.
8943
8944         Enhance fgetc, fputc tests.
8945         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8946         * tests/test-fputc.c (main): Likewise.
8947
8948 2011-09-24  Bruno Haible  <bruno@clisp.org>
8949
8950         write: Support for MSVC 9.
8951         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8952         is not 1.
8953         * lib/write.c (write_nothrow): New function.
8954         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8955         not 1. Use write_nothrow.
8956         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8957         invalid parameter handler.
8958         (gl_PREREQ_WRITE): New macro.
8959         * modules/write (Depends-on): Add msvc-inval.
8960         (configure.ac): Invoke gl_PREREQ_WRITE.
8961         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8962
8963 2011-09-24  Bruno Haible  <bruno@clisp.org>
8964
8965         read: Fix last commit.
8966         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8967
8968 2011-09-24  Bruno Haible  <bruno@clisp.org>
8969
8970         dup2: Fix last commit.
8971         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8972         (rpl_dup2): Disable fcntl workaround on native Windows.
8973
8974         sigprocmask: Make code safer.
8975         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8976         section that changes macro definitions for this compilation unit.
8977
8978 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8979
8980         dup2: clarify by coalescing Windows-specific material
8981         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8982         "msvc-nothrow.h"' to the Windows-specific section, so that the
8983         Emacs source need not contain these include files.
8984         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8985         Windows-specific fixes into this function rather than just the
8986         nothrow fix, as this shortens and clarifies the code.  Always
8987         define as a function, as that's a bit cleaner than having it be
8988         sometimes a function and sometimes a macro.
8989         (rpl_dup2): Move the Windows-specific stuff out of here and into
8990         ms_windows_dup2.  Don't protect the Haiku-related fix with
8991         "#if !defined __linux__", as the same code also works around
8992         a Linux kernel bug, and it doesn't add any system calls on any
8993         platform.  Add comment about FreeBSD 6.1.
8994
8995         sigprocmask: move #include directive
8996         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8997         Windows-specific section, so that the Emacs source need not
8998         contain msvc-inval.h.
8999
9000 2011-09-23  Bruno Haible  <bruno@clisp.org>
9001
9002         read: Support for MSVC 9.
9003         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9004         is not 1.
9005         * lib/read.c (read_nothrow): New function.
9006         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9007         read_nothrow.
9008         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9009         invalid parameter handler.
9010         (gl_PREREQ_READ): New macro.
9011         * modules/read (Depends-on): Add msvc-inval.
9012         (configure.ac): Invoke gl_PREREQ_READ.
9013         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9014
9015 2011-09-23  Bruno Haible  <bruno@clisp.org>
9016
9017         close: Support for MSVC 9.
9018         * lib/close.c: Include <errno.h>, msvc-inval.h.
9019         (close_nothrow): New function.
9020         (rpl_close): Use it.
9021         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9022         invalid parameter handler.
9023         * modules/close (Depends-on): Add msvc-inval.
9024         * modules/dup2-tests (Depends-on): Add close.
9025         * modules/dup3-tests (Depends-on): Likewise.
9026         * modules/fcntl-tests (Depends-on): Likewise.
9027         * modules/spawn-pipe-tests (Depends-on): Likewise.
9028         * modules/unistd-safer-tests (Depends-on): Likewise.
9029         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9030
9031 2011-09-23  Bruno Haible  <bruno@clisp.org>
9032
9033         New module 'dup'.
9034         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9035         Allow replacement.
9036         * lib/dup.c: New file.
9037         * lib/fchdir.c (rpl_dup): Remove function.
9038         * m4/dup.m4: New file.
9039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9040         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9041         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9042         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9043         * modules/dup: New file.
9044         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9045         'dup' module is in use.
9046         * modules/fdopendir (Depends-on): Add dup.
9047         * modules/fdutimensat-tests (Depends-on): Likewise.
9048         * modules/fts (Depends-on): Likewise.
9049         * modules/futimens-tests (Depends-on): Likewise.
9050         * modules/posix_spawnp-tests (Depends-on): Likewise.
9051         * modules/unistd-safer-tests (Depends-on): Likewise.
9052         * modules/utimens-tests (Depends-on): Likewise.
9053         * doc/posix-functions/dup.texi: Mention the new module and the problem
9054         on MSVC.
9055
9056 2011-09-23  Bruno Haible  <bruno@clisp.org>
9057
9058         getdtablesize: Support for MSVC 9.
9059         * lib/getdtablesize.c: Include msvc-inval.h.
9060         (_setmaxstdio_nothrow): New function.
9061         (_setmaxstdio): Redefine it.
9062         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9063         * modules/getdtablesize (Depends-on): Add msvc-inval.
9064         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9065
9066 2011-09-23  Bruno Haible  <bruno@clisp.org>
9067
9068         signal-h: Rename from signal.
9069         * modules/signal-h: Renamed from modules/signal.
9070         * modules/pthread_sigmask (Depends-on): Update.
9071         * modules/raise (Depends-on): Likewise.
9072         * modules/sigaction (Depends-on): Likewise.
9073         * modules/sigpipe (Depends-on): Likewise.
9074         * modules/sigprocmask (Depends-on): Likewise.
9075         * modules/sys_select (Depends-on): Likewise.
9076         * modules/signal-h-tests: Renamed from modules/signal-tests.
9077         (Files, Depends-on, Makefile.am): Update.
9078         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9079         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9080         (Files, Makefile.am): Update.
9081         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9082         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9083         * modules/signal: New placeholder file.
9084         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9085         * doc/posix-headers/signal.texi: Update.
9086         * NEWS: Mention the change.
9087
9088 2011-09-23  Bruno Haible  <bruno@clisp.org>
9089
9090         sigprocmask: Avoid crashes through signal() on MSVC 9.
9091         * lib/sigprocmask.c: Include msvc-inval.h.
9092         (signal_nothrow): New function.
9093         (signal): Redefine it.
9094         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9095         * modules/sigprocmask (Depends-on): Add msvc-inval.
9096         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9097
9098 2011-09-23  Bruno Haible  <bruno@clisp.org>
9099
9100         Tests for module 'raise'.
9101         * modules/raise-tests: New file.
9102         * tests/test-raise.c: New file.
9103
9104         raise: Support for MSVC.
9105         * lib/signal.in.h (raise): New declaration.
9106         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9107         for native Windows platforms.
9108         * m4/raise.m4: New file.
9109         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9110         HAVE_RAISE, REPLACE_RAISE.
9111         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9112         REPLACE_RAISE.
9113         * modules/raise (Status, Notice): Remove fields.
9114         (Files): Add m4/raise.m4.
9115         (Depends-on): Add signal, msvc-inval.
9116         (configure.ac): Use the common idioms.
9117         (Maintainer): Add me.
9118         * tests/test-signal-c++.cc: Check the signature of raise.
9119         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9120
9121 2011-09-23  Bruno Haible  <bruno@clisp.org>
9122
9123         pipe2: Fix compilation on pre-C99 compilers.
9124         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9125
9126 2011-09-23  Bruno Haible  <bruno@clisp.org>
9127
9128         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9129         * lib/msvc-nothrow.h: New file.
9130         * lib/msvc-nothrow.c: New file.
9131         * m4/msvc-nothrow.m4: New file.
9132         * modules/msvc-nothrow: New file.
9133         * lib/dup2.c: Include msvc-nothrow.h.
9134         (rpl_dup2): No need to protect _get_osfhandle call here.
9135         * lib/accept4.c: Include msvc-nothrow.h.
9136         * lib/error.c: Likewise.
9137         * lib/fcntl.c: Likewise.
9138         * lib/lseek.c: Likewise.
9139         * lib/nonblocking.c: Likewise.
9140         * lib/poll.c: Likewise.
9141         * lib/read.c: Likewise.
9142         * lib/select.c: Likewise.
9143         * lib/sockets.h: Likewise.
9144         * lib/sockets.c: Likewise.
9145         * lib/stdio-read.c: Likewise.
9146         * lib/stdio-write.c: Likewise.
9147         * lib/write.c: Likewise.
9148         * lib/w32sock.h: Likewise.
9149         * lib/w32spawn.h: Likewise.
9150         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9151         * lib/fsync.c: Likewise.
9152         * lib/isapipe.c: Likewise.
9153         * modules/dup2 (Depends-on): Add msvc-nothrow.
9154         * modules/accept4 (Depends-on): Likewise.
9155         * modules/error (Depends-on): Likewise.
9156         * modules/fcntl (Depends-on): Likewise.
9157         * modules/lseek (Depends-on): Likewise.
9158         * modules/nonblocking (Depends-on): Likewise.
9159         * modules/poll (Depends-on): Likewise.
9160         * modules/read (Depends-on): Likewise.
9161         * modules/select (Depends-on): Likewise.
9162         * modules/sockets (Depends-on): Likewise.
9163         * modules/sigpipe (Depends-on): Likewise.
9164         * modules/write (Depends-on): Likewise.
9165         * modules/accept (Depends-on): Likewise.
9166         * modules/bind (Depends-on): Likewise.
9167         * modules/connect (Depends-on): Likewise.
9168         * modules/gethostname (Depends-on): Likewise.
9169         * modules/getpeername (Depends-on): Likewise.
9170         * modules/getsockname (Depends-on): Likewise.
9171         * modules/getsockopt (Depends-on): Likewise.
9172         * modules/ioctl (Depends-on): Likewise.
9173         * modules/listen (Depends-on): Likewise.
9174         * modules/recv (Depends-on): Likewise.
9175         * modules/recvfrom (Depends-on): Likewise.
9176         * modules/send (Depends-on): Likewise.
9177         * modules/sendto (Depends-on): Likewise.
9178         * modules/setsockopt (Depends-on): Likewise.
9179         * modules/shutdown (Depends-on): Likewise.
9180         * modules/socket (Depends-on): Likewise.
9181         * modules/execute (Depends-on): Likewise.
9182         * modules/spawn-pipe (Depends-on): Likewise.
9183         * modules/flock (Depends-on): Likewise.
9184         * modules/fsync (Depends-on): Likewise.
9185         * modules/isapipe (Depends-on): Likewise.
9186         * tests/test-cloexec.c: Include msvc-nothrow.h.
9187         * tests/test-dup-safer.c: Likewise.
9188         * tests/test-dup2.c: Likewise.
9189         * tests/test-dup3.c: Likewise.
9190         * tests/test-fcntl.c: Likewise.
9191         * tests/test-pipe.c: Likewise.
9192         * tests/test-pipe2.c: Likewise.
9193         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9194         * modules/unistd-safer-tests (Depends-on): Likewise.
9195         * modules/dup2-tests (Depends-on): Likewise.
9196         * modules/dup3-tests (Depends-on): Likewise.
9197         * modules/fcntl-tests (Depends-on): Likewise.
9198         * modules/pipe-posix-tests (Depends-on): Likewise.
9199         * modules/pipe2-tests (Depends-on): Likewise.
9200
9201 2011-09-23  Bruno Haible  <bruno@clisp.org>
9202
9203         dup2: Make code more maintainable.
9204         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9205         (rpl_dup2): Use it.
9206         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9207         * modules/dup2 (configure.ac): Invoke it.
9208         Reported by Paul Eggert.
9209
9210 2011-09-23  Bruno Haible  <bruno@clisp.org>
9211
9212         msvc-inval: Fix compilation error.
9213         * lib/msvc-inval.h: Include <excpt.h>.
9214
9215 2011-09-23  Bruno Haible  <bruno@clisp.org>
9216
9217         mkdir: Tweak for MSVC 9.
9218         * lib/sys_stat.in.h: Update comments.
9219         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9220
9221         Tests for module 'chdir'.
9222         * modules/chdir-tests: New file.
9223         * tests/test-chdir.c: New file.
9224
9225         New module 'chdir'.
9226         * modules/chdir: New file.
9227         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9228         (chdir): New declaration.
9229         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9230         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9231         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9232         * tests/test-unistd-c++.cc: Check signature of chdir.
9233         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9234         * modules/chdir-long (Depends-on): Add chdir.
9235         * modules/fchdir (Depends-on): Likewise.
9236         * modules/rename (Depends-on): Likewise.
9237         * modules/savewd (Depends-on): Likewise.
9238
9239         rmdir: Support for mingw, MSVC 9.
9240         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9241         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9242
9243         getcwd: Tweak for MSVC 9.
9244         * lib/unistd.in.h: Update comments.
9245         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9246
9247 2011-09-22  Bruno Haible  <bruno@clisp.org>
9248
9249         strerror_r-posix: Avoid a link error on MSVC.
9250         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9251         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9252
9253 2011-09-22  Bruno Haible  <bruno@clisp.org>
9254
9255         select: Avoid link errors on MSVC.
9256         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9257         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9258         * modules/pselect (Link): Likewise.
9259         * NEWS: Mention the change.
9260         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9261         test-select-stdin against $(LIB_SELECT).
9262         * modules/pselect-tests (Makefile.am): Link test-pselect against
9263         $(LIB_SELECT).
9264
9265 2011-09-22  Bruno Haible  <bruno@clisp.org>
9266
9267         select: Avoid compilation error on MSVC.
9268         * lib/select.c: Don't include <stdbool.h>.
9269
9270 2011-09-21  Bruno Haible  <bruno@clisp.org>
9271
9272         Consolidate all uses of PATH_MAX in *.m4 files.
9273         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9274         macros.
9275         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9276         and gl_PATHMAX_SNIPPET.
9277         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9278         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9279         * modules/chdir-long (Files): Add m4/pathmax.m4.
9280         * modules/getcwd (Files): Likewise.
9281
9282 2011-09-21  Bruno Haible  <bruno@clisp.org>
9283
9284         ftruncate: Un-deprecate, concentrate on Win32 support.
9285         * modules/ftruncate (Status, Notice): Remove sections.
9286         (Depends-on): Add largefile.
9287         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9288         non-mingw platforms.
9289         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9290         include <io.h>.
9291         * modules/perror-tests (Depends-on): Add ftruncate.
9292         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9293         'ftruncate' module.
9294
9295 2011-09-21  Bruno Haible  <bruno@clisp.org>
9296
9297         Add dependencies to new dirent related modules.
9298         * modules/opendir (Depends-on): Add closedir.
9299         * modules/getcwd (Depends-on): Add opendir, closedir.
9300         * modules/dirent-safer-tests (Depends-on): Likewise.
9301         * modules/fdopendir-tests (Depends-on): Likewise.
9302         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9303         * modules/renameat-tests (Depends-on): Likewise.
9304
9305 2011-09-21  Bruno Haible  <bruno@clisp.org>
9306
9307         opendir: Avoid compilation error on mingw.
9308         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9309         * modules/opendir (Depends-on): Add unistd.
9310
9311 2011-09-21  Bruno Haible  <bruno@clisp.org>
9312
9313         ftruncate tests: Avoid a test failure on mingw.
9314         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9315
9316 2011-09-21  Bruno Haible  <bruno@clisp.org>
9317
9318         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9319         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9320         native Windows.
9321
9322 2011-09-21  Bruno Haible  <bruno@clisp.org>
9323
9324         New module 'fdopen'.
9325         * lib/stdio.in.h (fdopen): New declaration.
9326         * lib/fdopen.c: New file.
9327         * m4/fdopen.m4: New file.
9328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9329         REPLACE_FDOPEN.
9330         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9331         REPLACE_FDOPEN.
9332         * modules/fdopen: New file.
9333         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9334         * tests/test-stdio-c++.cc: Check signature of fdopen.
9335         * doc/posix-functions/fdopen.texi: Mention the new module.
9336
9337 2011-09-21  Bruno Haible  <bruno@clisp.org>
9338
9339         unlockpt tests: Avoid test failure on NetBSD 5.1.
9340         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9341         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9342
9343 2011-09-21  Bruno Haible  <bruno@clisp.org>
9344
9345         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9346         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9347         * tests/test-getlogin_r.c (main): Likewise.
9348
9349 2011-09-20  Bruno Haible  <bruno@clisp.org>
9350
9351         time tests: Don't require pid_t.
9352         * doc/posix-headers/time.texi: Revert last change.
9353         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9354         * tests/test-time.c: Comment out the check for pid_t.
9355
9356 2011-09-20  Bruno Haible  <bruno@clisp.org>
9357
9358         fsync tests: Avoid a test failure on mingw.
9359         * tests/test-fsync.c (main): Allow a failure with EIO.
9360
9361 2011-09-20  Bruno Haible  <bruno@clisp.org>
9362
9363         euidaccess: Update comments.
9364         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9365
9366 2011-09-20  Bruno Haible  <bruno@clisp.org>
9367
9368         Ensure EBADF returns for socket functions on mingw.
9369         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9370         descriptor is invalid.
9371         * lib/bind.c (rpl_bind): Likewise.
9372         * lib/connect.c (rpl_connect): Likewise.
9373         * lib/getpeername.c (rpl_getpeername): Likewise.
9374         * lib/getsockname.c (rpl_getsockname): Likewise.
9375         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9376         * lib/listen.c (rpl_listen): Likewise.
9377         * lib/recv.c (rpl_recv): Likewise.
9378         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9379         * lib/send.c (rpl_send): Likewise.
9380         * lib/sendto.c (rpl_sendto): Likewise.
9381         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9382         * lib/shutdown.c (rpl_shutdown): Likewise.
9383
9384 2011-09-20  Bruno Haible  <bruno@clisp.org>
9385
9386         select tests: EBADF tests.
9387         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9388         test_bad_fd): New functions.
9389         (test_function): Invoke also test_bad_fd.
9390
9391 2011-09-20  Bruno Haible  <bruno@clisp.org>
9392
9393         Tests for module 'posix_spawn_file_actions_addopen.
9394         * modules/posix_spawn_file_actions_addopen-tests: New file.
9395         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9396
9397         Tests for module 'posix_spawn_file_actions_adddup2'.
9398         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9399         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9400
9401         Tests for module 'posix_spawn_file_actions_addclose'.
9402         * modules/posix_spawn_file_actions_addclose-tests: New file.
9403         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9404
9405 2011-09-20  Bruno Haible  <bruno@clisp.org>
9406
9407         Tests for module 'unlockpt'.
9408         * modules/unlockpt-tests: New file.
9409         * tests/test-unlockpt.c: New file.
9410         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9411
9412         Tests for module 'grantpt'.
9413         * modules/grantpt-tests: New file.
9414         * tests/test-grantpt.c: New file.
9415         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9416
9417 2011-09-20  Bruno Haible  <bruno@clisp.org>
9418
9419         freopen tests: EBADF tests.
9420         * tests/test-freopen.c: Include errno.h, unistd.h.
9421         (main): Add tests for EBADF, commented out for the moment.
9422
9423         fclose tests: EBADF tests.
9424         * tests/test-fclose.c (main): Add tests for EBADF.
9425
9426         fflush tests: EBADF tests.
9427         * tests/test-fflush.c: Include errno.h, macros.h.
9428         (main): Add tests for EBADF.
9429
9430         ftello tests: EBADF tests.
9431         * tests/test-ftello4.sh: New file.
9432         * tests/test-ftello4.c: New file.
9433         * modules/ftello-tests (Files): Add them.
9434         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9435
9436         fseeko tests: EBADF tests.
9437         * tests/test-fseeko4.sh: New file.
9438         * tests/test-fseeko4.c: New file.
9439         * modules/fseeko-tests (Files): Add them.
9440         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9441
9442         Tests for function fputc().
9443         * modules/fputc-tests: New file.
9444         * tests/test-fputc.c: New file.
9445         * modules/stdio-tests (Depends-on): Add fputc-tests.
9446
9447         Tests for function fgetc().
9448         * modules/fgetc-tests: New file.
9449         * tests/test-fgetc.c: New file.
9450         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9451
9452         Tests for function fdopen().
9453         * modules/fdopen-tests: New file.
9454         * tests/test-fdopen.c: New file.
9455         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9456
9457         Tests for module 'vdprintf'.
9458         * modules/vdprintf-tests: New file.
9459         * tests/test-vdprintf.c: New file.
9460
9461         Tests for module 'dprintf'.
9462         * modules/dprintf-tests: New file.
9463         * tests/test-dprintf.c: New file.
9464
9465 2011-09-20  Bruno Haible  <bruno@clisp.org>
9466
9467         Tests for module 'ioctl'.
9468         * modules/ioctl-tests: New file.
9469         * tests/test-ioctl.c: New file.
9470
9471 2011-09-20  Bruno Haible  <bruno@clisp.org>
9472
9473         fcntl tests: EBADF tests.
9474         * tests/test-fcntl.c (main): Add more tests for EBADF.
9475
9476 2011-09-20  Bruno Haible  <bruno@clisp.org>
9477
9478         utimensat tests: EBADF tests.
9479         * tests/test-utimensat.c (main): Add tests for EBADF.
9480
9481         renameat tests: EBADF tests.
9482         * tests/test-renameat.c (main): Add tests for EBADF.
9483
9484         mkfifoat tests: EBADF tests.
9485         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9486
9487         readlinkat tests: EBADF tests.
9488         * tests/test-readlinkat.c (main): Add tests for EBADF.
9489
9490         symlinkat tests: EBADF tests.
9491         * tests/test-symlinkat.c (main): Add tests for EBADF.
9492
9493         linkat tests: EBADF tests.
9494         * tests/test-linkat.c (main): Add tests for EBADF.
9495
9496         Tests for module 'faccessat'.
9497         * modules/faccessat-tests: New file.
9498         * tests/test-faccessat.c: New file.
9499
9500         fdopendir tests: EBADF tests.
9501         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9502
9503         openat tests: EBADF tests.
9504         * tests/test-fchownat.c (main): Add tests for EBADF.
9505         * tests/test-fstatat.c (main): Likewise.
9506         * tests/test-mkdirat.c (main): Likewise.
9507         * tests/test-openat.c (main): Likewise.
9508         * tests/test-unlinkat.c (main): Likewise.
9509         * tests/test-fchmodat.c: New file.
9510         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9511         (Makefile.am): Also run 'test-fchmodat'.
9512
9513 2011-09-20  Bruno Haible  <bruno@clisp.org>
9514
9515         utimens, futimens, fdutimensat tests: EBADF tests.
9516         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9517
9518         Tests for function fstat().
9519         * modules/fstat-tests: New file.
9520         * tests/test-fstat.c: New file.
9521         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9522
9523 2011-09-20  Bruno Haible  <bruno@clisp.org>
9524
9525         test-ttyname_r tests: EBADF tests.
9526         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9527
9528         Tests for module 'isatty'.
9529         * modules/isatty-tests: New file.
9530         * tests/test-isatty.c: New file.
9531
9532         Tests for module 'write'.
9533         * modules/write-tests: New file.
9534         * tests/test-write.c: New file.
9535
9536         Tests for module 'read'.
9537         * modules/read-tests: New file.
9538         * tests/test-read.c: New file.
9539
9540         pwrite tests: EBADF tests.
9541         * tests/test-pwrite.c (main): Add tests for EBADF.
9542
9543         pread tests: EBADF tests.
9544         * tests/test-pread.c (main): Add tests for EBADF.
9545
9546         lseek tests: EBADF tests.
9547         * tests/test-lseek.c (main): Add more tests for EBADF.
9548
9549         Tests for module 'ftruncate'.
9550         * modules/ftruncate-tests: New file.
9551         * tests/test-ftruncate.sh: New file.
9552         * tests/test-ftruncate.c: New file.
9553
9554         fsync tests: EBADF tests.
9555         * tests/test-fsync.c (main): Add more tests for EBADF.
9556
9557         fdatasync tests: EBADF tests.
9558         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9559
9560         Tests for module 'fchown'.
9561         * modules/fchown-tests: New file.
9562         * tests/test-fchown.c: New file.
9563
9564         Tests for module 'fchmod'.
9565         * modules/fchmod-tests: New file.
9566         * tests/test-fchmod.c: New file.
9567
9568         fchdir tests: EBADF tests.
9569         * tests/test-fchdir.c (main): Add more tests for EBADF.
9570
9571         dup2 tests: EBADF tests.
9572         * tests/test-dup2.c (main): Add more tests for EBADF.
9573
9574         Tests for module 'dup'.
9575         * modules/dup-tests: New file.
9576         * tests/test-dup.c: New file.
9577
9578         Tests for module 'close'.
9579         * modules/close-tests: New file.
9580         * tests/test-close.c: New file.
9581
9582 2011-09-20  Bruno Haible  <bruno@clisp.org>
9583
9584         Tests for module 'shutdown'.
9585         * modules/shutdown-tests: New file.
9586         * tests/test-shutdown.c: New file.
9587
9588         Tests for module 'setsockopt'.
9589         * modules/setsockopt-tests: New file.
9590         * tests/test-setsockopt.c: New file.
9591
9592         Tests for module 'sendto'.
9593         * modules/sendto-tests: New file.
9594         * tests/test-sendto.c: New file.
9595
9596         Tests for module 'send'.
9597         * modules/send-tests: New file.
9598         * tests/test-send.c: New file.
9599
9600         Tests for module 'recvfrom'.
9601         * modules/recvfrom-tests: New file.
9602         * tests/test-recvfrom.c: New file.
9603
9604         Tests for module 'recv'.
9605         * modules/recv-tests: New file.
9606         * tests/test-recv.c: New file.
9607
9608         Tests for module 'listen'.
9609         * modules/listen-tests: New file.
9610         * tests/test-listen.c: New file.
9611
9612         Tests for module 'getsockopt'.
9613         * modules/getsockopt-tests: New file.
9614         * tests/test-getsockopt.c: New file.
9615
9616         Tests for module 'getsockname'.
9617         * modules/getsockname-tests: New file.
9618         * tests/test-getsockname.c: New file.
9619
9620         Tests for module 'getpeername'.
9621         * modules/getpeername-tests: New file.
9622         * tests/test-getpeername.c: New file.
9623
9624         Tests for module 'connect'.
9625         * modules/connect-tests: New file.
9626         * tests/test-connect.c: New file.
9627
9628         Tests for module 'bind'.
9629         * modules/bind-tests: New file.
9630         * tests/test-bind.c: New file.
9631
9632         accept4 tests: Fix for native Windows.
9633         * tests/test-accept4.c: Include sockets.h.
9634         (main): Invoke gl_sockets_startup.
9635         * modules/accept4-tests (Depends-on): Add sockets.
9636
9637         accept tests: Fix for native Windows.
9638         * tests/test-accept.c: Include sockets.h.
9639         (main): Invoke gl_sockets_startup.
9640         * modules/accept-tests (Depends-on): Add sockets.
9641
9642 2011-09-19  Bruno Haible  <bruno@clisp.org>
9643
9644         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9645         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9646         do...while(0).
9647         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9648         Suggested by Paul Eggert.
9649
9650 2011-09-19  Bruno Haible  <bruno@clisp.org>
9651
9652         sched: Ensure pid_t is defined.
9653         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9654         not define pid_t.
9655         * lib/sched.in.h: Include <sys/types.h>.
9656         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9658
9659 2011-09-19  Bruno Haible  <bruno@clisp.org>
9660
9661         msvc-inval: Ensure the entire expansion is a single statement.
9662         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9663         of braces.
9664
9665 2011-09-19  Jim Meyering  <meyering@redhat.com>
9666
9667         tests: use printf, not echo in init.sh's warn_ function
9668         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9669         misbehave when given strings containing a backslash or starting
9670         with e.g., -n.  James Youngman suggested setting IFS.
9671
9672 2011-09-19  Eric Blake  <eblake@redhat.com>
9673
9674         futimens: enhance test
9675         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9676         closed non-negative fd.
9677
9678         date: accept 'hence' as opposite of 'ago'
9679         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9680         * tests/test-parse-datetime.c (main): Enhance test.
9681         Suggested by Jesse Wilson.
9682
9683 2011-09-19  Jim Meyering  <meyering@redhat.com>
9684
9685         getcwd: don't fail in a deep directory on a system without openat
9686         Before this change, getcwd would fail when called from a directory
9687         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9688         the non-openat implementation used "..", "../..", "../../..", etc.
9689         to access ancestor directories.  With too many, that string would
9690         be longer than PATH_MAX.
9691         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9692         using gnulib's openat replacement.
9693         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9694         we're using the replacement function.
9695
9696 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9697
9698         maint.mk: avoid warnings from perl about missing files
9699         * top/maint.mk (def_sym_regex): Ignore files listed in
9700         $(gl_other_headers_) that do not exist, say because a project
9701         does not use a corresponding module.
9702
9703 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         stat: use pathmax.h only if needed
9706         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9707         This is better for Emacs, which does not have a mingw port and
9708         therefore can avoid the pathmax module.
9709
9710         utimens: remove dependency on dup2
9711         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9712         to work around the Linux kernel bug.
9713         * modules/utimens (Depends-on): Remove dup2.
9714
9715 2011-09-18  Bruno Haible  <bruno@clisp.org>
9716
9717         inet_ntop, inet_pton: Look for it also in libresolv.
9718         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9719         libnsl, search for it in libresolv.
9720         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9721         Needed on Solaris 7.
9722
9723 2011-09-18  Bruno Haible  <bruno@clisp.org>
9724
9725         accept, accept4 tests: Avoid link error on Solaris.
9726         * modules/accept-tests (Makefile.am): Link test-accept against
9727         $(LIBSOCKET).
9728         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9729         $(LIBSOCKET).
9730
9731         accept4: Avoid link error on Solaris.
9732         * modules/accept4 (Link): New section.
9733
9734         socket functions: Avoid link errors on Solaris.
9735         * modules/accept (Depends-on): Add socketlib.
9736         (Link): New section.
9737         * modules/bind (Depends-on): Add socketlib.
9738         (Link): New section.
9739         * modules/connect (Depends-on): Add socketlib.
9740         (Link): New section.
9741         * modules/getpeername (Depends-on): Add socketlib.
9742         (Link): New section.
9743         * modules/getsockname (Depends-on): Add socketlib.
9744         (Link): New section.
9745         * modules/getsockopt (Depends-on): Add socketlib.
9746         (Link): New section.
9747         * modules/listen (Depends-on): Add socketlib.
9748         (Link): New section.
9749         * modules/recv (Depends-on): Add socketlib.
9750         (Link): New section.
9751         * modules/recvfrom (Depends-on): Add socketlib.
9752         (Link): New section.
9753         * modules/send (Depends-on): Add socketlib.
9754         (Link): New section.
9755         * modules/sendto (Depends-on): Add socketlib.
9756         (Link): New section.
9757         * modules/setsockopt (Depends-on): Add socketlib.
9758         (Link): New section.
9759         * modules/shutdown (Depends-on): Add socketlib.
9760         (Link): New section.
9761         * modules/socket (Depends-on): Add socketlib.
9762         (Link): New section.
9763
9764 2011-09-18  Bruno Haible  <bruno@clisp.org>
9765
9766         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9767         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9768         than 5 seconds.
9769         * modules/ptsname-tests (configure.ac): Test for alarm.
9770
9771 2011-09-18  Bruno Haible  <bruno@clisp.org>
9772
9773         posix_spawn_file_actions_add*: Fix module dependencies.
9774         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9775         posix_spawn_file_actions_init.
9776         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9777         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9778
9779 2011-09-18  Bruno Haible  <bruno@clisp.org>
9780
9781         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9782         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9783         * tests/test-renameat.c (main): Likewise.
9784
9785 2011-09-18  Bruno Haible  <bruno@clisp.org>
9786
9787         Tests for module 'accept4'.
9788         * modules/accept4-tests: New file.
9789         * tests/test-accept4.c: New file.
9790
9791 2011-09-18  Bruno Haible  <bruno@clisp.org>
9792
9793         Tests for module 'accept'.
9794         * modules/accept-tests: New file.
9795         * tests/test-accept.c: New file.
9796
9797 2011-09-18  Bruno Haible  <bruno@clisp.org>
9798
9799         dup2: Support for MSVC.
9800         * lib/dup2.c: Include msvc-inval.h.
9801         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9802         _get_osfhandle calls.
9803         * modules/dup2 (Depends-on): Add msvc-inval.
9804         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9805
9806         New module 'msvc-inval'.
9807         * lib/msvc-inval.h: New file.
9808         * lib/msvc-inval.c: New file.
9809         * m4/msvc-inval.m4: New file.
9810         * modules/msvc-inval: New file.
9811
9812 2011-09-17  Bruno Haible  <bruno@clisp.org>
9813
9814         Tests for module 'pclose'.
9815         * modules/pclose-tests: New file.
9816
9817         New module 'pclose'.
9818         * lib/stdio.in.h (pclose): New declaration.
9819         * lib/pclose.c: New file.
9820         * m4/pclose.m4: New file.
9821         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9822         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9823         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9824         * modules/pclose: New file.
9825         * modules/popen-tests (Depends-on): Add pclose.
9826         * modules/popen-safer-tests (Depends-on): Likewise.
9827         * doc/posix-functions/pclose.texi: Mention the new module.
9828
9829 2011-09-17  Bruno Haible  <bruno@clisp.org>
9830
9831         popen: Support for MSVC.
9832         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9833         * lib/popen.c (popen): Provide alternate definition for native Windows.
9834         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9836         * modules/popen (Depends-on, configure.ac): Update condition.
9837         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9838         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9839         fixed.
9840
9841 2011-09-17  Bruno Haible  <bruno@clisp.org>
9842
9843         isnanl, isnand, isnanf: Work around MSVC bug.
9844         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9845
9846 2011-09-17  Bruno Haible  <bruno@clisp.org>
9847
9848         sys_socket tests: Fix recent mistake.
9849         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9850
9851 2011-09-17  Bruno Haible  <bruno@clisp.org>
9852
9853         putenv: Support for MSVC.
9854         * modules/putenv (Depends-on): Add environ.
9855         * lib/putenv.c (environ): Disable declaration.
9856         * lib/unistd.in.h: Update comment.
9857
9858 2011-09-17  Bruno Haible  <bruno@clisp.org>
9859
9860         math: Avoid macro redefinition warnings on MSVC.
9861         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9862         Undefine before redefining.
9863
9864 2011-09-17  Bruno Haible  <bruno@clisp.org>
9865
9866         doc: Mention functions which are declared as macros.
9867         * doc/posix-functions/*[fl].texi: Mention that some functions are
9868         defined as macros with arguments only.
9869
9870 2011-09-17  Bruno Haible  <bruno@clisp.org>
9871
9872         Add dependencies to new dirent related modules.
9873         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9874         * modules/fts (Depends-on): Likewise.
9875         * modules/glob (Depends-on): Likewise.
9876         * modules/savedir (Depends-on): Likewise.
9877         * modules/scandir (Depends-on): Likewise.
9878         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9879         * modules/fdopendir (Depends-on): Add opendir.
9880
9881 2011-09-17  Bruno Haible  <bruno@clisp.org>
9882
9883         inet_pton: Support for MSVC on Windows Vista or newer.
9884         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9885         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9886         HAVE_DECL_INET_PTON is defined.
9887         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9888         On platforms with <winsock2.h>, test whether inet_pton is declared in
9889         <ws2tcpip.h>. If so, arrange to replace it.
9890         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9891         REPLACE_INET_PTON.
9892         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9893         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9894         (Depends-on, configure.ac): Update condition.
9895         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9896
9897 2011-09-17  Bruno Haible  <bruno@clisp.org>
9898
9899         inet_ntop: Support for MSVC on Windows Vista or newer.
9900         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9901         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9902         HAVE_DECL_INET_NTOP is defined.
9903         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9904         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9905         <ws2tcpip.h>. If so, arrange to replace it.
9906         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9907         REPLACE_INET_NTOP.
9908         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9909         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9910         (Depends-on, configure.ac): Update condition.
9911         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9912
9913 2011-09-16  Eric Blake  <eblake@redhat.com>
9914
9915         test-fsync: yet another enhancement
9916         * tests/test-fsync.c (main): Also test behavior on read-only text
9917         file.
9918
9919 2011-09-16  Bruno Haible  <bruno@clisp.org>
9920
9921         Enhance fsync, fdatasync tests.
9922         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9923         * tests/test-fdatasync.c (main): Likewise.
9924
9925 2011-09-16  Bruno Haible  <bruno@clisp.org>
9926
9927         Support for MSVC compiler: Ensure mode_t gets defined.
9928         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9929         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9931         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9932         * tests/test-fcntl-h.c: Check that mode_t is defined.
9933         * tests/test-sys_stat.c: Likewise.
9934         * tests/test-sys_types.c: Likewise.
9935         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9936         * doc/posix-headers/sys_stat.texi: Likewise.
9937         * doc/posix-headers/sys_types.texi: Likewise.
9938
9939 2011-09-16  Bruno Haible  <bruno@clisp.org>
9940
9941         sys_stat: Support for MSVC.
9942         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9943         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9944         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9945         MSVC.
9946
9947 2011-09-16  Bruno Haible  <bruno@clisp.org>
9948
9949         Support for MSVC compiler: Ensure off_t gets defined.
9950         * lib/unistd.in.h: Include <sys/types.h>.
9951         * tests/test-fcntl-h.c: Check that off_t is defined.
9952         * tests/test-sys_stat.c: Likewise.
9953         * tests/test-sys_types.c: Likewise.
9954
9955 2011-09-16  Eric Blake  <eblake@redhat.com>
9956
9957         fdatasync: port to Solaris
9958         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9959         * modules/fdatasync (Link): Document it.
9960         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9961
9962         fdatasync: port to MacOS X 10.7
9963         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9964         declared.
9965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9966         * modules/unistd (Makefile.am): Substitute it.
9967         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9968         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9969
9970         fdatasync: minor improvements
9971         * modules/fdatasync (Depends-on): Add condition for fsync.
9972         * lib/fdatasync.c (fdatasync): Add comment.
9973         * tests/test-unistd-c++.cc: Test fdatasync.
9974
9975         unistd: update refs to newer POSIX
9976         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9977         Suggested by Bruno Haible.
9978
9979         fdatasync: new module
9980         * modules/fsync (Description): Document difference to fdatasync.
9981         * modules/fdatasync: New module.
9982         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9983         * lib/fdatasync.c (fdatasync): Likewise.
9984         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9985         defaults.
9986         * modules/unistd (Makefile.am): Set witnesses.
9987         * lib/unistd.in.h (fdatasync): Declare.
9988         * MODULES.html.sh: Document it.
9989         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9990         * modules/fdatasync-tests: New test.
9991         * tests/test-fdatasync.c: Likewise.
9992
9993 2011-09-16  Eric Blake  <eblake@redhat.com>
9994
9995         test-fsync: enhance tests
9996         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9997         * tests/test-fsync.c (main): Enhance test.
9998
9999 2011-09-15  Bruno Haible  <bruno@clisp.org>
10000
10001         Support for MSVC compiler: Ensure ssize_t gets defined.
10002         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10003         * doc/posix-headers/stdio.texi: Likewise.
10004         * modules/stdio (Depends-on): Add ssize_t.
10005         * modules/sys_socket (Depends-on): Likewise.
10006         * modules/sys_types (Depends-on): Likewise.
10007         * modules/sys_uio (Depends-on): Likewise.
10008         * modules/unistd (Depends-on): Likewise.
10009         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10010         * tests/test-sys_types.c: Check that ssize_t is defined.
10011
10012 2011-09-14  Bruno Haible  <bruno@clisp.org>
10013
10014         Avoid using #, the m4 comment starter character, near brackets.
10015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10016         delimiter character in sed expressions.
10017         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10018         Suggested by Eric Blake.
10019
10020         Properly quote AC_CHECK_DECLS' 4th argument.
10021         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10022         argument.
10023         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10024         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10026         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10027         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10028         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10030         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10031         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10032         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10033         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10034         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10035         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10036         * m4/isinf.m4 (gl_ISINF): Likewise.
10037         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10038         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10039         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10040         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10041         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10043         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10044         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10045         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10046         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10047         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10048         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10050         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10052         Reported by Eric Blake.
10053
10054         Properly quote AC_CHECK_DECL's 4th argument.
10055         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10056         argument.
10057         * m4/argp.m4 (gl_ARGP): Likewise.
10058         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10059         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10060         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10061         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10062         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10063         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10065         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10066         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10067         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10068         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10069         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10070         Reported by Eric Blake.
10071
10072 2011-09-14  Eric Blake  <eblake@redhat.com>
10073
10074         opendir: avoid compile warning
10075         * lib/opendir.c (includes): Always include errno.h.
10076         Reported by Tatsuro MATSUOKA.
10077
10078 2011-09-14  Jim Meyering  <meyering@redhat.com>
10079
10080         maint.mk: sc_tight_scope: propagate failure from sub-make
10081         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10082         Reported by Martin von Gagern.
10083
10084 2011-09-13  Bruno Haible  <bruno@clisp.org>
10085
10086         tempname: Support for MSVC.
10087         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10088         MSVC.
10089         * modules/tempname (Depends-on): Add fcntl-h.
10090
10091 2011-09-13  Bruno Haible  <bruno@clisp.org>
10092
10093         sys_time: Support for MSVC.
10094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10095         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10096         include <winsock2.h>.
10097         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10098         function declarations that collide with POSIX.
10099         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10100         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10101
10102 2011-09-13  Bruno Haible  <bruno@clisp.org>
10103
10104         stat: Support for MSVC.
10105         * lib/stat.c: Include pathmax.h.
10106         * modules/stat (Depends-on): Add pathmax.
10107
10108         pathmax: Support for native Windows.
10109         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10110
10111 2011-09-12  Bruno Haible  <bruno@clisp.org>
10112
10113         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10114         * lib/dirent.in.h (struct dirent): New type.
10115         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10116         DT_WHT): New macros.
10117         (DIR): New type.
10118         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10119         (readdir, rewinddir): New declarations.
10120         * lib/dirent-private.h: New file.
10121         * lib/opendir.c: New file.
10122         * lib/readdir.c: New file.
10123         * lib/rewinddir.c: New file.
10124         * lib/closedir.c: New file.
10125         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10126         * m4/opendir.m4: New file.
10127         * m4/readdir.m4: New file.
10128         * m4/rewinddir.m4: New file.
10129         * m4/closedir.m4: New file.
10130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10131         REPLACE_CLOSEDIR here.
10132         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10133         readdir, rewinddir are declared.
10134         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10135         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10136         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10137         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10138         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10139         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10140         * modules/opendir: New file.
10141         * modules/readdir: New file.
10142         * modules/rewinddir: New file.
10143         * modules/closedir: New file.
10144         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10145         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10146         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10147         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10148         * NEWS: Mention the 'fchdir' change.
10149
10150 2011-09-11  Bruno Haible  <bruno@clisp.org>
10151
10152         asm-underscore.m4: Support for MSVC.
10153         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10154         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10155
10156 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10157
10158         Doc about crypt functions.
10159         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10160         needing for _GNU_SOURCE to get crypt.
10161         * doc/posix-functions/encrypt.texi: Likewise.
10162         * doc/posix-functions/setkey.texi: Likewise.
10163
10164 2011-09-11  Bruno Haible  <bruno@clisp.org>
10165
10166         doc: Update regarding MSVC 9.
10167         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10168         tested".
10169         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10170         * doc/posix-headers/*.texi: Likewise.
10171         * doc/pastposix-functions/*.texi: Likewise.
10172         * doc/glibc-functions/*.texi: Likewise.
10173         * doc/glibc-headers/*.texi: Likewise.
10174
10175 2011-09-11  Bruno Haible  <bruno@clisp.org>
10176
10177         unistd et al.: Don't assume <unistd.h> exists.
10178         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10179         does not exist.
10180         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10181         exist. But include <stdlib.h>.
10182         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10183         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10184         symlink() does not exist.
10185         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10186         include <io.h> instead.
10187         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10188         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10189         include <direct.h> instead.
10190         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10192         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10193         <io.h> instead.
10194         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10195         correctly if the system does not have hard links.
10196         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10197         <direct.h> instead.
10198         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10199         it when looking for function declarations.
10200         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10201         <direct.h> and <io.h> instead.
10202         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10203
10204 2011-09-11  Bruno Haible  <bruno@clisp.org>
10205
10206         strcase: Support for MSVC.
10207         * modules/strcase (Status, Notice): Remove obsoletion mark.
10208         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10209         * doc/posix-functions/strncasecmp.texi: Likewise.
10210
10211         strings: Don't assume <strings.h> exists.
10212         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10213         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10214         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10215         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10216
10217 2011-09-11  Bruno Haible  <bruno@clisp.org>
10218
10219         dirent: Don't assume <dirent.h> exists.
10220         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10221         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10222         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10223         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10224
10225 2011-09-11  Bruno Haible  <bruno@clisp.org>
10226
10227         Fix wint_t on MSVC.
10228         * lib/wchar.in.h (wint_t): On MSVC, override it.
10229         * lib/wctype.in.h (wint_t): Likewise.
10230         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10231         MSVC.
10232         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10233         * doc/posix-headers/wctype.texi: Likewise.
10234
10235 2011-09-11  Bruno Haible  <bruno@clisp.org>
10236
10237         sys_types: Fix typo.
10238         * lib/sys_types.in.h: Fix typo in comment.
10239         Reported by Paul Eggert.
10240
10241         Support for MSVC compiler: Ensure size_t gets defined.
10242         * modules/strings (Depends-on): Add 'sys_types'.
10243         * modules/sys_uio (Depends-on): Likewise.
10244         * lib/sys_uio.in.h: Update comment.
10245
10246         C++ tests for module 'sys_types'.
10247         * modules/sys_types-c++-tests: New file.
10248         * tests/test-sys_types-c++.cc: New file.
10249
10250         Tests for module 'sys_types'.
10251         * modules/sys_types-tests: New file.
10252         * tests/test-sys_types.c: New file.
10253
10254         New module 'sys_types'.
10255         * lib/sys_types.in.h: New file.
10256         * m4/sys_types_h.m4: New file.
10257         * modules/sys_types: New file.
10258         * doc/posix-headers/sys_types.texi: Mention the new module and the
10259         size_t problem on MSVC 9.
10260
10261 2011-09-11  Bruno Haible  <bruno@clisp.org>
10262
10263         Support for MSVC compiler: Avoid division by a literal 0.
10264         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10265         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10266         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10267         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10268         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10269         * tests/infinity.h: New file.
10270         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10271         on MSVC.
10272         * tests/test-ceilf1.c: Include infinity.h.
10273         (main): Use Infinityf.
10274         * tests/test-ceil1.c: Include infinity.h.
10275         (main): Use Infinityd.
10276         * tests/test-ceill.c: Include infinity.h.
10277         (main): Use Infinityl.
10278         * tests/test-dprintf-posix.c: Include infinity.h.
10279         (test_function): Use Infinityd.
10280         * tests/test-floorf1.c: Include infinity.h.
10281         (main): Use Infinityf.
10282         * tests/test-floor1.c: Include infinity.h.
10283         (main): Use Infinityd.
10284         * tests/test-floorl.c: Include infinity.h.
10285         (main): Use Infinityl.
10286         * tests/test-fprintf-posix.c: Include infinity.h.
10287         (test_function): Use Infinityd.
10288         * tests/test-frexp.c: Include infinity.h.
10289         (main): Use Infinityd.
10290         * tests/test-frexpl.c: Include infinity.h.
10291         (main): Use Infinityl.
10292         * tests/test-isfinite.c: Include infinity.h.
10293         (test_isfinitef): Use Infinityf.
10294         (test_isfinited): Use Infinityd.
10295         (test_isfinitel): Use Infinityl.
10296         * tests/test-isinf.c: Include infinity.h.
10297         (test_isinff): Use Infinityf.
10298         (test_isinfd): Use Infinityd.
10299         (test_isinfl): Use Infinityl.
10300         * tests/test-isnan.c: Include infinity.h.
10301         (test_float): Use Infinityf.
10302         (test_double): Use Infinityd.
10303         (test_long_double): Use Infinityl.
10304         * tests/test-isnanf.h: Include infinity.h.
10305         (main): Use Infinityf.
10306         * tests/test-isnand.h: Include infinity.h.
10307         (main): Use Infinityd.
10308         * tests/test-isnanl.h: Include infinity.h.
10309         (main): Use Infinityl.
10310         * tests/test-ldexpl.c: Include infinity.h.
10311         (main): Use Infinityl.
10312         * tests/test-printf-posix.h: Include infinity.h.
10313         (test_function): Use Infinityd.
10314         * tests/test-roundf1.c: Include infinity.h.
10315         (main): Use Infinityf.
10316         * tests/test-round1.c: Include infinity.h.
10317         (main): Use Infinityd.
10318         * tests/test-roundl.c: Include infinity.h.
10319         (main): Use Infinityl.
10320         * tests/test-signbit.c: Include infinity.h.
10321         (test_signbitf): Use Infinityf.
10322         (test_signbitd): Use Infinityd.
10323         (test_signbitl): Use Infinityl.
10324         * tests/test-snprintf-posix.h: Include infinity.h.
10325         (test_function): Use Infinityd, Infinityl.
10326         * tests/test-sprintf-posix.h: Include infinity.h.
10327         (test_function): Use Infinityd, Infinityl.
10328         * tests/test-truncf1.c: Include infinity.h.
10329         (main): Use Infinityf.
10330         * tests/test-trunc1.c: Include infinity.h.
10331         (main): Use Infinityd.
10332         * tests/test-truncl.c: Include infinity.h.
10333         (main): Use Infinityl.
10334         * tests/test-vasnprintf-posix.c: Include infinity.h.
10335         (test_function): Use Infinityd, Infinityl.
10336         * tests/test-vasprintf-posix.c: Include infinity.h.
10337         (test_function): Use Infinityd, Infinityl.
10338         * modules/ceilf-tests (Files): Add tests/infinity.h.
10339         * modules/ceil-tests (Files): Likewise.
10340         * modules/ceill-tests (Files): Likewise.
10341         * modules/dprintf-posix-tests (Files): Likewise.
10342         * modules/floorf-tests (Files): Likewise.
10343         * modules/floor-tests (Files): Likewise.
10344         * modules/floorl-tests (Files): Likewise.
10345         * modules/fprintf-posix-tests (Files): Likewise.
10346         * modules/frexp-tests (Files): Likewise.
10347         * modules/frexp-nolibm-tests (Files): Likewise.
10348         * modules/frexpl-tests (Files): Likewise.
10349         * modules/frexpl-nolibm-tests (Files): Likewise.
10350         * modules/isfinite-tests (Files): Likewise.
10351         * modules/isinf-tests (Files): Likewise.
10352         * modules/isnan-tests (Files): Likewise.
10353         * modules/isnanf-tests (Files): Likewise.
10354         * modules/isnanf-nolibm-tests (Files): Likewise.
10355         * modules/isnand-tests (Files): Likewise.
10356         * modules/isnand-nolibm-tests (Files): Likewise.
10357         * modules/isnanl-tests (Files): Likewise.
10358         * modules/isnanl-nolibm-tests (Files): Likewise.
10359         * modules/ldexpl-tests (Files): Likewise.
10360         * modules/printf-posix-tests (Files): Likewise.
10361         * modules/roundf-tests (Files): Likewise.
10362         * modules/round-tests (Files): Likewise.
10363         * modules/roundl-tests (Files): Likewise.
10364         * modules/signbit-tests (Files): Likewise.
10365         * modules/snprintf-posix-tests (Files): Likewise.
10366         * modules/sprintf-posix-tests (Files): Likewise.
10367         * modules/truncf-tests (Files): Likewise.
10368         * modules/trunc-tests (Files): Likewise.
10369         * modules/truncl-tests (Files): Likewise.
10370         * modules/vasnprintf-posix-tests (Files): Likewise.
10371         * modules/vasprintf-posix-tests (Files): Likewise.
10372         * modules/vdprintf-posix-tests (Files): Likewise.
10373         * modules/vfprintf-posix-tests (Files): Likewise.
10374         * modules/vprintf-posix-tests (Files): Likewise.
10375         * modules/vsnprintf-posix-tests (Files): Likewise.
10376         * modules/vsprintf-posix-tests (Files): Likewise.
10377         * modules/xprintf-posix-tests (Files): Likewise.
10378
10379 2011-09-11  Bruno Haible  <bruno@clisp.org>
10380
10381         Ensure pid_t gets defined.
10382         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10383         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10384         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10385         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10386         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10387         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10388         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10389         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10390         * tests/test-fcntl-h.c: Check that pid_t is defined.
10391         * tests/test-sched.c: Likewise.
10392         * tests/test-termios.c: Likewise.
10393         * tests/test-time.c: Likewise.
10394         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10395         * doc/posix-headers/signal.texi: Likewise.
10396         * doc/posix-headers/sys_types.texi: Likewise.
10397         * doc/posix-headers/time.texi: Likewise.
10398
10399 2011-09-11  Bruno Haible  <bruno@clisp.org>
10400
10401         acl: Fix compilation on Solaris 10 (older version).
10402         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10403         of ACE_EVERYONE.
10404         * lib/set-mode-acl.c (qset_acl): Likewise.
10405         Reported by Christian Jullien <eligis@orange.fr>.
10406
10407 2011-09-10  Bruno Haible  <bruno@clisp.org>
10408
10409         iconv, unsetenv: Add support for MSVC compiler.
10410         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10411         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10412
10413 2011-09-10  Bruno Haible  <bruno@clisp.org>
10414
10415         *printf: Add support for MSVC compiler.
10416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10417         handles the exception caused by the %n directive. When cross-compiling,
10418         guess no on native Windows.
10419         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10420         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10421         emulate it through vsnprintf.
10422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10423         * doc/posix-functions/dprintf.texi: Update documentation regarding
10424         MSVC 9.
10425         * doc/posix-functions/fprintf.texi: Likewise.
10426         * doc/posix-functions/printf.texi: Likewise.
10427         * doc/posix-functions/snprintf.texi: Likewise.
10428         * doc/posix-functions/sprintf.texi: Likewise.
10429         * doc/posix-functions/swprintf.texi: Likewise.
10430         * doc/posix-functions/vdprintf.texi: Likewise.
10431         * doc/posix-functions/vfprintf.texi: Likewise.
10432         * doc/posix-functions/vprintf.texi: Likewise.
10433         * doc/posix-functions/vsnprintf.texi: Likewise.
10434         * doc/posix-functions/vsprintf.texi: Likewise.
10435         * doc/glibc-functions/asprintf.texi: Likewise.
10436         * doc/glibc-functions/obstack_printf.texi: Likewise.
10437         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10438         * doc/glibc-functions/vasprintf.texi: Likewise.
10439
10440 2011-09-10  Bruno Haible  <bruno@clisp.org>
10441
10442         nocrash: Add support for native Windows.
10443         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10444
10445 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10446             Bruno Haible  <bruno@clisp.org>
10447
10448         absolute-header, include-next: Add support for MSVC compiler.
10449         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10450         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10451         directory separator in #line directives.
10452         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10453         recognize also backslash as directory separator in #line directives.
10454
10455 2011-09-08  Jim Meyering  <meyering@redhat.com>
10456
10457         maint.mk: mark the post-release commit log with "maint: " prefix
10458         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10459         one-line commit-log summary.
10460
10461 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10462             Bruno Haible  <bruno@clisp.org>
10463
10464         Doc about crypt functions.
10465         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10466         systems.
10467         * doc/posix-functions/encrypt.texi: Likewise.
10468         * doc/posix-functions/setkey.texi: Likewise.
10469
10470 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10471
10472         * lib/gc.h: Fix copyright header.
10473
10474 2011-09-07  Bruno Haible  <bruno@clisp.org>
10475
10476         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10477         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10478         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10479
10480 2011-09-07  Bruno Haible  <bruno@clisp.org>
10481
10482         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10483         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10484         * lib/freopen.c: Likewise.
10485         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10486         * lib/lstat.c: Likewise.
10487         * lib/stat.c: Likewise.
10488         * lib/open.c: Use different syntax for include of <fcntl.h>.
10489         * lib/openat.c: Include fcntl.h again, explicitly.
10490
10491 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10492
10493         parse-datetime: document the newly accepted format
10494         * doc/parse-datetime.texi (Combined date and time of day items):
10495         New section.
10496
10497 2011-09-06  Bruno Haible  <bruno@clisp.org>
10498
10499         acl: Fix a test failure on newer Solaris 10 with ZFS.
10500         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10501         ENOSYS as no ACL.
10502         Reported by Jim Meyering.
10503
10504 2011-09-06  Bruno Haible  <bruno@clisp.org>
10505
10506         acl: Update for AIX >= 5.3 with NFS.
10507         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10508         ENOSYS as no ACL.
10509
10510         acl: Fix a test failure on AIX >= 5.3 with NFS.
10511         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10512         as no ACL.
10513
10514 2011-09-06  Bruno Haible  <bruno@clisp.org>
10515
10516         acl: Fix a test failure on IRIX 6.5 with NFS.
10517         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10518         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10519         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10520         * lib/copy-acl.c (qcopy_acl): Likewise.
10521
10522 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10523
10524         openat: port to AIX 7.1 with large files
10525         AIX 7.1 does a "#define openat open64at" if large files are in use,
10526         so we can't simply #undef openat.  Use the orig_openat trick (similar
10527         to orig_open in lib/open.c) to work around the problem.  Problem
10528         reported by Kevin Brott for GNU tar, in the thread containing
10529         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10530         * lib/openat.c (__need_system_fcntl_h): Define first.
10531         Include <fcntl.h> and <sys/types.h> before undefining.
10532         (orig_openat) [HAVE_OPENAT]: New inline function.
10533         (openat) [HAVE_OPENAT]: Do not undef.
10534         (rpl_openat): Use orig_openat, not openat.
10535
10536 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         acl: Avoid errors on NonStop Kernel.
10540         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10541         ENOTSUP errors.
10542
10543 2011-09-05  Bruno Haible  <bruno@clisp.org>
10544
10545         acl: Clean up Solaris code.
10546         * lib/acl-internal.h: Remove no-op #if.
10547         * lib/file-has-acl.c: Likewise.
10548         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10549         * lib/copy-acl.c (qcopy_acl): Likewise.
10550
10551 2011-09-05  Bruno Haible  <bruno@clisp.org>
10552
10553         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10554         binaries built on the original Solaris 10.
10555         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10556         trivial.
10557
10558 2011-09-05  Bruno Haible  <bruno@clisp.org>
10559
10560         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10561         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10562         10.
10563         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10564         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10565         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10566         instead of acl_get, facl_get, acl_set, facl_set.
10567
10568 2011-09-05  Bruno Haible  <bruno@clisp.org>
10569
10570         copy-file: Try unit tests on more file systems.
10571         * tests/test-copy-file-1.sh: New file.
10572         * tests/test-copy-file-2.sh: New file.
10573         * modules/copy-file-tests (Files): Add them.
10574         (Makefile.am): Add them to TESTS.
10575
10576         acl: Try unit tests on more file systems.
10577         * tests/test-file-has-acl-1.sh: New file.
10578         * tests/test-file-has-acl-2.sh: New file.
10579         * tests/test-set-mode-acl-1.sh: New file.
10580         * tests/test-set-mode-acl-2.sh: New file.
10581         * tests/test-copy-acl-1.sh: New file.
10582         * tests/test-copy-acl-2.sh: New file.
10583         * modules/acl-tests (Files): Add them.
10584         (Makefile.am): Add them to TESTS.
10585
10586 2011-09-04  Bruno Haible  <bruno@clisp.org>
10587
10588         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10589         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10590         10.
10591         (OLD_ALLOW, OLD_DENY): New macros.
10592         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10593         ACE_ACCESS_ALLOWED_ACE_TYPE.
10594         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10595         ACE_ACCESS_DENIED_ACE_TYPE.
10596         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10597         (NEW_ACE_EXECUTE): Fix value.
10598         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10599         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10600         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10601         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10602         NEW_ACE_SYNCHRONIZE): New macros.
10603         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10604         instead of acl_fromtext, acl_set, facl_set.
10605         Fixes a coreutils/tests/cp/perm failure.
10606
10607 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         openat: test for fstatat (..., 0) bug
10610         Further testing with tar suggests that fstatat (..., 0)
10611         does not work in general, on AIX 7.1; see
10612         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10613         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10614         replacement fstatat (which is what older AIX releases were using
10615         anyway).
10616         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10617         use is now changed to orig_fstatat.  This was probably the right
10618         thing to do anyway.
10619         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10620         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10621         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10622         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10623         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10624         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10625         if the bug is found.
10626
10627         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10628         This tests for another fstatat bug on AIX 7.1:
10629         fstatat (AT_FDCWD, ..., 0) does not work.  See
10630         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10631         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10632         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10633         (rpl_fstatat): Adjust so that it works around either (or both)
10634         bugs if present.
10635         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10636
10637 2011-09-03  Karl Berry  <karl@gnu.org>
10638
10639         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10640         in index entries.
10641
10642 2011-09-02  Bruno Haible  <bruno@clisp.org>
10643
10644         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10645         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10646         values of AR, ARFLAGS, RANLIB.
10647         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10648
10649 2011-09-02  Bruno Haible  <bruno@clisp.org>
10650
10651         Find 'ar' program that fits with --host argument.
10652         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10653
10654 2011-09-02  Bruno Haible  <bruno@clisp.org>
10655
10656         tests: init.sh: Support any non-GNU diff.
10657         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10658         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10659         Solaris 8.
10660
10661 2011-09-02  Bruno Haible  <bruno@clisp.org>
10662
10663         tests: init.sh: work also with any non-GNU diff that supports -u
10664         * tests/init.sh: Relax check for diff -u support.
10665         Rather than checking for GNU diff via --version, simply check
10666         for support for -u itself.  Useful at least on OpenBSD 4.9,
10667         AIX 7.1, IRIX 6.5, and Solaris 10.
10668
10669 2011-09-01  Bruno Haible  <bruno@clisp.org>
10670
10671         strtoimax, strtoumax: Document problem on HP-UX 11.
10672         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10673         * doc/posix-functions/strtoumax.texi: Likewise.
10674
10675 2011-09-01  Bruno Haible  <bruno@clisp.org>
10676
10677         strtoumax: Avoid link error on OSF/1 with DTK cc.
10678         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10679         defined as a function.
10680         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10681         strtoumax is defined, not whether it is declared.
10682
10683 2011-09-01  Bruno Haible  <bruno@clisp.org>
10684
10685         strtoimax: Avoid link error on OSF/1 with DTK cc.
10686         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10687         defined as a function.
10688         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10689         strtoimax is defined, not whether it is declared.
10690
10691 2011-09-01  Bruno Haible  <bruno@clisp.org>
10692
10693         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10694         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10695         as a function.
10696         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10697         whether it is declared.
10698
10699 2011-09-01  Bruno Haible  <bruno@clisp.org>
10700
10701         imaxabs: Avoid link error on OSF/1 with DTK cc.
10702         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10703         as a function.
10704         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10705         whether it is declared.
10706
10707 2011-09-01  Bruno Haible  <bruno@clisp.org>
10708
10709         Tests for module 'strtoumax'.
10710         * modules/strtoumax-tests: New file.
10711         * tests/test-strtoumax.c: New file.
10712
10713         Tests for module 'strtoimax'.
10714         * modules/strtoimax-tests: New file.
10715         * tests/test-strtoimax.c: New file.
10716
10717         Tests for module 'imaxdiv'.
10718         * modules/imaxdiv-tests: New file.
10719         * tests/test-imaxdiv.c: New file.
10720
10721         Tests for module 'imaxabs'.
10722         * modules/imaxabs-tests: New file.
10723         * tests/test-imaxabs.c: New file.
10724
10725 2011-09-01  Bruno Haible  <bruno@clisp.org>
10726
10727         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10728         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10729         pthread_create.
10730
10731 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10732
10733         openat: work around AIX 7.1 fstatat issue
10734         This should fix the problem that was not properly fixed
10735         in the previous change, dated 2011-08-30.
10736         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10737         __need_system_stat_h defined.
10738         (orig_fstatat) [HAVE_FSTATAT]: New function.
10739         (rpl_fstatat): Go back to the old way of doing things,
10740         except call orig_fstatat instead of fstatat.
10741         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10742         Remove unnecessary check whether fstatat fills in st_size etc.
10743
10744 2011-09-01  Bruno Haible  <bruno@clisp.org>
10745
10746         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10747         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10748         just include the system's header.
10749
10750 2011-08-31  Jim Meyering  <meyering@redhat.com>
10751
10752         tests: avoid spurious assertion failure in test-float.c on ppc64
10753         * tests/test-float.c (test_long_double): Comment out an assertion,
10754         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10755         with gcc-4.4.4.
10756
10757         maint: indent with spaces, not TABs
10758         I need to get in the habit of running gnulib's "make check".
10759         Both of these would have been caught.
10760         * m4/largefile.m4: Indent with spaces, not TABs.
10761         * lib/parse-datetime.y (iso_8601_time): Likewise.
10762         Spotted by Pádraig Brady.
10763
10764         test-parse-datetime.c: accommodate a relatively strict gcc warning
10765         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10766         to avoid a warning from gcc's -Werror=missing-declarations.
10767         Insert a few spaces-before-funcall-parenthesis.
10768
10769 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10770
10771         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10772         The parser now accepts ISO 8601 date-time strings with "T" as the
10773         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10774         with a space between the date and time strings.  Now it also parses
10775         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10776         variants like "2004-02-29T16:21:42.333-07:00"
10777         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10778         of day representation using the 'T' separator character.
10779         * doc/parse-datetime.texi (General date syntax): replace use of
10780         deprecated --iso-8601 option with --rfc-3339 in example of date
10781         command output formats that can be parsed.
10782         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10783         lib/parse-datetime.y.
10784         (gmt_offset): New function.
10785         (main): Add additional test cases to validate ISO8601 extended
10786         date and time of day parsing.
10787
10788 2011-08-31  Bruno Haible  <bruno@clisp.org>
10789
10790         freopen: Documentation.
10791         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10792         name.
10793         Reported by Claudio Bley <claudio.bley@gmail.com>.
10794
10795 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10796
10797         freopen: Don't crash if the filename argument is NULL.
10798         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10799         NULL.
10800
10801 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10802
10803         openat: work around AIX 7.1 fstatat bug
10804         Problem reported by Kevin Brott for GNU tar, in the thread containing
10805         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10806         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10807         FSTATAT_ST_SIZE_ETC_BROKEN.
10808         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10809         rpl_fstatat.
10810         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10811         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10812         AC_CHECK_FUNCS_ONCE for fstatat.
10813         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10814         fchmodat, mkdirat, openat and unlinkat.
10815
10816 2011-08-30  Bruno Haible  <bruno@clisp.org>
10817
10818         Avoid endless recursions if config.h includes some header files.
10819         * lib/fopen.c (__need_FILE): Define already before including config.h.
10820         * lib/freopen.c (__need_FILE): Likewise.
10821         * lib/open.c (__need_system_fcntl_h): Likewise.
10822         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10823         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10824         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10825
10826 2011-08-25  Karl Berry  <karl@gnu.org>
10827
10828         * config/srclist.txt (ylwrap): new try.
10829         * build-aux/ylwrap: new file.
10830
10831 2011-08-23  Bruno Haible  <bruno@clisp.org>
10832
10833         tmpdir: Use a good default directory on native Windows.
10834         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10835         (P_tmpdir): Default to _P_tmpdir on native Windows.
10836         (path_search): On native Windows, try the value returned by GetTempPath
10837         before trying P_tmpdir.
10838         * modules/tmpdir (Depends-on): Add pathmax.
10839         Suggested by John Darrington <john@darrington.wattle.id.au>.
10840
10841 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10842
10843         doc: fix typo in README-release
10844         * top/README-release: Capitalize first word of a sentence.
10845
10846 2011-08-19  Jim Meyering  <meyering@redhat.com>
10847
10848         fts: do not exhaust memory when processing million-entry directories
10849         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10850         directory would require about 256*N bytes of memory.  Thus, it was
10851         easy to construct a directory too large to be processed by any of
10852         those tools.  With this change, fts' maximum memory utilization is
10853         now limited to around 30MB.
10854         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10855         (fts_read): When we've processed the final entry (i.e., when
10856         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10857         using the parent entry to read any remaining entries.  Dispatch
10858         depending on what fts_build returns:
10859         - NULL+stop, aka failure: stop
10860         - NULL otherwise: move up in the dir hierarchy
10861         - non-NULL: handle this new entry
10862         (fts_build): Declare and use new local, continue_readdir.
10863         Prepare to be called from fts_read, when the entries
10864         from a partially-read directory have just been exhausted.
10865         In that case, we'll skip the opendir and instead use the parent's
10866         fts_dirp and derive dir_fd from that.
10867         Finally, in the readdir loop, if we read max_entries entries,
10868         exit the loop ensuring *not* to call closedir.  This is required
10869         so that fts_dirp can be reused on a subsequent call.
10870         Prompted by Ben England's report of memory exhaustion in find
10871         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10872
10873         maint: fts: move decl of `dp' down into while loop; split a long line
10874         * lib/fts.c (fts_build): No semantic change.
10875
10876         fts: add/use new struct member, fts_dirp
10877         We are about to use this to manage any directory with
10878         too many entries to read all of them into memory at once.
10879         To do that, we'll need to save the DIR* pointer in each
10880         affected FTSENT struct.
10881         * lib/fts_.h: Include <dirent.h>.
10882         (struct FTSENT) [fts_dirp]: New member.
10883         * lib/fts.c (closedir_and_clear): Define.
10884         Use it in place of closedir so that we are sure to
10885         clear the new fts_dirp member when done with it.
10886         (fts_alloc): Initialize the new member.
10887         (fts_lfree): Free, if needed.
10888
10889         maint: fts: give __opendir2 a new parameter and rename
10890         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10891         than surreptitiously using sole caller's "dir_fd".
10892         (fts_opendir): Rename from __opendir2.
10893
10894         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10895         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10896
10897         maint: fts.c: correct off-by-one indentation
10898         * lib/fts.c (fts_build): Correct indentation, change style
10899         of a couple of block comments, and bracing style.
10900
10901         maint: fts.c: move __opendir2 #define "up" out of function body
10902         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10903
10904         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10905         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10906         out for a long time and besides was useful only on BSD systems.
10907
10908 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         regex: port to Stratus OpenVOS
10911         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10912         define to empty, rather than attempting nonportable optimizations.
10913         Problem reported by Paul Green in:
10914         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10915         and fix suggested by Eric Blake in:
10916         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10917
10918 2011-08-17  Eric Blake  <eblake@redhat.com>
10919
10920         getcwd: fix test failures on mingw
10921         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10922         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10923         test if long directory cannot be created, and allow mingw errno.
10924
10925         getcwd-lgpl: fix m4 to match relaxed test for BSD
10926         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10927         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10928         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10929         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10930         signature problem.
10931
10932         getcwd: fix compilation on mingw64
10933         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10934         getcwd.
10935         Reported by Marc-André Lureau.
10936
10937         pipe2: silence compiler warning
10938         * lib/pipe2.c (pipe2): Hide label if it is not used.
10939
10940 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10941
10942         relocatable-prog: fix link error
10943         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10944         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10945         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10946         into modules/relocatable-lib without noticing that
10947         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10948         also needs to build relocatable.c.
10949
10950 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10951
10952         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10954         shell code: it contained a 'break' that was not in a loop.
10955         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10956         via a shell-language loop; this may have been true in old Autoconf
10957         versions, but it's not true in Autoconf 2.68.  I found this bug
10958         when testing coreutils git on Solaris 8, whose shell complains
10959         about the syntax error.
10960
10961 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10962
10963         * lib/base64.c: Fix comment to reference RFC 4648.
10964         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10965         <gvtulder@gmail.com>.
10966
10967 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10968
10969         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10970
10971         po/Makefile.in.in: fix make -q problem
10972         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10973         rule, since there's no file named 'check-macro-version' and its
10974         use as a file breaks make -q.
10975         (all): Don't depend on check-macro-version.
10976         (CHECK_MACRO_VERSION): New macro.
10977         (stamp-po): Use it.
10978
10979         configmake: fix make -q problem
10980         * modules/configmake (configmake.h): Update configmake.h's time stamp
10981         even if the file does not change.  Otherwise, 'make -q' fails.
10982         Problem reported by Simon Josefsson in
10983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10984
10985 2011-08-11  Jim Meyering  <meyering@redhat.com>
10986
10987         git-version-gen: correct the advice in a comment
10988         * build-aux/git-version-gen: Correct comment.
10989         Don't recommend to list .tarball-version in .gitignore.
10990
10991 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10992
10993         base64: fix off-by-one buffer size bug
10994         Problem and (trivial) fix reported by Gijs van Tulder in
10995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10996         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10997         * tests/test-base64.c (main): Catch the bug.
10998
10999 2011-08-10  Eric Blake  <eblake@redhat.com>
11000
11001         closein: correct comments
11002         * lib/closein.c (close_stdin): Improve comments.
11003
11004 2011-08-09  Bruno Haible  <bruno@clisp.org>
11005
11006         More tests for 'fseeko'.
11007         * tests/test-fseeko3.c: New file, from Eric Blake.
11008         * tests/test-fseeko3.sh: New file.
11009         * modules/fseeko-tests (Files): Add them.
11010         (TESTS): Add test-fseeko3.sh.
11011         (check_PROGRAMS): Add test-fseeko3.
11012
11013 2011-08-09  Eric Blake  <eblake@redhat.com>
11014
11015         fseeko: remove unneeded hack
11016         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11017
11018         fseeko: fix bug on glibc
11019         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11020         Reported by John W. Eaton.
11021
11022 2011-08-08  Bruno Haible  <bruno@clisp.org>
11023
11024         unictype/base: Fix interoperability with preinstalled libunistring.
11025         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11026         Reported by Simon Josefsson.
11027
11028 2011-08-08  Bruno Haible  <bruno@clisp.org>
11029
11030         iswblank: Detect declaration correctly.
11031         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11032         AC_CHECK_DECLS invocation.
11033
11034 2011-08-08  Bruno Haible  <bruno@clisp.org>
11035
11036         tcgetsid: Detect declaration correctly.
11037         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11038         AC_CHECK_DECLS invocation.
11039         Reported by Simon Josefsson.
11040
11041 2011-08-08  Eric Blake  <eblake@redhat.com>
11042
11043         largefile: fix typo that regressed large file support
11044         * modules/largefile (configure.ac-early): Fix section name.
11045
11046 2011-08-06  Karl Berry  <karl@gnu.org>
11047
11048         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11049         a separate module.
11050
11051 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11052
11053         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11054         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11055         get prototype for free.
11056
11057 2011-08-04  Bruno Haible  <bruno@clisp.org>
11058
11059         Tests for module 'pathmax'.
11060         * modules/pathmax-tests: New file.
11061         * tests/test-pathmax.c: New file.
11062
11063         canonicalize-lgpl: Support larger filenames on the Hurd.
11064         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11065         Reported by Paul Eggert.
11066
11067         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11068         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11069         * lib/chdir-long.h: Include pathmax.h.
11070         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11071         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11072         (PATH_MAX): Remove code that is done by pathmax.h.
11073         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11074         * lib/tmpfile.c: Add a comment.
11075         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11076         * modules/chdir-long (Depends-on): Add pathmax.
11077         * modules/getcwd (Depends-on): Add pathmax.
11078         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11079         is not defined.
11080         * doc/posix-headers/limits.texi: Mention the pathmax module.
11081         * NEWS: Mention the change.
11082
11083 2011-08-02  Bruno Haible  <bruno@clisp.org>
11084
11085         pthread_sigmask: Actually use results of gl_THREADLIB.
11086         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11087         gl_THREADLIB, not gl_[]THREADLIB.
11088         Reported by Eric Blake.
11089
11090 2011-08-02  Jim Meyering  <meyering@redhat.com>
11091
11092         maint.mk: relax the default _gl_TS_function_match regexp
11093         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11094         space between function name and "(" in an "extern" declaration.
11095         That would fail to match a decl with no space there: extern void foo();
11096
11097 2011-07-31  Iain Nicol  <iain@thenicols.net>
11098
11099         git-version-gen: document that EXTRA_DIST must include .version
11100         * build-aux/git-version-gen: In the how-to-use comment, document
11101         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11102         will fail when run from an unpacked distribution tarball.
11103
11104 2011-08-01  Bruno Haible  <bruno@clisp.org>
11105
11106         wctype-h: Fix last change.
11107         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11108         REPLACE_TOWLOWER to 0.
11109         Reported by Sam Steingold <sds@gnu.org>.
11110
11111 2011-07-31  Bruno Haible  <bruno@clisp.org>
11112
11113         frexpl: Update autoconf test.
11114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11115         according to changes of 2011-06-20.
11116
11117 2011-07-31  Bruno Haible  <bruno@clisp.org>
11118
11119         sys_utsname: Add support for Minix.
11120         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11121         <sys/utsname.h>.
11122         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11123         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11124
11125 2011-07-31  Bruno Haible  <bruno@clisp.org>
11126
11127         strings: Add support for Minix.
11128         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11129         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11130         * doc/posix-headers/strings.texi: Document the Minix problem.
11131
11132 2011-07-31  Bruno Haible  <bruno@clisp.org>
11133
11134         wctype-h: Add support for Minix.
11135         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11136         REPLACE_TOWLOWER.
11137         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11138         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11139         REPLACE_ISWCNTRL.
11140
11141 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11142
11143         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11144         This is a performance improvement for 64-bit hosts: it causes the
11145         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11146
11147 2011-07-31  Bruno Haible  <bruno@clisp.org>
11148
11149         stdioext: Add support for Minix.
11150         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11151         * lib/fpurge.c (fpurge): Likewise.
11152         * lib/freadahead.c (freadahead): Likewise.
11153         * lib/freadable.c (freadable): Likewise.
11154         * lib/freading.c (freading): Likewise.
11155         * lib/freadptr.c (freadptr): Likewise.
11156         * lib/freadseek.c (freadptrinc): Likewise.
11157         * lib/fseeko.c (rpl_fseeko): Likewise.
11158         * lib/fseterr.c (fseterr): Likewise.
11159         * lib/fwritable.c (fwritable): Likewise.
11160         * lib/fwriting.c (fwriting): Likewise.
11161         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11162         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11163
11164 2011-07-31  Bruno Haible  <bruno@clisp.org>
11165
11166         errno: Port to Minix.
11167         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11168         ECONNABORTED are defined.
11169         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11170         GNULIB_defined_ECONNABORTED): New macros.
11171         * lib/strerror-override.h (strerror_override): Test also
11172         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11173         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11174         ECONNABORTED.
11175         * doc/posix-headers/errno.texi: Mention the Minix problem.
11176
11177 2011-07-31  Bruno Haible  <bruno@clisp.org>
11178
11179         Work around declaration collisions on Minix.
11180         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11181         defined, set REPLACE_MBSINIT.
11182         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11183         defined, set REPLACE_MBRTOWC.
11184         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11185         set REPLACE_MBRLEN.
11186         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11187         defined, set REPLACE_MBSRTOWCS.
11188         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11189         defined, set REPLACE_WCRTOMB.
11190         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11191         defined, set REPLACE_WCSRTOMBS.
11192
11193 2011-07-31  Bruno Haible  <bruno@clisp.org>
11194
11195         Add support for Minix with ACK compiler.
11196         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11197         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11198         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11199
11200 2011-07-31  Bruno Haible  <bruno@clisp.org>
11201
11202         Documentation about Minix.
11203         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11204         * doc/glibc-headers/*.texi: Likewise.
11205         * doc/posix-functions/*.texi: Likewise.
11206         * doc/glibc-functions/*.texi: Likewise.
11207
11208 2011-07-31  Bruno Haible  <bruno@clisp.org>
11209
11210         snippet/warn-on-use: Fix indentation.
11211         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11212
11213 2011-07-25  Jim Meyering  <meyering@redhat.com>
11214
11215         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11216         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11217         commands.
11218
11219 2011-07-27  Jim Meyering  <meyering@redhat.com>
11220
11221         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11222         * top/maint.mk (gl_extract_significant_defines_): Now that
11223         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11224         gnulib/lib/signal.in.h, and now that we recommend to
11225         define-if-undefined those two symbols in application code,
11226         we must filter them out of the "significant" list.
11227         This avoids a "make syntax-check" failure in coreutils.
11228
11229 2011-07-26  Eric Blake  <eblake@redhat.com>
11230
11231         warnings: add comments about previous patch
11232         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11233         * m4/include_next.m4: Likewise.
11234         * m4/warn-on-use.m4: Likewise.
11235         * m4/warnings.m4: Likewise, and simplify use.
11236         Suggested by Stefano Lattarini.
11237
11238         include-next, warnings: support older autoconf
11239         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11240         AS_VAR_PUSHDEF in a way that works with older autoconf.
11241         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11242         Reported by Daniel P. Berrange.
11243
11244 2011-07-25  Bruno Haible  <bruno@clisp.org>
11245
11246         fseek, ftell: Fix doc.
11247         * doc/posix-functions/fseek.texi: Reword statement about
11248         AC_SYS_LARGEFILE.
11249         * doc/posix-functions/ftell.texi: Likewise.
11250
11251 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11252             Bruno Haible  <bruno@clisp.org>
11253
11254         Add dependencies to the 'largefile' module.
11255         * modules/fopen (Depends-on): Add 'largefile'.
11256         * modules/freopen (Depends-on): Likewise.
11257         * modules/fseeko (Depends-on): Likewise.
11258         * modules/ftello (Depends-on): Likewise.
11259         * modules/glob (Depends-on): Likewise.
11260         * modules/lseek (Depends-on): Likewise.
11261         * modules/lstat (Depends-on): Likewise.
11262         * modules/mkostemp (Depends-on): Likewise.
11263         * modules/mkostemps (Depends-on): Likewise.
11264         * modules/mkstemp (Depends-on): Likewise.
11265         * modules/mkstemps (Depends-on): Likewise.
11266         * modules/open (Depends-on): Likewise.
11267         * modules/openat (Depends-on): Likewise.
11268         * modules/pread (Depends-on): Likewise.
11269         * modules/pwrite (Depends-on): Likewise.
11270         * modules/scandir (Depends-on): Likewise.
11271         * modules/stat (Depends-on): Likewise.
11272         * modules/tmpfile (Depends-on): Likewise.
11273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11274         since the containing module now depends on the largefile module.
11275         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11276         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11277         off_t is fixed by gnulib.
11278         * doc/posix-functions/freopen.texi: Likewise.
11279         * doc/posix-functions/fseeko.texi: Likewise.
11280         * doc/posix-functions/fstatat.texi: Likewise.
11281         * doc/posix-functions/ftello.texi: Likewise.
11282         * doc/posix-functions/glob.texi: Likewise.
11283         * doc/posix-functions/lseek.texi: Likewise.
11284         * doc/posix-functions/lstat.texi: Likewise.
11285         * doc/posix-functions/mkstemp.texi: Likewise.
11286         * doc/posix-functions/open.texi: Likewise.
11287         * doc/posix-functions/openat.texi: Likewise.
11288         * doc/posix-functions/pread.texi: Likewise.
11289         * doc/posix-functions/pwrite.texi: Likewise.
11290         * doc/posix-functions/scandir.texi: Likewise.
11291         * doc/posix-functions/stat.texi: Likewise.
11292         * doc/posix-functions/tmpfile.texi: Likewise.
11293         * doc/glibc-functions/mkostemp.texi: Likewise.
11294         * doc/glibc-functions/mkostemps.texi: Likewise.
11295         * doc/glibc-functions/mkstemps.texi: Likewise.
11296
11297 2011-07-25  Bruno Haible  <bruno@clisp.org>
11298
11299         fcntl: Move AC_LIBOBJ invocation to module description.
11300         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11301         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11302
11303         fcntl: Remove call-in from fchdir.m4.
11304         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11306
11307         dup3: Remove potential call-in from fchdir.m4.
11308         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11310
11311         dup2: Move AC_LIBOBJ invocation to module description.
11312         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11313         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11314         Don't invoke AC_LIBOBJ.
11315         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11316
11317         dup2: Remove call-in from fchdir.m4.
11318         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11320
11321         fclose: Move AC_LIBOBJ invocation to module description.
11322         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11323         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11324         to 1.
11325         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11326
11327         fclose: Remove call-in from close.m4.
11328         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11329         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11330
11331         close: Move AC_LIBOBJ invocation to module description.
11332         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11333         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11334         1.
11335         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11336
11337         close: Remove call-in from fchdir.m4.
11338         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11340
11341         open: Move AC_LIBOBJ invocation to module description.
11342         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11343         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11344         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11345
11346         open: Remove call-in from fchdir.m4.
11347         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11349
11350         fchdir: Start to remove gl_REPLACE_* idiom.
11351         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11352         (gl_FUNC_FCHDIR): Invoke it.
11353
11354 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11355
11356         * lib/ftell.c (ftell): Comment out cast.
11357
11358         close: use gl_REPLACE_FCLOSE only if defined
11359         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11360         is defined.  The close module doesn't depend on the fclose module
11361         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11363         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11364
11365 2011-07-24  Jim Meyering  <meyering@redhat.com>
11366
11367         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11368         * tests/test-select.h (test_function): Declare as "static".
11369
11370 2011-07-24  Bruno Haible  <bruno@clisp.org>
11371
11372         doc: Mention the effects of AC_SYS_LARGEFILE.
11373         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11374         on this function.
11375         * doc/posix-functions/aio_error.texi: Likewise.
11376         * doc/posix-functions/aio_fsync.texi: Likewise.
11377         * doc/posix-functions/aio_read.texi: Likewise.
11378         * doc/posix-functions/aio_return.texi: Likewise.
11379         * doc/posix-functions/aio_suspend.texi: Likewise.
11380         * doc/posix-functions/aio_write.texi: Likewise.
11381         * doc/posix-functions/fgetpos.texi: Likewise.
11382         * doc/posix-functions/fopen.texi: Likewise.
11383         * doc/posix-functions/freopen.texi: Likewise.
11384         * doc/posix-functions/fsetpos.texi: Likewise.
11385         * doc/posix-functions/fstatvfs.texi: Likewise.
11386         * doc/posix-functions/ftruncate.texi: Likewise.
11387         * doc/posix-functions/ftw.texi: Likewise.
11388         * doc/posix-functions/getrlimit.texi: Likewise.
11389         * doc/posix-functions/glob.texi: Likewise.
11390         * doc/posix-functions/lio_listio.texi: Likewise.
11391         * doc/posix-functions/lockf.texi: Likewise.
11392         * doc/posix-functions/mkstemp.texi: Likewise.
11393         * doc/posix-functions/mmap.texi: Likewise.
11394         * doc/posix-functions/nftw.texi: Likewise.
11395         * doc/posix-functions/openat.texi: Likewise.
11396         * doc/posix-functions/opendir.texi: Likewise.
11397         * doc/posix-functions/posix_fadvise.texi: Likewise.
11398         * doc/posix-functions/posix_fallocate.texi: Likewise.
11399         * doc/posix-functions/pread.texi: Likewise.
11400         * doc/posix-functions/pwrite.texi: Likewise.
11401         * doc/posix-functions/readdir.texi: Likewise.
11402         * doc/posix-functions/readdir_r.texi: Likewise.
11403         * doc/posix-functions/rewinddir.texi: Likewise.
11404         * doc/posix-functions/scandir.texi: Likewise.
11405         * doc/posix-functions/seekdir.texi: Likewise.
11406         * doc/posix-functions/setrlimit.texi: Likewise.
11407         * doc/posix-functions/statvfs.texi: Likewise.
11408         * doc/posix-functions/telldir.texi: Likewise.
11409         * doc/posix-functions/tmpfile.texi: Likewise.
11410         * doc/posix-functions/truncate.texi: Likewise.
11411         * doc/glibc-functions/fallocate.texi: Likewise.
11412         * doc/glibc-functions/fstatfs.texi: Likewise.
11413         * doc/glibc-functions/fts_children.texi: Likewise.
11414         * doc/glibc-functions/fts_read.texi: Likewise.
11415         * doc/glibc-functions/getdirentries.texi: Likewise.
11416         * doc/glibc-functions/mkostemp.texi: Likewise.
11417         * doc/glibc-functions/mkostemps.texi: Likewise.
11418         * doc/glibc-functions/mkstemps.texi: Likewise.
11419         * doc/glibc-functions/preadv.texi: Likewise.
11420         * doc/glibc-functions/pwritev.texi: Likewise.
11421         * doc/glibc-functions/sendfile.texi: Likewise.
11422         * doc/glibc-functions/statfs.texi: Likewise.
11423
11424 2011-07-24  Bruno Haible  <bruno@clisp.org>
11425
11426         doc: Fix typo.
11427         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11428
11429 2011-07-24  Bruno Haible  <bruno@clisp.org>
11430
11431         doc: Mention fsusage.
11432         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11433
11434 2011-07-24  Bruno Haible  <bruno@clisp.org>
11435
11436         doc: Mention new glibc headers and functions.
11437         * doc/glibc-headers/gshadow.texi: New file.
11438         * doc/glibc-functions/endsgent.texi: New file.
11439         * doc/glibc-functions/fgetsgent.texi: New file.
11440         * doc/glibc-functions/fgetsgent_r.texi: New file.
11441         * doc/glibc-functions/getsgent.texi: New file.
11442         * doc/glibc-functions/getsgent_r.texi: New file.
11443         * doc/glibc-functions/getsgnam.texi: New file.
11444         * doc/glibc-functions/getsgnam_r.texi: New file.
11445         * doc/glibc-functions/putsgent.texi: New file.
11446         * doc/glibc-functions/setsgent.texi: New file.
11447         * doc/glibc-functions/sgetsgent.texi: New file.
11448         * doc/glibc-functions/sgetsgent_r.texi: New file.
11449         * doc/glibc-functions/malloc_info.texi: New file.
11450         * doc/glibc-functions/preadv.texi: New file.
11451         * doc/glibc-functions/pwritev.texi: New file.
11452         * doc/glibc-functions/register_printf_modifier.texi: New file.
11453         * doc/glibc-functions/register_printf_specifier.texi: New file.
11454         * doc/glibc-functions/register_printf_type.texi: New file.
11455         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11456         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11457         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11458         * doc/glibc-functions/pthread_getname_np.texi: New file.
11459         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11460         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11461         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11462         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11463         * doc/glibc-functions/pthread_setname_np.texi: New file.
11464         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11465         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11466         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11467         * doc/glibc-functions/qsort_r.texi: New file.
11468         * doc/glibc-functions/quick_exit.texi: New file.
11469         * doc/glibc-functions/syncfs.texi: New file.
11470         * doc/gnulib.texi: Include them.
11471         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11472         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11473         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11474         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11475         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11476         * doc/glibc-functions/execvpe.texi: Likewise.
11477
11478 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         ftell: don't include <unistd.h>
11481         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11482         guaranteed to define off_t, and the ftell module depends on the
11483         stdio module.
11484
11485         ftell: do not assume wraparound signed arithmetic
11486         * lib/ftell.c: Include <limits.h>.
11487         (ftell): Don't assume wraparound signed arithmetic.
11488
11489 2011-07-24  Bruno Haible  <bruno@clisp.org>
11490
11491         close: No longer depend on module 'fclose'.
11492         * modules/close (Depends-on): Remove fclose.
11493         * NEWS: Mention the change.
11494         Suggested by Sam Steingold <sds@gnu.org>.
11495
11496 2011-07-24  Bruno Haible  <bruno@clisp.org>
11497
11498         fsusage: Enable large volume support on AIX >= 5.2.
11499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11500         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11501         instead of STAT_STATVFS.
11502         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11503
11504         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11505         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11506         f_blocks field only on MacOS X.
11507
11508         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11510         * modules/fsusage (Depends-on): Add largefile.
11511
11512 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11513
11514         * README: Modernize discussion of signed integers.
11515         Assuming overflow wraparound is no longer safe.
11516         Mention ones' complement and signed magnitude.
11517
11518 2011-07-22  Bruno Haible  <bruno@clisp.org>
11519
11520         select tests, pselect tests: Refactor.
11521         * tests/test-select.h: New file, extracted from tests/test-select.c.
11522         (select_fn): New type.
11523         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11524         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11525         test_pipe): Add my_select argument.
11526         (test_function): Renamed from main. Add my_select argument.
11527         * tests/test-select.c: Move most code to tests/test-select.h. Include
11528         test-select.h.
11529         * modules/select-tests (Files): Add tests/test-select.h.
11530         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11531         (my_select, main): New functions.
11532         * modules/pselect-tests (Files): Add tests/test-select.h,
11533         tests/macros.h, tests/signature.h.
11534         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11535         (configure.ac): Check for <sys/wait.h>.
11536
11537 2011-07-22  Bruno Haible  <bruno@clisp.org>
11538
11539         sys_select tests: Check the signature of FD_*.
11540         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11541         signature tests from here...
11542         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11543         here.
11544         * modules/sys_select-tests (Files): Add tests/signature.h.
11545
11546 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11547
11548         largefile: new module, replacing large-inode
11549         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11550         * MODULES.html.sh: Add largefile, remove large-inode.
11551         * modules/largefile, m4/largefile.m4: New files.
11552         * modules/large-inode, m4/large-inode.m4: Remove.
11553
11554         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11556         implementations that use only 32 bits to count blocks.
11557         On typical hosts with 1024-byte blocks, this fails with file
11558         systems as small as 4 TiB.  Problem reported by Herb Wartens
11559         <http://debbugs.gnu.org/9140> and this should also fix a similar
11560         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11561
11562         large-inode: New module
11563         * MODULES.html.sh: Add it.
11564         * modules/large-inode, m4/large-inode.m4: New files.
11565
11566         extensions: Enable extensions on MacOS X 10.5 and later.
11567         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11568
11569 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11570
11571         file-has-acl: use acl_extended_file_nofollow if available
11572         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11573         (acl_extended_file): New macro.
11574         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11575         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11576
11577 2011-07-21  Bruno Haible  <bruno@clisp.org>
11578
11579         Declare system functions in a way that works with C++.
11580         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11581         declare fdopendir as extern "C".
11582         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11583         declare frexpl as extern "C".
11584         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11585         declare gai_strerror as extern "C".
11586         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11587         programs, declare gai_strerror as extern "C".
11588         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11589         declare getlogin_r as extern "C".
11590         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11591         as extern "C".
11592         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11593         declare ldexpl as extern "C".
11594         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11595         as extern "C".
11596         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11597         program, declare getmntinfo as extern "C".
11598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11599         stpncpy as extern "C".
11600         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11601         program, declare __xpg_strerror_r as extern "C".
11602         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11603         strndup as extern "C".
11604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11605         declare memset and bzero as extern "C".
11606         Reported by Sam Steingold <sds@gnu.org>.
11607
11608 2011-07-12  Jim Meyering  <meyering@redhat.com>
11609
11610         maint.mk: prohibit inclusion of "verify.h" without use
11611         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11612
11613 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11614
11615         timer-time: A new module to check for timer_settime()
11616         * m4/timer_time.m4: Check for the posix function.
11617         * modules/timer-time: Add the new module.
11618         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11619         Mention it.
11620
11621 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11622             Bruno Haible  <bruno@clisp.org>
11623
11624         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11625         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11626         not defined, assume POSIX threads and look for pthread_sigmask in
11627         $LIBS, without changing $CPPFLAGS.
11628
11629 2011-07-19  Bruno Haible  <bruno@clisp.org>
11630
11631         strstr: Update cross-compilation guess.
11632         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11633         CPUs, guess no, in view of glibc
11634         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11635         Suggested by Eric Blake. Reported by Reuben Thomas.
11636
11637 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11638
11639         getopt-gnu: suppress core dumps from detection code
11640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11641         to suppress core dumps that may well occur on glibc systems.
11642         * modules/getopt-gnu: Depend on nocrash.
11643
11644 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11645
11646         pthread_sigmask: ensure usleep is declared
11647         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11648         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11649
11650 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11651
11652         doc: Document NonStop portability issues.
11653         * doc/posix-functions/sigaction.texi (sigaction):
11654         * doc/posix-headers/signal.texi (signal.h):
11655         Document NonStop.  See Joachim Schmitz in
11656         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11657
11658 2011-07-15  Bruno Haible  <bruno@clisp.org>
11659
11660         ffsl, ffsll: Avoid unportable behaviour.
11661         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11662
11663 2011-07-15  Bruno Haible  <bruno@clisp.org>
11664
11665         ffs: More tests.
11666         * tests/test-ffs.c (NBITS): New macro.
11667         (main): Add more tests.
11668         * tests/test-ffsl.c (NBITS): New macro.
11669         (main): Add more tests.
11670         * tests/test-ffsll.c (NBITS): New macro.
11671         (main): Add more tests.
11672
11673 2011-07-15  Eric Blake  <eblake@redhat.com>
11674
11675         ffsl, ffsll: new modules
11676         * modules/ffsl: New file.
11677         * modules/ffsll: Likewise.
11678         * m4/ffsl.m4: Likewise.
11679         * m4/ffsll.m4: Likewise.
11680         * lib/ffsl.c: Likewise.
11681         * lib/ffsl.h: Likewise.
11682         * lib/ffsll.c: Likewise.
11683         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11684         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11685         * modules/string (Makefile.am): Substitute witnesses.
11686         * lib/strings.in.h (ffsl, ffsll): Declare.
11687         * modules/ffsl-tests: New test file.
11688         * modules/ffsll-tests: Likewise.
11689         * tests/test-ffsl.c: Likewise.
11690         * tests/test-ffsll.c: Likewise.
11691         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11692         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11693         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11694
11695         ffs: fix m4 prerequisite
11696         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11697
11698         ffs: avoid undefined behavior
11699         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11700         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11701         Reported by Bruno Haible.
11702
11703 2011-07-12  Bruno Haible  <bruno@clisp.org>
11704
11705         pthread_sigmask: Rely on module 'threadlib'.
11706         * modules/pthread_sigmask (Depends-on): Add threadlib.
11707         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11708         is defined.
11709
11710 2011-07-12  Bruno Haible  <bruno@clisp.org>
11711
11712         regex: Depend on module 'strcase'.
11713         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11714
11715 2011-07-12  Jim Meyering  <meyering@redhat.com>
11716
11717         warn-on-use: fix typo in file name
11718         * modules/snippet/warn-on-use (Files): Correct file name:
11719         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11720
11721 2011-07-12  Bruno Haible  <bruno@clisp.org>
11722
11723         strings: Document module.
11724         * doc/posix-headers/strings.texi: Mention module 'strings'.
11725
11726 2011-07-12  Bruno Haible  <bruno@clisp.org>
11727
11728         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11729         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11730         (Files, Makefile.am): Update.
11731         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11732         * modules/stdlib (Depends-on): Update.
11733
11734 2011-07-12  Bruno Haible  <bruno@clisp.org>
11735
11736         * NEWS: Mention the changes.
11737
11738         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11739         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11740         (Files, Makefile.am): Update.
11741         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11742         * modules/arpa_inet (Depends-on): Update.
11743         * modules/ctype (Depends-on): Update.
11744         * modules/dirent (Depends-on): Update.
11745         * modules/fcntl-h (Depends-on): Update.
11746         * modules/glob (Depends-on): Update.
11747         * modules/iconv-h (Depends-on): Update.
11748         * modules/inttypes-incomplete (Depends-on): Update.
11749         * modules/langinfo (Depends-on): Update.
11750         * modules/locale (Depends-on): Update.
11751         * modules/math (Depends-on): Update.
11752         * modules/netdb (Depends-on): Update.
11753         * modules/poll-h (Depends-on): Update.
11754         * modules/pty (Depends-on): Update.
11755         * modules/search (Depends-on): Update.
11756         * modules/signal (Depends-on): Update.
11757         * modules/spawn (Depends-on): Update.
11758         * modules/stdio (Depends-on): Update.
11759         * modules/stdlib (Depends-on): Update.
11760         * modules/string (Depends-on): Update.
11761         * modules/strings (Depends-on): Update.
11762         * modules/sys_file (Depends-on): Update.
11763         * modules/sys_ioctl (Depends-on): Update.
11764         * modules/sys_select (Depends-on): Update.
11765         * modules/sys_socket (Depends-on): Update.
11766         * modules/sys_stat (Depends-on): Update.
11767         * modules/sys_time (Depends-on): Update.
11768         * modules/sys_times (Depends-on): Update.
11769         * modules/sys_utsname (Depends-on): Update.
11770         * modules/sys_wait (Depends-on): Update.
11771         * modules/termios (Depends-on): Update.
11772         * modules/time (Depends-on): Update.
11773         * modules/unistd (Depends-on): Update.
11774         * modules/wchar (Depends-on): Update.
11775         * modules/wctype-h (Depends-on): Update.
11776         * MODULES.html.sh (Support for building libraries and executables):
11777         Update.
11778
11779         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11780         * modules/snippet/unused-parameter: Renamed from
11781         modules/unused-parameter.
11782         (Files, Makefile.am): Update.
11783         * build-aux/snippet/unused-parameter.h: Renamed from
11784         build-aux/unused-parameter.h.
11785         * modules/selinux-h (Depends-on): Update.
11786         * modules/unistr/base (Depends-on): Update.
11787         * MODULES.html.sh (Core language properties): Update.
11788
11789         Rename module 'link-warning' to 'snippet/link-warning'.
11790         * modules/snippet/link-warning: Renamed from modules/link-warning.
11791         (Files, Makefile.am): Update.
11792         * build-aux/snippet/link-warning.h: Renamed from
11793         build-aux/link-warning.h.
11794         * MODULES.html.sh (Support for building libraries and executables):
11795         Update.
11796
11797         Rename module 'c++defs' to 'snippet/c++defs'.
11798         * modules/snippet/c++defs: Renamed from modules/c++defs.
11799         (Files, Makefile.am): Update.
11800         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11801         * modules/arpa_inet (Depends-on): Update.
11802         * modules/ctype (Depends-on): Update.
11803         * modules/dirent (Depends-on): Update.
11804         * modules/fcntl-h (Depends-on): Update.
11805         * modules/glob (Depends-on): Update.
11806         * modules/iconv-h (Depends-on): Update.
11807         * modules/langinfo (Depends-on): Update.
11808         * modules/locale (Depends-on): Update.
11809         * modules/math (Depends-on): Update.
11810         * modules/netdb (Depends-on): Update.
11811         * modules/poll-h (Depends-on): Update.
11812         * modules/pty (Depends-on): Update.
11813         * modules/search (Depends-on): Update.
11814         * modules/signal (Depends-on): Update.
11815         * modules/spawn (Depends-on): Update.
11816         * modules/stdio (Depends-on): Update.
11817         * modules/stdlib (Depends-on): Update.
11818         * modules/string (Depends-on): Update.
11819         * modules/strings (Depends-on): Update.
11820         * modules/sys_ioctl (Depends-on): Update.
11821         * modules/sys_select (Depends-on): Update.
11822         * modules/sys_socket (Depends-on): Update.
11823         * modules/sys_stat (Depends-on): Update.
11824         * modules/sys_time (Depends-on): Update.
11825         * modules/sys_wait (Depends-on): Update.
11826         * modules/termios (Depends-on): Update.
11827         * modules/time (Depends-on): Update.
11828         * modules/unistd (Depends-on): Update.
11829         * modules/wchar (Depends-on): Update.
11830         * modules/wctype-h (Depends-on): Update.
11831
11832         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11833         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11834         (Files, Makefile.am): Update.
11835         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11836         * modules/argv-iter (Depends-on): Update.
11837         * modules/arpa_inet (Depends-on): Update.
11838         * modules/dirent (Depends-on): Update.
11839         * modules/fcntl-h (Depends-on): Update.
11840         * modules/fnmatch (Depends-on): Update.
11841         * modules/getopt-posix (Depends-on): Update.
11842         * modules/glob (Depends-on): Update.
11843         * modules/iconv-h (Depends-on): Update.
11844         * modules/inttypes-incomplete (Depends-on): Update.
11845         * modules/locale (Depends-on): Update.
11846         * modules/math (Depends-on): Update.
11847         * modules/netdb (Depends-on): Update.
11848         * modules/search (Depends-on): Update.
11849         * modules/signal (Depends-on): Update.
11850         * modules/spawn (Depends-on): Update.
11851         * modules/stdio (Depends-on): Update.
11852         * modules/stdlib (Depends-on): Update.
11853         * modules/string (Depends-on): Update.
11854         * modules/strings (Depends-on): Update.
11855         * modules/sys_socket (Depends-on): Update.
11856         * modules/sys_stat (Depends-on): Update.
11857         * modules/sys_time (Depends-on): Update.
11858         * modules/sys_times (Depends-on): Update.
11859         * modules/sys_utsname (Depends-on): Update.
11860         * modules/time (Depends-on): Update.
11861         * modules/unistd (Depends-on): Update.
11862         * modules/wchar (Depends-on): Update.
11863         * MODULES.html.sh (Support for building libraries and executables):
11864         Update.
11865
11866 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11867
11868         Improvements on _Noreturn and related modules.
11869
11870         modules/_Exit-tests: test _Noreturn too
11871         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11872         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11873         (main): Use them.
11874
11875         stdnoreturn, stdnoreturn-tests: remove modules
11876         They're not needed here and a bit premature for use elsewhere.  See
11877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11878         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11879         * tests/test-stdnoreturn.c: Remove files.
11880         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11881         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11882         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11883         and using noreturn.
11884         * modules/openat, modules/sigpipe-die, modules/xalloc:
11885         * modules/xmemdup0, modules/xstrtol:
11886         Remove dependency on stdnoreturn.
11887
11888         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11889         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11890         Reparenthesize to avoid GCC warning.
11891         Support Microsoft's syntax.
11892         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11893
11894         _Noreturn-tests: remove module
11895         * modules/_Noreturn-tests: Remove.
11896         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11897         * tests/test-_Noreturn.c: Remove.
11898         * tests/test-stdnoreturn.c: Merge from the old
11899         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11900
11901 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11902
11903         _Noreturn, stdnoreturn, and related modules.
11904
11905         * top/maint.mk: Adjust to new noreturn support.
11906         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11907         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11908
11909         xalloc: use stdnoreturn.h
11910         * lib/xalloc.h: Include <stdnoreturn.h>.
11911         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11912         * modules/xalloc (Depends-on): Add stdnoreturn.
11913
11914         xstrtol: use stdnoreturn.h
11915         * lib/xstrtol.h: Include <stdnoreturn.h>.
11916         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11917         * modules/xstrtol (Depends-on): Add stdnoreturn.
11918
11919         xmemdup0: use stdnoreturn.h
11920         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11921         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11922         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11923
11924         sigpipe-die: use stdnoreturn.h
11925         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11926         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11927         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11928
11929         openat: use stdnoreturn.h
11930         * lib/openat.h: Include <stdnoreturn.h>.
11931         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11932         * modules/openat (Depends-on): Add stdnoreturn.
11933
11934         * lib/openat-die.c (openat_save_fail): Modernize comment.
11935
11936         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11937
11938         * lib/glthread/thread.h: Modernize comment.
11939
11940         obstack: use _Noreturn
11941         * lib/obstack.c (__attribute__): Remove macro.
11942         (print_and_abort): Use _Noreturn.
11943
11944         c-stack: use _Noreturn
11945         * lib/c-stack.c (die, overflow_handler, segv_handler):
11946         Use _Noreturn rather than __attribute__((noreturn)).
11947
11948         argmatch-tests, exclude_tests: use _Noreturn
11949         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11950         Remove.
11951         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11952
11953         stdlib: use _Noreturn
11954         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11955         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11956         * modules/stdlib (Depends-on): Add _Noreturn.
11957         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11958
11959         stdnoreturn-tests: new module
11960         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11961
11962         stdnoreturn: new module
11963         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11964         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11965
11966         _Noreturn-tests: new module
11967         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11968
11969         _Noreturn: new module
11970         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11971         New section, mentioning it.
11972         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11973
11974         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11975
11976 2011-07-11  Eric Blake  <eblake@redhat.com>
11977
11978         ffs: new module
11979         * modules/ffs: New file.
11980         * m4/ffs.m4: Likewise.
11981         * lib/ffs.c: Likewise.
11982         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11983         * modules/strings (Makefile.am): Substitute witness.
11984         (Depends-on): Add c++defs.
11985         * lib/strings.in.h (ffs): Declare.
11986         * modules/ffs-tests: New test file.
11987         * tests/test-ffs.c: Test new module.
11988         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11989         * doc/posix-functions/ffs.texi (ffs): Likewise.
11990
11991         regex: avoid compiler warning
11992         * lib/regex.c (includes): Include <strings.h>, for use of
11993         strcasecmp in regcomp.c.
11994         Reported by Joachim Schmitz.
11995
11996 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         stdint: respect system's intmax_t if INTMAX_MAX
11999         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12000         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12001         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12002         long but int64_t is long long, and where we will clash with the
12003         system intmax_t if we override it.  See
12004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12005         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12006         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12007         similarly for UINTMAX_C.
12008
12009 2011-07-08  Bruno Haible  <bruno@clisp.org>
12010
12011         pthread_sigmask tests: Avoid a compiler warning.
12012         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12013         non-zero.
12014
12015         sigprocmask tests: A better way to avoid a compiler warning.
12016         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12017         (main): Complain if system() returns non-zero.
12018         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12019
12020 2011-07-08  Bruno Haible  <bruno@clisp.org>
12021
12022         pthread_sigmask: Work around IRIX bug.
12023         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12024         bug.
12025         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12026         there may be unblocked pending signals.
12027         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12028
12029 2011-07-08  Bruno Haible  <bruno@clisp.org>
12030
12031         pthread_sigmask: Work around Cygwin bug.
12032         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12033         bug.
12034         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12035         the system's pthread_sigmask function.
12036         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12037
12038 2011-07-08  Bruno Haible  <bruno@clisp.org>
12039
12040         pthread_sigmask: Work around bug in single-threaded implementation.
12041         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12042         FreeBSD, HP-UX, Solaris bug.
12043         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12044         * lib/pthread_sigmask.c: Include <stddef.h>.
12045         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12046         the system's pthread_sigmask function.
12047         * modules/pthread_sigmask (configure.ac): Invoke
12048         gl_PREREQ_PTHREAD_SIGMASK.
12049         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12050         HP-UX, Solaris.
12051
12052 2011-07-08  Eric Blake  <eblake@redhat.com>
12053
12054         test-sigprocmask: avoid compiler warning
12055         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12056         * tests/test-sigprocmask.c (main): Use it to silence warning.
12057         Reported by Jim Meyering.
12058
12059         test-snprintf: avoid compiler warning
12060         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12061         * tests/test-vsnprintf.c (main): Likewise.
12062         Reported by Jim Meyering.
12063
12064 2011-07-08  Bruno Haible  <bruno@clisp.org>
12065
12066         Tests for module 'pthread_sigmask'.
12067         * modules/pthread_sigmask-tests: New file.
12068         * tests/test-pthread_sigmask1.c: New file, based on
12069         tests/test-sigprocmask.c.
12070         * tests/test-pthread_sigmask2.c: New file.
12071
12072 2011-07-08  Jim Meyering  <meyering@redhat.com>
12073
12074         test-getopt.h: avoid warning about an unused variable
12075         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12076
12077 2011-07-07  Jim Meyering  <meyering@redhat.com>
12078
12079         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12080         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12081         now that it no longer contains leading TABs.
12082         Remove unused "url=FIXME" statement.
12083
12084 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12085
12086         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12087         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12088         When gl_THREADLIB is not in use, assume that the POSIX sematics
12089         are desired.  This is better for Emacs, which uses POSIX semantics
12090         on GNUish and/or POSIXish platforms, and does not use threads at
12091         all otherwise.
12092
12093         pthread_sigmask: fix typo when testing for libraries
12094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12095         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12096
12097 2011-07-08  Eric Blake  <eblake@redhat.com>
12098
12099         fts: introduce FTS_NOATIME
12100         * lib/fts_.h (FTS_NOATIME): New bit flag.
12101         (FTS_OPTIONMASK): Adjust.
12102         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12103         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12104
12105 2011-07-08  Bruno Haible  <bruno@clisp.org>
12106
12107         Tests for module 'thread'.
12108         * modules/thread-tests: New file.
12109         * tests/test-thread_self.c: New file.
12110         * tests/test-thread_create.cc: New file.
12111
12112 2011-07-08  Bruno Haible  <bruno@clisp.org>
12113
12114         thread: Avoid gcc warnings when using gl_thread_self().
12115         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12116         'void *'.
12117         (gl_thread_self_pointer): Update.
12118
12119 2011-07-07  Bruno Haible  <bruno@clisp.org>
12120
12121         signal-c++-tests: Check declaration of pthread_sigmask.
12122         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12123         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12124         $(LIB_PTHREAD_SIGMASK).
12125
12126 2011-07-07  Bruno Haible  <bruno@clisp.org>
12127
12128         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12129         * lib/signal.in.h (pthread_sigmask): Override if
12130         REPLACE_PTHREAD_SIGMASK is 1.
12131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12132         REPLACE_PTHREAD_SIGMASK.
12133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12134         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12135         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12136         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12137         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12138
12139 2011-07-07  Bruno Haible  <bruno@clisp.org>
12140
12141         pthread_sigmask: Ensure declaration in <signal.h>.
12142         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12143         include <pthread.h>.
12144         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12145         problem.
12146
12147 2011-07-07  Bruno Haible  <bruno@clisp.org>
12148
12149         pthread_sigmask: Document the module.
12150         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12151
12152 2011-07-07  Bruno Haible  <bruno@clisp.org>
12153
12154         pthread_sigmask: Follow gnulib conventions.
12155         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12156         gl_PTHREAD_SIGMASK.
12157         * modules/pthread_sigmask (configure.ac): Update.
12158
12159 2011-07-07  Bruno Haible  <bruno@clisp.org>
12160
12161         pthread_sigmask: Make declaration C++ safe.
12162         * lib/signal.in.h: In two special conditions, just do an #include_next.
12163         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12164         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12166         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12167         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12168         not REPLACE_PTHREAD_MASK.
12169         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12170         not REPLACE_PTHREAD_MASK.
12171         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12172
12173 2011-07-07  Bruno Haible  <bruno@clisp.org>
12174
12175         pthread_sigmask: Fix return value.
12176         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12177         * lib/pthread_sigmask.c: New file.
12178         * modules/pthread_sigmask (Files): Add it.
12179         (configure.ac): Invoke AC_LIBOBJ.
12180
12181 2011-07-07  Eric Blake  <eblake@redhat.com>
12182
12183         getopt: more portable argv creation
12184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12185         const, use char arrays rather than strings.
12186         Suggested by Paul Eggert.
12187
12188 2011-07-07  Bruno Haible  <bruno@clisp.org>
12189
12190         Tests for module 'sigprocmask'.
12191         * modules/sigprocmask-tests: New file.
12192         * tests/test-sigprocmask.c: New file.
12193
12194 2011-07-07  Bruno Haible  <bruno@clisp.org>
12195
12196         float tests: Tweak.
12197         * tests/test-float.c (main): Tweak skip message.
12198
12199 2011-07-07  Eric Blake  <eblake@redhat.com>
12200
12201         getopt: avoid compiler warning during configure
12202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12203         assigning string literals to non-const pointer.
12204
12205         getopt-gnu: avoid crash in glibc getopt
12206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12207         * tests/test-getopt.h (test_getopt): Enhance test.
12208         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12209         * doc/posix-functions/getopt.texi (getopt): Document it.
12210         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12211         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12212         Likewise.
12213
12214 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12215
12216         getopt: handle W; without long options in getopt [BZ #12922]
12217         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12218         but no long options are defined, just return 'W'.
12219
12220 2011-07-07  Bruno Haible  <bruno@clisp.org>
12221
12222         Avoid literal tabs.
12223         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12224         variable containing a tab instead of a literal tab.
12225         Reported by Jim Meyering.
12226
12227 2011-07-07  Bruno Haible  <bruno@clisp.org>
12228
12229         Comments.
12230         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12231
12232 2011-07-06  Bruno Haible  <bruno@clisp.org>
12233
12234         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12235         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12236         <winsock2.h>.
12237         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12238         lib/sys_socket.in.h.
12239         (close, gethostname): Hide declarations from <winsock2.h>.
12240         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12241         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12242         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12243         (select): Don't override if gnulib's <sys/select.h> was already
12244         included.
12245         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12246         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12247         setsockopt, shutdown, select): Tweak indentation.
12248
12249 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12252         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12253         in an application that does not use the sys_select module.
12254
12255 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12256
12257         poll: do not return 0 on timeout=-1
12258         * lib/poll.c: Loop with yield if no events occured
12259
12260 2011-07-06  Eric Blake  <eblake@redhat.com>
12261
12262         pthread_sigmask: always replace when not using pthread
12263         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12264         replacement when using some threading other than pthread.  Fix
12265         logic bug.
12266
12267 2011-07-06  Bruno Haible  <bruno@clisp.org>
12268
12269         Comments.
12270         * m4/printf.m4: Update comments about mingw.
12271
12272 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12273
12274         sys_select: define sigset_t more portably
12275         * lib/sys_select.in.h: Always include <sys/types.h>, since
12276         we now need sigset_t and mingw defines it there.
12277         Include <signal.h> before split inclusion guard, to avoid
12278         mishaps on Solaris, whose <signal.h> eventually includes us.
12279         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12280         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12281         which come from ...
12282         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12283         gl_CHECK_TYPE_SIGSET_T.
12284         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12285         does the real work.
12286         * modules/sys_select (Depends-on): Add 'signal'.
12287
12288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12289         Suggested by Bruno Haible.
12290
12291         pselect: Use pthread_sigmask, not sigprocmask.
12292         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12293         multithreaded apps better than sigprocmask does.
12294         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12295         sigprocmask directly.
12296
12297 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12300         Don't #undef,  since we don't need any underlying pselect.
12301         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12302         (Depends-on): Add select.
12303         (Link): Add $(LIBSOCKET).
12304         These changes suggested by Bruno Haible.
12305
12306         pselect: document better
12307         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12308         * doc/posix-functions/pselect.texi (pselect): Document new module.
12309
12310         pthread_sigmask: new module
12311         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12312         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12313         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12314         This is done only as a macro; I don't know how well that'll
12315         work for C++.  Move <sys/types.h> include before the include_next,
12316         to avoid mishap on Solaris.
12317         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12318         * modules/signal (Makefile.am): Substitute the check's results.
12319         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12320
12321         test-pselect: new module
12322         * modules/pselect-tests, tests/test-pselect.c: New files.
12323         * tests/test-select.c, tests/test-sys_select-c++.cc:
12324         If TEST_PSELECT is defined, test pselect instead of testing select.
12325
12326         * tests/test-sys_select.c (sigset_t): Test for it, too.
12327         Suggested by Bruno Haible.
12328
12329 2011-07-05  Eric Blake  <eblake@redhat.com>
12330
12331         snprintf: guarantee %1$d, for libintl
12332         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12333         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12334         * doc/posix-functions/snprintf.texi (snprintf): Update.
12335         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12336         * tests/test-snprintf.c (main): Enhance test.
12337         * tests/test-vsnprintf.c (main): Likewise.
12338
12339 2011-07-05  Jim Meyering  <meyering@redhat.com>
12340
12341         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12342         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12343         per Bruno's request, to accommodate this idiom (no space after "#")
12344         even when the function is inside an #if block:
12345         char *
12346         gets (char *s)
12347         #undef gets
12348         {
12349           ...
12350         }
12351
12352 2011-07-04  Jim Meyering  <meyering@redhat.com>
12353
12354         maint: indent with spaces, not TABs, and add a rule to check this
12355         * tests/test-userspec.c: Indent with spaces, not TABs.
12356         * tests/test-argp.c: Likewise.
12357         * tests/test-c-stack2.sh: Likewise.
12358         * tests/test-parse-duration.sh: Likewise
12359         * m4/strtod.m4: Likewise.
12360         * m4/alloca.m4: Likewise.
12361         * m4/pselect.m4: Likewise.
12362         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12363
12364 2011-07-03  Jim Meyering  <meyering@redhat.com>
12365
12366         maint.mk: correct omissions in prohibit_argmatch_without_use check
12367         This rule would mistakenly report that argmatch.h is included without
12368         use even when both the argmatch and invalid_arg macro were used.
12369         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12370         of argmatch and invalid_arg.
12371
12372 2011-07-03  Bruno Haible  <bruno@clisp.org>
12373
12374         Comments about EINTR.
12375         * lib/safe-read.h: Explain the purpose of this module.
12376         * lib/safe-write.h: Likewise.
12377         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12378         module.
12379         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12380         module.
12381         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12382
12383 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         xnanosleep: Rewrite to use new dtotimespec module.
12386         It has the conversion code that used to be in xnanosleep.
12387         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12388         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12389         (TIME_T_MAX): Remove.
12390         (xnanosleep): Rewrite in terms of dtotimespec.
12391         * modules/xnanosleep (Depends-on): Add dtotimespec.
12392         Remove intprops, stdbool.
12393
12394         timespec-add, timespec-sub: new modules
12395         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12396         * lib/timespec-add.c, lib/timespec-sub.c:
12397         * modules/timespec-add, modules/timespec-sub: New files.
12398
12399         dtotimespec: new module
12400         * lib/timespec.h (dtotimespec): New decl.
12401         * lib/dtotimespec.c, modules/dtotimespec: New files.
12402
12403         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12404
12405         pselect: new module
12406         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12407         (pselect): New decls.
12408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12409         since the standard pselect decl uses 'restrict'.
12410         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12411         HAVE_PSELECT, REPLACE_PSELECT.
12412         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12413         HAVE_PSELECT, REPLACE_PSELECT.
12414         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12415
12416         sys_select: don't depend on sys_socket
12417         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12419         This fix works on GNU and GNU-like platforms, but has not been tested
12420         on native Windows.
12421         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12423         gl_HEADER_SYS_SOCKET.
12424         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12425         gl_PREREQ_SYS_H_WINSOCK2.
12426
12427 2011-06-29  Eric Blake  <eblake@redhat.com>
12428
12429         pipe2: fix C89 compile problem
12430         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12431         Reported by Bruno Haible.
12432
12433         pipe, pipe2: don't corrupt fd on error
12434         * lib/pipe.c (pipe): Leave fd unchanged on error.
12435         * lib/pipe2.c (pipe2): Likewise.
12436         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12437         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12438
12439 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12440
12441         mmap-anon: do not use regular expressions inadvertently
12442         * m4/mmap-anon.m4: Remove trailing period from strings sought
12443         in the output.
12444
12445 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12446
12447         nanosleep: fix integer overflow problem
12448         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12449         arithmetic wraps around on overflow.
12450
12451         nanosleep: simplify carrying
12452         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12453         first call to the underyling nanosleep, not for the last one.
12454         This doesn't fix any bugs, but it simplifies the computation of
12455         the remaining delay.  Found while auditing integer overflow issues.
12456
12457         dup2: remove test for existence of fcntl
12458         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12459         "#if HAVE_FCNTL", in the configure-time test program.
12460         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12461         and therefore speeds up "configure" a bit.  Found while
12462         adding the dup2 module to Emacs.
12463
12464 2011-06-24  Eric Blake  <eblake@redhat.com>
12465
12466         maint.mk: enhance useless header checks
12467         * top/maint.mk (_sc_header_without_use): Check both include
12468         styles.
12469         (sc_prohibit_assert_without_use)
12470         (sc_prohibit_close_stream_without_use)
12471         (sc_prohibit_getopt_without_use)
12472         (sc_prohibit_quotearg_without_use)
12473         (sc_prohibit_quote_without_use)
12474         (sc_prohibit_long_options_without_use)
12475         (sc_prohibit_inttostr_without_use)
12476         (sc_prohibit_ignore_value_without_use)
12477         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12478         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12479         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12480         (sc_prohibit_hash_pjw_without_use)
12481         (sc_prohibit_safe_read_without_use)
12482         (sc_prohibit_argmatch_without_use)
12483         (sc_prohibit_canonicalize_without_use)
12484         (sc_prohibit_root_dev_ino_without_use)
12485         (sc_prohibit_openat_without_use)
12486         (sc_prohibit_c_ctype_without_use)
12487         (sc_prohibit_signal_without_use)
12488         (sc_prohibit_stdio--_without_use)
12489         (sc_prohibit_stdio-safer_without_use)
12490         (sc_prohibit_strings_without_use)
12491         (sc_prohibit_intprops_without_use)
12492         (sc_prohibit_stddef_without_use)
12493         (sc_prohibit_xfreopen_without_use): Update clients.
12494
12495 2011-06-24  Jim Meyering  <meyering@redhat.com>
12496
12497         syntax-check: keep one maint.mk rule in sync with its header
12498         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12499         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12500         I prefer to avoid temporary files here, so use <(...), but that
12501         is not supported by /bin/sh, so...
12502         (SHELL): Define to /bin/bash.
12503
12504 2011-06-24  Eric Blake  <eblake@redhat.com>
12505
12506         maint.mk: update sc_prohibit_intprops_without_use
12507         * top/maint.mk (_intprops_names): Match recent changes.
12508
12509 2011-06-24  Bruno Haible  <bruno@clisp.org>
12510
12511         strerror-override: No-op tweak.
12512         * lib/strerror-override.h (strerror_override): Reorder conditions,
12513         for consistency with lib/strerror-override.c.
12514
12515 2011-06-23  Eric Blake  <eblake@redhat.com>
12516
12517         maint.mk: test further PATH_MAX issues
12518         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12519         (sc_prohibit_path_max_allocation): ...and also test alloca.
12520         Suggested by Jim Meyering.
12521
12522 2011-06-22  Eric Blake  <eblake@redhat.com>
12523
12524         maint.mk: add syntax-check to avoid char[PATH_MAX]
12525         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12526
12527         stat: be robust to PATH_MAX definition
12528         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12529         * modules/stat (Depends-on): Add verify.
12530
12531         link: work around IRIX bug
12532         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12533         * lib/link.c (rpl_link): Work around it.
12534         * tests/test-link.h (test_link): Enhance test.
12535         * doc/posix-functions/link.texi (link): Document the bug.
12536
12537         getopt: silence clang warning
12538         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12539         dereference.
12540         Reported by Gustavo Martin Domato.
12541
12542 2011-06-22  Jim Meyering  <meyering@redhat.com>
12543
12544         bootstrap: do not insert a blank line into each .gitignore file
12545         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12546
12547 2011-06-21  Eric Blake  <eblake@redhat.com>
12548
12549         perror: test for output mismatch
12550         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12551         perror on IRIX.
12552
12553         strerror_r: fix OpenBSD behavior on out-of-range
12554         * lib/strerror_r.c (strerror_r): Always use maximal string.
12555         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12556
12557         strerror_r: fix OpenBSD behavior on 0
12558         * lib/strerror-override.c (strerror_override): Also override 0
12559         when needed.
12560         * lib/strerror-override.h (strerror_override): Likewise.
12561         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12562         earlier.
12563         * lib/strerror_r.c (strerror_r): Likewise.
12564         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12565         behavior...
12566         (gl_FUNC_STRERROR_0): ...into new macro.
12567         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12568         is overridden.
12569         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12570         * modules/strerror-override (Files): Add strerror.m4.
12571         (configure.ac): Also provide override for 0 when needed.
12572         * doc/posix-functions/strerror.texi (strerror): Document this.
12573         * doc/posix-functions/perror.texi (perror): Likewise.
12574
12575         perror: adjust array size
12576         * modules/perror (Depends-on): Add strerror-override.
12577         * lib/perror.c (perror): Use it to avoid magic number.
12578
12579         strerror-override: reduce size
12580         * lib/strerror-override.c (strerror_override): Use fewer lines.
12581
12582 2011-06-20  Bruno Haible  <bruno@clisp.org>
12583
12584         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12585         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12586
12587 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12588
12589         alloca: port to compilers that can optimize like GCC 4.6.0
12590         * lib/alloca.c (find_stack_direction): New signature, taken from
12591         Autoconf git.  This works with GCC 4.6.0.  This code should never
12592         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12593         be used with other compilers that optimize as well as GCC 4.6.0 does.
12594         (alloca): Adjust to new signature.
12595         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12596         New macro, which patches Autoconf in a similar way.
12597
12598         c-stack: stop worrying about stack direction
12599         * lib/c-stack.c (find_stack_direction): Remove.
12600         (segv_handler): Don't worry about stack direction growth, as it's
12601         too much of a pain to configure this correctly, given how compilers
12602         are optimizing-away our stack-growth detection code.  Instead, assume
12603         that any access to just before or just after the stack is OK.
12604         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12605         Don't require AC_FUNC_ALLOCA; no longer needed.
12606
12607 2011-06-20  Eric Blake  <eblake@redhat.com>
12608
12609         test-stat: don't allocate PATH_MAX bytes
12610         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12611         PATH_MAX-sized buffer.
12612         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12613         * modules/stat-tests (Depends-on): Likewise.
12614         * tests/test-fstatat.c (includes): Drop pathmax.h.
12615         * tests/test-stat.c (includes): Likewise.
12616         Reported by Bruno Haible.
12617
12618 2011-06-20  Bruno Haible  <bruno@clisp.org>
12619
12620         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12621         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12622         * lib/float.c: New file.
12623         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12624         REPLACE_FLOAT_LDBL.
12625         * modules/float (Files): Add lib/float.c.
12626         (configure.ac): Invoke AC_LIBOBJ.
12627         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12628
12629 2011-06-20  Bruno Haible  <bruno@clisp.org>
12630
12631         Tests for module 'float'.
12632         * modules/float-tests: New file.
12633         * tests/test-float.c: New file.
12634
12635 2011-06-19  Bruno Haible  <bruno@clisp.org>
12636
12637         isinf: Coding style.
12638         * lib/isinf.c: Use GNU coding style.
12639
12640 2011-06-19  Bruno Haible  <bruno@clisp.org>
12641
12642         linkat test: Avoid test failure on AIX 7.1.
12643         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12644         * tests/test-link.h (test_link): Likewise.
12645
12646 2011-06-19  Bruno Haible  <bruno@clisp.org>
12647
12648         pread test: Avoid test failure on OpenBSD 4.9.
12649         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12650
12651 2011-06-19  Bruno Haible  <bruno@clisp.org>
12652
12653         sprintf-posix: Fix test failure on AIX 7.1.
12654         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12655         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12656         on AIX.
12657         * doc/posix-functions/fprintf.texi: Likewise.
12658         * doc/posix-functions/printf.texi: Likewise.
12659         * doc/posix-functions/snprintf.texi: Likewise.
12660         * doc/posix-functions/sprintf.texi: Likewise.
12661         * doc/posix-functions/vdprintf.texi: Likewise.
12662         * doc/posix-functions/vfprintf.texi: Likewise.
12663         * doc/posix-functions/vprintf.texi: Likewise.
12664         * doc/posix-functions/vsnprintf.texi: Likewise.
12665         * doc/posix-functions/vsprintf.texi: Likewise.
12666
12667 2011-06-19  Bruno Haible  <bruno@clisp.org>
12668
12669         roundl-ieee: Fix test failure on AIX 7.1.
12670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12671         * doc/posix-functions/roundl.texi: Mention problem with negative
12672         arguments.
12673
12674 2011-06-19  Bruno Haible  <bruno@clisp.org>
12675
12676         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12677         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12678         * doc/posix-functions/round.texi: Mention problem with negative
12679         arguments.
12680         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12681
12682 2011-06-19  Bruno Haible  <bruno@clisp.org>
12683
12684         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12686         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12687         * doc/posix-functions/roundf.texi: Mention problem with negative
12688         arguments.
12689         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12690
12691 2011-06-19  Bruno Haible  <bruno@clisp.org>
12692
12693         ceilf-ieee: Work around bug on MacOS X 10.5.
12694         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12695
12696         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12697         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12698         IEEE compliant, avoid compiler optimizations.
12699         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12700         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12701         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12702         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12703         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12704         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12706         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12707         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12708         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12709
12710 2011-06-19  Bruno Haible  <bruno@clisp.org>
12711
12712         ceilf-ieee: Work around bug on AIX 7.1.
12713         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12714         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12715
12716 2011-06-19  Bruno Haible  <bruno@clisp.org>
12717
12718         ceil-ieee: Work around bug on AIX 7.1.
12719         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12720         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12721
12722 2011-06-18  Bruno Haible  <bruno@clisp.org>
12723
12724         fsync test: Avoid test failure on MacOS X and AIX.
12725         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12726         EINVAL.
12727
12728 2011-06-18  Bruno Haible  <bruno@clisp.org>
12729
12730         openat, fdopendir tests: Fix link errors.
12731         * modules/openat-tests (Depends-on): Add progname.
12732         * modules/fdopendir-tests (Depends-on): Likewise.
12733         * tests/test-fchownat.c: Include progname.h.
12734         (main): Call set_program_name.
12735         * tests/test-fstatat.c: Include progname.h.
12736         (main): Call set_program_name.
12737         * tests/test-mkdirat.c: Include progname.h.
12738         (main): Call set_program_name.
12739         * tests/test-openat.c: Include progname.h.
12740         (main): Call set_program_name.
12741         * tests/test-unlinkat.c: Include progname.h.
12742         (main): Call set_program_name.
12743         * tests/test-fdopendir.c: Include progname.h.
12744         (main): Call set_program_name.
12745
12746 2011-06-18  Bruno Haible  <bruno@clisp.org>
12747
12748         Doc update.
12749         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12750         HP-UX.
12751         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12752
12753 2011-06-18  Bruno Haible  <bruno@clisp.org>
12754
12755         getcwd tests: Avoid compilation error on HP-UX 11.31.
12756         * modules/getcwd-tests (Depends-on): Add pathmax.
12757         * tests/test-getcwd.c: Include pathmax.h.
12758
12759 2011-06-18  Bruno Haible  <bruno@clisp.org>
12760
12761         isfinite, isinf: Fix link error on AIX 6 and 7.
12762         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12763         needed, also test the macro with a 'float' argument.
12764         * m4/isinf.m4 (gl_ISINF): Likewise.
12765
12766 2011-06-18  Bruno Haible  <bruno@clisp.org>
12767
12768         getloadavg: Don't clobber LIBS. Regression from previous commit.
12769         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12770         AC_CHECK_LIB from here...
12771         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12772         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12773         gl_func_getloadavg_done.
12774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12775
12776 2011-06-18  Bruno Haible  <bruno@clisp.org>
12777
12778         clean-temp: Improve documentation.
12779         * lib/clean-temp.h: Explain better how to use this module.
12780         Reported by John Darrington <john@darrington.wattle.id.au>.
12781
12782 2011-06-17  Bruno Haible  <bruno@clisp.org>
12783
12784         pread, pwrite: Avoid cc warning on AIX.
12785         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12786         (pwrite): Likewise.
12787
12788 2011-06-17  Bruno Haible  <bruno@clisp.org>
12789
12790         spawn-pipe tests: Fix link error.
12791         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12793
12794 2011-06-17  Bruno Haible  <bruno@clisp.org>
12795
12796         Tests: Remove unnecessary dependency.
12797         * modules/canonicalize-tests (Depends-on): Remove progname.
12798         * modules/chown-tests (Depends-on): Likewise.
12799         * modules/dirname-tests (Depends-on): Likewise.
12800         * modules/fdopendir-tests (Depends-on): Likewise.
12801         * modules/fdutimensat-tests (Depends-on): Likewise.
12802         * modules/hash-tests (Depends-on): Likewise.
12803         * modules/lchown-tests (Depends-on): Likewise.
12804         * modules/linkat-tests (Depends-on): Likewise.
12805         * modules/renameat-tests (Depends-on): Likewise.
12806         * modules/spawn-pipe-tests (Depends-on): Likewise.
12807         * modules/utimensat-tests (Depends-on): Likewise.
12808
12809 2011-06-17  Bruno Haible  <bruno@clisp.org>
12810
12811         spawn-pipe tests: Fix link error.
12812         * tests/test-spawn-pipe-child.c: Undefine fflush.
12813
12814 2011-06-17  Bruno Haible  <bruno@clisp.org>
12815
12816         Fix tests link errors.
12817         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12818         * modules/chown-tests (Makefile.am): Don't link test-chown with
12819         LIBINTL.
12820         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12821         LIBINTL.
12822         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12823         LIBINTL.
12824         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12825         LIBINTL.
12826
12827 2011-06-16  Bruno Haible  <bruno@clisp.org>
12828
12829         crypto/gc-sha1: Fix recent regression.
12830         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12831         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12832
12833         crypto/gc-md5: Fix recent regression.
12834         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12835
12836         crypto/gc-md4: Fix recent regression.
12837         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12838         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12839
12840         crypto/gc-arctwo: Fix recent regression.
12841         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12842         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12843
12844         crypto/gc-rijndael: Fix recent regression.
12845         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12846         (configure.ac): Invoke AC_LIBOBJ here.
12847         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12849
12850         crypto/gc-hmac-sha1: Fix recent regression.
12851         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12852         (configure.ac): Invoke AC_LIBOBJ here.
12853         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12855
12856         crypto/gc-hmac-md5: Fix recent regression.
12857         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12858         (configure.ac): Invoke AC_LIBOBJ here.
12859         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12861
12862         crypto/gc-des: Fix recent regression.
12863         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12864         (configure.ac): Invoke AC_LIBOBJ here.
12865         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12867
12868         crypto/gc-arcfour: Fix recent regression.
12869         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12870         (configure.ac): Invoke AC_LIBOBJ here.
12871         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12873
12874 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12875
12876         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12877         After the 2011-05-21 change, this macro requires
12878         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12880
12881 2011-06-16  Bruno Haible  <bruno@clisp.org>
12882
12883         fprintftime: Move AC_LIBOBJ invocations to module description.
12884         * m4/fprintftime.m4: Remove file.
12885         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12886         (configure.ac): Remove gl_FPRINTFTIME call.
12887         (Makefile.am): Augment lib_SOURCES.
12888         Reported by Jim Meyering.
12889
12890 2011-06-16  Bruno Haible  <bruno@clisp.org>
12891
12892         tmpfile-safer: Finish 2011-05-23 commit.
12893         * m4/stdio-safer.m4: Really remove file.
12894         Reported by Jim Meyering.
12895
12896 2011-06-16  Bruno Haible  <bruno@clisp.org>
12897
12898         syntax-check: Fix typo.
12899         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12900         printf-posix.m4.
12901         Reported by Jim Meyering.
12902
12903 2011-06-13  Jim Meyering  <meyering@redhat.com>
12904
12905         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12906         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12907
12908 2011-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         yesno: Move AC_LIBOBJ invocations to module description.
12911         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12912         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12913
12914 2011-05-23  Bruno Haible  <bruno@clisp.org>
12915
12916         xstrtol: Move AC_LIBOBJ invocations to module description.
12917         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12918         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12919
12920 2011-05-23  Bruno Haible  <bruno@clisp.org>
12921
12922         xstrtold: Move AC_LIBOBJ invocations to module description.
12923         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12924         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12925
12926 2011-05-23  Bruno Haible  <bruno@clisp.org>
12927
12928         xstrtod: Move AC_LIBOBJ invocations to module description.
12929         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12930         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12931
12932 2011-05-23  Bruno Haible  <bruno@clisp.org>
12933
12934         xnanosleep: Move AC_LIBOBJ invocations to module description.
12935         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12936         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12937
12938 2011-05-23  Bruno Haible  <bruno@clisp.org>
12939
12940         xgetcwd: Move AC_LIBOBJ invocations to module description.
12941         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12942         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12943
12944 2011-05-23  Bruno Haible  <bruno@clisp.org>
12945
12946         xalloc: Move AC_LIBOBJ invocations to module description.
12947         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12948         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12949
12950 2011-05-23  Bruno Haible  <bruno@clisp.org>
12951
12952         write-any-file: Move AC_LIBOBJ invocations to module description.
12953         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12954         invocation.
12955         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12956
12957 2011-05-23  Bruno Haible  <bruno@clisp.org>
12958
12959         utimens: Move AC_LIBOBJ invocations to module description.
12960         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12961         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12962
12963 2011-05-23  Bruno Haible  <bruno@clisp.org>
12964
12965         utimecmp: Move AC_LIBOBJ invocations to module description.
12966         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12967         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12968
12969 2011-05-23  Bruno Haible  <bruno@clisp.org>
12970
12971         userspec: Move AC_LIBOBJ invocations to module description.
12972         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12973         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12974
12975 2011-05-23  Bruno Haible  <bruno@clisp.org>
12976
12977         unlinkdir: Move AC_LIBOBJ invocations to module description.
12978         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12979         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12980
12981 2011-05-23  Bruno Haible  <bruno@clisp.org>
12982
12983         unistd-safer: Move AC_LIBOBJ invocations to module description.
12984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12985         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12986
12987 2011-05-23  Bruno Haible  <bruno@clisp.org>
12988
12989         tempname: Move AC_LIBOBJ invocations to module description.
12990         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12991         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12992
12993 2011-05-23  Bruno Haible  <bruno@clisp.org>
12994
12995         strftime: Move AC_LIBOBJ invocations to module description.
12996         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12997         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12998
12999 2011-05-23  Bruno Haible  <bruno@clisp.org>
13000
13001         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13002         * m4/stdlib-safer.m4: Remove file.
13003         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13004         (configure.ac): Remove gl_STDLIB_SAFER call.
13005         (Makefile.am): Augment lib_SOURCES.
13006
13007 2011-05-23  Bruno Haible  <bruno@clisp.org>
13008
13009         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13010         * m4/stdio-safer.m4: Remove file.
13011         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13012         (configure.ac): Remove gl_TMPFILE_SAFER call.
13013         (Makefile.am): Augment lib_SOURCES.
13014
13015 2011-05-23  Bruno Haible  <bruno@clisp.org>
13016
13017         popen-safer: Move AC_LIBOBJ invocations to module description.
13018         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13019         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13020         (configure.ac): Remove gl_POPEN_SAFER call.
13021         (Makefile.am): Augment lib_SOURCES.
13022
13023 2011-05-23  Bruno Haible  <bruno@clisp.org>
13024
13025         freopen-safer: Move AC_LIBOBJ invocations to module description.
13026         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13027         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13028         (configure.ac): Remove gl_FREOPEN_SAFER call.
13029         (Makefile.am): Augment lib_SOURCES.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         fopen-safer: Move AC_LIBOBJ invocations to module description.
13034         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13035         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13036         (configure.ac): Remove gl_FOPEN_SAFER call.
13037         (Makefile.am): Augment lib_SOURCES.
13038
13039 2011-05-23  Bruno Haible  <bruno@clisp.org>
13040
13041         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13042         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13043         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13048         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13049         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13054         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13055         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         settime: Move AC_LIBOBJ invocations to module description.
13060         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13061         * modules/settime (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         savedir: Move AC_LIBOBJ invocations to module description.
13066         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13067         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         save-cwd: Move AC_LIBOBJ invocations to module description.
13072         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13073         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13074
13075 2011-05-23  Bruno Haible  <bruno@clisp.org>
13076
13077         same: Move AC_LIBOBJ invocations to module description.
13078         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13079         * modules/same (Makefile.am): Augment lib_SOURCES.
13080
13081 2011-05-23  Bruno Haible  <bruno@clisp.org>
13082
13083         safe-write: Move AC_LIBOBJ invocations to module description.
13084         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13085         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13086         instead of gl_SAFE_WRITE.
13087         (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         safe-read: Move AC_LIBOBJ invocations to module description.
13092         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13093         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13094         of gl_SAFE_READ.
13095         (Makefile.am): Augment lib_SOURCES.
13096
13097 2011-05-23  Bruno Haible  <bruno@clisp.org>
13098
13099         safe-alloc: Move AC_LIBOBJ invocations to module description.
13100         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13101         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13106         * m4/rijndael.m4: Remove file.
13107         * modules/crypto/rijndael (Files): Remove it.
13108         (configure.ac): Remove gl_RIJNDAEL call.
13109         (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         readtokens: Move AC_LIBOBJ invocations to module description.
13114         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13115         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         read-file: Move AC_LIBOBJ invocations to module description.
13120         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13121         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13122         of gl_FUNC_READ_FILE.
13123         (Makefile.am): Augment lib_SOURCES.
13124
13125 2011-05-23  Bruno Haible  <bruno@clisp.org>
13126
13127         quotearg: Move AC_LIBOBJ invocations to module description.
13128         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13129         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13130
13131 2011-05-23  Bruno Haible  <bruno@clisp.org>
13132
13133         quote: Move AC_LIBOBJ invocations to module description.
13134         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13135         * modules/quote (Makefile.am): Augment lib_SOURCES.
13136
13137 2011-05-23  Bruno Haible  <bruno@clisp.org>
13138
13139         posixver: Move AC_LIBOBJ invocations to module description.
13140         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13141         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13142
13143 2011-05-23  Bruno Haible  <bruno@clisp.org>
13144
13145         posixtm: Move AC_LIBOBJ invocations to module description.
13146         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13147         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13148
13149 2011-05-23  Bruno Haible  <bruno@clisp.org>
13150
13151         physmem: Move AC_LIBOBJ invocations to module description.
13152         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13153         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13154
13155 2011-05-23  Bruno Haible  <bruno@clisp.org>
13156
13157         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13158         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13159         invocation.
13160         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13161
13162 2011-05-23  Bruno Haible  <bruno@clisp.org>
13163
13164         mpsort: Move AC_LIBOBJ invocations to module description.
13165         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13166         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13167
13168 2011-05-23  Bruno Haible  <bruno@clisp.org>
13169
13170         modechange: Move AC_LIBOBJ invocations to module description.
13171         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13172         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13173
13174 2011-05-23  Bruno Haible  <bruno@clisp.org>
13175
13176         mkdir-p: Move AC_LIBOBJ invocations to module description.
13177         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13178         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13179
13180 2011-05-23  Bruno Haible  <bruno@clisp.org>
13181
13182         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13183         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13184         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13185
13186 2011-05-23  Bruno Haible  <bruno@clisp.org>
13187
13188         mgetgroups: Move AC_LIBOBJ invocations to module description.
13189         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13190         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13191
13192 2011-05-23  Bruno Haible  <bruno@clisp.org>
13193
13194         memxor: Move AC_LIBOBJ invocations to module description.
13195         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13196         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13197
13198 2011-05-23  Bruno Haible  <bruno@clisp.org>
13199
13200         memcoll: Move AC_LIBOBJ invocations to module description.
13201         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13202         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13203
13204 2011-05-23  Bruno Haible  <bruno@clisp.org>
13205
13206         memcasecmp: Move AC_LIBOBJ invocations to module description.
13207         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13208         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13209
13210 2011-05-23  Bruno Haible  <bruno@clisp.org>
13211
13212         crypto/md5: Move AC_LIBOBJ invocations to module description.
13213         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13214         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13215
13216 2011-05-23  Bruno Haible  <bruno@clisp.org>
13217
13218         crypto/md4: Move AC_LIBOBJ invocations to module description.
13219         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13220         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13221
13222 2011-05-23  Bruno Haible  <bruno@clisp.org>
13223
13224         crypto/md2: Move AC_LIBOBJ invocations to module description.
13225         * m4/md2.m4: Remove file.
13226         * modules/crypto/md2 (Files): Remove it.
13227         (configure.ac): Remove gl_MD2 call.
13228         (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         long-options: Move AC_LIBOBJ invocations to module description.
13233         * m4/long-options.m4: Remove file.
13234         * modules/long-options (Files): Remove it.
13235         (configure.ac): Remove gl_LONG_OPTIONS call.
13236         (Makefile.am): Augment lib_SOURCES.
13237
13238 2011-05-23  Bruno Haible  <bruno@clisp.org>
13239
13240         i-ring: Move AC_LIBOBJ invocations to module description.
13241         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13242         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13243
13244 2011-05-23  Bruno Haible  <bruno@clisp.org>
13245
13246         idcache: Move AC_LIBOBJ invocations to module description.
13247         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13248         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13249
13250 2011-05-23  Bruno Haible  <bruno@clisp.org>
13251
13252         human: Move AC_LIBOBJ invocations to module description.
13253         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13254         * modules/human (Makefile.am): Augment lib_SOURCES.
13255
13256 2011-05-23  Bruno Haible  <bruno@clisp.org>
13257
13258         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13259         * m4/hmac-sha1.m4: Remove file.
13260         * modules/crypto/hmac-sha1 (Files): Remove it.
13261         (configure.ac): Remove gl_HMAC_SHA1 call.
13262         (Makefile.am): Augment lib_SOURCES.
13263
13264 2011-05-23  Bruno Haible  <bruno@clisp.org>
13265
13266         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13267         * m4/hmac-md5.m4: Remove file.
13268         * modules/crypto/hmac-md5 (Files): Remove it.
13269         (configure.ac): Remove gl_HMAC_MD5 call.
13270         (Makefile.am): Augment lib_SOURCES.
13271
13272 2011-05-23  Bruno Haible  <bruno@clisp.org>
13273
13274         hash: Move AC_LIBOBJ invocations to module description.
13275         * m4/hash.m4: Remove file.
13276         * modules/hash (Files): Remove it.
13277         (configure.ac): Remove gl_HASH call.
13278         (Makefile.am): Augment lib_SOURCES.
13279
13280 2011-05-23  Bruno Haible  <bruno@clisp.org>
13281
13282         hard-locale: Move AC_LIBOBJ invocations to module description.
13283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13284         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13285
13286 2011-05-23  Bruno Haible  <bruno@clisp.org>
13287
13288         getugroups: Move AC_LIBOBJ invocations to module description.
13289         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13290         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13291
13292 2011-05-23  Bruno Haible  <bruno@clisp.org>
13293
13294         gettime: Move AC_LIBOBJ invocations to module description.
13295         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13296         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13297
13298 2011-05-23  Bruno Haible  <bruno@clisp.org>
13299
13300         getndelim2: Move AC_LIBOBJ invocations to module description.
13301         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13302         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13303
13304 2011-05-23  Bruno Haible  <bruno@clisp.org>
13305
13306         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13307         * m4/gc-pbkdf2-sha1.m4: Remove file.
13308         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13309         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13310         (Makefile.am): Augment lib_SOURCES.
13311
13312 2011-05-23  Bruno Haible  <bruno@clisp.org>
13313
13314         fts: Move AC_LIBOBJ invocations to module description.
13315         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13316         * modules/fts (configure.ac): ... to here.
13317
13318 2011-05-23  Bruno Haible  <bruno@clisp.org>
13319
13320         file-type: Move AC_LIBOBJ invocations to module description.
13321         * m4/file-type.m4: Remove file.
13322         * modules/file-type (Files): Remove it.
13323         (configure.ac): Remove gl_FILE_TYPE call.
13324         (Makefile.am): Augment lib_SOURCES.
13325
13326 2011-05-23  Bruno Haible  <bruno@clisp.org>
13327
13328         filenamecat*: Respect rules for use of AC_LIBOBJ.
13329         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13330         Remove AC_LIBOBJ invocation.
13331         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13332         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13333
13334 2011-05-23  Bruno Haible  <bruno@clisp.org>
13335
13336         filemode: Move AC_LIBOBJ invocations to module description.
13337         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13338         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13339
13340 2011-05-23  Bruno Haible  <bruno@clisp.org>
13341
13342         openat-safer: Move AC_LIBOBJ invocations to module description.
13343         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13344         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13345
13346 2011-05-23  Bruno Haible  <bruno@clisp.org>
13347
13348         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13350         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13351
13352 2011-05-23  Bruno Haible  <bruno@clisp.org>
13353
13354         exclude: Move AC_LIBOBJ invocations to module description.
13355         * m4/exclude.m4: Remove file.
13356         * modules/exclude (Files): Remove it.
13357         (configure.ac): Remove gl_EXCLUDE call.
13358         (Makefile.am): Augment lib_SOURCES.
13359
13360 2011-05-23  Bruno Haible  <bruno@clisp.org>
13361
13362         dirname*: Respect rules for use of AC_LIBOBJ.
13363         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13364         invocations.
13365         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13366         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13367
13368 2011-05-23  Bruno Haible  <bruno@clisp.org>
13369
13370         dirent-safer: Move AC_LIBOBJ invocations to module description.
13371         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13372         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13373
13374 2011-05-23  Bruno Haible  <bruno@clisp.org>
13375
13376         crypto/des: Move AC_LIBOBJ invocations to module description.
13377         * m4/des.m4: Remove file.
13378         * modules/crypto/des (Files): Remove it.
13379         (configure.ac): Remove gl_DES call.
13380         (Makefile.am): Augment lib_SOURCES.
13381
13382 2011-05-23  Bruno Haible  <bruno@clisp.org>
13383
13384         cycle-check: Move AC_LIBOBJ invocations to module description.
13385         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13386         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13387
13388 2011-05-23  Bruno Haible  <bruno@clisp.org>
13389
13390         c-strtold: Move AC_LIBOBJ invocations to module description.
13391         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13392         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13393
13394 2011-05-23  Bruno Haible  <bruno@clisp.org>
13395
13396         c-strtod: Move AC_LIBOBJ invocations to module description.
13397         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13398         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13399
13400 2011-05-23  Bruno Haible  <bruno@clisp.org>
13401
13402         crc: Move AC_LIBOBJ invocations to module description.
13403         * m4/crc.m4: Remove file.
13404         * modules/crc (Files): Remove it.
13405         (configure.ac): Remove gl_CRC call.
13406         (Makefile.am): Augment lib_SOURCES.
13407
13408 2011-05-23  Bruno Haible  <bruno@clisp.org>
13409
13410         close-stream: Move AC_LIBOBJ invocations to module description.
13411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13412         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13413
13414 2011-05-23  Bruno Haible  <bruno@clisp.org>
13415
13416         closeout: Move AC_LIBOBJ invocations to module description.
13417         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13418         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13419
13420 2011-05-23  Bruno Haible  <bruno@clisp.org>
13421
13422         closein: Move AC_LIBOBJ invocations to module description.
13423         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13424         * modules/closein (Makefile.am): Augment lib_SOURCES.
13425
13426 2011-05-23  Bruno Haible  <bruno@clisp.org>
13427
13428         cloexec: Move AC_LIBOBJ invocations to module description.
13429         * m4/cloexec.m4: Remove file.
13430         * modules/cloexec (Files): Remove it.
13431         (configure.ac): Remove gl_CLOEXEC call.
13432         (Makefile.am): Augment lib_SOURCES.
13433
13434 2011-05-23  Bruno Haible  <bruno@clisp.org>
13435
13436         check-version: Move AC_LIBOBJ invocations to module description.
13437         * m4/check-version.m4: Remove file.
13438         * modules/check-version (Files): Remove it.
13439         (configure.ac): Remove gl_CHECK_VERSION call.
13440         (Makefile.am): Augment lib_SOURCES.
13441
13442 2011-05-23  Bruno Haible  <bruno@clisp.org>
13443
13444         chdir-safer: Move AC_LIBOBJ invocations to module description.
13445         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13446         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13447
13448 2011-05-23  Bruno Haible  <bruno@clisp.org>
13449
13450         canonicalize: Move AC_LIBOBJ invocations to module description.
13451         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13452         AC_LIBOBJ invocation.
13453         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13454
13455 2011-05-23  Bruno Haible  <bruno@clisp.org>
13456
13457         canon-host: Move AC_LIBOBJ invocations to module description.
13458         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13459         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13460         instead of gl_CANON_HOST.
13461         (Makefile.am): Augment lib_SOURCES.
13462
13463 2011-05-23  Bruno Haible  <bruno@clisp.org>
13464
13465         backupfile: Move AC_LIBOBJ invocations to module description.
13466         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13467         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13468
13469 2011-05-23  Bruno Haible  <bruno@clisp.org>
13470
13471         argmatch: Move AC_LIBOBJ invocations to module description.
13472         * m4/argmatch.m4: Remove file.
13473         * modules/argmatch (Files): Remove it.
13474         (configure.ac): Remove gl_ARGMATCH call.
13475         (Makefile.am): Augment lib_SOURCES.
13476
13477 2011-05-23  Bruno Haible  <bruno@clisp.org>
13478
13479         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13480         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13481         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13482
13483 2011-05-23  Bruno Haible  <bruno@clisp.org>
13484
13485         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13486         * m4/arcfour.m4: Remove file.
13487         * modules/crypto/arcfour (Files): Remove it.
13488         (configure.ac): Remove gl_ARCFOUR call.
13489         (Makefile.am): Augment lib_SOURCES.
13490
13491 2011-05-22  Bruno Haible  <bruno@clisp.org>
13492
13493         write: Move AC_LIBOBJ invocations to module description.
13494         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13495         * modules/write (configure.ac): ... to here.
13496
13497 2011-05-22  Bruno Haible  <bruno@clisp.org>
13498
13499         wmemset: Move AC_LIBOBJ invocations to module description.
13500         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13501         here...
13502         * modules/wmemset (configure.ac): ... to here.
13503
13504 2011-05-22  Bruno Haible  <bruno@clisp.org>
13505
13506         wmemmove: Move AC_LIBOBJ invocations to module description.
13507         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13508         here...
13509         * modules/wmemmove (configure.ac): ... to here.
13510
13511 2011-05-22  Bruno Haible  <bruno@clisp.org>
13512
13513         wmemcpy: Move AC_LIBOBJ invocations to module description.
13514         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13515         here...
13516         * modules/wmemcpy (configure.ac): ... to here.
13517
13518 2011-05-22  Bruno Haible  <bruno@clisp.org>
13519
13520         wmemcmp: Move AC_LIBOBJ invocations to module description.
13521         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13522         here...
13523         * modules/wmemcmp (configure.ac): ... to here.
13524
13525 2011-05-22  Bruno Haible  <bruno@clisp.org>
13526
13527         wmemchr: Move AC_LIBOBJ invocations to module description.
13528         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13529         here...
13530         * modules/wmemchr (configure.ac): ... to here.
13531
13532 2011-05-22  Bruno Haible  <bruno@clisp.org>
13533
13534         wcswidth: Move AC_LIBOBJ invocations to module description.
13535         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13536         here...
13537         * modules/wcswidth (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         wcwidth: Respect rules for use of AC_LIBOBJ.
13542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13543         invocation from here...
13544         * modules/wcwidth (configure.ac): ... to here.
13545         (Depends-on): Update conditions.
13546
13547 2011-05-22  Bruno Haible  <bruno@clisp.org>
13548
13549         wctype: Move AC_LIBOBJ invocations to module description.
13550         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13551         invocation from here...
13552         * modules/wctype (configure.ac): ... to here.
13553         (Depends-on): Update conditions.
13554
13555 2011-05-22  Bruno Haible  <bruno@clisp.org>
13556
13557         wctrans: Move AC_LIBOBJ invocations to module description.
13558         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13559         invocation from here...
13560         * modules/wctrans (configure.ac): ... to here.
13561
13562 2011-05-22  Bruno Haible  <bruno@clisp.org>
13563
13564         wctomb: Move AC_LIBOBJ invocations to module description.
13565         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13566         invocations from here...
13567         * modules/wctomb (configure.ac): ... to here.
13568
13569 2011-05-22  Bruno Haible  <bruno@clisp.org>
13570
13571         wctob: Move AC_LIBOBJ invocations to module description.
13572         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13573         gl_PREREQ_WCTOB invocations from here...
13574         * modules/wctob (configure.ac): ... to here.
13575         (Depends-on): Update conditions.
13576
13577 2011-05-22  Bruno Haible  <bruno@clisp.org>
13578
13579         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13580         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13581         here...
13582         * modules/wcsxfrm (configure.ac): ... to here.
13583
13584 2011-05-22  Bruno Haible  <bruno@clisp.org>
13585
13586         wcstok: Move AC_LIBOBJ invocations to module description.
13587         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13588         * modules/wcstok (configure.ac): ... to here.
13589
13590 2011-05-22  Bruno Haible  <bruno@clisp.org>
13591
13592         wcsstr: Move AC_LIBOBJ invocations to module description.
13593         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13594         * modules/wcsstr (configure.ac): ... to here.
13595
13596 2011-05-22  Bruno Haible  <bruno@clisp.org>
13597
13598         wcsspn: Move AC_LIBOBJ invocations to module description.
13599         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13600         * modules/wcsspn (configure.ac): ... to here.
13601
13602 2011-05-22  Bruno Haible  <bruno@clisp.org>
13603
13604         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13605         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13606         gl_PREREQ_WCSRTOMBS invocations from here...
13607         * modules/wcsrtombs (configure.ac): ... to here.
13608
13609 2011-05-22  Bruno Haible  <bruno@clisp.org>
13610
13611         wcsrchr: Move AC_LIBOBJ invocations to module description.
13612         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13613         here...
13614         * modules/wcsrchr (configure.ac): ... to here.
13615
13616 2011-05-22  Bruno Haible  <bruno@clisp.org>
13617
13618         wcspbrk: Move AC_LIBOBJ invocations to module description.
13619         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13620         here...
13621         * modules/wcspbrk (configure.ac): ... to here.
13622
13623 2011-05-22  Bruno Haible  <bruno@clisp.org>
13624
13625         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13626         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13627         gl_PREREQ_WCSNRTOMBS invocations from here...
13628         * modules/wcsnrtombs (configure.ac): ... to here.
13629
13630 2011-05-22  Bruno Haible  <bruno@clisp.org>
13631
13632         wcsnlen: Move AC_LIBOBJ invocations to module description.
13633         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13634         here...
13635         * modules/wcsnlen (configure.ac): ... to here.
13636
13637 2011-05-22  Bruno Haible  <bruno@clisp.org>
13638
13639         wcsncpy: Move AC_LIBOBJ invocations to module description.
13640         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13641         here...
13642         * modules/wcsncpy (configure.ac): ... to here.
13643
13644 2011-05-22  Bruno Haible  <bruno@clisp.org>
13645
13646         wcsncmp: Move AC_LIBOBJ invocations to module description.
13647         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13648         here...
13649         * modules/wcsncmp (configure.ac): ... to here.
13650
13651 2011-05-22  Bruno Haible  <bruno@clisp.org>
13652
13653         wcsncat: Move AC_LIBOBJ invocations to module description.
13654         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13655         here...
13656         * modules/wcsncat (configure.ac): ... to here.
13657
13658 2011-05-22  Bruno Haible  <bruno@clisp.org>
13659
13660         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13661         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13662         from here...
13663         * modules/wcsncasecmp (configure.ac): ... to here.
13664
13665 2011-05-22  Bruno Haible  <bruno@clisp.org>
13666
13667         wcslen: Move AC_LIBOBJ invocations to module description.
13668         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13669         * modules/wcslen (configure.ac): ... to here.
13670
13671 2011-05-22  Bruno Haible  <bruno@clisp.org>
13672
13673         wcsdup: Move AC_LIBOBJ invocations to module description.
13674         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13675         * modules/wcsdup (configure.ac): ... to here.
13676
13677 2011-05-22  Bruno Haible  <bruno@clisp.org>
13678
13679         wcscspn: Move AC_LIBOBJ invocations to module description.
13680         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13681         here...
13682         * modules/wcscspn (configure.ac): ... to here.
13683
13684 2011-05-22  Bruno Haible  <bruno@clisp.org>
13685
13686         wcscpy: Move AC_LIBOBJ invocations to module description.
13687         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13688         * modules/wcscpy (configure.ac): ... to here.
13689
13690 2011-05-22  Bruno Haible  <bruno@clisp.org>
13691
13692         wcscoll: Move AC_LIBOBJ invocations to module description.
13693         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13694         here...
13695         * modules/wcscoll (configure.ac): ... to here.
13696
13697 2011-05-22  Bruno Haible  <bruno@clisp.org>
13698
13699         wcscmp: Move AC_LIBOBJ invocations to module description.
13700         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13701         * modules/wcscmp (configure.ac): ... to here.
13702
13703 2011-05-22  Bruno Haible  <bruno@clisp.org>
13704
13705         wcschr: Move AC_LIBOBJ invocations to module description.
13706         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13707         * modules/wcschr (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         wcscat: Move AC_LIBOBJ invocations to module description.
13712         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13713         * modules/wcscat (configure.ac): ... to here.
13714
13715 2011-05-22  Bruno Haible  <bruno@clisp.org>
13716
13717         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13718         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13719         here...
13720         * modules/wcscasecmp (configure.ac): ... to here.
13721
13722 2011-05-22  Bruno Haible  <bruno@clisp.org>
13723
13724         wcrtomb: Move AC_LIBOBJ invocations to module description.
13725         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13726         invocations from here...
13727         * modules/wcrtomb (configure.ac): ... to here.
13728
13729 2011-05-22  Bruno Haible  <bruno@clisp.org>
13730
13731         wcpncpy: Move AC_LIBOBJ invocations to module description.
13732         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13733         here...
13734         * modules/wcpncpy (configure.ac): ... to here.
13735
13736 2011-05-22  Bruno Haible  <bruno@clisp.org>
13737
13738         wcpcpy: Move AC_LIBOBJ invocations to module description.
13739         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13740         * modules/wcpcpy (configure.ac): ... to here.
13741
13742 2011-05-22  Bruno Haible  <bruno@clisp.org>
13743
13744         waitpid: Move AC_LIBOBJ invocations to module description.
13745         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13746         invocation from here...
13747         * modules/waitpid (configure.ac): ... to here.
13748
13749 2011-05-22  Bruno Haible  <bruno@clisp.org>
13750
13751         utimensat: Move AC_LIBOBJ invocations to module description.
13752         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13753         here...
13754         * modules/utimensat (configure.ac): ... to here.
13755
13756 2011-05-22  Bruno Haible  <bruno@clisp.org>
13757
13758         usleep: Move AC_LIBOBJ invocations to module description.
13759         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13760         here...
13761         * modules/usleep (configure.ac): ... to here.
13762
13763 2011-05-22  Bruno Haible  <bruno@clisp.org>
13764
13765         unlockpt: Move AC_LIBOBJ invocations to module description.
13766         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13767         gl_PREREQ_UNLOCKPT invocations from here...
13768         * modules/unlockpt (configure.ac): ... to here.
13769
13770 2011-05-22  Bruno Haible  <bruno@clisp.org>
13771
13772         unlink: Respect rules for use of AC_LIBOBJ.
13773         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13774         * modules/unlink (configure.ac): ... to here.
13775
13776 2011-05-22  Bruno Haible  <bruno@clisp.org>
13777
13778         uname: Move AC_LIBOBJ invocations to module description.
13779         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13781         here...
13782         * modules/uname (configure.ac): ... to here.
13783
13784 2011-05-22  Bruno Haible  <bruno@clisp.org>
13785
13786         ttyname_r: Move AC_LIBOBJ invocations to module description.
13787         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13788         gl_PREREQ_TTYNAME_R invocations from here...
13789         * modules/ttyname_r (configure.ac): ... to here.
13790
13791 2011-05-22  Bruno Haible  <bruno@clisp.org>
13792
13793         tsearch: Move AC_LIBOBJ invocations to module description.
13794         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13795         invocations from here...
13796         * modules/tsearch (configure.ac): ... to here.
13797
13798 2011-05-22  Bruno Haible  <bruno@clisp.org>
13799
13800         towctrans: Move AC_LIBOBJ invocations to module description.
13801         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13802         AC_LIBOBJ invocation from here...
13803         * modules/towctrans (configure.ac): ... to here.
13804
13805 2011-05-22  Bruno Haible  <bruno@clisp.org>
13806
13807         tmpfile: Move AC_LIBOBJ invocations to module description.
13808         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13809         invocations from here...
13810         * modules/tmpfile (configure.ac): ... to here.
13811
13812 2011-05-22  Bruno Haible  <bruno@clisp.org>
13813
13814         times: Move AC_LIBOBJ invocations to module description.
13815         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13816         * modules/times (configure.ac): ... to here.
13817
13818 2011-05-22  Bruno Haible  <bruno@clisp.org>
13819
13820         time_r: Move AC_LIBOBJ invocations to module description.
13821         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13822         invocations from here...
13823         * modules/time_r (configure.ac): ... to here.
13824
13825 2011-05-22  Bruno Haible  <bruno@clisp.org>
13826
13827         timegm: Move AC_LIBOBJ invocations to module description.
13828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13829         invocations from here...
13830         * modules/timegm (configure.ac): ... to here.
13831
13832 2011-05-22  Bruno Haible  <bruno@clisp.org>
13833
13834         tcgetsid: Move AC_LIBOBJ invocations to module description.
13835         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13836         and gl_PREREQ_TCGETSID invocations from here...
13837         * modules/tcgetsid (configure.ac): ... to here.
13838         (Depends-on): Update conditions.
13839
13840 2011-05-22  Bruno Haible  <bruno@clisp.org>
13841
13842         symlinkat: Move AC_LIBOBJ invocations to module description.
13843         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13844         here...
13845         * modules/symlinkat (configure.ac): ... to here.
13846
13847 2011-05-22  Bruno Haible  <bruno@clisp.org>
13848
13849         symlink: Move AC_LIBOBJ invocations to module description.
13850         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13851         here...
13852         * modules/symlink (configure.ac): ... to here.
13853
13854 2011-05-22  Bruno Haible  <bruno@clisp.org>
13855
13856         strverscmp: Move AC_LIBOBJ invocations to module description.
13857         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13859         from here...
13860         * modules/strverscmp (configure.ac): ... to here.
13861
13862 2011-05-22  Bruno Haible  <bruno@clisp.org>
13863
13864         strtok_r: Move AC_LIBOBJ invocations to module description.
13865         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13866         and gl_PREREQ_STRTOK_R invocations from here...
13867         * modules/strtok_r (configure.ac): ... to here.
13868         (Depends-on): Update conditions.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         strtoumax: Move AC_LIBOBJ invocations to module description.
13873         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13874         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13875         from here...
13876         * modules/strtoumax (configure.ac): ... to here.
13877
13878 2011-05-22  Bruno Haible  <bruno@clisp.org>
13879
13880         strtoimax: Move AC_LIBOBJ invocations to module description.
13881         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13882         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13883         from here...
13884         * modules/strtoimax (configure.ac): ... to here.
13885
13886 2011-05-22  Bruno Haible  <bruno@clisp.org>
13887
13888         strtoull: Move AC_LIBOBJ invocations to module description.
13889         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13890         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13891         from here...
13892         * modules/strtoull (configure.ac): ... to here.
13893
13894 2011-05-22  Bruno Haible  <bruno@clisp.org>
13895
13896         strtoll: Move AC_LIBOBJ invocations to module description.
13897         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13899         here...
13900         * modules/strtoll (configure.ac): ... to here.
13901
13902 2011-05-22  Bruno Haible  <bruno@clisp.org>
13903
13904         strtoul: Move AC_LIBOBJ invocations to module description.
13905         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13906         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13907         * modules/strtoul (configure.ac): ... to here.
13908
13909 2011-05-22  Bruno Haible  <bruno@clisp.org>
13910
13911         strtol: Move AC_LIBOBJ invocations to module description.
13912         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13913         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13914         * modules/strtol (configure.ac): ... to here.
13915
13916 2011-05-22  Bruno Haible  <bruno@clisp.org>
13917
13918         strtod: Move AC_LIBOBJ invocations to module description.
13919         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13920         invocations from here...
13921         * modules/strtod (configure.ac): ... to here.
13922
13923 2011-05-22  Bruno Haible  <bruno@clisp.org>
13924
13925         strstr*: Move AC_LIBOBJ invocations to module description.
13926         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13927         invocations from here...
13928         * modules/strstr-simple (configure.ac): ... to here.
13929         * modules/strstr (configure.ac): ... and here.
13930
13931 2011-05-22  Bruno Haible  <bruno@clisp.org>
13932
13933         strsignal: Move AC_LIBOBJ invocations to module description.
13934         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13935         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13936         * modules/strsignal (configure.ac): ... to here.
13937         (Depends-on): Update conditions.
13938
13939 2011-05-22  Bruno Haible  <bruno@clisp.org>
13940
13941         strsep: Move AC_LIBOBJ invocations to module description.
13942         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13944         here...
13945         * modules/strsep (configure.ac): ... to here.
13946
13947 2011-05-22  Bruno Haible  <bruno@clisp.org>
13948
13949         strptime: Move AC_LIBOBJ invocations to module description.
13950         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13951         gl_PREREQ_STRPTIME invocations from here...
13952         * modules/strptime (configure.ac): ... to here.
13953
13954 2011-05-22  Bruno Haible  <bruno@clisp.org>
13955
13956         strpbrk: Move AC_LIBOBJ invocations to module description.
13957         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13959         here...
13960         * modules/strpbrk (configure.ac): ... to here.
13961
13962 2011-05-22  Bruno Haible  <bruno@clisp.org>
13963
13964         strnlen: Move AC_LIBOBJ invocations to module description.
13965         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13966         invocations from here...
13967         * modules/strnlen (configure.ac): ... to here.
13968
13969 2011-05-22  Bruno Haible  <bruno@clisp.org>
13970
13971         strndup: Move AC_LIBOBJ invocations to module description.
13972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13973         invocations from here...
13974         * modules/strndup (configure.ac): ... to here.
13975         (Depends-on): Update conditions.
13976
13977 2011-05-22  Bruno Haible  <bruno@clisp.org>
13978
13979         strncat: Move AC_LIBOBJ invocations to module description.
13980         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13981         invocations from here...
13982         * modules/strncat (configure.ac): ... to here.
13983
13984 2011-05-22  Bruno Haible  <bruno@clisp.org>
13985
13986         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13987         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13988         invocations from here...
13989         * modules/strdup (configure.ac): ... to here.
13990         * modules/strdup-posix (configure.ac): ... and here.
13991
13992 2011-05-22  Bruno Haible  <bruno@clisp.org>
13993
13994         strcspn: Move AC_LIBOBJ invocations to module description.
13995         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13997         here...
13998         * modules/strcspn (configure.ac): ... to here.
13999
14000 2011-05-22  Bruno Haible  <bruno@clisp.org>
14001
14002         strchrnul: Move AC_LIBOBJ invocations to module description.
14003         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14004         gl_PREREQ_STRCHRNUL invocations from here...
14005         * modules/strchrnul (configure.ac): ... to here.
14006
14007 2011-05-22  Bruno Haible  <bruno@clisp.org>
14008
14009         strcasestr*: Move AC_LIBOBJ invocations to module description.
14010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14011         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14012         * modules/strcasestr-simple (configure.ac): ... to here.
14013         * modules/strcasestr (configure.ac): ... and here.
14014
14015 2011-05-22  Bruno Haible  <bruno@clisp.org>
14016
14017         strcase: Move AC_LIBOBJ invocations to module description.
14018         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14019         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14020         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14021         gl_PREREQ_STRNCASECMP invocations from here...
14022         * modules/strcase (configure.ac): ... to here.
14023
14024 2011-05-22  Bruno Haible  <bruno@clisp.org>
14025
14026         stpncpy: Move AC_LIBOBJ invocations to module description.
14027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14028         here...
14029         * modules/stpncpy (configure.ac): ... to here.
14030
14031 2011-05-22  Bruno Haible  <bruno@clisp.org>
14032
14033         stpcpy: Move AC_LIBOBJ invocations to module description.
14034         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14036         here...
14037         * modules/stpcpy (configure.ac): ... to here.
14038
14039 2011-05-21  Bruno Haible  <bruno@clisp.org>
14040
14041         stat: Move AC_LIBOBJ invocations to module description.
14042         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14043         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14044         here...
14045         * modules/stat (configure.ac): ... to here.
14046
14047 2011-05-21  Bruno Haible  <bruno@clisp.org>
14048
14049         sleep: Move AC_LIBOBJ invocations to module description.
14050         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14051         * modules/sleep (configure.ac): ... to here.
14052
14053 2011-05-21  Bruno Haible  <bruno@clisp.org>
14054
14055         signbit: Move AC_LIBOBJ invocations to module description.
14056         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14057         * modules/signbit (configure.ac): ... to here.
14058
14059 2011-05-21  Bruno Haible  <bruno@clisp.org>
14060
14061         sigprocmask: Move AC_LIBOBJ invocations to module description.
14062         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14063         gl_PREREQ_SIGPROMASK invocations from here...
14064         * modules/sigprocmask (configure.ac): ... to here.
14065
14066 2011-05-21  Bruno Haible  <bruno@clisp.org>
14067
14068         sigaction: Move AC_LIBOBJ invocations to module description.
14069         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14070         gl_PREREQ_SIGACTION invocations from here...
14071         * modules/sigaction (configure.ac): ... to here.
14072
14073 2011-05-21  Bruno Haible  <bruno@clisp.org>
14074
14075         sig2str: Move AC_LIBOBJ invocations to module description.
14076         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14078         here...
14079         * modules/sig2str (configure.ac): ... to here.
14080
14081 2011-05-21  Bruno Haible  <bruno@clisp.org>
14082
14083         setlocale: Move AC_LIBOBJ invocations to module description.
14084         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14085         gl_PREREQ_SETLOCALE invocations from here...
14086         * modules/setlocale (configure.ac): ... to here.
14087
14088 2011-05-21  Bruno Haible  <bruno@clisp.org>
14089
14090         unsetenv: Move AC_LIBOBJ invocations to module description.
14091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14092         and gl_PREREQ_UNSETENV invocations from here...
14093         * modules/unsetenv (configure.ac): ... to here.
14094         (Depends-on): Update.
14095
14096 2011-05-21  Bruno Haible  <bruno@clisp.org>
14097
14098         setenv: Move AC_LIBOBJ invocations to module description.
14099         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14100         here...
14101         * modules/setenv (configure.ac): ... to here.
14102
14103 2011-05-21  Bruno Haible  <bruno@clisp.org>
14104
14105         selinux-h: Move AC_LIBOBJ invocations to module description.
14106         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14107         AC_LIBOBJ invocation from here...
14108         * modules/selinux-h (configure.ac): ... to here.
14109
14110 2011-05-21  Bruno Haible  <bruno@clisp.org>
14111
14112         select: Respect rules for use of AC_LIBOBJ.
14113         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14114         here...
14115         * modules/select (configure.ac): ... to here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         scandir: Move AC_LIBOBJ invocations to module description.
14120         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14121         invocations from here...
14122         * modules/scandir (configure.ac): ... to here.
14123
14124 2011-05-21  Bruno Haible  <bruno@clisp.org>
14125
14126         rpmatch: Move AC_LIBOBJ invocations to module description.
14127         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14129         here...
14130         * modules/rpmatch (configure.ac): ... to here.
14131
14132 2011-05-21  Bruno Haible  <bruno@clisp.org>
14133
14134         rmdir: Respect rules for use of AC_LIBOBJ.
14135         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14136         * modules/rmdir (configure.ac): ... to here.
14137
14138 2011-05-21  Bruno Haible  <bruno@clisp.org>
14139
14140         renameat: Move AC_LIBOBJ invocations to module description.
14141         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14142         here...
14143         * modules/renameat (configure.ac): ... to here.
14144
14145 2011-05-21  Bruno Haible  <bruno@clisp.org>
14146
14147         rename: Respect rules for use of AC_LIBOBJ.
14148         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14149         here...
14150         * modules/rename (configure.ac): ... to here.
14151
14152 2011-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         remove: Move AC_LIBOBJ invocations to module description.
14155         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14156         here...
14157         * modules/remove (configure.ac): ... to here.
14158
14159 2011-05-21  Bruno Haible  <bruno@clisp.org>
14160
14161         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14162         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14163         macro.
14164         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14165         * modules/relocatable-lib (configure.ac): ... to here.
14166         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14167         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14172         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14173         here...
14174         * modules/relocatable-prog (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         regex: Move AC_LIBOBJ invocations to module description.
14179         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14180         invocations from here...
14181         * modules/regex (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         realloc-*: Move AC_LIBOBJ invocations to module description.
14186         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14187         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14188         AC_LIBOBJ invocations from here...
14189         * modules/realloc-gnu (configure.ac): ... to here.
14190         * modules/realloc-posix (configure.ac): ... and here.
14191
14192 2011-05-21  Bruno Haible  <bruno@clisp.org>
14193
14194         readutmp: Move AC_LIBOBJ invocations to module description.
14195         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14196         * modules/readutmp (configure.ac): ... to here.
14197
14198 2011-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         readlinkat: Move AC_LIBOBJ invocations to module description.
14201         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14202         here...
14203         * modules/readlinkat (configure.ac): ... to here.
14204
14205 2011-05-21  Bruno Haible  <bruno@clisp.org>
14206
14207         readlink: Move AC_LIBOBJ invocations to module description.
14208         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14209         gl_PREREQ_READLINK invocations from here...
14210         * modules/readlink (configure.ac): ... to here.
14211
14212 2011-05-21  Bruno Haible  <bruno@clisp.org>
14213
14214         readline: Move AC_LIBOBJ invocations to module description.
14215         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14216         gl_PREREQ_READLINE invocations from here...
14217         * modules/readline (configure.ac): ... to here.
14218
14219 2011-05-21  Bruno Haible  <bruno@clisp.org>
14220
14221         read: Move AC_LIBOBJ invocations to module description.
14222         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14223         * modules/read (configure.ac): ... to here.
14224
14225 2011-05-21  Bruno Haible  <bruno@clisp.org>
14226
14227         rawmemchr: Move AC_LIBOBJ invocations to module description.
14228         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14230         from here...
14231         * modules/rawmemchr (configure.ac): ... to here.
14232
14233 2011-05-21  Bruno Haible  <bruno@clisp.org>
14234
14235         random_r: Move AC_LIBOBJ invocations to module description.
14236         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14237         gl_PREREQ_RANDOM_R invocations from here...
14238         * modules/random_r (configure.ac): ... to here.
14239
14240 2011-05-21  Bruno Haible  <bruno@clisp.org>
14241
14242         pwrite: Move AC_LIBOBJ invocations to module description.
14243         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14244         * modules/pwrite (configure.ac): ... to here.
14245
14246 2011-05-21  Bruno Haible  <bruno@clisp.org>
14247
14248         putenv: Move AC_LIBOBJ invocations to module description.
14249         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14250         * modules/putenv (configure.ac): ... to here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         login_tty: Move AC_LIBOBJ invocations to module description.
14255         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14256         * modules/login_tty (configure.ac): ... to here.
14257
14258 2011-05-21  Bruno Haible  <bruno@clisp.org>
14259
14260         openpty: Move AC_LIBOBJ invocations to module description.
14261         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14262         * modules/openpty (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         forkpty: Move AC_LIBOBJ invocations to module description.
14267         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14268         * modules/forkpty (configure.ac): ... to here.
14269
14270 2011-05-21  Bruno Haible  <bruno@clisp.org>
14271
14272         ptsname: Move AC_LIBOBJ invocations to module description.
14273         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14274         invocations from here...
14275         * modules/ptsname (configure.ac): ... to here.
14276
14277 2011-05-21  Bruno Haible  <bruno@clisp.org>
14278
14279         pread: Move AC_LIBOBJ invocations to module description.
14280         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14281         * modules/pread (configure.ac): ... to here.
14282
14283 2011-05-21  Bruno Haible  <bruno@clisp.org>
14284
14285         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14286         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14287         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14288         * modules/posix_spawn (configure.ac): ... to here.
14289         * modules/posix_spawnp (configure.ac): ... and here.
14290
14291 2011-05-21  Bruno Haible  <bruno@clisp.org>
14292
14293         popen: Move AC_LIBOBJ invocations to module description.
14294         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14295         invocations from here...
14296         * modules/popen (configure.ac): ... to here.
14297
14298 2011-05-21  Bruno Haible  <bruno@clisp.org>
14299
14300         poll: Move AC_LIBOBJ invocations to module description.
14301         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14302         invocations from here...
14303         * modules/poll (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         pipe-posix: Move AC_LIBOBJ invocations to module description.
14308         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14309         * modules/pipe-posix (configure.ac): ... to here.
14310
14311 2011-05-21  Bruno Haible  <bruno@clisp.org>
14312
14313         openat: Respect rules for use of AC_LIBOBJ.
14314         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14315         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14316         * modules/openat (configure.ac): ... to here.
14317
14318 2011-05-21  Bruno Haible  <bruno@clisp.org>
14319
14320         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14321         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14322         invocation from here...
14323         * modules/obstack-printf (configure.ac): ... to here.
14324         * modules/obstack-printf-posix (configure.ac): ... and here.
14325
14326 2011-05-21  Bruno Haible  <bruno@clisp.org>
14327
14328         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14329         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14330         from here...
14331         * modules/nl_langinfo (configure.ac): ... to here.
14332
14333 2011-05-21  Bruno Haible  <bruno@clisp.org>
14334
14335         nanosleep: Move AC_LIBOBJ invocations to module description.
14336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14337         gl_PREREQ_NANOSLEEP invocations from here...
14338         * modules/nanosleep (configure.ac): ... to here.
14339
14340 2011-05-21  Bruno Haible  <bruno@clisp.org>
14341
14342         mountlist: Move AC_LIBOBJ invocations to module description.
14343         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14344         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14345         * modules/mountlist (configure.ac): ... to here.
14346
14347 2011-05-21  Bruno Haible  <bruno@clisp.org>
14348
14349         mktime: Respect rules for use of AC_LIBOBJ.
14350         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14351         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14352         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14353         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14354         * modules/mktime (configure.ac): ... to here.
14355         * modules/mktime-internal (configure.ac): ... and here.
14356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14357
14358 2011-05-21  Bruno Haible  <bruno@clisp.org>
14359
14360         mkstemps: Move AC_LIBOBJ invocations to module description.
14361         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14362         here...
14363         * modules/mkstemps (configure.ac): ... to here.
14364
14365 2011-05-21  Bruno Haible  <bruno@clisp.org>
14366
14367         mkstemp: Move AC_LIBOBJ invocations to module description.
14368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14369         gl_PREREQ_MKSTEMP invocations from here...
14370         * modules/mkstemp (configure.ac): ... to here.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         mkostemps: Move AC_LIBOBJ invocations to module description.
14375         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14376         here...
14377         * modules/mkostemps (configure.ac): ... to here.
14378
14379 2011-05-21  Bruno Haible  <bruno@clisp.org>
14380
14381         mkostemp: Move AC_LIBOBJ invocations to module description.
14382         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14383         gl_PREREQ_MKOSTEMP invocations from here...
14384         * modules/mkostemp (configure.ac): ... to here.
14385
14386 2011-05-21  Bruno Haible  <bruno@clisp.org>
14387
14388         mknod: Move AC_LIBOBJ invocations to module description.
14389         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14390         * modules/mknod (configure.ac): ... to here.
14391
14392 2011-05-21  Bruno Haible  <bruno@clisp.org>
14393
14394         mkfifoat: Move AC_LIBOBJ invocations to module description.
14395         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14396         here...
14397         * modules/mkfifoat (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         mkfifo: Respect rules for use of AC_LIBOBJ.
14402         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14403         here...
14404         * modules/mkfifo (configure.ac): ... to here.
14405
14406 2011-05-21  Bruno Haible  <bruno@clisp.org>
14407
14408         mkdtemp: Move AC_LIBOBJ invocations to module description.
14409         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14410         invocations from here...
14411         * modules/mkdtemp (configure.ac): ... to here.
14412
14413 2011-05-21  Bruno Haible  <bruno@clisp.org>
14414
14415         mkdir: Move AC_LIBOBJ invocations to module description.
14416         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14417         * modules/mkdir (configure.ac): ... to here.
14418
14419 2011-05-21  Bruno Haible  <bruno@clisp.org>
14420
14421         memset: Move AC_LIBOBJ invocations to module description.
14422         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14423         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14424         here...
14425         * modules/memset (configure.ac): ... to here.
14426
14427 2011-05-21  Bruno Haible  <bruno@clisp.org>
14428
14429         memrchr: Move AC_LIBOBJ invocations to module description.
14430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14431         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14432         here...
14433         * modules/memrchr (configure.ac): ... to here.
14434
14435 2011-05-21  Bruno Haible  <bruno@clisp.org>
14436
14437         mempcpy: Move AC_LIBOBJ invocations to module description.
14438         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14440         here...
14441         * modules/mempcpy (configure.ac): ... to here.
14442
14443 2011-05-21  Bruno Haible  <bruno@clisp.org>
14444
14445         memmove: Move AC_LIBOBJ invocations to module description.
14446         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14448         here...
14449         * modules/memmove (configure.ac): ... to here.
14450
14451 2011-05-21  Bruno Haible  <bruno@clisp.org>
14452
14453         memmem*: Move AC_LIBOBJ invocations to module description.
14454         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14455         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14456         here...
14457         (gl_FUNC_MEMMEM): ... and here...
14458         * modules/memmem-simple (configure.ac): ... to here.
14459         * modules/memmem (configure.ac): ... and here.
14460
14461 2011-05-21  Bruno Haible  <bruno@clisp.org>
14462
14463         memcpy: Move AC_LIBOBJ invocations to module description.
14464         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14466         here...
14467         * modules/memcpy (configure.ac): ... to here.
14468
14469 2011-05-21  Bruno Haible  <bruno@clisp.org>
14470
14471         memcmp: Simplify autoconf macro.
14472         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14473         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14474         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14475
14476 2011-05-21  Bruno Haible  <bruno@clisp.org>
14477
14478         memcmp: Move AC_LIBOBJ invocations to module description.
14479         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14480         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14481         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14482         * modules/memcmp (configure.ac): ... to here.
14483         (Depends-on): Update conditions.
14484
14485 2011-05-21  Bruno Haible  <bruno@clisp.org>
14486
14487         memchr: Respect rules for use of AC_LIBOBJ.
14488         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14489         invocations from here...
14490         * modules/memchr (configure.ac): ... to here.
14491
14492 2011-05-21  Bruno Haible  <bruno@clisp.org>
14493
14494         mbtowc: Move AC_LIBOBJ invocations to module description.
14495         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14496         invocations from here...
14497         * modules/mbtowc (configure.ac): ... to here.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14502         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14503         gl_PREREQ_MBSRTOWCS invocations from here...
14504         * modules/mbsrtowcs (configure.ac): ... to here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14509         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14510         gl_PREREQ_MBSNRTOWCS invocations from here...
14511         * modules/mbsnrtowcs (configure.ac): ... to here.
14512
14513 2011-05-21  Bruno Haible  <bruno@clisp.org>
14514
14515         mbsinit: Move AC_LIBOBJ invocations to module description.
14516         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14517         invocations from here...
14518         * modules/mbsinit (configure.ac): ... to here.
14519
14520 2011-05-21  Bruno Haible  <bruno@clisp.org>
14521
14522         mbrlen: Move AC_LIBOBJ invocations to module description.
14523         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14524         invocations from here...
14525         * modules/mbrlen (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         mbrtowc: Respect rules for use of AC_LIBOBJ.
14530         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14531         invocations from here...
14532         * modules/mbrtowc (configure.ac): ... to here.
14533
14534 2011-05-21  Bruno Haible  <bruno@clisp.org>
14535
14536         malloc-*: Move AC_LIBOBJ invocations to module description.
14537         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14538         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14539         AC_LIBOBJ invocations from here...
14540         * modules/malloc-gnu (configure.ac): ... to here.
14541         * modules/malloc-posix (configure.ac): ... and here.
14542
14543 2011-05-21  Bruno Haible  <bruno@clisp.org>
14544
14545         lstat, openat: Respect rules for use of AC_LIBOBJ.
14546         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14548         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14549         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14550         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14551         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14552         here.
14553         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14554
14555 2011-05-21  Bruno Haible  <bruno@clisp.org>
14556
14557         lseek: Move AC_LIBOBJ invocations to module description.
14558         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14559         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14560         * modules/lseek (configure.ac): ... to here.
14561
14562 2011-05-21  Bruno Haible  <bruno@clisp.org>
14563
14564         linkat: Move AC_LIBOBJ invocations to module description.
14565         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14566         here...
14567         * modules/linkat (configure.ac): ... to here.
14568
14569 2011-05-21  Bruno Haible  <bruno@clisp.org>
14570
14571         link: Respect rules for use of AC_LIBOBJ.
14572         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14573         * modules/link (configure.ac): ... to here.
14574
14575 2011-05-21  Bruno Haible  <bruno@clisp.org>
14576
14577         lchown: Move AC_LIBOBJ invocations to module description.
14578         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14579         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14580         * modules/lchown (configure.ac): ... to here.
14581
14582 2011-05-21  Bruno Haible  <bruno@clisp.org>
14583
14584         iswctype: Move AC_LIBOBJ invocations to module description.
14585         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14586         here...
14587         * modules/iswctype (configure.ac): ... to here.
14588
14589 2011-05-21  Bruno Haible  <bruno@clisp.org>
14590
14591         iswblank: Move AC_LIBOBJ invocations to module description.
14592         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14593         here...
14594         * modules/iswblank (configure.ac): ... to here.
14595
14596 2011-05-21  Bruno Haible  <bruno@clisp.org>
14597
14598         atanl: Move AC_LIBOBJ invocations to module description.
14599         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14600         * modules/atanl (configure.ac): ... to here.
14601
14602 2011-05-21  Bruno Haible  <bruno@clisp.org>
14603
14604         acosl: Move AC_LIBOBJ invocations to module description.
14605         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14606         * modules/acosl (configure.ac): ... to here.
14607
14608 2011-05-21  Bruno Haible  <bruno@clisp.org>
14609
14610         asinl: Respect rules for use of AC_LIBOBJ.
14611         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14612         * modules/asinl (configure.ac): ... to here.
14613
14614 2011-05-21  Bruno Haible  <bruno@clisp.org>
14615
14616         tanl: Move AC_LIBOBJ invocations to module description.
14617         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14618         * modules/tanl (configure.ac): ... to here.
14619
14620 2011-05-21  Bruno Haible  <bruno@clisp.org>
14621
14622         cosl: Move AC_LIBOBJ invocations to module description.
14623         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14624         * modules/cosl (configure.ac): ... to here.
14625
14626 2011-05-21  Bruno Haible  <bruno@clisp.org>
14627
14628         sinl: Move AC_LIBOBJ invocations to module description.
14629         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14630         * modules/sinl (configure.ac): ... to here.
14631
14632 2011-05-21  Bruno Haible  <bruno@clisp.org>
14633
14634         logl: Move AC_LIBOBJ invocations to module description.
14635         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14636         * modules/logl (configure.ac): ... to here.
14637
14638 2011-05-21  Bruno Haible  <bruno@clisp.org>
14639
14640         expl: Move AC_LIBOBJ invocations to module description.
14641         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14642         * modules/expl (configure.ac): ... to here.
14643
14644 2011-05-21  Bruno Haible  <bruno@clisp.org>
14645
14646         roundl: Move AC_LIBOBJ invocations to module description.
14647         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14648         * modules/roundl (configure.ac): ... to here.
14649
14650 2011-05-21  Bruno Haible  <bruno@clisp.org>
14651
14652         round: Move AC_LIBOBJ invocations to module description.
14653         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14654         * modules/round (configure.ac): ... to here.
14655
14656 2011-05-21  Bruno Haible  <bruno@clisp.org>
14657
14658         roundf: Move AC_LIBOBJ invocations to module description.
14659         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14660         * modules/roundf (configure.ac): ... to here.
14661
14662 2011-05-21  Bruno Haible  <bruno@clisp.org>
14663
14664         truncl: Move AC_LIBOBJ invocations to module description.
14665         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14666         * modules/truncl (configure.ac): ... to here.
14667
14668 2011-05-21  Bruno Haible  <bruno@clisp.org>
14669
14670         trunc: Move AC_LIBOBJ invocations to module description.
14671         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14672         * modules/trunc (configure.ac): ... to here.
14673
14674 2011-05-21  Bruno Haible  <bruno@clisp.org>
14675
14676         truncf: Move AC_LIBOBJ invocations to module description.
14677         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14678         * modules/truncf (configure.ac): ... to here.
14679
14680 2011-05-21  Bruno Haible  <bruno@clisp.org>
14681
14682         ceill: Move AC_LIBOBJ invocations to module description.
14683         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14684         * modules/ceill (configure.ac): ... to here.
14685
14686 2011-05-21  Bruno Haible  <bruno@clisp.org>
14687
14688         ceil: Move AC_LIBOBJ invocations to module description.
14689         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14690         * modules/ceil (configure.ac): ... to here.
14691
14692 2011-05-21  Bruno Haible  <bruno@clisp.org>
14693
14694         ceilf: Move AC_LIBOBJ invocations to module description.
14695         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14696         * modules/ceilf (configure.ac): ... to here.
14697
14698 2011-05-21  Bruno Haible  <bruno@clisp.org>
14699
14700         floorl: Respect rules for use of AC_LIBOBJ.
14701         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14702         * modules/floorl (configure.ac): ... to here.
14703
14704 2011-05-21  Bruno Haible  <bruno@clisp.org>
14705
14706         floor: Respect rules for use of AC_LIBOBJ.
14707         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14708         * modules/floor (configure.ac): ... to here.
14709
14710 2011-05-21  Bruno Haible  <bruno@clisp.org>
14711
14712         floorf: Move AC_LIBOBJ invocations to module description.
14713         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14714         * modules/floorf (configure.ac): ... to here.
14715
14716 2011-05-20  Bruno Haible  <bruno@clisp.org>
14717
14718         sqrtl: Respect rules for use of AC_LIBOBJ.
14719         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14720         * modules/sqrtl (configure.ac): ... to here.
14721
14722 2011-05-20  Bruno Haible  <bruno@clisp.org>
14723
14724         ldexpl: Respect rules for use of AC_LIBOBJ.
14725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14726         * modules/ldexpl (configure.ac): ... to here.
14727
14728 2011-05-20  Bruno Haible  <bruno@clisp.org>
14729
14730         frexpl*: Respect rules for use of AC_LIBOBJ.
14731         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14732         invocation from here...
14733         * modules/frexpl (configure.ac): ... to here.
14734         * modules/frexpl-nolibm (configure.ac): ... and here.
14735
14736 2011-05-20  Bruno Haible  <bruno@clisp.org>
14737
14738         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14739         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14740         invocation from here...
14741         * modules/frexp (configure.ac): ... to here.
14742         * modules/frexp-nolibm (configure.ac): ... and here.
14743
14744 2011-05-20  Bruno Haible  <bruno@clisp.org>
14745
14746         isnan: Respect rules for use of AC_LIBOBJ.
14747         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14748         invocations here.
14749         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14750         REPLACE_ISNAN.
14751         * modules/isnand (configure.ac): Likewise.
14752         * modules/isnanl (configure.ac): Likewise.
14753
14754 2011-05-20  Bruno Haible  <bruno@clisp.org>
14755
14756         isnanl*: Respect rules for use of AC_LIBOBJ.
14757         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14758         invocation from here...
14759         * modules/isnanl (configure.ac): ... to here.
14760         * modules/isnanl-nolibm (configure.ac): ... and here.
14761
14762 2011-05-20  Bruno Haible  <bruno@clisp.org>
14763
14764         isnand*: Move AC_LIBOBJ invocations to module description.
14765         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14766         invocation from here...
14767         * modules/isnand (configure.ac): ... to here.
14768         * modules/isnand-nolibm (configure.ac): ... and here.
14769
14770 2011-05-20  Bruno Haible  <bruno@clisp.org>
14771
14772         isnanf*: Move AC_LIBOBJ invocations to module description.
14773         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14774         invocation from here...
14775         * modules/isnanf (configure.ac): ... to here.
14776         * modules/isnanf-nolibm (configure.ac): ... and here.
14777
14778 2011-05-20  Bruno Haible  <bruno@clisp.org>
14779
14780         isnan*: Separate the AC_LIBOBJ invocations.
14781         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14782         AC_LIBOBJ invocation.
14783         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14784         here.
14785         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14786         AC_LIBOBJ invocation.
14787         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14788         here.
14789         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14790         AC_LIBOBJ invocation.
14791         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14792         here.
14793         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14794
14795 2011-05-08  Bruno Haible  <bruno@clisp.org>
14796
14797         isinf: Move AC_LIBOBJ invocations to module description.
14798         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14799         * modules/isinf (configure.ac): ... to here.
14800
14801 2011-05-08  Bruno Haible  <bruno@clisp.org>
14802
14803         isfinite: Move AC_LIBOBJ invocations to module description.
14804         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14805         * modules/isfinite (configure.ac): ... to here.
14806
14807 2011-05-08  Bruno Haible  <bruno@clisp.org>
14808
14809         isblank: Move AC_LIBOBJ invocations to module description.
14810         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14811         here...
14812         * modules/isblank (configure.ac): ... to here.
14813
14814 2011-05-08  Bruno Haible  <bruno@clisp.org>
14815
14816         isapipe: Move AC_LIBOBJ invocations to module description.
14817         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14818         gl_PREREQ_ISAPIPE invocations from here...
14819         * modules/isapipe (configure.ac): ... to here.
14820         (Depends-on): Update condition.
14821
14822 2011-05-08  Bruno Haible  <bruno@clisp.org>
14823
14824         ioctl: Move AC_LIBOBJ invocations to module description.
14825         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14826         invocations from here...
14827         * modules/ioctl (configure.ac): ... to here.
14828         (Depends-on): Update condition.
14829
14830 2011-05-08  Bruno Haible  <bruno@clisp.org>
14831
14832         imaxdiv: Move AC_LIBOBJ invocations to module description.
14833         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14834         invocations from here...
14835         * modules/imaxdiv (configure.ac): ... to here.
14836
14837 2011-05-08  Bruno Haible  <bruno@clisp.org>
14838
14839         imaxabs: Move AC_LIBOBJ invocations to module description.
14840         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14841         invocations from here...
14842         * modules/imaxabs (configure.ac): ... to here.
14843
14844 2011-05-08  Bruno Haible  <bruno@clisp.org>
14845
14846         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14847         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14848         AC_LIBOBJ invocations from here...
14849         * modules/getaddrinfo (configure.ac): ... to here.
14850         (Depends-on): Add conditions.
14851
14852 2011-05-08  Bruno Haible  <bruno@clisp.org>
14853
14854         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14855         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14856         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14857         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14858         (gl_PREREQ_INET_PTON): ... from here.
14859         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14860         gl_PREREQ_INET_PTON here.
14861         (Depends-on): Update condition.
14862
14863 2011-05-08  Bruno Haible  <bruno@clisp.org>
14864
14865         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14866         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14867         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14868         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14869         (gl_PREREQ_INET_NTOP): ... from here.
14870         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14871         gl_PREREQ_INET_NTOP here.
14872         (Depends-on): Update condition.
14873
14874 2011-05-08  Bruno Haible  <bruno@clisp.org>
14875
14876         iconv_open: Move AC_LIBOBJ invocations to module description.
14877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14878         AC_LIBOBJ invocations from here...
14879         * modules/iconv_open (configure.ac): ... to here.
14880
14881 2011-05-08  Bruno Haible  <bruno@clisp.org>
14882
14883         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14884         If module 'iconv_open' is among the main modules and module
14885         'iconv_open-utf' is among the tests dependencies, then
14886         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14887         return the special iconv_t values. Therefore iconv() and iconv_close()
14888         must support these special iconv_t values, already in lib, not only in
14889         tests.
14890         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14891         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14892         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14893         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14894         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14895         (Depends-on): Add the dependencies of iconv_open-utf.
14896         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14897         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14898         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14899
14900 2011-05-08  Bruno Haible  <bruno@clisp.org>
14901
14902         group-member: Move AC_LIBOBJ invocations to module description.
14903         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14904         gl_PREREQ_GROUP_MEMBER invocations from here...
14905         * modules/group-member (configure.ac): ... to here.
14906
14907 2011-05-08  Bruno Haible  <bruno@clisp.org>
14908
14909         grantpt: Move AC_LIBOBJ invocations to module description.
14910         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14911         invocations from here...
14912         * modules/grantpt (configure.ac): ... to here.
14913
14914 2011-05-08  Bruno Haible  <bruno@clisp.org>
14915
14916         glob: Move AC_LIBOBJ invocations to module description.
14917         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14918         from here...
14919         * modules/glob (configure.ac): ... to here.
14920
14921 2011-05-08  Bruno Haible  <bruno@clisp.org>
14922
14923         getusershell: Move AC_LIBOBJ invocations to module description.
14924         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14925         Move AC_LIBOBJ invocation from here...
14926         * modules/getusershell (configure.ac): ... to here.
14927         (Depends-on): Update condition.
14928
14929 2011-05-08  Bruno Haible  <bruno@clisp.org>
14930
14931         gettimeofday: Move AC_LIBOBJ invocations to module description.
14932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14933         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14934         gl_PREREQ_GETTIMEOFDAY invocations from here...
14935         * modules/gettimeofday (configure.ac): ... to here.
14936
14937 2011-05-08  Bruno Haible  <bruno@clisp.org>
14938
14939         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14940         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14941         just gl_FUNC_TZSET.
14942         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14943         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14944         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14945         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14946
14947 2011-05-08  Bruno Haible  <bruno@clisp.org>
14948
14949         getsubopt: Move AC_LIBOBJ invocations to module description.
14950         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14951         gl_PREREQ_GETSUBOPT invocations from here...
14952         * modules/getsubopt (configure.ac): ... to here.
14953
14954 2011-05-08  Bruno Haible  <bruno@clisp.org>
14955
14956         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14957         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14958         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14959         * modules/getpass-gnu (configure.ac): ... to here.
14960
14961 2011-05-08  Bruno Haible  <bruno@clisp.org>
14962
14963         getpass: Move AC_LIBOBJ invocations to module description.
14964         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14965         gl_PREREQ_GETPASS invocations from here...
14966         * modules/getpass (configure.ac): ... to here.
14967
14968 2011-05-08  Bruno Haible  <bruno@clisp.org>
14969
14970         getpagesize: Move AC_LIBOBJ invocations to module description.
14971         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14972         from here...
14973         * modules/getpagesize (configure.ac): ... to here.
14974
14975 2011-05-08  Bruno Haible  <bruno@clisp.org>
14976
14977         getopt: Move AC_LIBOBJ invocations to module description.
14978         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14979         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14980         invocations from here...
14981         * modules/getopt-gnu (configure.ac): ... to here.
14982         * modules/getopt-posix (configure.ac): ... and here.
14983         (Depends-on): Update condition.
14984
14985 2011-05-08  Bruno Haible  <bruno@clisp.org>
14986
14987         getopt, argp: Respect rules for use of AC_LIBOBJ.
14988         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14989         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14990         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14991         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14992
14993 2011-05-08  Bruno Haible  <bruno@clisp.org>
14994
14995         getlogin_r: Move AC_LIBOBJ invocations to module description.
14996         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14997         gl_PREREQ_GETLOGIN_R invocations from here...
14998         * modules/getlogin_r (configure.ac): ... to here.
14999
15000 2011-05-08  Bruno Haible  <bruno@clisp.org>
15001
15002         getlogin: Move AC_LIBOBJ invocations to module description.
15003         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15004         here...
15005         * modules/getlogin (configure.ac): ... to here.
15006
15007 2011-05-08  Bruno Haible  <bruno@clisp.org>
15008
15009         getloadavg: Move AC_LIBOBJ invocations to module description.
15010         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15011         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15012         * modules/getloadavg (configure.ac): ... to here.
15013
15014 2011-05-08  Bruno Haible  <bruno@clisp.org>
15015
15016         gethrxtime: Move AC_LIBOBJ invocations to module description.
15017         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15018         LIB_GETHRXTIME from here...
15019         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15020         invocations from here...
15021         * modules/gethrxtime (configure.ac): ... to here.
15022
15023 2011-05-08  Bruno Haible  <bruno@clisp.org>
15024
15025         gethostname: Move AC_LIBOBJ invocations to module description.
15026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15027         gl_PREREQ_GETHOSTNAME invocations from here...
15028         * modules/gethostname (configure.ac): ... to here.
15029
15030 2011-05-08  Bruno Haible  <bruno@clisp.org>
15031
15032         getgroups: Move AC_LIBOBJ invocations to module description.
15033         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15034         here...
15035         * modules/getgroups (configure.ac): ... to here.
15036
15037 2011-05-08  Bruno Haible  <bruno@clisp.org>
15038
15039         getdtablesize: Move AC_LIBOBJ invocations to module description.
15040         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15041         invocation from here...
15042         * modules/getdtablesize (configure.ac): ... to here.
15043
15044 2011-05-08  Bruno Haible  <bruno@clisp.org>
15045
15046         getdomainname: Move AC_LIBOBJ invocations to module description.
15047         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15048         gl_PREREQ_GETDOMAINNAME invocations from here...
15049         * modules/getdomainname (configure.ac): ... to here.
15050
15051 2011-05-08  Bruno Haible  <bruno@clisp.org>
15052
15053         getline: Move AC_LIBOBJ invocations to module description.
15054         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15055         invocations from here...
15056         * modules/getline (configure.ac): ... to here.
15057
15058 2011-05-08  Bruno Haible  <bruno@clisp.org>
15059
15060         getline: Simplify.
15061         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15062         It's already handled through the module dependency.
15063
15064 2011-05-08  Bruno Haible  <bruno@clisp.org>
15065
15066         getdelim: Move AC_LIBOBJ invocations to module description.
15067         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15068         and gl_PREREQ_GETDELIM invocations from here...
15069         * modules/getdelim (configure.ac): ... to here.
15070         (Depends-on): Fix condition.
15071
15072 2011-05-08  Bruno Haible  <bruno@clisp.org>
15073
15074         getcwd: Move AC_LIBOBJ invocations to module description.
15075         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15076         invocations from here...
15077         * modules/getcwd (configure.ac): ... to here.
15078
15079 2011-05-08  Bruno Haible  <bruno@clisp.org>
15080
15081         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15082         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15083         here...
15084         * modules/getcwd-lgpl (configure.ac): ... to here.
15085
15086 2011-05-07  Bruno Haible  <bruno@clisp.org>
15087
15088         crypto/gc: Move AC_LIBOBJ invocations to module description.
15089         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15090         * modules/crypto/gc (configure.ac): ... to here.
15091
15092 2011-05-07  Bruno Haible  <bruno@clisp.org>
15093
15094         fwriting: Move AC_LIBOBJ invocations to module description.
15095         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15096         here...
15097         * modules/fwriting (configure.ac): ... to here.
15098
15099 2011-05-07  Bruno Haible  <bruno@clisp.org>
15100
15101         fwritable: Move AC_LIBOBJ invocations to module description.
15102         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15103         here...
15104         * modules/fwritable (configure.ac): ... to here.
15105
15106 2011-05-07  Bruno Haible  <bruno@clisp.org>
15107
15108         futimens: Move AC_LIBOBJ invocations to module description.
15109         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15110         here...
15111         * modules/futimens (configure.ac): ... to here.
15112
15113 2011-05-07  Bruno Haible  <bruno@clisp.org>
15114
15115         ftruncate: Move AC_LIBOBJ invocations to module description.
15116         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15117         gl_PREREQ_FTRUNCATE invocations from here...
15118         * modules/ftruncate (configure.ac): ... to here.
15119
15120 2011-05-07  Bruno Haible  <bruno@clisp.org>
15121
15122         fsync: Move AC_LIBOBJ invocations to module description.
15123         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15124         invocations from here...
15125         * modules/fsync (configure.ac): ... to here.
15126
15127 2011-05-07  Bruno Haible  <bruno@clisp.org>
15128
15129         fsusage: Move AC_LIBOBJ invocations to module description.
15130         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15131         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15132         * modules/fsusage (configure.ac): ... to here.
15133
15134 2011-05-07  Bruno Haible  <bruno@clisp.org>
15135
15136         freopen: Move AC_LIBOBJ invocations to module description.
15137         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15138         invocations from here...
15139         * modules/freopen (configure.ac): ... to here.
15140
15141 2011-05-07  Bruno Haible  <bruno@clisp.org>
15142
15143         free: Move AC_LIBOBJ invocations to module description.
15144         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15145         invocations from here...
15146         * modules/free (configure.ac): ... to here.
15147
15148 2011-05-07  Bruno Haible  <bruno@clisp.org>
15149
15150         freadable: Move AC_LIBOBJ invocations to module description.
15151         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15152         here...
15153         * modules/freadable (configure.ac): ... to here.
15154
15155 2011-05-07  Bruno Haible  <bruno@clisp.org>
15156
15157         fpurge: Move AC_LIBOBJ invocations to module description.
15158         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15159         invocations from here...
15160         * modules/fpurge (configure.ac): ... to here.
15161
15162 2011-05-07  Bruno Haible  <bruno@clisp.org>
15163
15164         fpending: Move AC_LIBOBJ invocations to module description.
15165         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15166         gl_FUNC_FPENDING.
15167         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15168         invocations from here...
15169         * modules/fpending (configure.ac): ... to here.
15170
15171 2011-05-07  Bruno Haible  <bruno@clisp.org>
15172
15173         fopen: Move AC_LIBOBJ invocations to module description.
15174         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15175         invocations from here...
15176         * modules/fopen (configure.ac): ... to here.
15177
15178 2011-05-07  Bruno Haible  <bruno@clisp.org>
15179
15180         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15181         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15182         gl_FUNC_FNMATCH_POSIX.
15183         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15184         invocations from here...
15185         * modules/fnmatch (configure.ac): ... to here.
15186         * modules/fnmatch-gnu (configure.ac): ... and here.
15187
15188 2011-05-07  Bruno Haible  <bruno@clisp.org>
15189
15190         flock: Move AC_LIBOBJ invocations to module description.
15191         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15192         invocations from here...
15193         * modules/flock (configure.ac): ... to here.
15194
15195 2011-05-07  Bruno Haible  <bruno@clisp.org>
15196
15197         fileblocks: Move AC_LIBOBJ invocations to module description.
15198         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15199         gl_PREREQ_FILEBLOCKS invocations from here...
15200         * modules/fileblocks (configure.ac): ... to here.
15201
15202 2011-05-06  Bruno Haible  <bruno@clisp.org>
15203
15204         fflush: Move AC_LIBOBJ invocations to module description.
15205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15206         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15207         invocations from here...
15208         * modules/fflush (configure.ac): ... to here.
15209
15210 2011-05-06  Bruno Haible  <bruno@clisp.org>
15211
15212         fdopendir: Move AC_LIBOBJ invocations to module description.
15213         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15214         here...
15215         * modules/fdopendir (configure.ac): ... to here.
15216         (Depends-on): Improve conditions.
15217
15218 2011-05-06  Bruno Haible  <bruno@clisp.org>
15219
15220         _Exit: Move AC_LIBOBJ invocations to module description.
15221         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15222         invocations from here...
15223         * modules/_Exit (configure.ac): ... to here.
15224
15225 2011-05-21  Bruno Haible  <bruno@clisp.org>
15226
15227         euidaccess: Respect rules for use of AC_LIBOBJ.
15228         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15230         from here...
15231         * modules/euidaccess (configure.ac): ... to here.
15232
15233 2011-05-06  Bruno Haible  <bruno@clisp.org>
15234
15235         error: Move AC_LIBOBJ invocations to module description.
15236         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15237         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15238         invocations from here...
15239         * modules/error (configure.ac): ... to here.
15240
15241 2011-05-06  Bruno Haible  <bruno@clisp.org>
15242
15243         duplocale: Move AC_LIBOBJ invocations to module description.
15244         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15245         gl_PREREQ_DUPLOCALE invocations from here...
15246         * modules/duplocale (configure.ac): ... to here.
15247
15248 2011-05-05  Bruno Haible  <bruno@clisp.org>
15249
15250         dirfd: Move AC_LIBOBJ invocations to module description.
15251         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15252         gl_FUNC_DIRFD.
15253         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15254         here...
15255         * modules/dirfd (configure.ac): ... to here.
15256         (Depends-on): Fix condition.
15257
15258 2011-05-05  Bruno Haible  <bruno@clisp.org>
15259
15260         chown: Respect rules for use of AC_LIBOBJ.
15261         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15262         * modules/chown (configure.ac): ... to here.
15263
15264 2011-05-05  Bruno Haible  <bruno@clisp.org>
15265
15266         chdir-long: Move AC_LIBOBJ invocations to module description.
15267         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15268         gl_PREREQ_CHDIR_LONG invocations from here...
15269         * modules/chdir-long (configure.ac): ... to here.
15270
15271 2011-05-05  Bruno Haible  <bruno@clisp.org>
15272
15273         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15274         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15275         from here...
15276         * modules/canonicalize-lgpl (configure.ac): ... to here.
15277
15278 2011-05-05  Bruno Haible  <bruno@clisp.org>
15279
15280         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15281         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15282         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15283         REPLACE_CALLOC.
15284         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15285         * modules/calloc-gnu (configure.ac): Likewise.
15286
15287 2011-05-05  Bruno Haible  <bruno@clisp.org>
15288
15289         btowc: Move AC_LIBOBJ invocations to module description.
15290         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15291         invocations from here...
15292         * modules/btowc (configure.ac): ... to here.
15293
15294 2011-05-21  Bruno Haible  <bruno@clisp.org>
15295
15296         atexit: Move AC_LIBOBJ invocations to module description.
15297         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15298         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15299         here...
15300         * modules/atexit (configure.ac): ... to here.
15301
15302 2011-05-05  Bruno Haible  <bruno@clisp.org>
15303
15304         atoll: Move AC_LIBOBJ invocations to module description.
15305         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15306         invocations from here...
15307         * modules/atoll (configure.ac): ... to here.
15308
15309 2011-05-05  Bruno Haible  <bruno@clisp.org>
15310
15311         argz: Move AC_LIBOBJ invocations to module description.
15312         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15313         * modules/argz (configure.ac): ... to here.
15314
15315 2011-05-05  Bruno Haible  <bruno@clisp.org>
15316
15317         alphasort: Move AC_LIBOBJ invocations to module description.
15318         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15319         gl_PREREQ_ALPHASORT invocations from here...
15320         * modules/alphasort (configure.ac): ... to here.
15321
15322 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15323
15324         verify: new macro verify_expr; verify_true deprecated
15325         * NEWS: Mention this.
15326         * doc/verify.texi (Compile-time Assertions): Document this.
15327         * lib/verify.h (verify_true): Deprecate.
15328         (verify_expr): New macro.
15329         * tests/test-verify.c (function): Test verify_expr.
15330
15331 2011-06-14  Jim Meyering  <meyering@redhat.com>
15332
15333         init.sh: give more portable redirection-related advice in a comment
15334         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15335         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15336         for lots of discussion.  Stefano Lattarini suggested the solution
15337         of putting "9>&2" after the command.  Reported by Bruno Haible.
15338
15339 2011-06-13  Bruno Haible  <bruno@clisp.org>
15340
15341         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15342         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15343         'none'.
15344
15345 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         ftoastr: use strtof only if HAVE_STRTOF
15348         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15350         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15351         * modules/ftoastr (configure.ac): Check for strtof.
15352
15353 2011-06-13  Bruno Haible  <bruno@clisp.org>
15354
15355         gnulib-tool: Addendum to 2011-06-08 commit.
15356         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15357         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15358
15359 2011-06-13  Bruno Haible  <bruno@clisp.org>
15360
15361         fseeko: Provide a non-inline replacement of fseek().
15362         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15363         * modules/fseeko (Depends-on): Add fseek.
15364         * modules/fseek (License): Change to LGPLv2+.
15365
15366 2011-06-13  Bruno Haible  <bruno@clisp.org>
15367
15368         ftello: Provide a non-inline replacement of ftell().
15369         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15370         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15371         not have ftello() (such as on mingw).
15372         * modules/ftello (Depends-on): Add ftell.
15373         * modules/ftell (License): Change to LGPLv2+.
15374
15375 2011-05-07  Bruno Haible  <bruno@clisp.org>
15376
15377         ftell: Move AC_LIBOBJ invocations to module description.
15378         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15379         * modules/ftell (configure.ac): ... to here.
15380
15381 2011-05-07  Bruno Haible  <bruno@clisp.org>
15382
15383         ftello: Respect rules for use of AC_LIBOBJ.
15384         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15385         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15386         here...
15387         * modules/ftello (configure.ac): ... to here.
15388
15389 2011-05-07  Bruno Haible  <bruno@clisp.org>
15390
15391         fseeko: Simplify.
15392         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15393         (gl_FUNC_FSEEKO): Inline it here.
15394
15395 2011-05-07  Bruno Haible  <bruno@clisp.org>
15396
15397         fseek: Move AC_LIBOBJ invocations to module description.
15398         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15399         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15400         * modules/fseek (configure.ac): ... to here.
15401
15402 2011-05-07  Bruno Haible  <bruno@clisp.org>
15403
15404         fseek: Respect rules for use of AC_LIBOBJ.
15405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15406         here...
15407         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15408
15409 2011-05-07  Bruno Haible  <bruno@clisp.org>
15410
15411         fseeko: Respect rules for use of AC_LIBOBJ.
15412         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15413         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15414         here...
15415         * modules/fseeko (configure.ac): ... to here.
15416
15417 2011-06-13  Bruno Haible  <bruno@clisp.org>
15418
15419         gnulib-tool: Allow comments in the 'Depends-on' section.
15420         * doc/gnulib.texi (Module description): Mention comment syntax in the
15421         Depends-on section.
15422         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15423
15424 2011-06-13  Bruno Haible  <bruno@clisp.org>
15425
15426         file-set.h: guard __attibute__ use, now that it's not always defined
15427         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15428         versions that support it.  This fixes a coreutils build failure with
15429         the vendor cc on HP-UX 11.31.
15430
15431 2011-06-12  Bruno Haible  <bruno@clisp.org>
15432
15433         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15434         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15435         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15436         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15437         (acl, aclsort): New declarations.
15438         (aclv_nontrivial): New declaration.
15439         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15440         (file_has_acl): Read also the second kind of HP-UX ACLs.
15441         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15442         kind of HP-UX ACLs if the first kind fails.
15443         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15444         second kind of HP-UX ACLs.
15445         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15446         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15447         agree.
15448         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15449         hpuxjfs.
15450         Handle hpuxjfs.
15451         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15452         hpuxjfs.
15453         Handle hpuxjfs.
15454         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15455         (func_test_same_acls): Use both lsacl and getacl.
15456         Handle hpuxjfs.
15457         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15458         (func_test_same_acls): Use both lsacl and getacl.
15459         Handle hpuxjfs.
15460
15461 2011-06-12  Bruno Haible  <bruno@clisp.org>
15462
15463         acl: Complete the 2010-08-10 fix.
15464         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15465         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15466         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15467         explicitly.
15468         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15469         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15470
15471 2011-06-12  Bruno Haible  <bruno@clisp.org>
15472
15473         spawn-pipe tests: Comments.
15474         * tests/test-spawn-pipe-child.c (main): Update comment.
15475         Reported by James Youngman <jay@gnu.org>.
15476
15477 2011-06-11  James Youngman  <jay@gnu.org>
15478
15479         New module 'stat-size'.
15480         * modules/stat-size: New module.  Provides macros for accessing
15481         file size information in instances of struct stat.  Depends on the
15482         fileblocks module because it calls st_blocks.
15483         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15484         * doc/gnulib.texi: Include stat-size.texi.
15485         * doc/stat-size.texi: Documentation for this module.
15486         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15487         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15488         AC_STRUCT_ST_BLOCKS.
15489
15490 2011-06-09  Bruno Haible  <bruno@clisp.org>
15491
15492         thread: Support pthreads-win32.
15493         * lib/glthread/thread.h (gl_thread_self): Define differently on
15494         pthreads-win32.
15495         (gl_null_thread): New declaration.
15496         (gl_thread_self_pointer): New macro.
15497         * lib/glthread/thread.c (gl_null_thread): New constant.
15498         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15499         gl_thread_self.
15500         * tests/test-tls.c: Likewise.
15501         Suggested by Paul Eggert. Reported by Eric Blake.
15502
15503 2011-06-09  Bruno Haible  <bruno@clisp.org>
15504
15505         thread: Fix confusion between NULL and 0.
15506         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15507         Reported by Paul Eggert.
15508
15509 2011-06-09  Bruno Haible  <bruno@clisp.org>
15510
15511         spawn-pipe tests: Avoid test failure on HP-UX 11.
15512         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15513         is closed.
15514
15515 2011-06-09  Bruno Haible  <bruno@clisp.org>
15516
15517         acl tests: Fix compilation error on HP-UX 11.
15518         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15519
15520 2011-06-09  Bruno Haible  <bruno@clisp.org>
15521
15522         rmdir: Avoid test failure on HP-UX 10.20.
15523         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15524         EEXIST.
15525
15526 2011-06-08  Eric Blake  <eblake@redhat.com>
15527
15528         perror: fix test on mingw
15529         * modules/perror-tests (Depends-on): Add dup2.
15530
15531         strerror_r-posix: fix on MacOS
15532         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15533         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15534         logic bug.
15535         * lib/strerror_r.c (strerror_r): Fix the bug.
15536         * lib/strerror.c (strerror): Likewise.
15537         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15538         problem.
15539         * doc/posix-functions/strerror.texi (strerror): Likewise.
15540         * doc/posix-functions/perror.texi (perror): Likewise.
15541         * tests/test-strerror.c (main): Enhance test.
15542         * tests/test-strerror_r.c (main): Likewise.
15543
15544 2011-06-08  Bruno Haible  <bruno@clisp.org>
15545
15546         gnulib-tool: Better isolation between different gnulib-tool invocations.
15547         * gnulib-tool: New option --witness-c-macro.
15548         (witness_c_macro): New variable.
15549         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15550         AM_CPPFLAGS define it as a C macro.
15551         (func_emit_tests_Makefile_am): Likewise.
15552         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15553         read it from there.
15554         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15555         m4_define, not AC_DEFUN.
15556         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15557         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15558         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15559         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15560         s|...|...|, to substitute the values of the GNULIB_* module indicator
15561         variables.
15562         * modules/dirent (Makefile.am): Likewise.
15563         * modules/fcntl-h (Makefile.am): Likewise.
15564         * modules/iconv-h (Makefile.am): Likewise.
15565         * modules/langinfo (Makefile.am): Likewise.
15566         * modules/locale (Makefile.am): Likewise.
15567         * modules/math (Makefile.am): Likewise.
15568         * modules/netdb (Makefile.am): Likewise.
15569         * modules/poll-h (Makefile.am): Likewise.
15570         * modules/pty (Makefile.am): Likewise.
15571         * modules/search (Makefile.am): Likewise.
15572         * modules/signal (Makefile.am): Likewise.
15573         * modules/spawn (Makefile.am): Likewise.
15574         * modules/stdio (Makefile.am): Likewise.
15575         * modules/stdlib (Makefile.am): Likewise.
15576         * modules/string (Makefile.am): Likewise.
15577         * modules/sys_ioctl (Makefile.am): Likewise.
15578         * modules/sys_select (Makefile.am): Likewise.
15579         * modules/sys_socket (Makefile.am): Likewise.
15580         * modules/sys_stat (Makefile.am): Likewise.
15581         * modules/sys_times (Makefile.am): Likewise.
15582         * modules/sys_utsname (Makefile.am): Likewise.
15583         * modules/sys_wait (Makefile.am): Likewise.
15584         * modules/termios (Makefile.am): Likewise.
15585         * modules/time (Makefile.am): Likewise.
15586         * modules/unistd (Makefile.am): Likewise.
15587         * modules/wchar (Makefile.am): Likewise.
15588
15589 2011-06-08  Eric Blake  <eblake@redhat.com>
15590
15591         strerror: simplify replacement
15592         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15593         * modules/strerror (configure.ac): No prereqs needed here...
15594         * modules/strerror-override (configure.ac): ...but this needs it.
15595         (Files): Add file for needed prereq macro.
15596
15597 2011-06-08  Bruno Haible  <bruno@clisp.org>
15598
15599         strerror_r-posix: Tweaks.
15600         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15601         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15602         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15603         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15604         (gl_FUNC_STRERROR_R): ... to here.
15605         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15606
15607 2011-06-07  Eric Blake  <eblake@redhat.com>
15608
15609         perror: document fixed bugs
15610         * doc/posix-functions/perror.texi (perror): Document recent
15611         patches.
15612
15613 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         stat-time: get_stat_birthtime failure is better-defined
15616         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15617         return a timestamp whose tv_sec and tv_nsec values are both -1.
15618         Previously, the spec said only that the tv_nsec value was negative.
15619         This upward-compatible change simplifies GNU tar a bit.
15620
15621 2011-06-07  Eric Blake  <eblake@redhat.com>
15622
15623         strerror_r-posix: work around cygwin 1.7.9
15624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15625         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15626         bug without replacing strerror_r.
15627         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15628         strerror_r is buggy, but without requiring strerror_r compilation.
15629         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15630
15631         test-perror: relax test to ignore cygwin bug
15632         * tests/test-perror2.c (main): Relax test on requiring detection
15633         of stream errors, and use unbuffered stream.
15634         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15635         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15636         * doc/posix-functions/fputc.texi (fputc): Likewise.
15637         * doc/posix-functions/fputs.texi (fputs): Likewise.
15638         * doc/posix-functions/fputws.texi (fputws): Likewise.
15639         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15640         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15641         * doc/posix-functions/getopt.texi (getopt): Likewise.
15642         * doc/posix-functions/perror.texi (perror): Likewise.
15643         * doc/posix-functions/printf.texi (printf): Likewise.
15644         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15645         * doc/posix-functions/psignal.texi (psignal): Likewise.
15646         * doc/posix-functions/putc.texi (putc): Likewise.
15647         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15648         Likewise.
15649         * doc/posix-functions/putchar.texi (putchar): Likewise.
15650         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15651         Likewise.
15652         * doc/posix-functions/puts.texi (puts): Likewise.
15653         * doc/posix-functions/putwc.texi (putwc): Likewise.
15654         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15655         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15656         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15657         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15658         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15659         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15660         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15661         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15662
15663 2011-05-22  Bruno Haible  <bruno@clisp.org>
15664
15665         strerror: Move AC_LIBOBJ invocations to module description.
15666         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15667         gl_PREREQ_STRERROR invocations from here...
15668         * modules/strerror (configure.ac): ... to here.
15669
15670 2011-05-21  Bruno Haible  <bruno@clisp.org>
15671
15672         perror: Use common idiom.
15673         * modules/perror (configure.ac): Reorder statements.
15674
15675 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15676
15677         tests: fix usage message in 'mktempd_'
15678         * tests/init.sh (mktempd_): In the usage message, use literal
15679         'mktempd_', not '$ME' (which is even undefined), as the name of
15680         the subroutine.
15681
15682 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15683
15684         tests init: new function 'fatal_', for hard errors
15685         Before this patch, the only way offered by tests/init.sh to
15686         properly signal a hard error was the `framework_failure_'
15687         function.  But the error message issued by that function,
15688         as its name would suggest, refers to a set-up failure in the
15689         testsuite, while hard errors can obviously also be due to
15690         other reasons.  The best way to fix this inconsistency is to
15691         introduce a new function with a more general error message.
15692         * tests/init.sh (fatal_): New function.
15693
15694 2011-06-06  Eric Blake  <eblake@redhat.com>
15695
15696         canonicalize-lgpl: use common idiom
15697         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15698         over newer POSIX -Rf.
15699         Reported by Bruno Haible.
15700
15701         canonicalize-lgpl: work around AIX realpath bug
15702         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15703         * doc/posix-functions/realpath.texi (realpath): Document it.
15704         Reported by Bruno Haible.
15705
15706         strerror: work around FreeBSD bug
15707         * lib/strerror.c (strerror): Special case 0.
15708         Reported by Bruno Haible.
15709
15710         strerror-override: avoid bloating errno module
15711         * modules/errno (Files, configure.ac): Move replacement strings...
15712         * modules/strerror-override: ...to new module.
15713         * modules/strerror (Depends-on): Add strerror-override.
15714         * modules/strerror_r-posix (Depends-on): Likewise.
15715         * MODULES.html.sh: Document new module.
15716         Reported by Bruno Haible.
15717
15718 2011-06-06  Bruno Haible  <bruno@clisp.org>
15719
15720         spawn-pipe tests: Rename program.
15721         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15722         * tests/test-spawn-pipe-child.c: Update comment.
15723         * tests/test-spawn-pipe.sh: Update.
15724         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15725
15726         spawn-pipe tests: Link the child program only against libc.
15727         * tests/test-spawn-pipe-child.c: New file, extracted from
15728         tests/test-spawn-pipe.c.
15729         (main): Expect only one argument.
15730         (is_open): New function, copied from tests/test-pipe.c.
15731         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15732         (child_main): Remove function.
15733         (test_pipe): Pass only one argument to the child program.
15734         (main): Remove child process code. Expect the child program's name as
15735         first argument.
15736         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15737         argument.
15738         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15739         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15740         test-spawn-pipe-child against no libraries.
15741
15742 2011-06-06  Bruno Haible  <bruno@clisp.org>
15743
15744         careadlinkat: Avoid mismatch between ssize_t and int.
15745         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15746         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15747
15748 2011-06-06  Jim Meyering  <meyering@redhat.com>
15749
15750         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15751         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15752         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15753
15754 2011-06-05  Bruno Haible  <bruno@clisp.org>
15755
15756         ansi-c++-opt: Interoperability with libtool.
15757         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15758         set the variable to "no", not to ":".
15759         * NEWS: Mention the change.
15760
15761 2011-06-05  Bruno Haible  <bruno@clisp.org>
15762
15763         acl: Fix test failure on AIX 7.
15764         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15765         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15766
15767 2011-06-05  Bruno Haible  <bruno@clisp.org>
15768
15769         pipe-filter-ii: Fix test failure on AIX and IRIX.
15770         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15771         with EAGAIN, retry with a smaller buffer size.
15772
15773 2011-06-05  Bruno Haible  <bruno@clisp.org>
15774
15775         localename: Fix link dependencies.
15776         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15777         * modules/localename-tests (Makefile.am): Link test-localename with
15778         $(LIBTHREAD).
15779
15780 2011-06-05  Bruno Haible  <bruno@clisp.org>
15781
15782         error: Avoid gcc warning.
15783         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15784
15785 2011-06-05  Bruno Haible  <bruno@clisp.org>
15786
15787         unsetenv: Avoid gcc warning.
15788         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15789
15790 2011-06-05  Bruno Haible  <bruno@clisp.org>
15791
15792         setenv: Avoid gcc warning.
15793         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15794
15795 2011-06-05  Bruno Haible  <bruno@clisp.org>
15796
15797         sys_select: Ensure memset is declared also on AIX 7.
15798         * lib/sys_select.in.h: Include <string.h> also on AIX.
15799         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15800         self-contained also on AIX 7.1.
15801
15802 2011-06-04  Jim Meyering  <meyering@redhat.com>
15803
15804         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15805         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15806         function name, "error".
15807         (_gl_translatable_diag_func_re): New configurable variable.
15808
15809 2011-06-04  Bruno Haible  <bruno@clisp.org>
15810
15811         getopt: Avoid gcc warning.
15812         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15813
15814 2011-06-04  Bruno Haible  <bruno@clisp.org>
15815
15816         strerror_r: Fix comments.
15817         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15818         commit.
15819
15820 2011-06-04  Bruno Haible  <bruno@clisp.org>
15821
15822         perror: Fix compilation error.
15823         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15824         Undefine fprintf, not sprintf.
15825         * modules/perror (Depends-on): Remove intprops, verify.
15826
15827 2011-06-04  Bruno Haible  <bruno@clisp.org>
15828
15829         setlocale: Enable replacement on Cygwin 1.5.
15830         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15831         Cygwin 1.5.x.
15832         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15833         LC_CTYPE category also exists on Cygwin 1.5.x.
15834
15835 2011-06-04  Bruno Haible  <bruno@clisp.org>
15836
15837         strerror-override: Don't disable symbol renamings.
15838         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15839         * lib/strerror-override.c: Include config.h.
15840         (strerror_override): Don't undefine.
15841
15842 2011-06-03  Bruno Haible  <bruno@clisp.org>
15843
15844         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15845         * lib/localename.h: Update copyright header.
15846         * lib/localename.c: Likewise.
15847         * lib/relocatable.h: Likewise.
15848         * lib/relocatable.c: Likewise.
15849
15850 2011-06-02  Bruno Haible  <bruno@clisp.org>
15851
15852         doc: Fix a module name.
15853         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15854
15855 2011-06-02  Bruno Haible  <bruno@clisp.org>
15856
15857         pipe2: Remove dependency on 'nonblocking' module.
15858         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15859         O_NONBLOCK is defined by gnulib.
15860         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15861         is zero.
15862         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15863         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15864         defined by gnulib.
15865         (get_nonblocking_flag): New function.
15866         (main): Test O_NONBLOCK flag only if it is nonzero.
15867         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15868
15869 2011-06-03  Jim Meyering  <meyering@redhat.com>
15870
15871         maint: three new prohibit-header-without-use rules
15872         Prohibit use of cloexec.h, posixver.h, same.h without use.
15873         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15874         (sc_prohibit_posixver_without_use): Likewise.
15875         (sc_prohibit_same_without_use): Likewise.
15876
15877 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15878
15879         allocator: 'die' routine is now given requested size
15880         * lib/allocator.h (struct allocator.die): New size arg.
15881         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15882         If the actual problem is an ssize_t limitation, not a size_t or
15883         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15884
15885 2011-06-01  Eric Blake  <eblake@redhat.com>
15886
15887         strerror: drop strerror_r dependency
15888         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15889         * lib/strerror-override.c (strerror_override): ...to new file.
15890         * lib/strerror-override.h: Add prototype.
15891         * lib/strerror-impl.h: Delete.
15892         * lib/strerror.c (strerror): New implementation.
15893         * modules/errno (Files): Add new files.
15894         (configure.ac): Compile new file as appropriate.
15895         * modules/strerror (Files): Drop unused file.
15896         (Depends-on): Drop strerror_r-posix.
15897         * MODULES.html.sh: Document strerror_r-posix.
15898         Requested by Sam Steingold.
15899
15900         perror: call strerror_r directly
15901         * modules/perror (Files): Drop strerror-impl.h.
15902         * lib/perror.c (perror): Use our own stack buffer, rather than
15903         calling a wrapper that uses static storage.
15904         * doc/posix-functions/perror.texi (perror): Document a limitation
15905         of our replacement.
15906
15907         strerror_r: fix includes for FreeBSD
15908         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15909         since we use abort on some platforms.
15910         Reported by Matthias Bolte.
15911
15912 2011-05-31  Bruno Haible  <bruno@clisp.org>
15913
15914         Fix link errors in tests: openat-die uses gettext-h.
15915         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15916         against $(LIBINTL).
15917         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15918         against $(LIBINTL).
15919         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15920         $(LIBINTL).
15921         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15922         against $(LIBINTL).
15923         * modules/linkat-tests (Makefile.am): Link test-linkat against
15924         $(LIBINTL).
15925         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15926         $(LIBINTL).
15927         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15928         against $(LIBINTL).
15929         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15930         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15931         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15932         $(LIBINTL).
15933         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15934         $(LIBINTL).
15935         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15936         $(LIBINTL).
15937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15938
15939 2011-05-31  Bruno Haible  <bruno@clisp.org>
15940
15941         Fix link errors in tests: wait-process uses gettext-h.
15942         * modules/nonblocking-pipe-tests (Makefile.am): Set
15943         test_nonblocking_pipe_main_LDADD.
15944         * modules/nonblocking-socket-tests (Makefile.am): Link
15945         test-nonblocking-socket-main against $(LIBINTL).
15946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15947
15948 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15949
15950         assert-h: work around 'verify' incompatibility
15951         * lib/verify.h: Use @...@ directives, not ifdef.
15952         * modules/assert-h (assert.h): Implement the directives.
15953         (assert.h): Substitute the symbol-prefix more consistently.
15954
15955 2011-05-29  Jim Meyering  <meyering@redhat.com>
15956
15957         trim: remove three superfluous assignments
15958         * lib/trim.c (trim2): Remove three superfluous assignments
15959         and correct brace positioning.
15960
15961 2011-05-29  Bruno Haible  <bruno@clisp.org>
15962
15963         wctype-h: Avoid namespace pollution on Solaris 2.6.
15964         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15965         identifiers.
15966         * doc/posix-headers/wctype.texi: Mention the problem.
15967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15968
15969 2011-05-28  Jim Meyering  <meyering@redhat.com>
15970
15971         parse-datetime.y: accommodate -Wstrict-overflow
15972         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15973         placate -Wstrict-overflow.
15974
15975         trim: avoid a warning from -O2 -Wstrict-overflow
15976         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15977
15978 2011-05-29  Bruno Haible  <bruno@clisp.org>
15979
15980         gnulib-tool: Fix bug in yesterday's commit.
15981         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15982         twice.
15983
15984 2011-05-29  Bruno Haible  <bruno@clisp.org>
15985
15986         Allow multiple gnulib generated include files to be combined.
15987         * gnulib-tool (func_compute_include_guard_prefix): New function.
15988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15989         ${gl_include_guard_prefix} references.
15990         (func_import, func_create_testdir): Invoke
15991         func_compute_include_guard_prefix.
15992         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15993         * lib/ctype.in.h: Likewise.
15994         * lib/dirent.in.h: Likewise.
15995         * lib/errno.in.h: Likewise.
15996         * lib/fcntl.in.h: Likewise.
15997         * lib/float.in.h: Likewise.
15998         * lib/getopt.in.h: Likewise.
15999         * lib/iconv.in.h: Likewise.
16000         * lib/langinfo.in.h: Likewise.
16001         * lib/locale.in.h: Likewise.
16002         * lib/math.in.h: Likewise.
16003         * lib/netdb.in.h: Likewise.
16004         * lib/netinet_in.in.h: Likewise.
16005         * lib/poll.in.h: Likewise.
16006         * lib/pthread.in.h: Likewise.
16007         * lib/pty.in.h: Likewise.
16008         * lib/sched.in.h: Likewise.
16009         * lib/se-selinux.in.h: Likewise.
16010         * lib/search.in.h: Likewise.
16011         * lib/signal.in.h: Likewise.
16012         * lib/spawn.in.h: Likewise.
16013         * lib/stdarg.in.h: Likewise.
16014         * lib/stddef.in.h: Likewise.
16015         * lib/stdint.in.h: Likewise.
16016         * lib/stdio.in.h: Likewise.
16017         * lib/stdlib.in.h: Likewise.
16018         * lib/string.in.h: Likewise.
16019         * lib/strings.in.h: Likewise.
16020         * lib/sys_file.in.h: Likewise.
16021         * lib/sys_ioctl.in.h: Likewise.
16022         * lib/sys_select.in.h: Likewise.
16023         * lib/sys_socket.in.h: Likewise.
16024         * lib/sys_stat.in.h: Likewise.
16025         * lib/sys_time.in.h: Likewise.
16026         * lib/sys_times.in.h: Likewise.
16027         * lib/sys_uio.in.h: Likewise.
16028         * lib/sys_utsname.in.h: Likewise.
16029         * lib/sys_wait.in.h: Likewise.
16030         * lib/sysexits.in.h: Likewise.
16031         * lib/termios.in.h: Likewise.
16032         * lib/time.in.h: Likewise.
16033         * lib/unistd.in.h: Likewise.
16034         * lib/wchar.in.h: Likewise.
16035         * lib/wctype.in.h: Likewise.
16036         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16037         * modules/ctype (Makefile.am): Likewise.
16038         * modules/dirent (Makefile.am): Likewise.
16039         * modules/errno (Makefile.am): Likewise.
16040         * modules/fcntl-h (Makefile.am): Likewise.
16041         * modules/float (Makefile.am): Likewise.
16042         * modules/getopt-posix (Makefile.am): Likewise.
16043         * modules/iconv-h (Makefile.am): Likewise.
16044         * modules/langinfo (Makefile.am): Likewise.
16045         * modules/locale (Makefile.am): Likewise.
16046         * modules/math (Makefile.am): Likewise.
16047         * modules/netdb (Makefile.am): Likewise.
16048         * modules/netinet_in (Makefile.am): Likewise.
16049         * modules/poll-h (Makefile.am): Likewise.
16050         * modules/pthread (Makefile.am): Likewise.
16051         * modules/pty (Makefile.am): Likewise.
16052         * modules/sched (Makefile.am): Likewise.
16053         * modules/search (Makefile.am): Likewise.
16054         * modules/selinux-h (Makefile.am): Likewise.
16055         * modules/signal (Makefile.am): Likewise.
16056         * modules/spawn (Makefile.am): Likewise.
16057         * modules/stdarg (Makefile.am): Likewise.
16058         * modules/stddef (Makefile.am): Likewise.
16059         * modules/stdint (Makefile.am): Likewise.
16060         * modules/stdio (Makefile.am): Likewise.
16061         * modules/stdlib (Makefile.am): Likewise.
16062         * modules/string (Makefile.am): Likewise.
16063         * modules/strings (Makefile.am): Likewise.
16064         * modules/sys_file (Makefile.am): Likewise.
16065         * modules/sys_ioctl (Makefile.am): Likewise.
16066         * modules/sys_select (Makefile.am): Likewise.
16067         * modules/sys_socket (Makefile.am): Likewise.
16068         * modules/sys_stat (Makefile.am): Likewise.
16069         * modules/sys_time (Makefile.am): Likewise.
16070         * modules/sys_times (Makefile.am): Likewise.
16071         * modules/sys_uio (Makefile.am): Likewise.
16072         * modules/sys_utsname (Makefile.am): Likewise.
16073         * modules/sys_wait (Makefile.am): Likewise.
16074         * modules/sysexits (Makefile.am): Likewise.
16075         * modules/termios (Makefile.am): Likewise.
16076         * modules/time (Makefile.am): Likewise.
16077         * modules/unistd (Makefile.am): Likewise.
16078         * modules/wchar (Makefile.am): Likewise.
16079         * modules/wctype-h (Makefile.am): Likewise.
16080         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16081
16082 2011-05-29  Bruno Haible  <bruno@clisp.org>
16083
16084         assert-h: Allow multiple gnulib generated replacements to coexist.
16085         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16086
16087 2011-05-29  Bruno Haible  <bruno@clisp.org>
16088
16089         argp: Allow coexistence with strerror_r-posix module.
16090         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16091         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16092         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16093         not the glibc signature.
16094
16095 2011-05-28  Bruno Haible  <bruno@clisp.org>
16096
16097         gnulib-tool: Alternative structure of testdirs, similar to --import.
16098         * gnulib-tool: New option --single-configure.
16099         (func_usage): Document it.
16100         (single_configure): New variable.
16101         (func_modules_transitive_closure_separately,
16102         func_modules_transitive_closure_separately,
16103         func_determine_use_libtests, func_modules_add_dummy_separately,
16104         func_modules_to_filelist_separately): New functions, extracted from
16105         func_import.
16106         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16107         (func_import): Use the new functions.
16108         (func_create_testdir): Set final_modules. Handle $single_configure =
16109         true case.
16110
16111 2011-05-28  Bruno Haible  <bruno@clisp.org>
16112
16113         getloadavg: Remove an unreliable safety check.
16114         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16115         getloadavg.c is in place.
16116         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16117         Reported by Sam Steingold <sds@gnu.org>.
16118
16119 2011-05-28  Bruno Haible  <bruno@clisp.org>
16120
16121         doc: Cleanup yet another file produced by texinfo.tex.
16122         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16123
16124 2011-05-28  Bruno Haible  <bruno@clisp.org>
16125
16126         Finish the conditional dependencies mechanism.
16127         * gnulib-tool: New option --no-conditional-dependencies.
16128         (func_usage): Document it. Don't mark --conditional-dependencies as
16129         experimental.
16130         (cond_dependencies): The possible values can now be true, false, empty.
16131         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16132         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16133         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16134
16135 2011-05-28  Bruno Haible  <bruno@clisp.org>
16136
16137         doc: Use a recent texinfo.tex.
16138         * doc/Makefile (tex_opts): New variable.
16139         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16140
16141 2011-05-28  Jim Meyering  <meyering@redhat.com>
16142
16143         intprops.h: adjust comment to match code change
16144         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16145         only once, it *may* have side effects.  Also fix an unrelated typo.
16146         (_GL_INT_SIGNED): Likewise.
16147
16148 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16149
16150         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16151
16152 2011-05-26  Bruno Haible  <bruno@clisp.org>
16153
16154         mbsrchr: Avoid collision with system function on Interix.
16155         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16156         Reported by Markus Duft <mduft@gentoo.org>.
16157
16158 2011-05-15  James Youngman  <jay@gnu.org>
16159
16160         getopt: for ambiguous options, enumerate the possibilities.
16161         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16162         the ambiguous options when an ambiguous prefix is given. This was
16163         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16164         glibc change was
16165         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16166
16167 2011-05-25  Eric Blake  <eblake@redhat.com>
16168
16169         getcwd: work around mingw bug
16170         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16171         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16172         Reported by Matthias Bolte.
16173
16174 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         test-intprops: disable -Wtype-limits diagnostics
16177         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16178         diagnostics.  Otherwise, the integer overflow macros generate many
16179         diagnostics.  Reported by Jim Meyering in
16180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16181
16182         intprops: shorten, to pacify gcc -Woverlength-strings
16183         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16184         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16185         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16186         likely to run afoul of C compiler limits for string constant lengths.
16187         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16188
16189 2011-05-24  Eric Blake  <eblake@redhat.com>
16190
16191         docs: document recently fixed glibc printf bug
16192         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16193         * doc/posix-functions/printf.texi (printf): Likewise.
16194         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16195         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16196
16197         closein-tests: convert to init.sh
16198         * modules/closein-tests (Files): Add init.sh
16199         * tests/test-closein.sh Use it.
16200
16201         yesno-tests: convert to init.sh
16202         * modules/yesno-tests (Files): Add init.sh.
16203         * tests/test-yesno.sh: Use it.
16204
16205         atexit-tests: ensure reliable exit status
16206         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16207         Reported by Bruno Haible.
16208
16209 2011-05-24  Bruno Haible  <bruno@clisp.org>
16210
16211         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16212         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16213         gl_PREREQ_STRERROR_R invocations from here...
16214         * modules/strerror_r-posix (configure.ac): ... to here.
16215
16216 2011-05-24  Eric Blake  <eblake@redhat.com>
16217
16218         strerror_r: fix missing header
16219         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16220
16221         strerror_r: fix AIX test failures
16222         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16223         ERANGE failure.
16224
16225         strerror_r: fix Solaris test failures
16226         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16227         failures.
16228         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16229
16230         strerror_r: enforce POSIX recommendations
16231         * lib/strerror_r.c (safe_copy): New helper method.
16232         (strerror_r): Guarantee a non-empty string.
16233         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16234         recent POSIX rulings and to match our strerror guarantees.
16235         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16236
16237 2011-05-24  Jim Meyering  <meyering@redhat.com>
16238
16239         test-perror2.c: avoid warning about unused variable
16240         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16241
16242 2011-05-24  Eric Blake  <eblake@redhat.com>
16243
16244         perror: avoid spurious test failure on HP-UX
16245         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16246
16247         tests: fix logic bug in init.sh
16248         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16249         shell.
16250
16251 2011-05-24  Jim Meyering  <meyering@redhat.com>
16252
16253         utimensat: do not reference an out-of-scope buffer
16254         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16255         declared in an inner scope, yet "times" would be dereferenced outside
16256         the scope in which "ts" was valid.
16257         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16258         of ts[2] "out/up", so that the use of aliased "times" (via
16259         "times = ts;") does not end up referencing an out-of-scope "ts"
16260
16261         opendir-safer.c: don't clobber errno; don't close negative FD
16262         * lib/opendir-safer.c (opendir_safer):
16263         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16264         file descriptor, and more importantly, don't clobber the
16265         offending errno value with EINVAL.  Before, upon failure
16266         of dup_safer, we would pass the negative file descriptor to
16267         fdopendir, which would clobber errno.
16268
16269 2011-05-23  Bruno Haible  <bruno@clisp.org>
16270
16271         idcache: Fix module description.
16272         * modules/idcache (Include): Set to "idcache.h".
16273
16274 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         gnulib-tool: fix portability problem with MacOS sed
16277         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16278         before the "}".  Problem reported by Leo in
16279         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16280         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16281         sed_extract_condition1, sed_extract_condition2.
16282
16283 2011-05-23  Bruno Haible  <bruno@clisp.org>
16284
16285         hash: Simplify autoconf macro.
16286         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16287
16288 2011-05-23  Bruno Haible  <bruno@clisp.org>
16289
16290         getugroups: Fix module description.
16291         * modules/getugroups (Include): Set to "getugroups.h".
16292
16293 2011-05-23  Bruno Haible  <bruno@clisp.org>
16294
16295         linkat: Simplify autoconf macro.
16296         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16297
16298 2011-05-23  Bruno Haible  <bruno@clisp.org>
16299             Eric Blake  <eblake@redhat.com>
16300
16301         linkat, renameat: Update dependencies.
16302         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16303         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16304         symlinkat.
16305
16306 2011-05-23  Jim Meyering  <meyering@redhat.com>
16307
16308         maint.mk: more tight_scope improvements
16309         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16310         (_gl_TS_headers): Define only in if-0'd block.
16311         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16312         sometimes we must *not* use it.  Adjust uses accordingly.
16313         (sc_tight_scope): Use much simpler grep-based test to determine
16314         whether we skip this rule.
16315
16316         maint.mk: generalize/improve the tight-scope rule
16317         * top/maint.mk: Emit a warning when the test is skipped.
16318         (_gl_TS_dir): Add $(srcdir)/ prefix.
16319         (_gl_TS_function_match): Simplify, rather than trying
16320         to enumerate common types.  Otherwise, it would fail to match an
16321         "extern unsigned char const *" declaration in idutils.
16322         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16323         a way to support use of that type of macro.
16324         (_gl_TS_var_match): Simplify regexp.
16325         (_gl_TS_obj_files): New configurable variable.
16326         (_gl_TS_headers): Likewise.
16327
16328 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16329
16330         verify: fix bug when gnulib <assert.h> is also included
16331         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16332         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16333         Perhaps there's a better way, but this fixes the immediate problem.
16334         Problem reported by Bruno Haible in
16335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16336
16337 2011-05-22  Bruno Haible  <bruno@clisp.org>
16338
16339         xgetcwd: Simplify autoconf macro.
16340         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16341
16342 2011-05-22  Bruno Haible  <bruno@clisp.org>
16343
16344         New module 'mktime-internal'.
16345         * modules/mktime-internal: New file.
16346         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16347         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16348         mktime_internal as a C macro if libc has __mktime_internal.
16349         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16350         conditions.
16351         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16352
16353 2011-05-22  Bruno Haible  <bruno@clisp.org>
16354
16355         timegm: Correct mktime replacement statements.
16356         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16357         defining mktime as a C macro. This completes a 2009-07-28 commit.
16358
16359 2011-05-22  Bruno Haible  <bruno@clisp.org>
16360
16361         timegm: Simplify autoconf macro.
16362         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16363
16364 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16365
16366         clock-time: change to LGPLv2+.
16367         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16368         BSD-like but we have no mark for that; this is good enough for now.
16369
16370 2011-05-21  Bruno Haible  <bruno@clisp.org>
16371
16372         strerror_r: Fix comments.
16373         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16374
16375 2011-05-21  Bruno Haible  <bruno@clisp.org>
16376
16377         relocatable-prog-wrapper: Fix possible link error.
16378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16379         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16380         (gl_FUNC_SETENV): ... to here.
16381         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16382         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16383
16384 2011-05-21  Bruno Haible  <bruno@clisp.org>
16385
16386         relocatable-prog-wrapper: Assume strerror() exists.
16387         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16388         m4/strerror.m4.
16389         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16390         * lib/relocwrapper.c: Remove mention of strerror module.
16391         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16393         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16394         C macro.
16395
16396 2011-05-21  Bruno Haible  <bruno@clisp.org>
16397
16398         select: Simplify replacement idiom.
16399         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16400         Win32 platforms.
16401         * lib/sys_select.in.h (select): Simplify accordingly.
16402         * modules/select (Depends-on): Likewise.
16403
16404 2011-05-21  Bruno Haible  <bruno@clisp.org>
16405
16406         mkdir-p: Simplify autoconf macro.
16407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16408         gl_FUNC_LCHOWN.
16409
16410 2011-05-21  Eric Blake  <eblake@redhat.com>
16411
16412         strerror_r: avoid clobbering strerror on cygwin
16413         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16414         fall back instead to sys_errlist.
16415         * modules/strerror (configure.ac): Add witness.
16416         * tests/test-strerror_r.c (main): Enhance test.
16417         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16418         * tests/test-perror2.c (main): Free memory before exit.
16419
16420 2011-05-21  Bruno Haible  <bruno@clisp.org>
16421
16422         mkdtemp: Use gnulib naming conventions.
16423         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16424         * modules/mkdtemp (configure.ac): Update.
16425
16426 2011-05-20  Eric Blake  <eblake@redhat.com>
16427
16428         strerror_r: avoid corrupting errno on Solaris
16429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16430         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16431
16432         strerror_r: avoid compiler warning
16433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16434
16435         strerror_r: simplify AIX code
16436         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16437
16438         test-perror: avoid spurious failure on FreeBSD
16439         * modules/perror-tests (Depends-on): Add strerror, now that
16440         strerror_r no longer pulls it in.
16441
16442 2011-05-20  Bruno Haible  <bruno@clisp.org>
16443
16444         strerror_r-posix: Remove unused dependencies.
16445         * modules/strerror_r-posix (Depends-on): Remove strerror.
16446         Reported by Eric Blake.
16447
16448 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16449
16450         intprops: remove assumption about A|B representation
16451         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16452         is a valid integer if both A and B are.  Although this is true for
16453         all known practical hosts, the C standard doesn't guarantee it,
16454         and the code need not assume it.  Also, this change may work around
16455         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16457
16458 2011-05-20  Eric Blake  <eblake@redhat.com>
16459
16460         perror: work around FreeBSD bug
16461         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16462         is broken.  Move AC_LIBOBJ...
16463         * modules/perror (configure.ac): Here.
16464         * doc/posix-functions/perror.texi (perror): Document this.
16465         * tests/test-perror2.c (main): Enhance test.
16466
16467         test-perror: check for strerror interactions
16468         * tests/macros.h (STREQ): Add macro.
16469         * modules/perror-tests (Files): Add second test.
16470         * tests/test-perror2.c (main): New file.
16471         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16472
16473         test-perror: rewrite to use init script
16474         * modules/perror-tests (Files): Add init.sh.
16475         * tests/test-perror.sh: Use temporary directory.
16476
16477 2011-05-20  Jim Meyering  <meyering@redhat.com>
16478
16479         maint: replace misused "a" with "an"
16480         * doc/intprops.texi: "a integer"
16481         * doc/regex.texi: "a explanation"
16482         * lib/alignof.h: "a object"
16483         * lib/argmatch.h: "a explanation"
16484         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16485         * lib/stdint.in.h: "a integer"
16486         * lib/userspec.c: "a owner"
16487         * doc/gnulib.texi: Fix "a idea", and reword.
16488
16489 2011-05-19  Jim Meyering  <meyering@redhat.com>
16490
16491         maint: correct misuse of "a" and "an"
16492         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16493         * lib/argp-help.c: "an docum...": s/an/a/
16494         * lib/argp-parse.c: "An vector": s/An/A/
16495         * lib/execute.c: "an native": s/an/a/
16496         * lib/spawn-pipe.c: Likewise.
16497         * lib/gc.h: "an Gc_rc": s/an/a/
16498         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16499         * lib/fts.c: "an stat.st_dev": s/an/a/
16500
16501 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16502
16503         intprops-tests: work around HP-UX 11.23 cc bug with constants
16504         * tests/test-intprops.c (VERIFY): New macro.
16505         (main): Use it, instead of verify, to work around the compiler bug; see
16506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16507
16508         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16509         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16510         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16511         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16512         (_GL_REMAINDER_OVERFLOW): Use it.
16513
16514         intprops-tests: revert unsigned part of previous change
16515         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16516         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16517         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16519
16520 2011-05-19  Bruno Haible  <bruno@clisp.org>
16521
16522         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16523         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16524         strerror_r() returned without filling the buffer.
16525         Reported by Eric Blake.
16526
16527 2011-05-19  Eric Blake  <eblake@redhat.com>
16528
16529         strerror_r: guarantee unchanged errno
16530         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16531         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16532         failure.
16533         * tests/test-strerror_r.c (main): Enhance test.
16534
16535 2011-05-19  Bruno Haible  <bruno@clisp.org>
16536
16537         strerror_r: Reorder #if blocks.
16538         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16539         for consistency with the previous commit.
16540
16541 2011-05-19  Bruno Haible  <bruno@clisp.org>
16542
16543         perror: Avoid clobbering the strerror buffer when possible.
16544         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16545         * lib/strerror.c: Include it.
16546         * modules/strerror (Files): Add lib/strerror-impl.h.
16547         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16548         (my_strerror): New function, defined through lib/strerror-impl.h.
16549         (perror): Use it instead of strerror.
16550         * modules/perror (Files): Add lib/strerror-impl.h.
16551         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16552
16553 2011-05-19  Eric Blake  <eblake@redhat.com>
16554
16555         strerror_r: fix on newer cygwin
16556         * lib/strerror_r.c (strerror_r): Cygwin now has
16557         __xpg_strerror_r, use it.
16558
16559 2011-05-19  Bruno Haible  <bruno@clisp.org>
16560
16561         strerror_r: Avoid clobbering the strerror buffer when possible.
16562         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16563         (sys_nerr, sys_errlist): New declarations.
16564         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16565         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16566         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16567
16568 2011-05-19  Bruno Haible  <bruno@clisp.org>
16569
16570         strerror_r: Fix test failure on mingw.
16571         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16572         EXTEND_STRERROR_R.
16573         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16574         macros from errno.in.h instead.
16575
16576 2011-05-19  Eric Blake  <eblake@redhat.com>
16577
16578         strerror: relax test for Solaris
16579         * tests/test-strerror.c (main): Permit Solaris behavior.
16580         * tests/test-strerror_r.c (main): Likewise.
16581
16582         strerror: enforce POSIX ruling on strerror(0)
16583         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16585         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16586         * doc/posix-functions/strerror.texi (strerror): Document it.
16587         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16588         * tests/test-strerror.c (main): Strengthen test.
16589         * tests/test-strerror_r.c (main): Likewise.
16590
16591 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         intprop-tests: port to older and more-pedantic compilers
16594         * modules/intprops-tests (Files): Add tests/macros.h.
16595         * tests/test-intprops.c: Include macros.h.
16596         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16597         it's no longer documented to expand to an integer constant expression.
16598         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16599         argument is floating point, as it's no longer documented to expand
16600         to an integer constant expression in that case.
16601         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16602         compiler bugs reported by Bruno Haible.  See
16603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16604         (U0, U1): New constants, to work around the same bugs.  Also,
16605         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16606
16607         intprops: work around C compiler bugs
16608         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16609         bug in Sun C 5.11 2010/08/13 and other compilers; see
16610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16611
16612         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16613         * doc/intprops.texi (Integer Type Determination): Fix
16614         documentation for TYPE_IS_INTEGER: it returns an constant
16615         expression, not an integer constant expression.  Fix doc for
16616         TYPE_SIGNED: it returns an integer constant expression only if its
16617         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16618         hardly worth documented that way....)
16619
16620 2011-05-18  Bruno Haible  <bruno@clisp.org>
16621
16622         strerror_r: Avoid clobbering the strerror buffer when possible.
16623         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16624         Handle gnulib defined errno values here. When strerror() returns NULL
16625         or an empty string, return EINVAL.
16626         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16627         gnulib defined errno values here.
16628         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16629
16630 2011-05-18  Eric Blake  <eblake@redhat.com>
16631
16632         fnmatch: avoid compiler warning
16633         * lib/fnmatch_loop.c (FCT): Use correct type.
16634         Reported by Matthias Bolte.
16635
16636 2011-05-13  Jim Meyering  <meyering@redhat.com>
16637
16638         maint.mk: three new prohibit_<HDR>_without_use rules
16639         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16640         (sc_prohibit_stdio-safer_without_use): Likewise.
16641         (sc_prohibit_xfreopen_without_use): Likewise.
16642
16643 2011-05-17  Jim Meyering  <meyering@redhat.com>
16644
16645         announce-gen: fail if the NEWS delta is empty
16646         If there's nothing noteworthy in NEWS, then either you forgot
16647         or you shouldn't be releasing.
16648         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16649
16650 2011-05-17  Pádraig Brady <P@draigBrady.com>
16651
16652         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16653         reserved symbols starting with double underscore from the check.
16654
16655 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         intprops: add doc
16658         * doc/intprops.texi: New file, documenting intprops.
16659         * doc/gnulib.texi (Particular Modules): Include it.
16660
16661         verify: add doc to gnulib manual and fix example
16662         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16663         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16664         (Compile-time Assertions): Fix example so it can't overflow.
16665
16666 2011-05-17  Jim Meyering  <meyering@redhat.com>
16667
16668         warnings.m4: don't usurp save_CPPFLAGS variable name
16669         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16670
16671         doc: fix typo
16672         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16673
16674 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16675             Bruno Haible  <bruno@clisp.org>
16676
16677         doc: Tweak recent change.
16678         * README (Portability guidelines): Tweak new text.
16679         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16680         Interix 6.1.
16681
16682 2011-05-16  Eric Blake  <eblake@redhat.com>
16683
16684         inttypes: avoid autoconf warning
16685         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16686         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16687
16688 2011-05-16  Sam Steingold <sds@gnu.org>
16689         and Eric Blake  <eblake@redhat.com>
16690
16691         vc-list-files: accept multiple directory operands
16692         * build-aux/vc-list-files: Iterate over all remaining operands.
16693
16694 2011-05-16  Bruno Haible  <bruno@clisp.org>
16695
16696         Fix confusion regarding deprecated modules.
16697         * modules/calloc (Status, Notice): Mark module as deprecated, not
16698         obsolete.
16699         * modules/fnmatch-posix (Status, Notice): Likewise.
16700         * modules/getdate (Status, Notice): Likewise.
16701         * modules/getopt (Status, Notice): Likewise.
16702         * modules/malloc (Status, Notice): Likewise.
16703         * modules/pipe (Status, Notice): Likewise.
16704         * modules/realloc (Status, Notice): Likewise.
16705         * modules/rename-dest-slash (Status, Notice): Likewise.
16706         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16707         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16708         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16709         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16710         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16711
16712 2011-05-16  Bruno Haible  <bruno@clisp.org>
16713
16714         doc: List the target platforms.
16715         * doc/gnulib-intro.texi (Target Platforms): New section.
16716         * doc/gnulib.texi (Introduction): Update menu.
16717         * README (Portability guidelines): Refer to the new section. Update
16718         statement about oldest supported environment. Remove rationale why
16719         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16720         unportable C89 function.
16721         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16722         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16723
16724 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16725
16726         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16727
16728 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         intprops-tests: new module
16731         * modules/intprops-tests, tests/test-intprops.c: New files.
16732
16733         intprops: add safe, portable integer overflow checking
16734         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16735         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16736         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16737         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16738         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16739         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16740         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16741         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16742         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16743         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16744         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16745
16746 2011-05-12  James Youngman  <jay@gnu.org>
16747
16748         Add a test for glibc's Bugzilla bug #12378.
16749         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16750         doesn't allow the literal matching of a lone "[" (which is
16751         required by POSIX).
16752         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16753
16754 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16755
16756         Sync glibc change fixing Bugzilla bug #12378.
16757         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16758         beginning and fall back to matching as normal character if the
16759         string ends before the matching ']' is found.  This is what POSIX
16760         requires.
16761
16762 2011-05-13  Eric Blake  <eblake@redhat.com>
16763
16764         getcwd-lgpl: relax test for FreeBSD
16765         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16766         issue.
16767         * tests/test-getcwd-lgpl.c (main): Relax test.
16768         Reported by Matthias Bolte.
16769
16770 2011-05-11  Eric Blake  <eblake@redhat.com>
16771
16772         test-fflush: silence compiler warning
16773         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16774
16775 2011-05-11  Bruno Haible  <bruno@clisp.org>
16776
16777         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16778         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16779         * modules/canonicalize (Depends-on): Add 'nocrash'.
16780         * modules/canonicalize-lgpl (Depends-on): Likewise.
16781         * doc/posix-functions/realpath.texi: Update platforms list.
16782         Reported by Ryan Schmidt <ryandesign@macports.org>.
16783
16784 2011-05-11  Bruno Haible  <bruno@clisp.org>
16785
16786         group-member: Declare function in <unistd.h>.
16787         * lib/unistd.in.h (group_member): New declaration.
16788         * lib/group-member.h: Remove file.
16789         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16790         * tests/test-unistd-c++.cc: Check signature of group_member.
16791         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16792         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16793         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16794         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16795         HAVE_GROUP_MEMBER.
16796         * modules/group-member (Files): Remove lib/group-member.h.
16797         (Depends-on): Add unistd. Specify conditions.
16798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16799         (Include): Change to <unistd.h>.
16800         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16801         HAVE_GROUP_MEMBER.
16802         * NEWS: Mention the change.
16803         * lib/euidaccess.c: Don't include group-member.h.
16804
16805 2011-05-11  Bruno Haible  <bruno@clisp.org>
16806
16807         group-member: Document module.
16808         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16809         module.
16810
16811 2011-05-11  Bruno Haible  <bruno@clisp.org>
16812
16813         fclose: Fix mistake earlier today.
16814         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16815
16816 2011-05-11  Eric Blake  <eblake@redhat.com>
16817
16818         fclose: preserve fflush errors
16819         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16820         Reported by Jim Meyering.
16821
16822         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16823         * build-aux/bootstrap (check_versions): When no specific version
16824         is required, merely check that the app produces an exit status
16825         that indicates its existence.
16826
16827         maint.mk: drop redundant check
16828         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16829         the same but better.
16830
16831 2011-05-11  Bruno Haible  <bruno@clisp.org>
16832
16833         fclose: Fix possible link error.
16834         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16835         unregister_shadow_fd. Improve comments.
16836         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16837         Eric Blake.
16838
16839 2011-05-11  Jim Meyering  <meyering@redhat.com>
16840
16841         maint.mk: improve "can not" detection and generalize rule name
16842         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16843         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16844         Use the same technique as in sc_prohibit_doubled_word, so that
16845         we recognize "can not" also when the words are separated by a newline.
16846         Suggested by Eric Blake.
16847         (perl_filename_lineno_text_): Define.  Factored out of...
16848         (prohibit_doubled_word_): ...here.  Use the new definition.
16849         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16850         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16851         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16852
16853 2011-05-10  Eric Blake  <eblake@redhat.com>
16854
16855         fclose: avoid double close race when possible
16856         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16857         all but WINDOWS_SOCKETS.
16858
16859 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16860
16861         openat: correct new comment
16862         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16863
16864 2011-05-10  Jim Meyering  <meyering@redhat.com>
16865
16866         openat: add comments
16867         * lib/openat-proc.c (openat_proc_name): Add comments,
16868         mostly from Eric Blake.
16869
16870 2011-05-09  Eric Blake  <eblake@redhat.com>
16871
16872         openat: reduce syscalls in first probe of /proc
16873         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16874         be a directory.  Simplify the probe for .. bugs.
16875         * modules/openat (Depends-on): Drop same-inode.
16876         Reported by Bastien ROUCARIES.
16877
16878 2011-05-09  Jim Meyering  <meyering@redhat.com>
16879
16880         maint.mk: change semantics/name of tight_scope variables
16881         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16882         Rename variables to align with semantics that make them more useful.
16883
16884         maint.mk: tweak new rule's name not to impinge
16885         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16886         (sc_tight_scope): Use new rule name rather than $@-0.
16887
16888         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16889         * top/maint.mk (sc_tight_scope): New rule.
16890         (sc_tight_scope-0): New rule, ifdef'd out.
16891         (_gl_TS_dir): Default.
16892         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16893         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16894
16895 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16896
16897         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16898         Haible <bruno@clisp.org>.
16899
16900 2011-05-08  Bruno Haible  <bruno@clisp.org>
16901
16902         Comments.
16903         * m4/isnanf.m4: Add comment.
16904         * m4/isnanl.m4: Likewise.
16905
16906 2011-05-08  Bruno Haible  <bruno@clisp.org>
16907
16908         glob: Remove obsolete macro.
16909         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16910
16911 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16912
16913         intprops: Sun C 5.11 supports __typeof__
16914         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16915         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16916         which is new.
16917         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16918
16919         intprops: switch to usual gnulib indenting and naming
16920         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16921         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16922
16923         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16924
16925 2011-05-08  Jim Meyering  <meyering@redhat.com>
16926
16927         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16928         * top/maint.mk (release-prep): Use make's --no-print-directory
16929         option when generating the announcement.  This eliminates the
16930         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16931         generated announcement template.
16932
16933 2011-05-08  Bruno Haible  <bruno@clisp.org>
16934
16935         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16936         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16937         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16938
16939 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16940
16941         ignore-value, verify: Omit include files from lib_SOURCES.
16942         * modules/ignore-value, modules/verify (Makefile.am):
16943         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16944         that leads Automake to duplicate use of am__objects_... variables
16945         in Makefile.in.  See
16946         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16947
16948 2011-05-07  Bruno Haible  <bruno@clisp.org>
16949
16950         fclose: Simplify autoconf macro.
16951         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16952         defined.
16953
16954 2011-05-07  Bruno Haible  <bruno@clisp.org>
16955
16956         canonicalize-lgpl: Fix autoconf macro ordering bug.
16957         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16958         gl_STDLIB_H_DEFAULTS.
16959
16960 2011-05-06  Eric Blake  <eblake@redhat.com>
16961
16962         maintainer-makefile: make sc_po_check easier to tune
16963         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16964         to probe for strings, such as an alternate location for gnulib.
16965
16966         fclose: guarantee behavior on seekable stdin
16967         * modules/fclose (Depends-on): Add fflush.
16968         * doc/posix-functions/fclose.texi (fclose): Document this.
16969         * tests/test-fclose.c (main): Make test for this unconditional.
16970
16971 2011-05-06  Bruno Haible  <bruno@clisp.org>
16972
16973         fflush, fpurge: Relicense under LGPLv2+.
16974         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16975         * modules/fpurge (License): Likewise.
16976         With permission from Eric Blake and Jim Meyering.
16977         Suggested by Eric Blake.
16978
16979 2011-05-06  Karl Berry  <karl@gnu.org>
16980
16981         * MODULES.html.sh (func_all_modules): remove exit.
16982
16983 2011-05-06  Jim Meyering  <meyering@redhat.com>
16984
16985         maint.mk: use info-gnu@ as the default only for a stable release
16986         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16987         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16988         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16989         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16990
16991 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16992
16993         assert-h: new module, which supports C1X-style static_assert
16994         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16995         * lib/verify.h: Revamp so that this can be copied into assert.h,
16996         while retaining the ability to use it standalone as before.
16997         Rename private identifiers so as not to encroach on the
16998         standard C namespace, since this is now used by assert.h.
16999         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17000         the old verify_true.
17001         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17002         the old verify_true.  Use _GL_VERIFY_TYPE.
17003         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17004         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17005         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17006         defined when this file is copied into the replacement assert.h.
17007         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17008         and _Static_assert is not built in.
17009         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17010         defined, and use the new macros mentioned above.
17011         * doc/posix-headers/assert.texi: Document this.
17012
17013 2011-05-05  Bruno Haible  <bruno@clisp.org>
17014
17015         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17016         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17017         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17018         gl_REPLACE_FCLOSE here.
17019         * modules/fflush (Depends-on): Remove fclose.
17020         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17021         combination with module 'fclose'.
17022
17023 2011-05-05  Bruno Haible  <bruno@clisp.org>
17024
17025         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17026         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17027         gl_FUNC_FFLUSH.
17028         (gl_FUNC_FFLUSH): Use it.
17029         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17030         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17031         gl_REPLACE_FSEEKO here.
17032
17033 2011-05-05  Bruno Haible  <bruno@clisp.org>
17034
17035         tzset: Relicense under LGPL.
17036         * modules/tzset (License): Change to LGPL.
17037         No agreement needed; it's a no-op.
17038
17039         strtoimax, strtoumax: Relicense under LGPL.
17040         * modules/strtoimax (License): Change to LGPL.
17041         * modules/strtoumax (License): Likewise.
17042         With permission from Jim Meyering, Paul Eggert:
17043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17045
17046         getgroups: Relicense under LGPL.
17047         * modules/getgroups (License): Change to LGPL.
17048         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17052
17053         nanosleep: Relicense under LGPL.
17054         * modules/nanosleep (License): Change to LGPL.
17055         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17056         Haible:
17057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17061
17062         futimens: Relicense under LGPL.
17063         * modules/futimens (License): Change to LGPL.
17064         With permission from Eric Blake:
17065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17066
17067         fflush: Relicense under LGPL.
17068         * modules/fflush (License): Change to LGPL.
17069         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17073
17074         tmpfile: Relicense under LGPL.
17075         * modules/tmpfile (License): Change to LGPL.
17076         With permission from Ben Pfaff:
17077         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17078
17079         isfinite: Relicense under LGPL.
17080         * modules/isfinite (License): Change to LGPL.
17081         With permission from Ben Pfaff, Bruno Haible:
17082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17084
17085         acosl..tanl: Relicense under LGPL.
17086         * modules/acosl (License): Change to LGPL.
17087         * modules/asinl (License): Likewise.
17088         * modules/atanl (License): Likewise.
17089         * modules/cosl (License): Likewise.
17090         * modules/expl (License): Likewise.
17091         * modules/logl (License): Likewise.
17092         * modules/sinl (License): Likewise.
17093         * modules/sqrtl (License): Likewise.
17094         * modules/tanl (License): Likewise.
17095         Source code originally from glibc and Paolo Bonzini. Agreements:
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17098
17099 2011-05-05  Bruno Haible  <bruno@clisp.org>
17100
17101         signal: Define sighandler_t.
17102         * lib/signal.in.h (sighandler_t): New type.
17103         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17104         whether sighandler_t is defined.
17105         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17106         * modules/signal (Depends-on): Add extensions.
17107         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17108         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17109         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17110
17111 2011-05-05  Eric Blake  <eblake@redhat.com>
17112
17113         maint: remove useless REPLACE_*_H macros
17114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17115         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17116         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17117         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17118         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17119         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17120         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17121         * m4/btowc.m4: Update callers.
17122         * m4/dirfd.m4: Likewise.
17123         * m4/duplocale.m4: Likewise.
17124         * m4/fchdir.m4: Likewise.
17125         * m4/fdopendir.m4: Likewise.
17126         * m4/inet_ntop.m4: Likewise.
17127         * m4/inet_pton.m4: Likewise.
17128         * m4/ioctl.m4: Likewise.
17129         * m4/mbrlen.m4: Likewise.
17130         * m4/mbrtowc.m4: Likewise.
17131         * m4/mbsinit.m4: Likewise.
17132         * m4/mbsnrtowcs.m4: Likewise.
17133         * m4/mbsrtowcs.m4: Likewise.
17134         * m4/poll.m4: Likewise.
17135         * m4/setlocale.m4: Likewise.
17136         * m4/wcrtomb.m4: Likewise.
17137         * m4/wcsnrtombs.m4: Likewise.
17138         * m4/wcsrtombs.m4: Likewise.
17139         * m4/wctob.m4: Likewise.
17140         * m4/wcwidth.m4: Likewise.
17141         * modules/posix_spawn: Likewise.
17142         * modules/posix_spawn_file_actions_addclose: Likewise.
17143         * modules/posix_spawn_file_actions_adddup2: Likewise.
17144         * modules/posix_spawn_file_actions_addopen: Likewise.
17145         * modules/posix_spawn_file_actions_destroy: Likewise.
17146         * modules/posix_spawn_file_actions_init: Likewise.
17147         * modules/posix_spawnattr_destroy: Likewise.
17148         * modules/posix_spawnattr_getflags: Likewise.
17149         * modules/posix_spawnattr_getpgroup: Likewise.
17150         * modules/posix_spawnattr_getschedparam: Likewise.
17151         * modules/posix_spawnattr_getschedpolicy: Likewise.
17152         * modules/posix_spawnattr_getsigdefault: Likewise.
17153         * modules/posix_spawnattr_getsigmask: Likewise.
17154         * modules/posix_spawnattr_init: Likewise.
17155         * modules/posix_spawnattr_setflags: Likewise.
17156         * modules/posix_spawnattr_setpgroup: Likewise.
17157         * modules/posix_spawnattr_setschedparam: Likewise.
17158         * modules/posix_spawnattr_setschedpolicy: Likewise.
17159         * modules/posix_spawnattr_setsigdefault: Likewise.
17160         * modules/posix_spawnattr_setsigmask: Likewise.
17161         * modules/posix_spawnp: Likewise.
17162
17163 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17164
17165         Add option to do-release-commit-and-tag to specify branch.
17166         * build-aux/do-release-commit-and-tag: Add --branch.
17167
17168 2011-05-03  Bruno Haible  <bruno@clisp.org>
17169
17170         Avoid unnecessary compilation units, through conditional dependencies.
17171         * modules/accept (Depends-on): Add conditions to the dependencies.
17172         * modules/acosl (Depends-on): Likewise.
17173         * modules/argz (Depends-on): Likewise.
17174         * modules/asinl (Depends-on): Likewise.
17175         * modules/atanl (Depends-on): Likewise.
17176         * modules/atoll (Depends-on): Likewise.
17177         * modules/bind (Depends-on): Likewise.
17178         * modules/btowc (Depends-on): Likewise.
17179         * modules/canonicalize-lgpl (Depends-on): Likewise.
17180         * modules/ceil (Depends-on): Likewise.
17181         * modules/ceilf (Depends-on): Likewise.
17182         * modules/ceill (Depends-on): Likewise.
17183         * modules/chdir-long (Depends-on): Likewise.
17184         * modules/chown (Depends-on): Likewise.
17185         * modules/close (Depends-on): Likewise.
17186         * modules/connect (Depends-on): Likewise.
17187         * modules/cosl (Depends-on): Likewise.
17188         * modules/dirfd (Depends-on): Likewise.
17189         * modules/dprintf (Depends-on): Likewise.
17190         * modules/dprintf-posix (Depends-on): Likewise.
17191         * modules/error (Depends-on): Likewise.
17192         * modules/euidaccess (Depends-on): Likewise.
17193         * modules/expl (Depends-on): Likewise.
17194         * modules/faccessat (Depends-on): Likewise.
17195         * modules/fchdir (Depends-on): Likewise.
17196         * modules/fclose (Depends-on): Likewise.
17197         * modules/fcntl (Depends-on): Likewise.
17198         * modules/fdopendir (Depends-on): Likewise.
17199         * modules/fflush (Depends-on): Likewise.
17200         * modules/floor (Depends-on): Likewise.
17201         * modules/floorf (Depends-on): Likewise.
17202         * modules/floorl (Depends-on): Likewise.
17203         * modules/fnmatch (Depends-on): Likewise.
17204         * modules/fopen (Depends-on): Likewise.
17205         * modules/fprintf-posix (Depends-on): Likewise.
17206         * modules/frexp (Depends-on): Likewise.
17207         * modules/frexp-nolibm (Depends-on): Likewise.
17208         * modules/frexpl (Depends-on): Likewise.
17209         * modules/frexpl-nolibm (Depends-on): Likewise.
17210         * modules/fseek (Depends-on): Likewise.
17211         * modules/fsusage (Depends-on): Likewise.
17212         * modules/ftell (Depends-on): Likewise.
17213         * modules/ftello (Depends-on): Likewise.
17214         * modules/futimens (Depends-on): Likewise.
17215         * modules/getcwd (Depends-on): Likewise.
17216         * modules/getcwd-lgpl (Depends-on): Likewise.
17217         * modules/getdelim (Depends-on): Likewise.
17218         * modules/getdomainname (Depends-on): Likewise.
17219         * modules/getgroups (Depends-on): Likewise.
17220         * modules/gethostname (Depends-on): Likewise.
17221         * modules/getline (Depends-on): Likewise.
17222         * modules/getlogin_r (Depends-on): Likewise.
17223         * modules/getopt-posix (Depends-on): Likewise.
17224         * modules/getpeername (Depends-on): Likewise.
17225         * modules/getsockname (Depends-on): Likewise.
17226         * modules/getsockopt (Depends-on): Likewise.
17227         * modules/getsubopt (Depends-on): Likewise.
17228         * modules/getusershell (Depends-on): Likewise.
17229         * modules/glob (Depends-on): Likewise.
17230         * modules/grantpt (Depends-on): Likewise.
17231         * modules/iconv_open (Depends-on): Likewise.
17232         * modules/iconv_open-utf (Depends-on): Likewise.
17233         * modules/inet_ntop (Depends-on): Likewise.
17234         * modules/inet_pton (Depends-on): Likewise.
17235         * modules/ioctl (Depends-on): Likewise.
17236         * modules/isapipe (Depends-on): Likewise.
17237         * modules/isfinite (Depends-on): Likewise.
17238         * modules/isinf (Depends-on): Likewise.
17239         * modules/lchown (Depends-on): Likewise.
17240         * modules/ldexpl (Depends-on): Likewise.
17241         * modules/link (Depends-on): Likewise.
17242         * modules/linkat (Depends-on): Likewise.
17243         * modules/listen (Depends-on): Likewise.
17244         * modules/logl (Depends-on): Likewise.
17245         * modules/lstat (Depends-on): Likewise.
17246         * modules/mbrlen (Depends-on): Likewise.
17247         * modules/mbrtowc (Depends-on): Likewise.
17248         * modules/mbsinit (Depends-on): Likewise.
17249         * modules/mbsnrtowcs (Depends-on): Likewise.
17250         * modules/mbsrtowcs (Depends-on): Likewise.
17251         * modules/mbtowc (Depends-on): Likewise.
17252         * modules/memcmp (Depends-on): Likewise.
17253         * modules/mkdir (Depends-on): Likewise.
17254         * modules/mkdtemp (Depends-on): Likewise.
17255         * modules/mkfifo (Depends-on): Likewise.
17256         * modules/mkfifoat (Depends-on): Likewise.
17257         * modules/mknod (Depends-on): Likewise.
17258         * modules/mkostemp (Depends-on): Likewise.
17259         * modules/mkostemps (Depends-on): Likewise.
17260         * modules/mkstemp (Depends-on): Likewise.
17261         * modules/mkstemps (Depends-on): Likewise.
17262         * modules/mktime (Depends-on): Likewise.
17263         * modules/nanosleep (Depends-on): Likewise.
17264         * modules/open (Depends-on): Likewise.
17265         * modules/openat (Depends-on): Likewise.
17266         * modules/perror (Depends-on): Likewise.
17267         * modules/poll (Depends-on): Likewise.
17268         * modules/popen (Depends-on): Likewise.
17269         * modules/posix_spawn (Depends-on): Likewise.
17270         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17271         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17272         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17273         * modules/posix_spawnp (Depends-on): Likewise.
17274         * modules/pread (Depends-on): Likewise.
17275         * modules/printf-posix (Depends-on): Likewise.
17276         * modules/ptsname (Depends-on): Likewise.
17277         * modules/putenv (Depends-on): Likewise.
17278         * modules/pwrite (Depends-on): Likewise.
17279         * modules/readline (Depends-on): Likewise.
17280         * modules/readlink (Depends-on): Likewise.
17281         * modules/readlinkat (Depends-on): Likewise.
17282         * modules/recv (Depends-on): Likewise.
17283         * modules/recvfrom (Depends-on): Likewise.
17284         * modules/regex (Depends-on): Likewise.
17285         * modules/remove (Depends-on): Likewise.
17286         * modules/rename (Depends-on): Likewise.
17287         * modules/renameat (Depends-on): Likewise.
17288         * modules/rmdir (Depends-on): Likewise.
17289         * modules/round (Depends-on): Likewise.
17290         * modules/roundf (Depends-on): Likewise.
17291         * modules/roundl (Depends-on): Likewise.
17292         * modules/rpmatch (Depends-on): Likewise.
17293         * modules/select (Depends-on): Likewise.
17294         * modules/send (Depends-on): Likewise.
17295         * modules/sendto (Depends-on): Likewise.
17296         * modules/setenv (Depends-on): Likewise.
17297         * modules/setlocale (Depends-on): Likewise.
17298         * modules/setsockopt (Depends-on): Likewise.
17299         * modules/shutdown (Depends-on): Likewise.
17300         * modules/sigaction (Depends-on): Likewise.
17301         * modules/signbit (Depends-on): Likewise.
17302         * modules/sigprocmask (Depends-on): Likewise.
17303         * modules/sinl (Depends-on): Likewise.
17304         * modules/sleep (Depends-on): Likewise.
17305         * modules/snprintf (Depends-on): Likewise.
17306         * modules/snprintf-posix (Depends-on): Likewise.
17307         * modules/socket (Depends-on): Likewise.
17308         * modules/sprintf-posix (Depends-on): Likewise.
17309         * modules/sqrtl (Depends-on): Likewise.
17310         * modules/stat (Depends-on): Likewise.
17311         * modules/strchrnul (Depends-on): Likewise.
17312         * modules/strdup-posix (Depends-on): Likewise.
17313         * modules/strerror (Depends-on): Likewise.
17314         * modules/strerror_r-posix (Depends-on): Likewise.
17315         * modules/strndup (Depends-on): Likewise.
17316         * modules/strnlen (Depends-on): Likewise.
17317         * modules/strptime (Depends-on): Likewise.
17318         * modules/strsep (Depends-on): Likewise.
17319         * modules/strsignal (Depends-on): Likewise.
17320         * modules/strstr-simple (Depends-on): Likewise.
17321         * modules/strtod (Depends-on): Likewise.
17322         * modules/strtoimax (Depends-on): Likewise.
17323         * modules/strtok_r (Depends-on): Likewise.
17324         * modules/strtoumax (Depends-on): Likewise.
17325         * modules/symlink (Depends-on): Likewise.
17326         * modules/symlinkat (Depends-on): Likewise.
17327         * modules/tanl (Depends-on): Likewise.
17328         * modules/tcgetsid (Depends-on): Likewise.
17329         * modules/tmpfile (Depends-on): Likewise.
17330         * modules/trunc (Depends-on): Likewise.
17331         * modules/truncf (Depends-on): Likewise.
17332         * modules/truncl (Depends-on): Likewise.
17333         * modules/uname (Depends-on): Likewise.
17334         * modules/unlink (Depends-on): Likewise.
17335         * modules/unlockpt (Depends-on): Likewise.
17336         * modules/unsetenv (Depends-on): Likewise.
17337         * modules/usleep (Depends-on): Likewise.
17338         * modules/utimensat (Depends-on): Likewise.
17339         * modules/vasprintf (Depends-on): Likewise.
17340         * modules/vdprintf (Depends-on): Likewise.
17341         * modules/vdprintf-posix (Depends-on): Likewise.
17342         * modules/vfprintf-posix (Depends-on): Likewise.
17343         * modules/vprintf-posix (Depends-on): Likewise.
17344         * modules/vsnprintf (Depends-on): Likewise.
17345         * modules/vsnprintf-posix (Depends-on): Likewise.
17346         * modules/vsprintf-posix (Depends-on): Likewise.
17347         * modules/wcrtomb (Depends-on): Likewise.
17348         * modules/wcscasecmp (Depends-on): Likewise.
17349         * modules/wcscspn (Depends-on): Likewise.
17350         * modules/wcsdup (Depends-on): Likewise.
17351         * modules/wcsncasecmp (Depends-on): Likewise.
17352         * modules/wcsnrtombs (Depends-on): Likewise.
17353         * modules/wcspbrk (Depends-on): Likewise.
17354         * modules/wcsrtombs (Depends-on): Likewise.
17355         * modules/wcsspn (Depends-on): Likewise.
17356         * modules/wcsstr (Depends-on): Likewise.
17357         * modules/wcstok (Depends-on): Likewise.
17358         * modules/wcswidth (Depends-on): Likewise.
17359         * modules/wctob (Depends-on): Likewise.
17360         * modules/wctomb (Depends-on): Likewise.
17361         * modules/wctype (Depends-on): Likewise.
17362         * modules/wcwidth (Depends-on): Likewise.
17363         * modules/write (Depends-on): Likewise.
17364
17365 2011-05-03  Bruno Haible  <bruno@clisp.org>
17366
17367         Support for conditional dependencies.
17368         * doc/gnulib.texi (Module description): Document the syntax of
17369         conditional dependencies.
17370         * gnulib-tool: New option --conditional-dependencies.
17371         (func_usage): Document it.
17372         (cond_dependencies): New variable.
17373         (func_get_automake_snippet_conditional,
17374         func_get_automake_snippet_unconditional): New functions, extracted from
17375         func_get_automake_snippet.
17376         (func_get_automake_snippet): Use them.
17377         (sed_first_32_chars): New variable.
17378         (func_module_shellfunc_name): New function.
17379         (func_module_shellvar_name): New function.
17380         (func_module_conditional_name): New function.
17381         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17382         func_cond_module_condition): New functions.
17383         (func_modules_transitive_closure): Add support for conditional
17384         dependencies.
17385         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17386         conditional automake snippet in an automake conditional.
17387         (func_emit_autoconf_snippets): Emit shell functions that contain the
17388         code for conditional modules.
17389         (func_import, func_create_testdir): Update specification.
17390
17391 2011-05-03  Eric Blake  <eblake@redhat.com>
17392
17393         test-getaddrinfo: report error information
17394         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17395
17396 2011-05-03  Jim Meyering  <meyering@redhat.com>
17397
17398         bootstrap: avoid build failure when $GZIP is set
17399         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17400         program name.  If defined at all, it is supposed to list gzip options.
17401         Reported by Alan Curry in http://debbugs.gnu.org/8609
17402
17403 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17404
17405         readme-release: new module with release instructions
17406         * modules/readme-release: New module.
17407         * top/README-release: New file, from coreutils, grep, diffutils.
17408         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17409
17410 2011-05-02  Eric Blake  <eblake@redhat.com>
17411
17412         fflush: also replace fclose when fixing fflush
17413         * modules/fflush (Depends-on): Add fclose.
17414         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17415         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17416         memstreams with no backing fd.
17417         * doc/posix-functions/fclose.texi (fclose): Document the use of
17418         fflush module to fix the bug.
17419         * tests/test-fclose.c (main): Relax test when fclose is used in
17420         isolation.
17421
17422         fclose: add some tests
17423         * modules/fclose-tests: New test module.
17424         * tests/test-fclose.c: New file.
17425         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17426
17427         fclose: reduced dependencies
17428         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17429         simpler lseek.
17430         * lib/fclose.c (rpl_fclose): Likewise.
17431         Reported by Simon Josefsson.
17432
17433         exit: drop remaining clients
17434         * modules/argmatch (Depends-on): Replace exit with stdlib.
17435         * modules/copy-file (Depends-on): Likewise.
17436         * modules/execute (Depends-on): Likewise.
17437         * modules/exitfail (Depends-on): Likewise.
17438         * modules/obstack (Depends-on): Likewise.
17439         * modules/pagealign_alloc (Depends-on): Likewise.
17440         * modules/pipe-filter-gi (Depends-on): Likewise.
17441         * modules/pipe-filter-ii (Depends-on): Likewise.
17442         * modules/savewd (Depends-on): Likewise.
17443         * modules/spawn-pipe (Depends-on): Likewise.
17444         * modules/wait-process (Depends-on): Likewise.
17445         * modules/xsetenv (Depends-on): Likewise.
17446         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17447         * modules/git-merge-changelog (Depends-on): Likewise.
17448         * modules/long-options (Depends-on): Likewise.
17449         * modules/pt_chown (Depends-on): Likewise.
17450         * modules/sysexits (Depends-on): Likewise.
17451
17452         freading: relax license from LGPLv3+ to LGPLv2+
17453         * modules/freading (License): Relax LGPL version.
17454
17455 2011-05-02  Bruno Haible  <bruno@clisp.org>
17456
17457         fchdir: Remove unused dependencies.
17458         * modules/fchdir (Depends-on): Remove include_next.
17459
17460 2011-05-02  Bruno Haible  <bruno@clisp.org>
17461
17462         gnulib-tool: Refactor.
17463         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17464         from func_emit_autoconf_snippets.
17465         (func_emit_autoconf_snippets): Use it.
17466
17467 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17468
17469         * NEWS: Document removal of 'exit'.
17470         * modules/exit: Remove file.
17471
17472 2011-05-01  Bruno Haible  <bruno@clisp.org>
17473
17474         Update DEPENDENCIES.
17475         * DEPENDENCIES (gettext): Recommend the newest release.
17476         Reported by Simon Josefsson.
17477
17478 2011-05-01  Bruno Haible  <bruno@clisp.org>
17479
17480         gnulib-tool: Reduce code duplication.
17481         * gnulib-tool (func_emit_autoconf_snippets): New function.
17482         (func_import, func_create_testdir): Use it.
17483
17484 2011-04-30  Eric Blake  <eblake@redhat.com>
17485
17486         fclose: don't fail on non-seekable input stream
17487         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17488         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17489         since fflush is allowed to fail in that case.
17490
17491 2011-04-30  Bruno Haible  <bruno@clisp.org>
17492
17493         dup3: cleanup
17494         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17495
17496 2011-04-30  Bruno Haible  <bruno@clisp.org>
17497
17498         netdb: Make it work in C++ mode.
17499         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17500         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17501         module.
17502         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17503         gl_MODULE_INDICATOR_FOR_TESTS.
17504         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17505         * modules/netdb-c++-tests: New file.
17506         * tests/test-netdb-c++.cc: New file.
17507
17508 2011-04-30  Bruno Haible  <bruno@clisp.org>
17509
17510         New modules 'vfscanf', 'vscanf'.
17511         * modules/vfscanf: New file.
17512         * modules/vscanf: New file.
17513         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17514         here.
17515         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17516         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17517
17518 2011-04-30  Bruno Haible  <bruno@clisp.org>
17519
17520         passfd: Add comments.
17521         * lib/passfd.c: Add comments about platforms.
17522
17523 2011-04-30  Bruno Haible  <bruno@clisp.org>
17524
17525         sys_uio: Make <sys/uio.h> self-contained.
17526         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17527         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17528
17529 2011-04-30  Bruno Haible  <bruno@clisp.org>
17530
17531         sys_socket: Ensure 'struct iovec' definition.
17532         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17533         <sys/socket.h>.
17534         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17535
17536 2011-04-30  Bruno Haible  <bruno@clisp.org>
17537
17538         sys_uio: Protect definition of 'struct iovec'.
17539         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17540         it as a C struct.
17541
17542 2011-04-30  Bruno Haible  <bruno@clisp.org>
17543
17544         manywarnings: fix indentation
17545         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17546
17547 2011-04-30  Pádraig Brady <P@draigBrady.com>
17548
17549         manywarnings: add -Wno-missing-field-initializers if needed.
17550         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17551         option if it's needed to allow initialization with { 0, }
17552
17553 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17554
17555         announce-gen: cosmetic improvement
17556         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17557
17558 2011-04-29  Jim Meyering  <meyering@redhat.com>
17559
17560         vc-list-files: indent with spaces, not TABs
17561         * build-aux/vc-list-files: Convert leading TABs to spaces,
17562         to match the style of most other files in gnulib.
17563
17564         announce-gen: indent with spaces, not TABs
17565         * build-aux/announce-gen: Convert all TABs to spaces, to match
17566         the style of most other files in gnulib.
17567
17568 2011-04-29  Eric Blake  <eblake@redhat.com>
17569
17570         quotearg: avoid uninitialized variable use
17571         * lib/quotearg.c (quoting_options_from_style): Initialize
17572         remaining fields, and ensure that custom styles are only used via
17573         quoting_options rather than quoting_style.
17574
17575 2011-04-29  Jim Meyering  <meyering@redhat.com>
17576
17577         maint.mk: remove unused VC-tag variable
17578         * top/maint.mk (VC-tag): Remove unused variable.
17579
17580 2011-04-29  Bruno Haible  <bruno@clisp.org>
17581
17582         netdb: fix gai_strerror replacements
17583         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17584         * modules/netdb: Substitute it.
17585
17586 2011-04-29  Jim Meyering  <meyering@redhat.com>
17587
17588         test-getcwd.c: avoid new set-but-not-used warning
17589         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17590         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17591         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17592         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17593
17594         test-hash.c: avoid a new shadowing warning
17595         * tests/test-hash.c (main): Don't shadow "dup".
17596
17597 2011-04-28  Eric Blake  <eblake@redhat.com>
17598
17599         getaddrinfo: fix gai_strerror signature
17600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17601         and work around mingw with UNICODE defined.
17602         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17603         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17604         * modules/netdb (Makefile.am): Substitute it.
17605         * lib/netdb.in.h (gai_strerror): Declare replacement.
17606         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17607         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17608         the fix.
17609
17610         getsockopt: avoid compiler warning
17611         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17612         Reported by Matthias Bolte.
17613
17614         tests: drop unused link dependency
17615         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17616         * modules/dirent-safer-tests (Makefile.am): Likewise.
17617         * modules/fdopendir-tests (Makefile.am): Likewise.
17618         * modules/mkfifoat-tests (Makefile.am): Likewise.
17619         * modules/openat-safer-tests (Makefile.am): Likewise.
17620         * modules/openat-tests (Makefile.am): Likewise.
17621         * modules/readlinkat-tests (Makefile.am): Likewise.
17622         * modules/symlinkat-tests (Makefile.am): Likewise.
17623         * modules/linkat-tests (Makefile.am): Likewise.
17624         (Depends-on): Switch to filenamecat-lgpl.
17625         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17626         LIBINTL.
17627         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17628         * tests/test-linkat.c (main): Don't require xalloc.
17629
17630         hash, mgetgroups: drop xalloc dependency
17631         * lib/hash.c (includes): Adjust includes.
17632         * lib/mgetgroups.c (includes): Likewise.
17633         (xgetgroups): Move...
17634         * lib/xgetgroups.c: ...to new file.
17635         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17636         * modules/xgetgroups: New file, split from...
17637         * modules/mgetgroups: ...here.
17638         (Depends-on): Add xalloc-oversized.
17639         * modules/hash (Depends-on): Likewise.
17640         * modules/hash-tests (Depends-on): Drop xalloc.
17641         (test_hash_LDADD): Drop unused library.
17642         * tests/test-hash.c (main): Break xalloc dependency.
17643         (includes): Drop unused include.
17644
17645         xalloc-oversized: new module
17646         * modules/xalloc-oversized: New module.
17647         * modules/xalloc (Depends-on): Add it.
17648         * lib/xalloc.h (xalloc_oversized): Move...
17649         * lib/xalloc-oversized.h: ...into new file.
17650
17651         utimecmp: drop dependency on xmalloc
17652         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17653         due to memory pressure.
17654         * modules/utimecmp (Depends-on): Drop xalloc.
17655
17656 2011-04-27  Eric Blake  <eblake@redhat.com>
17657
17658         getcwd: fix mingw bugs
17659         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17660         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17661         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17662
17663 2011-04-27  Bruno Haible  <bruno@clisp.org>
17664
17665         mkstemps: Ensure declaration on MacOS X 10.5.
17666         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17667         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17668         MacOS X.
17669
17670 2011-04-27  Bruno Haible  <bruno@clisp.org>
17671
17672         mkstemp: More documentation.
17673         * doc/posix-functions/mkstemp.texi: Document header file problem on
17674         MacOS X.
17675
17676 2011-04-27  Bruno Haible  <bruno@clisp.org>
17677
17678         mkstemp: Tweak configure message when cross-compiling.
17679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17680         result as a guess.
17681
17682 2011-04-27  Bruno Haible  <bruno@clisp.org>
17683
17684         clean-temp: Clarify what it does.
17685         * lib/clean-temp.h: Add more comments.
17686         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17687         module.
17688         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17689         * doc/glibc-functions/mkstemps.texi: Likewise.
17690         * doc/glibc-functions/mkostemps.texi: Likewise.
17691
17692 2011-04-27  Eric Blake  <eblake@redhat.com>
17693
17694         fchdir: avoid extra chdir and fix test
17695         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17696         getcwd-lgpl.
17697         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17698         have to be canonical.
17699         (canonicalize_file_name): Drop unused macro.
17700         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17701
17702         filenamecat-lgpl: fix licence
17703         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17704         when it was first created.
17705
17706         linkat, renameat: add missing dependency
17707         * modules/linkat (Depends-on): Require getcwd-lgpl.
17708         * modules/renameat (Depends-on): Likewise.
17709
17710         tests: reduce dependencies
17711         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17712         * tests/test-renameat.c (main): Likewise.
17713         * modules/linkat-tests (Depends-on): Relax dependency.
17714         * modules/renameat-tests (Depends-on): Likewise.
17715         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17716         dependency explicit.
17717
17718         save-cwd: reduce default dependency
17719         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17720         * lib/save-cwd.c: Update comments.
17721         * NEWS: Document the semantic change.
17722
17723         getcwd: enhance tests
17724         * tests/test-getcwd-lgpl.c: New file, taken from...
17725         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17726         repeat long path stress tests from m4 probe.
17727         * modules/getcwd-lgpl-tests: New module.
17728         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17729         * m4/getcwd-abort-bug.m4: Update comment.
17730         * m4/getcwd-path-max.m4: Likewise.
17731
17732         getcwd-lgpl: new module
17733         * modules/getcwd-lgpl: New module.
17734         * lib/getcwd-lgpl.c: New file.
17735         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17736         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17737         * modules/getcwd (configure.ac): Set C witness.
17738         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17739
17740         getcwd: tweak comments
17741         * m4/getcwd-abort-bug.m4: Fix comments.
17742         * m4/getcwd-path-max.m4: Likewise.
17743         * m4/getcwd.m4: Likewise.
17744
17745 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17746         and Eric Blake  <eblake@redhat.com>
17747
17748         mkstemp: replace if system version uses wrong permissions
17749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17750         read/write mode bits set in file created by mkstemp.
17751         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17752
17753 2011-04-27  Eric Blake  <eblake@redhat.com>
17754
17755         passfd: avoid compiler warning
17756         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17757         Reported by Laine Stump.
17758
17759 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17760
17761         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17762         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17763
17764 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17765         and Eric Blake  <eblake@redhat.com>
17766
17767         mkstemp: mention clean-temp module
17768         * lib/mkstemp.c: Add comment.
17769         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17770
17771 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17772
17773         inttypes: also provide default values for 32-bit tests
17774         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17775         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17776
17777 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17778
17779         strtoumax: remove dependency on strtoimax
17780         This is like the strtoull change of yesterday.
17781         * modules/strtoumax (Files): Add lib/strtoimax.c.
17782         (Depends-on): Remove strtoimax and add verify.
17783
17784         inttypes-incomplete: new module
17785         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17786         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17787         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17788         of gl_INTTYPES_H.
17789         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17790         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17791         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17792         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17793         * modules/strtoumax, modules/xstrtol (Depends-on):
17794         Depend on inttypes-incomplete, not inttypes.
17795         * modules/inttypes-incomplete: New module, containing the contents
17796         of the old modules/inttypes module, except that the Files: section
17797         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17798         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17799         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17800         (Depends-on): Depend only on inttypes-incomplete.
17801         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17802
17803         inttypes: omit now-redundant strtoimax and strtoumax work
17804         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17805         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17806
17807         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17808         This supports apps that need pointers to strtoimax and strtoumax,
17809         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17810         nonexistent functions.  See
17811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17812         et seq.
17813         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17814         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17815         a macro.
17816         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17817
17818 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17819
17820         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17821
17822 2011-04-25  Bruno Haible  <bruno@clisp.org>
17823
17824         strtol, strtoul: Mark modules as obsolete.
17825         * modules/strtol (Status, Notice): New sections.
17826         * modules/strtoul (Status, Notice): New sections.
17827
17828 2011-04-25  Bruno Haible  <bruno@clisp.org>
17829
17830         strtod: Remove check for strtod, unless supporting old platforms.
17831         * modules/strtod-obsolete: New file.
17832         * m4/strtod-obsolete.m4: New file.
17833         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17834         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17835         * modules/strtod (Depends-on): Add strtod-obsolete.
17836         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17837
17838 2011-04-25  Bruno Haible  <bruno@clisp.org>
17839
17840         strcase: Make module obsolete.
17841         * modules/strcase (Status, Notice): New sections.
17842
17843 2011-04-25  Bruno Haible  <bruno@clisp.org>
17844
17845         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17846         * modules/dup2-obsolete: New file.
17847         * m4/dup2-obsolete.m4: New file.
17848         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17849         gl_FUNC_DUP2_OBSOLETE is not also defined.
17850         * modules/dup2 (Depends-on): Add dup2-obsolete.
17851         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17852
17853 2011-04-25  Bruno Haible  <bruno@clisp.org>
17854
17855         strnlen: Avoid memchr related link error on old obsolete platforms.
17856         * modules/memchr-obsolete: New file.
17857         * m4/memchr-obsolete.m4: New file.
17858         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17859         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17860         * modules/memchr (Depends-on): Add memchr-obsolete.
17861         * modules/strnlen (Depends-on): Likewise.
17862         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17863
17864 2011-04-25  Jim Meyering  <meyering@redhat.com>
17865
17866         maint.mk: makefile_at_at_check extend and clean up
17867         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17868         in addition to */Makefile.am.
17869         Exempt legitimate uses of @VAR@ notation, e.g.,
17870         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17871         Remove obsolete coreutils-specific comment.
17872         Prompted by discussion here:
17873         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17874
17875 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17876
17877         strtoul: remove dependency on strtol
17878         This is so that 'configure' need not check for strtol merely because
17879         the application needs strtoul.
17880         * modules/strtoul (Files): Add lib/strtol.c.
17881         (Depends-on): Remove strtol.
17882
17883         strtoull: remove dependency on strtoul
17884         This is like the strtoll change.
17885         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17886         (Depends-on): Remove strtoul.
17887
17888         strtoll: remove dependency on strtol
17889         This is so that 'configure' need not check for strtol merely because
17890         the application needs strtoll.
17891         * modules/strtoll (Files): Add lib/strtol.c.
17892         (Depends-on): Remove strtol.
17893
17894 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17895
17896         inttypes: Move some configure check to module 'imaxdiv'.
17897         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17898         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17899         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17900
17901 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17902
17903         inttypes: Move some configure check to module 'imaxabs'.
17904         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17905         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17906         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17907
17908 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17909
17910         inttypes: Remove configure tests that are not needed since 2009-12-31.
17911         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17912         gl_cv_header_working_inttypes_h.
17913
17914 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17915
17916         * modules/strnlen (Depends-on): Remove memchr.
17917         The strnlen implementation doesn't need the memchr module's fixes; see
17918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17919
17920         strtol: remove dependency on wchar
17921         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17922         * modules/strtol (Depends-on): Remove wchar.
17923
17924 2011-04-21  Eric Blake  <eblake@redhat.com>
17925
17926         passfd: fix test regression on Linux
17927         * modules/passfd-tests (configure.ac): Correct socketpair check.
17928
17929         passfd: speed up configure and drop unused code
17930         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17931         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17932         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17933         Instead of probing at configure for unix_scm_rights_bsd44_way,
17934         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17935         check to a struct member probe.
17936         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17937         (sendfd, recvfd): Update preprocessor checks.
17938         * modules/passfd (Files): Reflect rename, and drop unused file.
17939         (Depends-on): Drop unused dependency.
17940
17941         passfd: allow compilation on mingw
17942         * modules/sys_socket (Depends-on): Add sys_uio.
17943         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17944         iovec and a minimal struct msghdr.
17945         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17946         * tests/test-sys_socket.c (main): Enhance test.
17947         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17948         guaranteed to provide what we need.
17949         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17950         * modules/passfd-tests (Depends-on): Add sys_wait.
17951         * tests/test-passfd.c (main): Skip test on mingw, for now.
17952         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17953         partial 'struct msghdr' implementation.
17954
17955         sys_uio: new module
17956         * modules/sys_uio: New module.
17957         * modules/sys_uio-tests: Likewise.
17958         * lib/sys_uio.in.h: New file.
17959         * m4/sys_uio_h.m4: Likewise.
17960         * tests/test-sys_uio.c: Likewise.
17961         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17962         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17963
17964 2011-04-20  Jim Meyering  <meyering@redhat.com>
17965
17966         useless-if-before-free: avoid false-positive
17967         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17968         disjunct so that it too requires a terminating ";".  Without that,
17969         this script would identify as useless one statement from gcc that
17970         was not:
17971           if (aligned_ptr)
17972             free (((void **) aligned_ptr) [-1]);
17973
17974 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17975
17976         doc: update users.txt.
17977         * users.txt: Add barcode.
17978
17979 2011-04-19  Bruno Haible  <bruno@clisp.org>
17980
17981         ioctl: Remove link dependency on native Windows.
17982         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17983         (gl_close_fn, gl_ioctl_fn): New types.
17984         (struct fd_hook): Renamed from struct close_hook. Change type of
17985         private_close_fn field. Add private_ioctl_fn field.
17986         (close_hook_fn): Add parameter for primary close method.
17987         (execute_close_hooks, execute_all_close_hooks): Likewise.
17988         (ioctl_hook_fn): New type.
17989         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17990         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17991         argument.
17992         (unregister_fd_hook): Renamed from unregister_close_hook.
17993         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17994         Don't include <unistd.h>.
17995         (close): Remove undef.
17996         (anchor): Update.
17997         (execute_close_hooks): Add argument for primary close method.
17998         (execute_all_close_hooks): Likewise.
17999         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18000         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18001         argument. Allow each argument to be NULL.
18002         (unregister_fd_hook): Renamed from unregister_close_hook.
18003         * lib/close.c (rpl_close): Pass 'close' function pointer to
18004         execute_all_close_hooks.
18005         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18006         (primary_ioctl): New function.
18007         (ioctl): Don't call ioctlsocket here. Instead, call
18008         execute_all_ioctl_hooks.
18009         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18010         close method.
18011         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18012         (fd_sockets_hook): Renamed from close_sockets_hook.
18013         (gl_sockets_startup, gl_sockets_cleanup): Update.
18014         * modules/fd-hook: Renamed from modules/close-hook. Update.
18015         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18016         * modules/sockets (Depends-on): Likewise.
18017         * modules/ioctl (Depends-on): Add fd-hook.
18018         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18019         GNULIB_SOCKET.
18020
18021 2011-04-19  Bruno Haible  <bruno@clisp.org>
18022
18023         Move the support of O_NONBLOCK in open() to the 'open' module.
18024         * modules/nonblocking (Depends-on): Remove 'open'.
18025         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18026         gl_cv_have_open_O_NONBLOCK.
18027         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18028         O_NONBLOCK support.
18029         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18030
18031 2011-04-17  Bruno Haible  <bruno@clisp.org>
18032
18033         pipe2: Simplify code.
18034         * lib/pipe2.c (pipe2): Reduce code duplication.
18035
18036 2011-04-17  Bruno Haible  <bruno@clisp.org>
18037
18038         nonblocking: Add comment.
18039         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18040
18041 2011-04-17  Bruno Haible  <bruno@clisp.org>
18042
18043         nonblocking: Add tests for sockets.
18044         * tests/test-nonblocking-socket.sh: New file.
18045         * tests/test-nonblocking-socket-main.c: New file.
18046         * tests/test-nonblocking-socket-child.c: New file.
18047         * tests/test-nonblocking-socket.h: New file.
18048         * tests/socket-server.h: New file.
18049         * tests/socket-client.h: New file.
18050         * modules/nonblocking-socket-tests: New file.
18051         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18052
18053 2011-04-17  Bruno Haible  <bruno@clisp.org>
18054
18055         nonblocking: Add tests for pipes.
18056         * tests/test-nonblocking-pipe.sh: New file.
18057         * tests/test-nonblocking-pipe-main.c: New file.
18058         * tests/test-nonblocking-pipe-child.c: New file.
18059         * tests/test-nonblocking-pipe.h: New file.
18060         * tests/test-nonblocking-writer.h: New file.
18061         * tests/test-nonblocking-reader.h: New file.
18062         * tests/test-nonblocking-misc.h: New file.
18063         * modules/nonblocking-pipe-tests: New file.
18064         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18065
18066 2011-04-16  Bruno Haible  <bruno@clisp.org>
18067
18068         gettext: Clarify the needed programmer actions.
18069         * modules/gettext (Notice): New field.
18070         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18071
18072 2011-04-16  Bruno Haible  <bruno@clisp.org>
18073
18074         strchrnul: Tweak last commit.
18075         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18076         bug.
18077         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18078         as in _GL_FUNCDECL_SYS.
18079         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18080         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18081
18082 2011-04-15  Eric Blake  <eblake@redhat.com>
18083
18084         strchrnul: work around cygwin bug
18085         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18086         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18088         * modules/string (Makefile.am): Substitute it.
18089         * lib/string.in.h (strchrnul): Use it.
18090
18091 2011-04-15  Bruno Haible  <bruno@clisp.org>
18092
18093         Don't require lib/stdio-write.c when only module 'stdio' is used.
18094         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18095         invocation.
18096         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18097
18098 2011-04-14  Bruno Haible  <bruno@clisp.org>
18099
18100         Support non-blocking pipe I/O in read() on native Windows.
18101         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18102         (read): New declaration.
18103         * lib/read.c: New file.
18104         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18105         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18106         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18107         vscanf): New declarations.
18108         * lib/stdio-read.c: New file.
18109         * m4/read.m4: New file.
18110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18111         REPLACE_READ.
18112         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18113         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18114         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18115         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18116         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18117         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18118         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18119         * modules/read: New file.
18120         * modules/nonblocking (Files): Add lib/stdio-read.c.
18121         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18122         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18123         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18124         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18125         * modules/pread (Depends-on): Add read.
18126         * modules/safe-read (Depends-on): Likewise.
18127         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18128         gets, scanf, vfscanf, vscanf): Verify signatures.
18129         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18130         problem with non-blocking pipes.
18131         * doc/posix-functions/fgetc.texi: Likewise.
18132         * doc/posix-functions/fgets.texi: Likewise.
18133         * doc/posix-functions/fread.texi: Likewise.
18134         * doc/posix-functions/fscanf.texi: Likewise.
18135         * doc/posix-functions/getc.texi: Likewise.
18136         * doc/posix-functions/getchar.texi: Likewise.
18137         * doc/posix-functions/gets.texi: Likewise.
18138         * doc/posix-functions/scanf.texi: Likewise.
18139         * doc/posix-functions/vfscanf.texi: Likewise.
18140         * doc/posix-functions/vscanf.texi: Likewise.
18141
18142 2011-04-14  Bruno Haible  <bruno@clisp.org>
18143
18144         Support non-blocking pipe I/O in write() on native Windows.
18145         * lib/write.c (rpl_write): Split a write request that failed merely
18146         because the byte count was larger than the pipe buffer's size.
18147         * doc/posix-functions/write.texi: Mention the problem with large byte
18148         counts.
18149
18150 2011-04-14  Bruno Haible  <bruno@clisp.org>
18151
18152         wchar: Ensure that wchar_t gets defined on uClibc.
18153         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18154         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18155
18156 2011-04-13  Bruno Haible  <bruno@clisp.org>
18157
18158         safe-write, full-read: Avoid unnecessary compilation units.
18159         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18160         (Depends-on): Remove safe-read. Add ssize_t.
18161         * modules/full-read (Files): Add lib/full-write.c.
18162         (Depends-on): Add full-write.
18163
18164 2011-04-13  Bruno Haible  <bruno@clisp.org>
18165
18166         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18167         * modules/pwrite (Depends-on): Add 'write'.
18168
18169 2011-04-13  Bruno Haible  <bruno@clisp.org>
18170
18171         Support non-blocking pipe I/O in write() on native Windows.
18172         * lib/unistd.in.h (write): Enable replacement also if
18173         GNULIB_UNISTD_H_NONBLOCKING is 1.
18174         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18175         (rpl_write): When failing to write on a non-blocking pipe, change
18176         errno from ENOSPC to EAGAIN.
18177         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18178         putchar, puts, vfprintf, vprintf): Enable replacement also if
18179         GNULIB_STDIO_H_NONBLOCKING is 1.
18180         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18181         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18182         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18183         CALL_WITH_SIGPIPE_EMULATION.
18184         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18185         * m4/nonblocking.m4: New file.
18186         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18187         for non-blocking I/O support.
18188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18189         GNULIB_UNISTD_H_NONBLOCKING.
18190         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18191         required for non-blocking I/O support.
18192         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18193         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18194         lib/stdio-write.c, m4/asm-underscore.m4.
18195         (Depends-on): Add stdio, unistd.
18196         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18197         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18198         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18199         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18200         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18201         problem with non-blocking pipes.
18202         * doc/posix-functions/fputc.texi: Likewise.
18203         * doc/posix-functions/fputs.texi: Likewise.
18204         * doc/posix-functions/fwrite.texi: Likewise.
18205         * doc/posix-functions/printf.texi: Likewise.
18206         * doc/posix-functions/putc.texi: Likewise.
18207         * doc/posix-functions/putchar.texi: Likewise.
18208         * doc/posix-functions/puts.texi: Likewise.
18209         * doc/posix-functions/vfprintf.texi: Likewise.
18210         * doc/posix-functions/vprintf.texi: Likewise.
18211         * doc/posix-functions/write.texi: Likewise.
18212
18213 2011-04-10  Jim Meyering  <meyering@redhat.com>
18214
18215         maint.mk: prohibit doubled words
18216         Detect them also when they're separated by a newline.
18217         There are 3 ways to customize it:
18218           - disable the test on a per file basis, as usual with rules using
18219             $(VC_LIST_EXCEPT)
18220           - replace the default doubled-word-selecting regexp (affects all files)
18221           - ignore a particular file-vs-doubled-word match
18222         I nearly used that last one to ignore the "is is" match in
18223         coreutils' NEWS file, since the text was "ls -is is ..."
18224         To do that, I would have added this line to cfg.mk:
18225           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18226         but it would have ignored any "is is" match in NEWS.
18227         Low probability, but still...
18228         Instead, I changed the text, slightly:
18229           -  ls -is is now consistent with ls -lis in ignoring values returned
18230           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18231         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18232         (prohibit_doubled_word_): Define.
18233         (sc_prohibit_doubled_word): New rule.
18234         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18235
18236 2011-04-10  Jim Meyering  <meyering@redhat.com>
18237
18238         maint: fix doubled-word typo in comment
18239         * m4/gethostname.m4: s/is is/it is/
18240         * m4/getdomainname.m4: Likewise.
18241
18242 2011-04-10  Jim Meyering  <meyering@redhat.com>
18243
18244         maint: remove doubled word: s/it it/it/
18245         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18246
18247 2011-04-10  Jim Meyering  <meyering@redhat.com>
18248
18249         maint.mk: remove useless semicolon and backslash
18250         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18251         semicolon and backslash.
18252
18253 2011-04-10  Bruno Haible  <bruno@clisp.org>
18254
18255         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18256         * modules/stdint-tests (Depends-on): Add wchar.
18257
18258 2011-04-10  Jim Meyering  <meyering@redhat.com>
18259
18260         maint: remove doubled words in comments, e.g., s/a a/a/
18261         * lib/strptime.c (day_of_the_week): s/the the/the/
18262         * tests/test-chown.h (test_chown): s/a a/a/
18263
18264         test-chown.h: correct a cast
18265         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18266         when the destination is a stat.st_gid.
18267
18268 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18269
18270         getaddrinfo: Fix test for sa_len member.
18271         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18272         include <sys/types.h> before <sys/socket.h>.
18273
18274 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18275
18276         maint: change "can not" to "cannot"
18277         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18278         boundaries.
18279
18280 2011-04-09  Jim Meyering  <meyering@redhat.com>
18281
18282         maint: change "a a" to "a"
18283         * tests/test-lchown.h (test_lchown): s/a a/a/
18284
18285         maint.mk: prohibit \<the the\>
18286         * top/maint.mk (sc_prohibit_the_the): New rule.
18287
18288         maint: fix "the the" in comment
18289         * lib/count-one-bits.h: s/the the/the/
18290
18291         maint: change "can not" to "cannot"
18292         But do not change the occurrences in maintain.texi or in
18293         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18294         * doc/gnulib-tool.texi: s/can not/cannot/
18295         * doc/posix-functions/accept.texi (accept): Likewise.
18296         * doc/posix-functions/socket.texi (socket): Likewise.
18297         * lib/mbrtowc.c: Likewise.
18298
18299         maint.mk: prohibit use of "can not"
18300         * top/maint.mk (sc_prohibit_can_not): New rule.
18301         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18302
18303 2011-04-09  Bruno Haible  <bruno@clisp.org>
18304
18305         careadlinkat: Guard against misuse of careadlinkatcwd.
18306         * lib/careadlinkat.c: Include <stdlib.h>.
18307         (careadlinkatcwd): Check that the fd argument is as expected.
18308
18309 2011-04-09  Bruno Haible  <bruno@clisp.org>
18310
18311         careadlinkat: Use common coding style.
18312         * lib/careadlinkat.c: Move gnulib includes after system includes.
18313
18314 2011-04-09  Bruno Haible  <bruno@clisp.org>
18315
18316         careadlinkat: Clarify specification.
18317         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18318         (careadlinkatcwd): Add comment.
18319         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18320
18321 2011-04-09  Bruno Haible  <bruno@clisp.org>
18322
18323         areadlinkat: Avoid link error on many platforms.
18324         * modules/areadlinkat (Depends-on): Add areadlink.
18325
18326 2011-04-09  Bruno Haible  <bruno@clisp.org>
18327
18328         allocator, careadlinkat: Fix double-inclusion guard.
18329         * lib/allocator.h: Fix double-inclusion guard.
18330         * lib/careadlinkat.h: Likewise.
18331
18332 2011-04-09  Bruno Haible  <bruno@clisp.org>
18333
18334         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18335         * lib/relocwrapper.c: Update dependencies hierarchy.
18336         * build-aux/install-reloc: Update list of files to be compiled.
18337         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18338         lib/allocator.[hc].
18339
18340 2011-04-08  Eric Blake  <eblake@redhat.com>
18341
18342         strftime: silence gnulib-tool warning
18343         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18344
18345 2011-04-08  Bruno Haible  <bruno@clisp.org>
18346
18347         verify: Fix syntax error with GCC 4.6 in C++ mode.
18348         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18349         (HAVE_STATIC_ASSERT): New macro.
18350         (verify_true, verify): Use 'static_assert' if it is supported and
18351         '_Static_assert' is not supported.
18352
18353 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18354
18355         allocator: New module.
18356         * modules/allocator, lib/allocator.c: New files.
18357         * lib/allocator.h (stdlib_allocator): New decl.
18358         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18359         Remove.  Do not include <stdlib.h>.
18360         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18361         * modules/careadlinkat (Files): Remove lib/allocator.h.
18362         (Depends-on): Add allocator.
18363
18364         stdlib: let modules use system malloc, realloc
18365         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18366         if !_GL_USE_STDLIB_ALLOC.
18367         (malloc, realloc): Limit this change to a smaller scope.
18368
18369         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18370         (malloc, realloc): Don't #undef; no longer needed.
18371         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18372         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18373         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18374         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18375         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18376         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18377         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18378         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18379
18380         careadlinkat: rename members to avoid problem
18381         * lib/allocator.h (struct allocator): Rename members from
18382         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18383         and realloc are #define'd.  Reported by Eric Blake in
18384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18385         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18386
18387 2011-04-08  Eric Blake  <eblake@redhat.com>
18388
18389         nonblocking: reduce dependency
18390         * tests/test-nonblocking.c: Only test sockets when in use.
18391         * modules/nonblocking-tests (Depends-on): Drop socket.
18392         (Makefile.am): Link even if sockets are not present.
18393         * modules/pipe2-tests (Makefile.am): Likewise.
18394         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18395
18396         pipe2: fix O_NONBLOCK support on mingw
18397         * modules/pipe2 (Depends-on): Add nonblocking.
18398         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18399         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18400         * tests/test-nonblocking.c (main): Likewise.
18401         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18402
18403         fcntl-h: fix O_ACCMODE on cygwin
18404         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18405         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18406
18407         pipe-filter: drop O_NONBLOCK workarounds
18408         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18409         * modules/pipe-filter-ii (Depends-on): Likewise.
18410         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18411
18412         nonblocking: provide O_NONBLOCK for mingw
18413         * modules/nonblocking (Depends-on): Add open.
18414         (configure.ac): Set new witness macro.
18415         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18416         * modules/fcntl-h (Makefile.am): Substitute it.
18417         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18418         nonblocking module is in use.
18419         * lib/nonblocking.c: Adjust portability test.
18420         * lib/open.c (open): Don't let native open see gnulib flag.
18421         * tests/test-fcntl-h.c (main): Enhance test.
18422         * tests/test-open.h (test_open): Likewise.
18423         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18424
18425         careadlinkat: fix compilation error on mingw
18426         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18427         within struct allocator.
18428
18429 2011-04-06  Eric Blake  <eblake@redhat.com>
18430
18431         binary-io: relicense under LGPLv2+
18432         * modules/binary-io (License): Relax to LGPLv2+.
18433         Requested for libvirt, and required by pipe2.
18434
18435 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         verify: use _Static_assert if available
18438         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18439         (verify_true, verify): Use it if available.  This generates better
18440         diagnostics with GCC 4.6.0 and later.
18441
18442 2011-04-05  Bruno Haible  <bruno@clisp.org>
18443
18444         Remove leftover generated .h files after config.status changed.
18445
18446         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18447         GL_GENERATE_ALLOCA_H.
18448         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18449         GL_GENERATE_ALLOCA_H evaluates to false.
18450
18451         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18452         GL_GENERATE_ARGZ_H.
18453         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18454         evaluates to false.
18455
18456         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18457         GL_GENERATE_BYTESWAP_H.
18458         * modules/byteswap (Makefile.am): Remove byteswap.h if
18459         GL_GENERATE_BYTESWAP_H evaluates to false.
18460
18461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18462         GL_GENERATE_ERRNO_H.
18463         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18464         evaluates to false.
18465
18466         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18467         GL_GENERATE_FLOAT_H.
18468         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18469         evaluates to false.
18470
18471         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18472         GL_GENERATE_FNMATCH_H.
18473         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18474         GL_GENERATE_FNMATCH_H evaluates to false.
18475
18476         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18477         GL_GENERATE_GLOB_H.
18478         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18479         evaluates to false.
18480
18481         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18482         automake conditional GL_GENERATE_ICONV_H.
18483         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18484         evaluates to false.
18485
18486         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18487         GL_GENERATE_NETINET_IN_H.
18488         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18489         GL_GENERATE_NETINET_IN_H evaluates to false.
18490
18491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18492         conditional GL_GENERATE_PTHREAD_H.
18493         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18494         * modules/pthread (Makefile.am): Remove pthread.h if
18495         GL_GENERATE_PTHREAD_H evaluates to false.
18496
18497         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18498         GL_GENERATE_SCHED_H.
18499         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18500         evaluates to false.
18501
18502         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18503         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18504         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18505         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18506
18507         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18508         GL_GENERATE_STDARG_H.
18509         * modules/stdarg (Makefile.am): Remove stdarg.h if
18510         GL_GENERATE_STDARG_H evaluates to false.
18511
18512         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18513         GL_GENERATE_STDBOOL_H.
18514         * modules/stdbool (Makefile.am): Remove stdbool.h if
18515         GL_GENERATE_STDBOOL_H evaluates to false.
18516
18517         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18518         conditional GL_GENERATE_STDDEF_H.
18519         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18520         * modules/stddef (Makefile.am): Remove stddef.h if
18521         GL_GENERATE_STDDEF_H evaluates to false.
18522
18523         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18524         GL_GENERATE_STDINT_H.
18525         * modules/stdint (Makefile.am): Remove stdint.h if
18526         GL_GENERATE_STDINT_H evaluates to false.
18527
18528         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18529         GL_GENERATE_SYSEXITS_H.
18530         * modules/sysexits (Makefile.am): Remove sysexits.h if
18531         GL_GENERATE_SYSEXITS_H evaluates to false.
18532
18533         Reported by Karl Berry and Ralf Wildenhues.
18534
18535 2011-04-05  Bruno Haible  <bruno@clisp.org>
18536
18537         Ensure to rebuild generated .h files when config.status has changed.
18538         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18539         config.status.
18540         * modules/ctype (Makefile.am): Likewise.
18541         * modules/dirent (Makefile.am): Likewise.
18542         * modules/errno (Makefile.am): Likewise.
18543         * modules/fcntl-h (Makefile.am): Likewise.
18544         * modules/float (Makefile.am): Likewise.
18545         * modules/getopt-posix (Makefile.am): Likewise.
18546         * modules/glob (Makefile.am): Likewise.
18547         * modules/iconv-h (Makefile.am): Likewise.
18548         * modules/inttypes (Makefile.am): Likewise.
18549         * modules/langinfo (Makefile.am): Likewise.
18550         * modules/locale (Makefile.am): Likewise.
18551         * modules/math (Makefile.am): Likewise.
18552         * modules/netdb (Makefile.am): Likewise.
18553         * modules/netinet_in (Makefile.am): Likewise.
18554         * modules/poll-h (Makefile.am): Likewise.
18555         * modules/pthread (Makefile.am): Likewise.
18556         * modules/pty (Makefile.am): Likewise.
18557         * modules/sched (Makefile.am): Likewise.
18558         * modules/search (Makefile.am): Likewise.
18559         * modules/selinux-h (Makefile.am): Likewise.
18560         * modules/signal (Makefile.am): Likewise.
18561         * modules/spawn (Makefile.am): Likewise.
18562         * modules/stdarg (Makefile.am): Likewise.
18563         * modules/stdbool (Makefile.am): Likewise.
18564         * modules/stddef (Makefile.am): Likewise.
18565         * modules/stdint (Makefile.am): Likewise.
18566         * modules/stdio (Makefile.am): Likewise.
18567         * modules/stdlib (Makefile.am): Likewise.
18568         * modules/string (Makefile.am): Likewise.
18569         * modules/strings (Makefile.am): Likewise.
18570         * modules/sys_file (Makefile.am): Likewise.
18571         * modules/sys_ioctl (Makefile.am): Likewise.
18572         * modules/sys_select (Makefile.am): Likewise.
18573         * modules/sys_socket (Makefile.am): Likewise.
18574         * modules/sys_stat (Makefile.am): Likewise.
18575         * modules/sys_time (Makefile.am): Likewise.
18576         * modules/sys_times (Makefile.am): Likewise.
18577         * modules/sys_utsname (Makefile.am): Likewise.
18578         * modules/sys_wait (Makefile.am): Likewise.
18579         * modules/sysexits (Makefile.am): Likewise.
18580         * modules/termios (Makefile.am): Likewise.
18581         * modules/time (Makefile.am): Likewise.
18582         * modules/unistd (Makefile.am): Likewise.
18583         * modules/wchar (Makefile.am): Likewise.
18584         * modules/wctype-h (Makefile.am): Likewise.
18585         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18586
18587 2011-04-05  Bruno Haible  <bruno@clisp.org>
18588
18589         pipe2: Relicense under LGPLv2+.
18590         * modules/pipe2 (License): Change to LGPLv2+.
18591         Requested by Eric Blake, for libvirt.
18592
18593 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18594
18595         bootstrap: compute gnulib_extra_files after updating build_aux
18596         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18597         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18598
18599 2011-04-05  Eric Blake  <eblake@redhat.com>
18600
18601         bootstrap: preserve git whitelist item sorting
18602         * build-aux/bootstrap (sort_patterns): New function.
18603         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18604
18605 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18606
18607         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18608         sc_space_tab check.
18609
18610 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         areadlink, areadlinkat: rewrite in terms of careadlinkat
18613         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18614         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18615         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18616         (malloc, realloc): Remove #undefs.
18617         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18618         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18619         readlink, ssize_t, stdint, unistd.
18620         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18621         areadlink, stdint.
18622
18623         careadlinkat: new module
18624         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18625         * modules/careadlinkat: New files, written by me with
18626         a review and feedback from Ben Pfaff in
18627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18628
18629 2011-04-01  Bruno Haible  <bruno@clisp.org>
18630
18631         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18632         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18633         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18634         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18635         Reported by Bruce Korb <bruce.korb@gmail.com>.
18636
18637 2011-04-01  Bruno Haible  <bruno@clisp.org>
18638
18639         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18640         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18641         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18642         * modules/wcpcpy (Depends-on): Add extensions.
18643         * modules/wcpncpy (Depends-on): Likewise.
18644         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18645         systems.
18646         * doc/posix-functions/wcpncpy.texi: Likewise.
18647         * doc/posix-functions/wcwidth.texi: Likewise.
18648
18649 2011-03-31  Eric Blake  <eblake@redhat.com>
18650
18651         nonblocking: fix mingw test failures
18652         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18653         non-blocking flag on regular file.
18654         (get_nonblocking_flag): Set errno on invalid fd.
18655         * tests/test-nonblocking.c (main): Avoid test failure on
18656         directories if fchdir is not active.
18657         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18658
18659 2011-03-31  Bruno Haible  <bruno@clisp.org>
18660
18661         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18662         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18663         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18664         Reported by Simon Josefsson <simon@josefsson.org>.
18665
18666 2011-03-31  Bruno Haible  <bruno@clisp.org>
18667         and Eric Blake  <eblake@redhat.com>
18668
18669         nonblocking: new module
18670         * modules/nonblocking: New module.
18671         * modules/nonblocking-tests: Likewise.
18672         * lib/nonblocking.h: New file.
18673         * lib/nonblocking.c: Likewise.
18674         * tests/test-nonblocking.c: New test.
18675         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18676
18677 2011-03-30  Bruno Haible  <bruno@clisp.org>
18678
18679         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18680         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18681         instead of 'printf' format for GCC >= 4.4.
18682         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18683         (fprintf, printf, vfprintf, vprintf): Declare with
18684         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18685         the system's vfprintf() function.
18686         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18687
18688 2011-03-30  Eric Blake  <eblake@redhat.com>
18689
18690         passfd: fix scoping bug
18691         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18692         before sendmsg/recvmsg.
18693
18694         passfd: standardize coding conventions
18695         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18696         can be learned at compile time.
18697         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18698         ifdefs.
18699         (sendfd, recvfd): Follow gnulib code conventions.
18700
18701         passfd: fix incorrect sendmsg arguments
18702         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18703         incorrect msg_controllen value.
18704         * modules/passfd-tests (Depends-on): Check for alarm.
18705         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18706         Reported by Bastien ROUCARIES.
18707
18708 2011-03-30  Bruno Haible  <bruno@clisp.org>
18709
18710         c-strcasestr: Relicense under LGPLv2+.
18711         * modules/c-strcasestr (License): Change to LGPLv2+.
18712         Requested by Eric Blake, for libvirt.
18713
18714 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18715
18716         * users.txt: Add libidn2.  Fix libtasn1 link.
18717
18718 2011-03-30  Jim Meyering  <meyering@redhat.com>
18719
18720         tests: readlink* ("",... fails with EINVAL on newer kernels
18721         readlink and readlinkat have typically failed with ENOENT for
18722         the invalid, empty file name,  "".  However, with the advent
18723         of linux-2.6.39, they fail with EINVAL.
18724         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18725         when operating on the empty file name.
18726         * tests/test-readlink.h (test_readlink): Likewise.
18727
18728 2011-03-29  Bruno Haible  <bruno@clisp.org>
18729
18730         Relicense some modules under LGPLv2+, for libidn2.
18731         * modules/array-mergesort (License): Change to LGPLv2+.
18732         * modules/c-strcaseeq (License): Likewise.
18733         * modules/striconveh (License): Likewise.
18734         * modules/striconveha (License): Likewise.
18735         * modules/uniconv/base (License): Likewise.
18736         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18737         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18738         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18739         * modules/unictype/base (License): Likewise.
18740         * modules/unictype/bidiclass-of (License): Likewise.
18741         * modules/unictype/category-M (License): Likewise.
18742         * modules/unictype/category-none (License): Likewise.
18743         * modules/unictype/category-of (License): Likewise.
18744         * modules/unictype/category-test (License): Likewise.
18745         * modules/unictype/category-test-withtable (License): Likewise.
18746         * modules/unictype/combining-class (License): Likewise.
18747         * modules/unictype/joiningtype-of (License): Likewise.
18748         * modules/unictype/scripts (License): Likewise.
18749         * modules/uninorm/base (License): Likewise.
18750         * modules/uninorm/canonical-decomposition (License): Likewise.
18751         * modules/uninorm/composition (License): Likewise.
18752         * modules/uninorm/decompose-internal (License): Likewise.
18753         * modules/uninorm/decomposition-table (License): Likewise.
18754         * modules/uninorm/nfc (License): Likewise.
18755         * modules/uninorm/nfd (License): Likewise.
18756         * modules/uninorm/u32-normalize (License): Likewise.
18757         * modules/unistr/base (License): Likewise.
18758         * modules/unistr/u32-cpy (License): Likewise.
18759         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18760         * modules/unistr/u32-to-u8 (License): Likewise.
18761         * modules/unistr/u32-uctomb (License): Likewise.
18762         * modules/unistr/u8-check (License): Likewise.
18763         * modules/unistr/u8-mblen (License): Likewise.
18764         * modules/unistr/u8-mbtouc (License): Likewise.
18765         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18766         * modules/unistr/u8-mbtoucr (License): Likewise.
18767         * modules/unistr/u8-prev (License): Likewise.
18768         * modules/unistr/u8-strlen (License): Likewise.
18769         * modules/unistr/u8-to-u32 (License): Likewise.
18770         * modules/unistr/u8-uctomb (License): Likewise.
18771         * modules/unitypes (License): Likewise.
18772         Requested by Simon Josefsson.
18773
18774 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18775
18776         lib-symbol-visibility: Add a notice.
18777         * modules/lib-symbol-visibility (Notice): New field.
18778
18779 2011-03-29  Bruno Haible  <bruno@clisp.org>
18780
18781         getaddrinfo: Doc fix.
18782         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18783         section "fixed in Gnulib".
18784
18785 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18786
18787         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18788         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18789
18790 2011-03-26  Bruno Haible  <bruno@clisp.org>
18791
18792         unictype/property-byname: Reduce the number of load-time relocations.
18793         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18794         (UC_PROPERTY_INDEX_*): New enumeration values.
18795         (uc_property_byname): Convert an index from the lookup table to an
18796         uc_property_t.
18797         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18798         values.
18799
18800 2011-03-26  Bruno Haible  <bruno@clisp.org>
18801
18802         unictype/property-byname: Allow omitted word separators and aliases.
18803         * lib/unictype/pr_byname.gperf: Add property names without word
18804         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18805         for 'space'.
18806
18807 2011-03-26  Bruno Haible  <bruno@clisp.org>
18808
18809         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18810         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18811         also hyphens to space.
18812         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18813         without spaces.
18814         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18815
18816 2011-03-26  Bruno Haible  <bruno@clisp.org>
18817
18818         unictype/joiningtype-byname: Recognize long names as well.
18819         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18820         a long name.
18821         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18822         unictype/joiningtype_byname.h.
18823         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18824         * lib/unictype/joiningtype_byname.gperf: New file.
18825         * modules/unictype/joiningtype-byname (Files): Add
18826         lib/unictype/joiningtype_byname.gperf.
18827         (Depends-on): Add gperf.
18828         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18829         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18830         long names.
18831
18832         Tests for module 'unictype/joiningtype-longname'.
18833         * modules/unictype/joiningtype-longname-tests: New file.
18834         * tests/unictype/test-joiningtype_longname.c: New file.
18835
18836         New module 'unictype/joiningtype-longname'.
18837         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18838         * lib/unictype/joiningtype_longname.c: New file.
18839         * modules/unictype/joiningtype-longname: New file.
18840         * modules/unictype/joiningtype-all (Depends-on): Add
18841         unictype/joiningtype-longname.
18842
18843 2011-03-26  Bruno Haible  <bruno@clisp.org>
18844
18845         unictype/bidiclass-byname: Recognize long names as well.
18846         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18847         name.
18848         * lib/unictype/bidi_byname.c: Include <string.h>,
18849         unictype/bidi_byname.h.
18850         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18851         * lib/unictype/bidi_byname.gperf: New file.
18852         * modules/unictype/bidiclass-byname (Files): Add
18853         lib/unictype/bidi_byname.gperf.
18854         (Depends-on): Add gperf.
18855         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18856         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18857         long names.
18858
18859         Tests for module 'unictype/bidiclass-longname'.
18860         * modules/unictype/bidiclass-longname-tests: New file.
18861         * tests/unictype/test-bidi_longname.c: New file.
18862
18863         New module 'unictype/bidiclass-longname'.
18864         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18865         * lib/unictype/bidi_longname.c: New file.
18866         * modules/unictype/bidiclass-longname: New file.
18867         * modules/unictype/bidiclass-all (Depends-on): Add
18868         unictype/bidiclass-longname.
18869
18870 2011-03-26  Bruno Haible  <bruno@clisp.org>
18871
18872         unictype/bidi*: Rename modules.
18873         * modules/unictype/bidiclass-all: Renamed from
18874         modules/unictype/bidicategory-all.
18875         * modules/unictype/bidiclass-name: Renamed from
18876         modules/unictype/bidiclass-name.
18877         (Description): Update.
18878         * modules/unictype/bidiclass-name-tests: Renamed from
18879         modules/unictype/bidicategory-name-tests.
18880         * modules/unictype/bidiclass-byname: Renamed from
18881         modules/unictype/bidicategory-byname.
18882         (Description): Update.
18883         * modules/unictype/bidiclass-byname-tests: Renamed from
18884         modules/unictype/bidicategory-byname-tests.
18885         * modules/unictype/bidiclass-of: Renamed from
18886         modules/unictype/bidicategory-of.
18887         (Description): Update.
18888         * modules/unictype/bidiclass-of-tests: Renamed from
18889         modules/unictype/bidicategory-of-tests.
18890         * modules/unictype/bidiclass-test: Renamed from
18891         modules/unictype/bidicategory-test.
18892         (Description): Update.
18893         * modules/unictype/bidiclass-test-tests: Renamed from
18894         modules/unictype/bidicategory-test-tests.
18895         * modules/unictype/bidicategory-all: New file, a simple redirection.
18896         * modules/unictype/bidicategory-name: Likewise.
18897         * modules/unictype/bidicategory-byname: Likewise.
18898         * modules/unictype/bidicategory-of: Likewise.
18899         * modules/unictype/bidicategory-test: Likewise.
18900         * modules/unictype/property-bidi-* (Dependencies): Update.
18901         * lib/unictype/bidi_*.c: Update comment.
18902
18903 2011-03-26  Bruno Haible  <bruno@clisp.org>
18904
18905         unictype/bidi*: Rename functions, part 2.
18906         * modules/unictype/bidicategory-name (configure.ac): Update required
18907         libunistring version.
18908         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18909
18910 2011-03-25  Bruno Haible  <bruno@clisp.org>
18911
18912         New module 'unictype/combining-class-all'.
18913         * modules/unictype/combining-class-all: New file.
18914
18915         Tests for module 'unictype/combining-class-byname'.
18916         * modules/unictype/combining-class-byname-tests: New file.
18917         * tests/unictype/test-combiningclass_byname.c: New file.
18918
18919         New module 'unictype/combining-class-byname'.
18920         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18921         * lib/unictype/combiningclass_byname.c: New file.
18922         * lib/unictype/combiningclass_byname.gperf: New file.
18923         * modules/unictype/combining-class-byname: New file.
18924
18925         Tests for module 'unictype/combining-class-longname'.
18926         * modules/unictype/combining-class-longname-tests: New file.
18927         * tests/unictype/test-combiningclass_longname.c: New file.
18928
18929         New module 'unictype/combining-class-longname'.
18930         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18931         * lib/unictype/combiningclass_longname.c: New file.
18932         * modules/unictype/combining-class-longname: New file.
18933
18934         Tests for module 'unictype/combining-class-name'.
18935         * modules/unictype/combining-class-name-tests: New file.
18936         * tests/unictype/test-combiningclass_name.c: New file.
18937
18938         New module 'unictype/combining-class-name'.
18939         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18940         * lib/unictype/combiningclass_name.c: New file.
18941         * modules/unictype/combining-class-name: New file.
18942
18943 2011-03-25  Bruno Haible  <bruno@clisp.org>
18944
18945         unictype/combining-class: Rename source files.
18946         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18947         of unictype/combining.h.
18948         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18949         Update.
18950         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18951         * modules/unictype/combining-class (Description): Fix.
18952         (Files, Makefile.am): Update.
18953         * tests/unictype/test-combiningclass.c: Renamed from
18954         tests/unictype/test-combining.c.
18955         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18956
18957 2011-03-25  Bruno Haible  <bruno@clisp.org>
18958
18959         unictype: Update list of canonical combining classes.
18960         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18961
18962 2011-03-25  Bruno Haible  <bruno@clisp.org>
18963
18964         unictype/category-byname: Recognize long names as well.
18965         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18966         a long name.
18967         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18968         unictype/categ_byname.h.
18969         (UC_CATEGORY_INDEX_*): New enumeration values.
18970         (uc_general_category_byname): Use uc_general_category_lookup and
18971         convert from index to value.
18972         * lib/unictype/categ_byname.gperf: New file.
18973         * modules/unictype/category-byname (Files): Add
18974         lib/unictype/categ_byname.gperf.
18975         (Depends-on): Add gperf.
18976         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18977         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18978         long names.
18979
18980         Tests for module 'unictype/category-longname'.
18981         * modules/unictype/category-longname-tests: New file.
18982         * tests/unictype/test-categ_longname.c: New file.
18983
18984         New module 'unictype/category-longname'.
18985         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18986         * lib/unictype/categ_longname.c: New file.
18987         * modules/unictype/category-longname: New file.
18988         * modules/unictype/category-all (Depends-on): Add it.
18989
18990 2011-03-25  Bruno Haible  <bruno@clisp.org>
18991
18992         Tests for module 'unictype/category-LC'.
18993         * modules/unictype/category-LC-tests: New file.
18994         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18995
18996         New module 'unictype/category-LC'.
18997         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18998         (UC_CATEGORY_LC): New declaration.
18999         (UC_CASED_LETTER): New macro.
19000         * lib/gen-uni-tables.c (is_category_LC): New function.
19001         (output_categories): Also handle category LC.
19002         (UC_CATEGORY_MASK_LC): New enumeration value.
19003         (general_category_byname): Also handle category LC.
19004         * lib/unictype/categ_LC.c: New file.
19005         * lib/unictype/categ_LC.h: New file, automatically generated.
19006         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19007         category LC.
19008         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19009         * modules/unictype/category-LC: New file.
19010         * modules/unictype/category-byname (Depends-on): Add
19011         unictype/category-LC.
19012         * modules/unictype/category-all (Depends-on): Likewise.
19013
19014 2011-03-25  Eric Blake  <eblake@redhat.com>
19015
19016         xmalloc: revert yesterday's regression
19017         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19018         realloc's underlying behavior (allowing allocation of zero-size
19019         objects, especially if malloc-gnu is also in use).
19020
19021 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19022
19023         maint.mk: add missing version to VC-tag
19024         * top/maint.mk: git tag was missing actual tag name; add it.
19025
19026         valgrind: do leak checking, and exit with code 1 on error (not 0)
19027         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19028         to VALGRIND.
19029
19030 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19031
19032         posix-modules: say what it does.
19033         * posix-modules: Add a line to the --help output saying what it does.
19034
19035 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19036
19037         xmalloc: Do not leak if underlying realloc is C99 compatible.
19038         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19039         This avoids a leak on C99-based systems.  See
19040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19041
19042 2011-03-24  Eric Blake  <eblake@redhat.com>
19043
19044         realloc: document portability problem
19045         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19046         passing 0 size to realloc.
19047
19048 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19049
19050         doc: update users.txt
19051         * users.txt: Add cvsps, tmpwatch
19052
19053 2011-03-23  Matt Rice  <ratmice@gmail.com>
19054
19055         doc: update users.txt
19056         * users.txt: Add gdb.
19057
19058 2011-03-23  Jim Meyering  <meyering@redhat.com>
19059
19060         doc: update users.txt
19061         Looking through matches up to the following URL (there are still
19062         several more pages), I found several projects that use gnulib:
19063         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19064         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19065         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19066
19067 2011-03-22  Bruno Haible  <bruno@clisp.org>
19068
19069         unictype/bidi*: Rename functions.
19070         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19071         uc_bidi_class, uc_is_bidi_class): New declarations.
19072         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19073         uc_bidi_category_byname.
19074         (uc_bidi_category_byname): New function.
19075         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19076         u_bidi_category_name.
19077         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19078         (uc_bidi_category_name): New function.
19079         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19080         uc_bidi_category.
19081         (uc_bidi_category): New function.
19082         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19083         uc_is_bidi_category. Invoke uc_bidi_class.
19084         (uc_is_bidi_category): New function.
19085         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19086         instead of uc_bidi_category_byname.
19087         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19088         instead of uc_bidi_category_name.
19089         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19090         uc_bidi_category.
19091         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19092         instead of uc_is_bidi_category.
19093
19094 2011-03-21  Bruno Haible  <bruno@clisp.org>
19095
19096         New module 'unictype/joininggroup-all'.
19097         * modules/unictype/joininggroup-all: New file.
19098
19099         Tests for module 'unictype/joininggroup-of'.
19100         * modules/unictype/joininggroup-of-tests: New file.
19101         * tests/unictype/test-joininggroup_of.c: New file.
19102         * tests/unictype/test-joininggroup_of.h: New file, automatically
19103         generated by gen-uni-tables.
19104
19105         New module 'unictype/joininggroup-of'.
19106         * modules/unictype/joininggroup-of: New file.
19107         * lib/unictype/joininggroup_of.c: New file.
19108         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19109         gen-uni-tables.
19110
19111         Tests for module 'unictype/joininggroup-byname'.
19112         * modules/unictype/joininggroup-byname-tests: New file.
19113         * tests/unictype/test-joininggroup_byname.c: New file.
19114
19115         New module 'unictype/joininggroup-byname'.
19116         * modules/unictype/joininggroup-byname: New file.
19117         * lib/unictype/joininggroup_byname.c: New file.
19118         * lib/unictype/joininggroup_byname.gperf: New file.
19119
19120         Tests for module 'unictype/joininggroup-name'.
19121         * modules/unictype/joininggroup-name-tests: New file.
19122         * tests/unictype/test-joininggroup_name.c: New file.
19123
19124         New module 'unictype/joininggroup-name'.
19125         * modules/unictype/joininggroup-name: New file.
19126         * lib/unictype/joininggroup_name.c: New file.
19127         * lib/unictype/joininggroup_name.h: New file.
19128
19129         New module 'unictype/joiningtype-all'.
19130         * modules/unictype/joiningtype-all: New file.
19131
19132         Tests for module 'unictype/joiningtype-of'.
19133         * modules/unictype/joiningtype-of-tests: New file.
19134         * tests/unictype/test-joiningtype_of.c: New file.
19135         * tests/unictype/test-joiningtype_of.h: New file, automatically
19136         generated by gen-uni-tables.
19137
19138         New module 'unictype/joiningtype-of'.
19139         * modules/unictype/joiningtype-of: New file.
19140         * lib/unictype/joiningtype_of.c: New file.
19141         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19142         gen-uni-tables.
19143
19144         Tests for module 'unictype/joiningtype-byname'.
19145         * modules/unictype/joiningtype-byname-tests: New file.
19146         * tests/unictype/test-joiningtype_byname.c: New file.
19147
19148         New module 'unictype/joiningtype-byname'.
19149         * modules/unictype/joiningtype-byname: New file.
19150         * lib/unictype/joiningtype_byname.c: New file.
19151
19152         Tests for module 'unictype/joiningtype-name'.
19153         * modules/unictype/joiningtype-name-tests: New file.
19154         * tests/unictype/test-joiningtype_name.c: New file.
19155
19156         New module 'unictype/joiningtype-name'.
19157         * modules/unictype/joiningtype-name: New file.
19158         * lib/unictype/joiningtype_name.c: New file.
19159
19160         unictype: Add support for Arabic shaping properties.
19161         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19162         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19163         declarations.
19164         (UC_JOINING_GROUP_*): New enumeration values.
19165         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19166         declarations.
19167         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19168         (unicode_joining_type): New variable.
19169         (UC_JOINING_GROUP_*): New enumeration values.
19170         (unicode_joining_group): New variable.
19171         (fill_arabicshaping, joining_type_as_c_identifier,
19172         output_joining_type_test, output_joining_type,
19173         joining_group_as_c_identifier, output_joining_group_test,
19174         output_joining_group): New functions.
19175         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19176         fill_arabicshaping and output_joining_type_test, output_joining_type,
19177         output_joining_group_test, output_joining_group.
19178         Reported by Simon Josefsson.
19179
19180 2011-03-21  Jim Meyering  <meyering@redhat.com>
19181
19182         strftime: fix a bug in yesterday's change
19183         * lib/strftime.c (add): Accommodate width's initial value of -1.
19184         Otherwise, nstrftime would copy uninitialized data into
19185         the result buffer.
19186
19187 2011-03-21  Jim Meyering  <meyering@redhat.com>
19188
19189         tests: add strftime-tests module
19190         * tests/test-strftime.c: New file.
19191         * modules/strftime-tests: New module.
19192
19193 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19194
19195         strftime: don't assume a byte count fits in 'int'
19196         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19197         found this problem by static analysis, using gcc -Wstrict-overflow
19198         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19199         on an integer overflow having undefined behavior, but it turns out
19200         that the argument is a size, which might not fit in 'int' anyway,
19201
19202 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19203
19204         stdio: don't require ignore_value around fwrite
19205
19206         This patch works around libc bug 11959
19207         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19208         Without this patch, applications must often write
19209         ignore_value (fwrite (...)) even though the ignore_value is
19210         not helpful here.  It's common to write many objects, using
19211         fwrite/printf/etc., and then use ferror to detect output error.
19212
19213         I considered making this patch optional, but decided against it,
19214         because libc is obviously being inconsistent here: there is no
19215         reason libc should insist that user code must inspect fwrite
19216         return's value without also insisting that it inspect printf's,
19217         putchar's, etc.  If user code wants to have a strict style where
19218         all these functions' values are checked (so that ferror need not
19219         be checked), we could add support for that style in a new gnulib
19220         module, but in the meantime it's better to be consistent and to
19221         support common usage.
19222
19223         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19224         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19225         that we are compiling in checking mode, and if not C++, and
19226         if not already wrapping fwrite for some other reason.
19227         (fwrite): #define to rpl_fwrite if the latter is defined.
19228
19229 2011-03-20  Bruno Haible  <bruno@clisp.org>
19230
19231         verror: Fix compilation error introduced on 2011-02-13.
19232         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19233         instead of __attribute__.
19234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19235
19236 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19237             Bruno Haible  <bruno@clisp.org>
19238
19239         socklen: do not depend on sys_socket
19240         While trying to modify Emacs to use gnulib's socklen module,
19241         I discovered a circular dependency: socklen depends on sys_socket
19242         and vice versa.  Emacs can use socklen, but it does not need
19243         sys_socket because it has its own substitute for sys/socket.h.
19244         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19245         gl_TYPE_SOCKLEN_T.
19246         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19247         gl_PREREQ_SYS_H_SOCKET.
19248         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19249         gl_PREREQ_SYS_H_SOCKET.
19250         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19251         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19252         * modules/socklen (Depends-on): Do not depend on sys_socket.
19253         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19254
19255 2011-03-20  Jim Meyering  <meyering@redhat.com>
19256
19257         maint.mk: sort file names *after* new transformation
19258         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19259         prefix would have led to an unwarranted failure in GNU parted.
19260         Sort after that transformation.
19261
19262 2011-03-19  Jim Meyering  <meyering@redhat.com>
19263
19264         maint.mk: fix po-file syntax-check rule
19265         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19266         Patch by Bruno Haible.
19267
19268 2011-03-19  Bruno Haible  <bruno@clisp.org>
19269
19270         socklen: Update comment.
19271         * m4/socklen.m4: Update comment about platforms.
19272
19273 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19274             Bruno Haible  <bruno@clisp.org>
19275
19276         inet_ntop, inet_pton: Simplify.
19277         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19278         documented to provide socklen_t and we already depend on sys_socket.
19279         * modules/inet_pton (Depends-on): Likewise.
19280         * lib/arpa_inet.in.h: Adjust comment.
19281
19282 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19283             Bruno Haible  <bruno@clisp.org>
19284
19285         netdb: Simplify.
19286         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19287         documented to provide socklen_t and we already depend on sys_socket.
19288         * lib/netdb.in.h: Adjust comment.
19289
19290 2011-03-19  Bruno Haible  <bruno@clisp.org>
19291
19292         sys_socket, netdb: Document problem with socklen_t.
19293         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19294         platforms.
19295         * doc/posix-headers/netdb.texi: Likewise.
19296
19297 2011-03-18  Eric Blake  <eblake@redhat.com>
19298
19299         maint.mk: let po check work in VPATH build
19300         * top/maint.mk (po_file): Allow cfg.mk override.
19301         (sc_po_check): Allow VPATH use.
19302         Reported by Jiri Denemark.
19303
19304 2011-03-16  Jim Meyering  <meyering@redhat.com>
19305
19306         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19307         Before, you would have had to create one .x-sc_ file per rule in order
19308         to exempt offending files.  Now, you may instead use a Make variable --
19309         usually defined in cfg.mk -- whose name identifies the affected rule.
19310         * top/maint.mk (_sc_excl): Define.
19311         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19312         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19313
19314 2011-03-13  Bruno Haible  <bruno@clisp.org>
19315
19316         ignore-value tests: Avoid warnings.
19317         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19318         empty for gcc < 3.4.
19319
19320 2011-03-13  Bruno Haible  <bruno@clisp.org>
19321
19322         passfd: Fix link error on Solaris.
19323         * modules/passfd (Description): Correct.
19324         (Depends-on): Add socketlib.
19325         (Link): New section.
19326         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19327
19328 2011-03-13  Bruno Haible  <bruno@clisp.org>
19329
19330         passfd: Fix link error on AIX 5.2.
19331         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19332
19333 2011-03-13  Bruno Haible  <bruno@clisp.org>
19334
19335         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19336         * lib/sys_socket.in.h: Include <stddef.h>.
19337         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19338         CMSG_FIRSTHDR. Remove unused variable.
19339
19340 2011-03-13  Bruno Haible  <bruno@clisp.org>
19341
19342         passfd: Fix compilation error on OpenBSD.
19343         * lib/passfd.c: Include <sys/uio.h>.
19344
19345 2011-03-13  Bruno Haible  <bruno@clisp.org>
19346
19347         passfd test: Fix warnings.
19348         * tests/test-passfd.c: Include <sys/wait.h>.
19349         (main): Fix typo.
19350
19351 2011-03-13  Bruno Haible  <bruno@clisp.org>
19352
19353         passfd module, part 4, tweaks.
19354         * tests/test-passfd.c: Reorder includes.
19355         (main): Fix perror and printf calls.
19356
19357 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19358
19359         passfd module, part 4.
19360         * modules/passfd-tests: New file.
19361         * tests/test-passfd.c: New file.
19362
19363 2011-03-13  Jim Meyering  <meyering@redhat.com>
19364
19365         Makefile: rely on GNU make; derive syntax-check rule names
19366         Rather than requiring that each sc_ rule be listed as a dependent
19367         of "check", use features of GNU make to derive the list.
19368         * Makefile (syntax-check-rules): Define.
19369         (check): Depend on the new variable, not the hard-coded list.
19370
19371 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19372             Bruno Haible  <bruno@clisp.org>
19373
19374         passfd module, part 3.
19375         * lib/passfd.h (recvfd): Add a flags argument.
19376         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19377         (recvfd): Add a flags argument.
19378         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19379         exists.
19380         * modules/passfd (Depends-on): Add cloexec.
19381         Suggested by Eric Blake.
19382
19383 2011-03-13  Bruno Haible  <bruno@clisp.org>
19384
19385         passfd module, part 2, tweaks.
19386         * modules/passfd (Files): Reorder.
19387         (Depends-on): Remove errno.
19388         (Include): Remove <sys/socket.h>, <sys/un.h>.
19389         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19390         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19391         specification header. Include <sys/socket.h> always. Don't include
19392         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19393         (sendfd): Clarify that it sets errno when it fails.
19394         (recvfd): Fix specification.
19395
19396 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19397
19398         passfd module, part 2.
19399         * modules/passfd: New file.
19400         * lib/passfd.h: New file.
19401         * lib/passfd.c: New file.
19402
19403 2011-03-12  Bruno Haible  <bruno@clisp.org>
19404
19405         wcswidth, mbswidth: Avoid integer overflow.
19406         * lib/wcswidth.c: Include <limits.h>.
19407         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19408         * lib/mbswidth.c: Include <limits.h>.
19409         (mbsnwidth): Avoid 'int' overflow.
19410         Reported by Jim Meyering.
19411
19412 2011-03-12  Bruno Haible  <bruno@clisp.org>
19413
19414         futimens, utimensat: Avoid endless recursion on Solaris 10.
19415         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19416         Solaris.
19417         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19418         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19419
19420 2011-03-11  Jim Meyering  <meyering@redhat.com>
19421
19422         maint.mk: relax a regexp to accommodate other formatting styles
19423         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19424         between "ngettext" and the following "(".
19425
19426 2011-03-11  Pádraig Brady <P@draigBrady.com>
19427
19428         maint.mk: suppress a false positive warning
19429         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19430         diagnostics are marked with ngettext.
19431
19432 2011-03-10  Eric Blake  <eblake@redhat.com>
19433
19434         wchar: add explicit dependencies, for Tru64
19435         * modules/mbmemcasecoll (Depends-on): Add wchar.
19436         * modules/mbtowc (Depends-on): Likewise.
19437         * modules/vasnprintf (Depends-on): Likewise.
19438         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19439         * modules/wctomb (Depends-on): Likewise.
19440         Reported by Peter O'Gorman.
19441
19442 2011-03-08  Bruno Haible  <bruno@clisp.org>
19443
19444         passfd module, part 1, tweaks.
19445         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19446         Improve indentation. Improve AC_MSG_CHECKING messages.
19447         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19448         gl_SOCKET_FAMILIES.
19449
19450 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19451
19452         passfd module, part 1.
19453         * m4/afunix.m4: New file.
19454         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19455         sockets.
19456
19457 2011-03-08  Bruno Haible  <bruno@clisp.org>
19458
19459         regex-quote: New API.
19460         * lib/regex-quote.h: Include <stdbool.h>.
19461         (struct regex_quote_spec): New type.
19462         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19463         New declarations.
19464         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19465         'const struct regex_quote_spec *' argument.
19466         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19467         (pcre_special): New constant.
19468         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19469         New functions.
19470         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19471         'const struct regex_quote_spec *' argument.
19472         * modules/regex-quote (Depends-on): Add stdbool.
19473         * tests/test-regex-quote.c (check): Update for new API. Add test for
19474         anchored results.
19475         * NEWS: Mention the API change.
19476         Reported by Reuben Thomas and Eric Blake.
19477
19478 2011-03-06  Bruno Haible  <bruno@clisp.org>
19479
19480         regex-quote: Fix creation of POSIX extended regular expressions.
19481         * lib/regex-quote.c (ere_special): Add grouping and alternation
19482         operators.
19483
19484 2011-03-05  Bruno Haible  <bruno@clisp.org>
19485
19486         doc: Improve doc regarding autopoint vs. gnulib.
19487         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19488         disable autopoint while running autoreconf.
19489         Suggested by Ralf Wildenhues.
19490
19491 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19492
19493         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19494         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19495
19496 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19497
19498         parse-duration: remove xalloc.h dependency
19499         * lib/parse-duration.c (parse_period): handle NULL return from
19500         strdup instead of calling xstrdup().
19501         * modules/parse-duration: remove "xalloc" dependency
19502
19503 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19504
19505         bootstrap: honor m4_base when running aclocal
19506         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19507
19508 2011-03-02  Jim Meyering  <meyering@redhat.com>
19509
19510         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19511         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19512         on request from Matt Booth.
19513
19514 2011-03-01  Eric Blake  <eblake@redhat.com>
19515
19516         test-link: work on Hurd
19517         * tests/test-link.h (test_link): Hurd rejects linking directories
19518         with EISDIR instead of the POSIX-mandated EPERM.
19519
19520 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19521
19522         stdio: simplify by moving files to printf-posix, sigpipe
19523         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19524         since this symbol is needed only if printf is replaced.
19525         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19526         Require gl_ASM_SYMBOL_PREFIX.
19527         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19528         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19529         (Depends-on): Add 'raise'.
19530         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19531         * modules/stdio (Files): Remove lib/stdio-write.c,
19532         m4/asm-underscore.m4.
19533         (Depends-on): Remove 'raise'.
19534
19535         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19536         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19537         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19538         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19539
19540 2011-02-28  Bruno Haible  <bruno@clisp.org>
19541
19542         localcharset: Assume ANSI C behaviour of free().
19543         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19544         calling free().
19545         Suggested by Simon Josefsson <simon@josefsson.org>.
19546
19547 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19548             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19549             Bruno Haible  <bruno@clisp.org>  (tiny change)
19550
19551         On Cygwin, use /proc file system instead of win32 API.
19552         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19553         Win32 file names.
19554         (DllMain): Simplify by removing Cygwin specific code.
19555         (find_shared_library_fullname): Use Linux specific implementation also
19556         for Cygwin.
19557         (get_shared_library_fullname): Update accordingly.
19558         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19559         Win32 file names.
19560         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19561         Cygwin specific code.
19562
19563 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19564             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19565
19566         Fix OpenMP flag detection for various Fortran compilers.
19567         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19568         OpenMP-conditional compilation construct, to force compile
19569         failure with missing OpenMP flag.
19570         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19571
19572 2011-02-25  Eric Blake  <eblake@redhat.com>
19573
19574         strstr: expand test coverage
19575         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19576         compilation.
19577         * tests/test-memmem.c (main): Duplicate tests.
19578         * tests/test-strcasestr.c (main): Likewise.
19579         * tests/test-c-strcasestr.c (main): Likewise.
19580
19581 2011-02-25  Jim Meyering  <meyering@redhat.com>
19582
19583         maint.mk: detect missing-NL-at-EOF, too
19584         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19585         it also detects when a file lacks a newline at EOF.
19586         (require_exactly_one_NL_at_EOF_): Renamed from
19587         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19588         since people may well have .x-sc_... file names tied to the
19589         existing name.  Suggested by Eric Blake.
19590
19591 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19592
19593         dirname: move m4/dos.m4 functionality into lib/dosname.h
19594
19595         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19596         extracts symbols from it, puts them into config.h; but it's much
19597         easier to use the symbols directly.  filename.h already does this,
19598         but it disagrees with dos.m4 in some respects.  This patch
19599         introduces a different include file dosname.h that packages up
19600         dos.m4, and then later we can work on merging filename.h and
19601         dosname.h.  Applications that need only the easy-to-configure
19602         symbols should consider including dosname.h rather than dirname.h.
19603         * NEWS: Mention incompatible changes.
19604         * m4/dos.m4: Remove.
19605         * lib/dosname.h, modules/dosname: New files.
19606         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19607         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19608         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19609         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19610         Include dosname.h, not dirname.h.
19611         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19612         Include dosname.h, for definitions of symbols like ISSLASH
19613         that used to be in config.h.
19614         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19615         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19616         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19617         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19618         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19619         * modules/rmdir (Files): Likewise.
19620         * modules/stat (Files): Likewise.
19621         * modules/unlink (Files): Likewise.
19622         * modules/dirname-lgpl (Depends-on): Add dosname.
19623         * modules/lstat (Depends-on): Likewise.
19624         * modules/openat (Depends-on): Likewise.
19625         * modules/rmdir (Depends-on): Likewise.
19626         * modules/savewd (Depends-on): Likewise.
19627         * modules/stat (Depends-on): Likewise.
19628         * modules/unlink (Depends-on): Likewise.
19629         * modules/openat (Depends-on): Remove dirname-lgpl.
19630         * modules/savewd (Depends-on): Likewise.
19631         * tests/test-dirname.c: Do not use removed symbols like
19632         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19633         the remaining symbols, e.g., ISSLASH ('\\').
19634
19635 2011-02-25  Eric Blake  <eblake@redhat.com>
19636
19637         strstr: revert patches that introduced bug and pessimization
19638         * lib/str-two-way.h: Add another reference.
19639         (two_way_short_needle, two_way_long_needle): Revert changes from
19640         2011-02-24; they pessimize search speed.
19641         (critical_factorization): Partially revert changes from
19642         2010-06-22; they violate the requirement that the left half of the
19643         needle be smaller than the period of the needle.
19644
19645 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19646
19647         filenamecat: remove unnecessary dependency on dirname-lgpl
19648         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19649         is no direct dependency, just an indirect one via filenamecat-lgpl.
19650
19651         remove: remove unnecessary use of m4/dos.m4
19652         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19653         * modules/remove (FILES): Remove m4/dos.m4.
19654
19655         * lib/openat-proc.c: Don't include dirname.h; not needed.
19656
19657         backupfile: remove unnecessary use of m4/dos.m4
19658         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19659         of its symbols are used by the backupfile code.  backupfile.c does
19660         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19661         for the rare case of programs that want all their backup file
19662         names to live within 8+3 limits, and dos.m4 doesn't address that.
19663         * modules/backupfile (Files): Remove m4/dos.m4.
19664
19665 2011-02-24  Jim Meyering  <meyering@redhat.com>
19666
19667         strstr: fix a bug whereby strstr would mistakenly return NULL
19668         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19669         in period calculation.
19670         (two_way_long_needle): Likewise.
19671         The original problem was reported by Mike Stump in
19672         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19673         Ralf Wildenhues provided the short needle and haystack.
19674         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19675         Add a more involved test to trigger the bug in two_way_long_needle.
19676
19677 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19678
19679         gnulib-tool: remove use of bold display in help screen
19680         * gnulib-tool (func_usage): Do not use bold display anymore in the
19681         help screen.  That was just meant to be a temporary emphasis for a
19682         backward-incompatible change.
19683
19684 2011-02-23  Bruno Haible  <bruno@clisp.org>
19685
19686         Fix misindentation of preprocessor directives.
19687         * lib/argp-namefrob.h: Reindent preprocessor directives.
19688         * lib/getopt_int.h (struct _getopt_data): Likewise.
19689         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19690         * lib/vasnprintf.c (decode_long_double): Likewise.
19691         * tests/test-argmatch.c: Insert blank lines, for clarity.
19692         * tests/test-exclude.c: Likewise.
19693
19694 2011-02-22  Bruno Haible  <bruno@clisp.org>
19695
19696         ioctl: Fix for MacOS X in 64-bit mode.
19697         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19698         value.
19699         Suggested by Eric Blake.
19700         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19701
19702 2011-02-22  Jim Meyering  <meyering@redhat.com>
19703
19704         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19705         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19706         in lib/.
19707
19708 2011-02-22  Eric Blake  <eblake@redhat.com>
19709
19710         maint: avoid any CDPATH issue
19711         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19712
19713         maint: adjust cpp indentation for my modules, as well
19714         * Makefile (sc_cpp_indent_check): Add my name.
19715         * lib/fbufmode.c: Filter through cppi.
19716         * lib/fpurge.c: Likewise.
19717         * lib/freadable.c: Likewise.
19718         * lib/freading.c: Likewise.
19719         * lib/fwritable.c: Likewise.
19720         * lib/fwriting.c: Likewise.
19721         * lib/sigaction.c: Likewise.
19722
19723 2011-02-22  Jim Meyering  <meyering@redhat.com>
19724
19725         maint: adjust cpp indentation to reflect nesting depth
19726         I.e., in a block of code that begins with an unnested "#if",
19727         put one space between the "#" in column 1 and following token.
19728         For example,
19729         -#include <sys/vfs.h>
19730         +# include <sys/vfs.h>
19731         Do this only in .c files that are part of a module I maintain.
19732         * lib/linkat.c: Filter through cppi.
19733         * lib/nanosleep.c: Likewise.
19734         * lib/openat.c: Likewise.
19735         * lib/openat-die.c: Likewise.
19736         * lib/dup3.c: Likewise.
19737         * lib/fchownat.c: Likewise.
19738         * lib/flock.c: Likewise.
19739         * lib/fsync.c: Likewise.
19740         * lib/fts.c: Likewise.
19741         * lib/getpass.c: Likewise.
19742         * lib/gettimeofday.c: Likewise.
19743         * lib/userspec.c: Likewise.
19744         * Makefile (sc_cpp_indent_check): New rule, to check this.
19745
19746 2011-02-22  Bruno Haible  <bruno@clisp.org>
19747
19748         New module 'wctomb'.
19749         * lib/stdlib.in.h (wctomb): New declaration.
19750         * lib/wctomb.c: New file.
19751         * lib/wctomb-impl.h: New file.
19752         * m4/wctomb.m4: New file.
19753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19754         REPLACE_WCTOMB.
19755         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19756         REPLACE_WCTOMB.
19757         * modules/wctomb: New file.
19758         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19759         * doc/posix-functions/wctomb.texi: Mention the new module.
19760         * modules/wctob (Depends-on): Add wctomb.
19761
19762 2011-02-22  Bruno Haible  <bruno@clisp.org>
19763
19764         New module 'mbtowc'.
19765         * lib/stdlib.in.h (mbtowc): New declaration.
19766         * lib/mbtowc.c: New file.
19767         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19768         * m4/mbtowc.m4: New file.
19769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19770         REPLACE_MBTOWC.
19771         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19772         REPLACE_MBTOWC.
19773         * modules/mbtowc: New file.
19774         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19775         * doc/posix-functions/mbtowc.texi: Mention the new module.
19776         * modules/btowc (Depends-on): Add mbtowc.
19777
19778 2011-02-22  Bruno Haible  <bruno@clisp.org>
19779
19780         wcrtomb: Add more tests for native Windows platforms.
19781         * tests/test-wcrtomb-w32-1.sh: New file.
19782         * tests/test-wcrtomb-w32-2.sh: New file.
19783         * tests/test-wcrtomb-w32-3.sh: New file.
19784         * tests/test-wcrtomb-w32-4.sh: New file.
19785         * tests/test-wcrtomb-w32-5.sh: New file.
19786         * tests/test-wcrtomb-w32.c: New file.
19787         * modules/wcrtomb-tests (Files): Add them.
19788         (Makefile.am): Arrange to run these tests.
19789         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19790         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19791
19792 2011-02-20  Bruno Haible  <bruno@clisp.org>
19793
19794         wcrtomb: Enhance test.
19795         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19796
19797 2011-02-20  Bruno Haible  <bruno@clisp.org>
19798
19799         mbrtowc: Tiny optimization.
19800         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19801
19802 2011-02-20  Jim Meyering  <meyering@redhat.com>
19803
19804         test-exclude.c: remove unmatched #endif
19805         * tests/test-exclude.c: Remove stray #endif, left over from
19806         the change of a week ago.
19807
19808 2011-02-19  Jim Meyering  <meyering@redhat.com>
19809
19810         git-version-gen: skip "-dirty" check when appropriate
19811         * build-aux/git-version-gen: Don't run any git commands when the
19812         version string comes from .tarball-version.  Prior to this, we
19813         would run git update-index --refresh even from a just-unpacked
19814         tarball directory, and that could affect a .git/ directory in a
19815         parent of the build directory.  Reported by Mike Frysinger.
19816
19817 2011-02-19  Bruno Haible  <bruno@clisp.org>
19818
19819         unictype/property-byname: Reduce the size of the 'data' segment.
19820         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19821
19822 2011-02-19  Bruno Haible  <bruno@clisp.org>
19823
19824         unictype/scripts: Reduce the size of the 'data' segment.
19825         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19826         '%pic'.
19827         * lib/unictype/scripts_byname.gperf: Regenerated.
19828
19829 2011-02-19  Bruno Haible  <bruno@clisp.org>
19830
19831         stdint: Update documentation.
19832         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19833
19834 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19835
19836         stdint: omit redundant check for wchar.h
19837         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19838         always tests whether wchar.h exists, so remove the now-redundant test.
19839
19840 2011-02-18  Bruno Haible  <bruno@clisp.org>
19841
19842         stdint: Cut dependency to module 'wchar'.
19843         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19844         include the necessary prerequisites.
19845         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19846         * modules/stdint (Depends-on): Remove wchar.
19847         (Makefile.am): Substitute HAVE_WCHAR_H.
19848         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19849
19850 2011-02-18  Eric Blake  <eblake@redhat.com>
19851
19852         longlong: skip, rather than fail, on cross-compilation
19853         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19854         when cross-compiling; regression from 2011-02-16.
19855
19856 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19857
19858         * NEWS: Mention 2011-02-08 change to stdlib.
19859
19860 2011-02-17  Bruno Haible  <bruno@clisp.org>
19861
19862         getloadavg: Add comments about platforms.
19863         * m4/getloadavg.m4: Add comment.
19864         * lib/getloadavg.c: Likewise.
19865
19866 2011-02-17  Bruno Haible  <bruno@clisp.org>
19867
19868         getloadavg: Fix link error on Solaris 2.6.
19869         * modules/getloadavg (Link): New section.
19870         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19871         linking test-getloadavg.
19872         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19873         getloadavg.
19874
19875 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19876
19877         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19878         It was 'int', but this doesn't match the IRIX 6.5 manual.
19879         Suggested by Bruno Haible in
19880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19881
19882 2011-02-17  Bruno Haible  <bruno@clisp.org>
19883
19884         havelib: Fix comments.
19885         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19886         change.
19887
19888 2011-02-17  Bruno Haible  <bruno@clisp.org>
19889
19890         havelib: Update config.rpath.
19891         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19892
19893 2011-02-17  Bruno Haible  <bruno@clisp.org>
19894
19895         getloadavg test: Add some plausibility checks.
19896         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19897         is improbable.
19898
19899 2011-02-16  Eric Blake  <eblake@redhat.com>
19900
19901         maintainer-makefile: make syntax-check a no-op from tarballs
19902         * top/maint.mk (no-vc-detected): New rule.
19903         (local-checks-available): Use it to avoid hanging if someone tries
19904         'make syntax-check' from a tarball.  Also append to any non-syntax
19905         checks already defined in cfg.mk.
19906
19907 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         longlong: tune, particularly for common case of c99
19910
19911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19912         or running anything if c99, or if unsigned long long int does not
19913         work.  In either case, we know the answer without further tests.
19914         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19915         it at most once, and use its results for both long long int and
19916         unsigned long long int.  This is more likely to be efficient in
19917         the common case where the program wants to check for both long
19918         long int and unsigned long long int.
19919         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19920         since the answer is already known.
19921
19922 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19923
19924         getloadavg: set errno
19925         * lib/getloadavg.c: Set errno when returning -1.  If no other
19926         error number looks appropriate, set it to ENOSYS if the getloadavg
19927         looks like it can't possibly ever work, ENOTSUP otherwise.
19928         Suggested by Bruno Haible in
19929         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19930
19931         getloadavg: trim unused parts and speed up 'configure'
19932         * NEWS: Document this.
19933         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19934         always compiled if getloadavg is absent.
19935         Move test code to ...
19936         * tests/test-getloadavg.c: New file, containing previous
19937         contents of test from lib/getloadavg.c.  It also contains
19938         suggestions by Bruno Haible in
19939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19940         * modules/getloadavg-tests: New file.
19941         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19942         Do tests in the same order as they're needed for getloadavg.c.
19943         Omit setgid-related tests that generate symbols KMEM_GROUP,
19944         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19945         Do only the tests that are needed to see whether the system has
19946         getloadavg, moving the other tests into ...
19947         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19948         NLIST_NAME_UNION; nobody should be using it.  Do not define
19949         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19950         relevant, as the user of this module shouldn't care how getloadavg
19951         is implemented.
19952
19953         getloadavg: omit unused var
19954         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19955
19956 2011-02-15  Jim Meyering  <meyering@redhat.com>
19957
19958         doc: update users.txt
19959         * users.txt: Update iwhd's URL.
19960
19961 2011-02-13  Bruno Haible  <bruno@clisp.org>
19962
19963         Consistent macro naming for macros that use GCC __attribute__.
19964         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19965         _ATTRIBUTE_NONNULL_.
19966         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19967         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19968         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19969         ATTRIBUTE_DEPRECATED.
19970         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19971         ATTRIBUTE_NORETURN.
19972         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19973         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19974         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19975         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19976         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19977         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19978         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19979         ATTRIBUTE_SENTINEL.
19980         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19981         ATTRIBUTE_RETURN_CHECK.
19982         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19983         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19984         ATTRIBUTE_NORETURN.
19985         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19986         Reported by Paul Eggert.
19987
19988 2011-02-13  Bruno Haible  <bruno@clisp.org>
19989
19990         Don't interfere with a program's definition of __attribute__.
19991         * lib/argp.h (__attribute__): Remove definition.
19992         (_GL_ATTRIBUTE_FORMAT): New macro.
19993         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19994         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19995         (_GL_ATTRIBUTE_FORMAT): New macro.
19996         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19997         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19998         GCC 3 or newer.
19999         * lib/error.h (__attribute__): Remove definition.
20000         (_GL_ATTRIBUTE_FORMAT): New macro.
20001         (error, error_at_line): Use it.
20002         * lib/hash.h (__attribute__): Remove definition.
20003         (ATTRIBUTE_WUR): Update definition. Define always.
20004         * lib/openat.h (__attribute__): Remove definition.
20005         (ATTRIBUTE_NORETURN): Update definition. Define always.
20006         * lib/sigpipe-die.h (__attribute__): Remove definition.
20007         (ATTRIBUTE_NORETURN): Update definition. Define always.
20008         * lib/vasnprintf.h (__attribute__): Remove definition.
20009         (_GL_ATTRIBUTE_FORMAT): New macro.
20010         (asnprintf, vasnprintf): Use it.
20011         * lib/xalloc.h (__attribute__): Remove definition.
20012         (ATTRIBUTE_NORETURN): Update definition. Define always.
20013         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20014         * lib/xmemdup0.h (__attribute__): Remove definition.
20015         (ATTRIBUTE_NORETURN): Update definition. Define always.
20016         * lib/xprintf.h (__attribute__): Remove definition.
20017         (_GL_ATTRIBUTE_FORMAT): New macro.
20018         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20019         * lib/xstrtol.h (__attribute__): Remove definition.
20020         (ATTRIBUTE_NORETURN): Update definition. Define always.
20021         * lib/xvasprintf.h (__attribute__): Remove definition.
20022         (_GL_ATTRIBUTE_FORMAT): New macro.
20023         (xasprintf, xvasprintf): Use it.
20024         * tests/test-argmatch.c (__attribute__): Remove definition.
20025         (ATTRIBUTE_NORETURN): Update definition. Define always.
20026         * tests/test-exclude.c (__attribute__): Remove definition.
20027         (ATTRIBUTE_NORETURN): Update definition. Define always.
20028         Reported by Paul Eggert.
20029
20030 2011-02-13  Bruno Haible  <bruno@clisp.org>
20031
20032         mbrtowc: Add more tests for native Windows platforms.
20033         * tests/test-mbrtowc-w32-1.sh: New file.
20034         * tests/test-mbrtowc-w32-2.sh: New file.
20035         * tests/test-mbrtowc-w32-3.sh: New file.
20036         * tests/test-mbrtowc-w32-4.sh: New file.
20037         * tests/test-mbrtowc-w32-5.sh: New file.
20038         * tests/test-mbrtowc-w32.c: New file.
20039         * modules/mbrtowc-tests (Files): Add them.
20040         (Makefile.am): Arrange to run these tests.
20041         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20042         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20043
20044 2011-02-13  Bruno Haible  <bruno@clisp.org>
20045
20046         mbrtowc: Work around native Windows bug.
20047         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20048         guess when no suitable locale for testing was found.
20049         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20050
20051 2011-02-13  Bruno Haible  <bruno@clisp.org>
20052
20053         mbsinit: Work around mingw bug.
20054         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20055         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20056         Windows.
20057         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20058
20059 2011-02-13  Bruno Haible  <bruno@clisp.org>
20060
20061         mbsinit: Don't crash for a NULL argument.
20062         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20063         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20064
20065 2011-02-13  Bruno Haible  <bruno@clisp.org>
20066
20067         Don't interfere with a program's definition of __attribute__.
20068         * lib/stdio.in.h (__attribute__): Remove definition.
20069         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20070         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20071         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20072         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20073         * lib/string.in.h (__attribute__): Remove definition.
20074         Reported by Paul Eggert.
20075
20076 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         stdlib: don't get in the way of non-GCC __attribute__
20079         See thread starting at
20080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20081         Revert previous stdlib change, installing the following instead:
20082         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20083         to get in the way of a non-GCC compiler that supports __attribute__.
20084         (_GL_ATTRIBUTE_RETURN): New macro.
20085         (_Exit): Use it instead of __attribute__.
20086
20087 2011-02-12  Bruno Haible  <bruno@clisp.org>
20088
20089         quotearg test: Avoid test failure on mingw.
20090         * tests/test-quotearg.sh: Convert the locale identifier from native
20091         Windows syntax to Unix syntax.
20092
20093 2011-02-12  Bruno Haible  <bruno@clisp.org>
20094
20095         setlocale: Prefer gnulib's override over libintl's override.
20096         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20097         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20098         GNULIB_defined_setlocale is set.
20099
20100 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20101
20102         stdlib: support non-GCC __attribute__
20103
20104         Fix a serious and tricky problem encountered when attempting to
20105         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20106         5.5, but it crashed due to memory corruption on Solaris 10 with
20107         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20108         bits that are otherwise zero.  This tagging is optional inside
20109         Emacs but is preferred and is used when __attribute__ ((__aligned
20110         (8))) works, as it does with both recent-enough GCC and with Sun C
20111         5.11.  However, Sun C 5.11 is not GCC and does not #define
20112         __GNUC__ and __GNUC_MINOR__.
20113
20114         When I added the getloadavg module to Emacs, it brought in
20115         stdlib.in.h, which contained this fragment:
20116
20117            #ifndef __attribute__
20118            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20119            #  define __attribute__(Spec)   /* empty */
20120            # endif
20121            #endif
20122
20123         When files that include <stdlib.h> were compiled with Sun C 5.11,
20124         the above code disabled __attribute__ ((__aligned (8))), which
20125         caused variables to not be properly aligned, which eventually led
20126         to the pointer corruption mentioned above.  (This was a bit hard
20127         to diagnose, unfortunately.)
20128
20129         Several "#define __attribute__(X) /* empty */" code snippets need
20130         to be eradicated from Gnulib to work with non-GCC compilers that
20131         support __attribute__.  The Autoconf way to do this is to test for
20132         each kind of attribute that we want support for, and selectively
20133         enable that in source code.
20134
20135         Fix this problem just for stdlib.h, by adding a test for the
20136         __noreturn__ attribute, and change stdlib.in.h to use that test
20137         when needed.  This technique can be easily generalized to the
20138         other *.in.h files and attributes, and a similar technique can be
20139         used for *.h and *.c files.  This patch is enough to solve the
20140         problem for Emacs + getloadavg, and I thought I'd publish it for
20141         feedback before undertaking further, similar fixes in other
20142         modules.
20143
20144         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20145         because it's not needed for stdlib.h.  It merely substitutes the
20146         value directly into stdlib.h.  We may well need to #define it, or
20147         similar symbols, for other modules, but it's nice to also have an
20148         option to not #define it for applications like Emacs that do not
20149         need it.
20150
20151         * lib/stdlib.in.h (__attribute__): Do not #define.
20152         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20153         be defined only if the _Exit module is also used.
20154         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20156         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20157         platforms.
20158         * modules/_Exit (Files): Add m4/attribute.m4.
20159         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20160         * m4/attribute.m4: New file.
20161
20162 2011-02-12  Bruno Haible  <bruno@clisp.org>
20163
20164         wcsrtombs: Work around bug on native Windows.
20165         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20166         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20167         instead of len.
20168         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20169
20170 2011-02-12  Bruno Haible  <bruno@clisp.org>
20171
20172         mbsrtowcs: Work around bug on native Windows.
20173         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20174         against mingw bug.
20175         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20176
20177 2011-02-12  Bruno Haible  <bruno@clisp.org>
20178
20179         Avoid setlocale bugs in tests.
20180         * modules/btowc (Dependencies): Add setlocale.
20181         * modules/c-strcase (Dependencies): Likewise.
20182         * modules/mbmemcasecmp (Dependencies): Likewise.
20183         * modules/mbmemcasecoll (Dependencies): Likewise.
20184         * modules/mbrtowc (Dependencies): Likewise.
20185         * modules/mbscasecmp (Dependencies): Likewise.
20186         * modules/mbscasestr (Dependencies): Likewise.
20187         * modules/mbschr (Dependencies): Likewise.
20188         * modules/mbscspn (Dependencies): Likewise.
20189         * modules/mbsinit (Dependencies): Likewise.
20190         * modules/mbsncasecmp (Dependencies): Likewise.
20191         * modules/mbsnrtowcs (Dependencies): Likewise.
20192         * modules/mbspbrk (Dependencies): Likewise.
20193         * modules/mbspcasecmp (Dependencies): Likewise.
20194         * modules/mbsrchr (Dependencies): Likewise.
20195         * modules/mbsrtowcs (Dependencies): Likewise.
20196         * modules/mbsspn (Dependencies): Likewise.
20197         * modules/mbsstr (Dependencies): Likewise.
20198         * modules/nl_langinfo (Dependencies): Likewise.
20199         * modules/quotearg (Dependencies): Likewise.
20200         * modules/unicase/locale-language (Dependencies): Likewise.
20201         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20202         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20203         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20204         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20205         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20206         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20207         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20208         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20209         * modules/vasnprintf-posix (Dependencies): Likewise.
20210         * modules/wcrtomb (Dependencies): Likewise.
20211         * modules/wcsnrtombs (Dependencies): Likewise.
20212         * modules/wcsrtombs (Dependencies): Likewise.
20213
20214 2011-02-12  Bruno Haible  <bruno@clisp.org>
20215
20216         setlocale: Workaround native Windows bug.
20217         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20218         succeeds but sets LC_CTYPE to "C", report a failure.
20219         * tests/test-setlocale2.sh: New file.
20220         * tests/test-setlocale2.c: New file.
20221         * modules/setlocale-tests (Files): Add the new files.
20222         (Makefile.am): Enable test-setlocale2.sh test.
20223         * doc/posix-functions/setlocale.texi: Mention workaround.
20224
20225 2011-02-11  Bruno Haible  <bruno@clisp.org>
20226
20227         Tests for module 'setlocale'.
20228         * modules/setlocale-tests: New file.
20229         * tests/test-setlocale1.sh: New file.
20230         * tests/test-setlocale1.c: New file.
20231
20232         New module 'setlocale'.
20233         * lib/locale.in.h (setlocale): New declaration.
20234         * lib/setlocale.c: New file, based on
20235         gettext/gettext-runtime/intl/setlocale.c.
20236         * m4/setlocale.m4: New file.
20237         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20238         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20239         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20240         REPLACE_SETLOCALE.
20241         * modules/setlocale: New file.
20242         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20243         * doc/posix-functions/setlocale.texi: Mention the new module.
20244
20245 2011-02-11  Bruno Haible  <bruno@clisp.org>
20246
20247         Prepare for locale dependent tests on mingw.
20248         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20249         because it has the wrong locale encoding.
20250         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20251         French_France.1252 instead of "fr".
20252         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20253         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20254         because it has the wrong locale encoding.
20255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20256         native Windows, try Turkish_Turkey.65001.
20257         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20258         Chinese_China.54936.
20259
20260         Prepare for locale dependent tests on mingw.
20261         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20262         differently.
20263         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20264         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20265         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20266         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20267
20268 2011-02-11  Eric Blake  <eblake@redhat.com>
20269
20270         strptime: avoid compiler warnings
20271         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20272         compiler warnings about dead code.
20273         Reported by Daniel P. Berrange.
20274
20275 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20276
20277         doc: update users.txt
20278         * users.txt: Add rcs.
20279
20280 2011-02-10  John W. Eaton  <jwe@gnu.org>
20281
20282         doc: update users.txt
20283         * users.txt: Add octave.
20284
20285 2011-02-10  Jim Meyering  <meyering@redhat.com>
20286
20287         doc: update users.txt
20288         * users.txt: Add iwhd.
20289
20290 2011-02-09  Bruno Haible  <bruno@clisp.org>
20291
20292         gnulib-tool: Make copyright notice adjustment more robust.
20293         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20294         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20295         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20296         License".
20297         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20298
20299 2011-02-06  Bruno Haible  <bruno@clisp.org>
20300
20301         New module 'towctrans'.
20302         * modules/towctrans: New file.
20303         * lib/wctype.in.h (towctrans): New declaration.
20304         * lib/towctrans.c: New file.
20305         * lib/towctrans-impl.h: New file.
20306         * m4/towctrans.m4: New file.
20307         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20308         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20309         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20310         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20311         * doc/posix-functions/towctrans.texi: Mention the new module.
20312
20313 2011-02-06  Bruno Haible  <bruno@clisp.org>
20314
20315         New module 'wctrans'.
20316         * modules/wctrans: New file.
20317         * lib/wctype.in.h (wctrans): New declaration.
20318         * lib/wctrans.c: New file.
20319         * lib/wctrans-impl.h: New file.
20320         * m4/wctrans.m4: New file.
20321         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20322         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20323         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20324         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20325         * doc/posix-functions/wctrans.texi: Mention the new module.
20326
20327 2011-02-06  Bruno Haible  <bruno@clisp.org>
20328
20329         New module 'iswctype'.
20330         * modules/iswctype: New file.
20331         * lib/wctype.in.h (iswctype): New declaration.
20332         * lib/iswctype.c: New file.
20333         * lib/iswctype-impl.h: New file.
20334         * m4/iswctype.m4: New file.
20335         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20336         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20337         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20338         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20339         * doc/posix-functions/iswctype.texi: Mention the new module and the
20340         HP-UX 11.00 problem.
20341
20342 2011-02-06  Bruno Haible  <bruno@clisp.org>
20343
20344         New module 'wctype'.
20345         * modules/wctype: Change to represent the wctype() substitute.
20346         * lib/wctype.in.h (wctype): New declaration.
20347         * lib/wctype.c: New file.
20348         * lib/wctype-impl.h: New file.
20349         * m4/wctype.m4: New file.
20350         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20351         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20352         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20353         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20354         * doc/posix-functions/wctype.texi: Mention the new module and the
20355         HP-UX 11.00 problem.
20356
20357 2011-02-06  Bruno Haible  <bruno@clisp.org>
20358
20359         wctype-h: Ensure wctype_t and wctrans_t are defined.
20360         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20361         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20362         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20363         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20364         HAVE_WCTRANS_T.
20365         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20366
20367 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20368
20369         flock: fix license typo
20370
20371         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20372         omitted.
20373
20374 2011-02-08  Bruno Haible  <bruno@clisp.org>
20375
20376         Split large sed scripts, for HP-UX sed.
20377         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20378         to avoid HP-UX limit of 99 commands, in the near future.
20379         * modules/stdlib (Makefile.am): Likewise.
20380         * modules/unistd (Makefile.am): Likewise.
20381         * modules/wchar (Makefile.am): Likewise.
20382         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20383         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20385
20386 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20387             Bruno Haible  <bruno@clisp.org>
20388
20389         stdlib: improve random_r modularization
20390         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20391         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20392         you also need the random_r module to get this material right.
20393         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20394         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20395         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20396
20397 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20398
20399         stdlib: don't depend on stdint
20400         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20401         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20402         be independent of whether stdint.h is needed.
20403         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20404         here, instead of ...
20405         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20406         struct random_data should be using the random_r module, not just
20407         the stdlib module (which wouldn't make sense: what package needs
20408         just struct random_data without also needing random_r?).
20409         * modules/stdlib (Depends-on): Remove stdint.
20410
20411         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20412         See the thread rooted at
20413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20414         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20415         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20416         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20417         __VMS)); previously it was always included (via fcntl--.h).
20418         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20419         hand; this is good enough for load averages.  Also, do not use
20420         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20421         flags directly if available and don't bother otherwise.  (Packages
20422         that need the extra reliability should use the modules that define
20423         these flags on older platforms that lack them.)
20424         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20425         fcntl-safer.
20426
20427 2011-02-08  Jim Meyering  <meyering@redhat.com>
20428
20429         di-set.h, ino-map.h: add multiple-inclusion guard
20430         Technically, the guard is required only for ino-map.h, due to its
20431         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20432         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20433         * lib/ino-map.h: Likewise.
20434
20435 2011-02-06  Bruno Haible  <bruno@clisp.org>
20436
20437         iswblank: Ensure declaration on glibc systems.
20438         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20439         * modules/iswblank (Dependencies): Add 'extensions'.
20440         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20441
20442 2011-02-06  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'iswblank'.
20445         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20446         * modules/iswblank: New file.
20447         * modules/wctype-h (Files): Remove lib/iswblank.c.
20448         (Makefile.am): Substitute GNULIB_ISWBLANK.
20449         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20450         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20451         (gl_WCTYPE_H_DEFAULTS): New macro.
20452         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20453         * modules/iswblank-tests: New file.
20454         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20455         * tests/test-wctype-h.c (main): Remove iswblank tests.
20456         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20457         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20458         of 'wctype-h'.
20459         * NEWS: Mention the change.
20460         * modules/mbchar (Depends-on): Add iswblank.
20461
20462 2011-02-08  Bruno Haible  <bruno@clisp.org>
20463
20464         di-set tests: Refactor.
20465         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20466         unnecessary includes.
20467         (ASSERT): Remove macro.
20468         (main): Make C90 compliant by avoiding variable declaration after
20469         statement.
20470         * modules/di-set-tests (Files): Add tests/macros.h.
20471
20472 2011-02-08  Bruno Haible  <bruno@clisp.org>
20473
20474         ino-map tests: Refactor.
20475         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20476         unnecessary includes.
20477         (ASSERT): Remove macro.
20478         (main): Make C90 compliant by avoiding variable declaration after
20479         statement.
20480         * modules/ino-map-tests (Files): Add tests/macros.h.
20481
20482 2011-02-08  Jim Meyering  <meyering@redhat.com>
20483
20484         di-set: add "const" to a cast
20485         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20486         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20487
20488 2011-02-06  Bruno Haible  <bruno@clisp.org>
20489
20490         Rename module 'wctype' to 'wctype-h'.
20491         * modules/wctype-h: Renamed from modules/wctype.
20492         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20493         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20494         (Files, Depends-on, Makefile.am): Update.
20495         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20496         (Files, Makefile.am): Update.
20497         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20498         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20499         * doc/posix-headers/wctype.texi: Update.
20500         * doc/posix-functions/iswalnum.texi: Update.
20501         * doc/posix-functions/iswalpha.texi: Update.
20502         * doc/posix-functions/iswblank.texi: Update.
20503         * doc/posix-functions/iswcntrl.texi: Update.
20504         * doc/posix-functions/iswdigit.texi: Update.
20505         * doc/posix-functions/iswgraph.texi: Update.
20506         * doc/posix-functions/iswlower.texi: Update.
20507         * doc/posix-functions/iswprint.texi: Update.
20508         * doc/posix-functions/iswpunct.texi: Update.
20509         * doc/posix-functions/iswspace.texi: Update.
20510         * doc/posix-functions/iswupper.texi: Update.
20511         * doc/posix-functions/iswxdigit.texi: Update.
20512         * doc/posix-functions/towlower.texi: Update.
20513         * doc/posix-functions/towupper.texi: Update.
20514         * NEWS: Mention the change.
20515         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20516         * modules/mbchar (Dependencies): Likewise.
20517         * modules/mbswidth (Dependencies): Likewise.
20518         * modules/quotearg (Dependencies): Likewise.
20519         * modules/regex (Dependencies): Likewise.
20520         * modules/wcscasecmp (Dependencies): Likewise.
20521         * modules/wcsncasecmp (Dependencies): Likewise.
20522         * modules/wcwidth (Dependencies): Likewise.
20523
20524 2011-02-06  Bruno Haible  <bruno@clisp.org>
20525
20526         New module 'wcswidth'.
20527         * modules/wcswidth: New file.
20528         * lib/wchar.in.h (wcswidth): New declaration.
20529         * lib/wcswidth.c: New file.
20530         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20531         * m4/wcswidth.m4: New file.
20532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20534         REPLACE_WCSWIDTH.
20535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20536         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20537         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20538         * doc/posix-functions/wcswidth.texi: Mention the new module.
20539
20540 2011-02-06  Bruno Haible  <bruno@clisp.org>
20541
20542         New module 'wcstok'.
20543         * modules/wcstok: New file.
20544         * lib/wchar.in.h (wcstok): New declaration.
20545         * lib/wcstok.c: New file.
20546         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20547         * m4/wcstok.m4: New file.
20548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20551         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20552         * doc/posix-functions/wcstok.texi: Mention the new module.
20553
20554 2011-02-06  Bruno Haible  <bruno@clisp.org>
20555
20556         New module 'wcsstr'.
20557         * modules/wcsstr: New file.
20558         * lib/wchar.in.h (wcsstr): New declaration.
20559         * lib/wcsstr.c: New file.
20560         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20561         * m4/wcsstr.m4: New file.
20562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20565         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20566         * doc/posix-functions/wcsstr.texi: Mention the new module.
20567
20568 2011-02-06  Bruno Haible  <bruno@clisp.org>
20569
20570         New module 'wcspbrk'.
20571         * modules/wcspbrk: New file.
20572         * lib/wchar.in.h (wcspbrk): New declaration.
20573         * lib/wcspbrk.c: New file.
20574         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20575         * m4/wcspbrk.m4: New file.
20576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20579         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20580         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20581
20582 2011-02-06  Bruno Haible  <bruno@clisp.org>
20583
20584         New module 'wcsspn'.
20585         * modules/wcsspn: New file.
20586         * lib/wchar.in.h (wcsspn): New declaration.
20587         * lib/wcsspn.c: New file.
20588         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20589         * m4/wcsspn.m4: New file.
20590         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20591         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20592         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20593         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20594         * doc/posix-functions/wcsspn.texi: Mention the new module.
20595
20596 2011-02-06  Bruno Haible  <bruno@clisp.org>
20597
20598         New module 'wcscspn'.
20599         * modules/wcscspn: New file.
20600         * lib/wchar.in.h (wcscspn): New declaration.
20601         * lib/wcscspn.c: New file.
20602         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20603         * m4/wcscspn.m4: New file.
20604         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20605         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20606         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20607         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20608         * doc/posix-functions/wcscspn.texi: Mention the new module.
20609
20610 2011-02-06  Bruno Haible  <bruno@clisp.org>
20611
20612         New module 'wcsrchr'.
20613         * modules/wcsrchr: New file.
20614         * lib/wchar.in.h (wcsrchr): New declaration.
20615         * lib/wcsrchr.c: New file.
20616         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20617         * m4/wcsrchr.m4: New file.
20618         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20619         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20620         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20621         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20622         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20623
20624 2011-02-06  Bruno Haible  <bruno@clisp.org>
20625
20626         New module 'wcschr'.
20627         * modules/wcschr: New file.
20628         * lib/wchar.in.h (wcschr): New declaration.
20629         * lib/wcschr.c: New file.
20630         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20631         * m4/wcschr.m4: New file.
20632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20635         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20636         * doc/posix-functions/wcschr.texi: Mention the new module.
20637
20638 2011-02-06  Bruno Haible  <bruno@clisp.org>
20639
20640         New module 'wcsdup'.
20641         * modules/wcsdup: New file.
20642         * lib/wchar.in.h (wcsdup): New declaration.
20643         * lib/wcsdup.c: New file.
20644         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20645         * m4/wcsdup.m4: New file.
20646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20649         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20650         * doc/posix-functions/wcsdup.texi: Mention the new module.
20651
20652 2011-02-06  Bruno Haible  <bruno@clisp.org>
20653
20654         New module 'wcsxfrm'.
20655         * modules/wcsxfrm: New file.
20656         * lib/wchar.in.h (wcsxfrm): New declaration.
20657         * lib/wcsxfrm.c: New file.
20658         * lib/wcsxfrm-impl.h: New file.
20659         * m4/wcsxfrm.m4: New file.
20660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20663         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20664         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20665
20666 2011-02-06  Bruno Haible  <bruno@clisp.org>
20667
20668         New module 'wcscoll'.
20669         * modules/wcscoll: New file.
20670         * lib/wchar.in.h (wcscoll): New declaration.
20671         * lib/wcscoll.c: New file.
20672         * lib/wcscoll-impl.h: New file.
20673         * m4/wcscoll.m4: New file.
20674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20677         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20678         * doc/posix-functions/wcscoll.texi: Mention the new module.
20679
20680 2011-02-06  Bruno Haible  <bruno@clisp.org>
20681
20682         New module 'wcsncasecmp'.
20683         * modules/wcsncasecmp: New file.
20684         * lib/wchar.in.h (wcsncasecmp): New declaration.
20685         * lib/wcsncasecmp.c: New file.
20686         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20687         * m4/wcsncasecmp.m4: New file.
20688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20691         HAVE_WCSNCASECMP.
20692         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20693         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20694
20695 2011-02-06  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'wcscasecmp'.
20698         * modules/wcscasecmp: New file.
20699         * lib/wchar.in.h (wcscasecmp): New declaration.
20700         * lib/wcscasecmp.c: New file.
20701         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20702         * m4/wcscasecmp.m4: New file.
20703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20706         HAVE_WCSCASECMP.
20707         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20708         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20709
20710 2011-02-05  Bruno Haible  <bruno@clisp.org>
20711
20712         New module 'wcsncmp'.
20713         * modules/wcsncmp: New file.
20714         * lib/wchar.in.h (wcsncmp): New declaration.
20715         * lib/wcsncmp.c: New file.
20716         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20717         * m4/wcsncmp.m4: New file.
20718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20721         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20722         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20723
20724 2011-02-05  Bruno Haible  <bruno@clisp.org>
20725
20726         New module 'wcscmp'.
20727         * modules/wcscmp: New file.
20728         * lib/wchar.in.h (wcscmp): New declaration.
20729         * lib/wcscmp.c: New file.
20730         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20731         * m4/wcscmp.m4: New file.
20732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20735         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20736         * doc/posix-functions/wcscmp.texi: Mention the new module.
20737
20738 2011-02-05  Bruno Haible  <bruno@clisp.org>
20739
20740         New module 'wcsncat'.
20741         * modules/wcsncat: New file.
20742         * lib/wchar.in.h (wcsncat): New declaration.
20743         * lib/wcsncat.c: New file.
20744         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20745         * m4/wcsncat.m4: New file.
20746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20749         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20750         * doc/posix-functions/wcsncat.texi: Mention the new module.
20751
20752 2011-02-05  Bruno Haible  <bruno@clisp.org>
20753
20754         New module 'wcscat'.
20755         * modules/wcscat: New file.
20756         * lib/wchar.in.h (wcscat): New declaration.
20757         * lib/wcscat.c: New file.
20758         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20759         * m4/wcscat.m4: New file.
20760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20763         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20764         * doc/posix-functions/wcscat.texi: Mention the new module.
20765
20766 2011-02-05  Bruno Haible  <bruno@clisp.org>
20767
20768         New module 'wcpncpy'.
20769         * modules/wcpncpy: New file.
20770         * lib/wchar.in.h (wcpncpy): New declaration.
20771         * lib/wcpncpy.c: New file.
20772         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20773         * m4/wcpncpy.m4: New file.
20774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20776         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20777         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20778         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20779
20780 2011-02-05  Bruno Haible  <bruno@clisp.org>
20781
20782         New module 'wcsncpy'.
20783         * modules/wcsncpy: New file.
20784         * lib/wchar.in.h (wcsncpy): New declaration.
20785         * lib/wcsncpy.c: New file.
20786         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20787         * m4/wcsncpy.m4: New file.
20788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20791         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20792         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20793
20794 2011-02-05  Bruno Haible  <bruno@clisp.org>
20795
20796         New module 'wcpcpy'.
20797         * modules/wcpcpy: New file.
20798         * lib/wchar.in.h (wcpcpy): New declaration.
20799         * lib/wcpcpy.c: New file.
20800         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20801         * m4/wcpcpy.m4: New file.
20802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20804         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20805         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20806         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20807
20808 2011-02-05  Bruno Haible  <bruno@clisp.org>
20809
20810         New module 'wcscpy'.
20811         * modules/wcscpy: New file.
20812         * lib/wchar.in.h (wcscpy): New declaration.
20813         * lib/wcscpy.c: New file.
20814         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20815         * m4/wcscpy.m4: New file.
20816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20819         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20820         * doc/posix-functions/wcscpy.texi: Mention the new module.
20821
20822 2011-02-05  Bruno Haible  <bruno@clisp.org>
20823
20824         New module 'wcsnlen'.
20825         * modules/wcsnlen: New file.
20826         * lib/wchar.in.h (wcsnlen): New declaration.
20827         * lib/wcsnlen.c: New file.
20828         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20829         * m4/wcsnlen.m4: New file.
20830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20833         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20834         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20835
20836 2011-02-05  Bruno Haible  <bruno@clisp.org>
20837
20838         New module 'wcslen'.
20839         * modules/wcslen: New file.
20840         * lib/wchar.in.h (wcslen): New declaration.
20841         * lib/wcslen.c: New file.
20842         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20843         * m4/wcslen.m4: New file.
20844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20847         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20848         * doc/posix-functions/wcslen.texi: Mention the new module.
20849
20850 2011-02-05  Bruno Haible  <bruno@clisp.org>
20851
20852         New module 'wmemset'.
20853         * modules/wmemset: New file.
20854         * lib/wchar.in.h (wmemset): New declaration.
20855         * lib/wmemset.c: New file.
20856         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20857         * m4/wmemset.m4: New file.
20858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20860         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20861         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20862         * doc/posix-functions/wmemset.texi: Mention the new module.
20863
20864 2011-02-05  Bruno Haible  <bruno@clisp.org>
20865
20866         New module 'wmemmove'.
20867         * modules/wmemmove: New file.
20868         * lib/wchar.in.h (wmemmove): New declaration.
20869         * lib/wmemmove.c: New file.
20870         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20871         * m4/wmemmove.m4: New file.
20872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20874         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20875         HAVE_WMEMMOVE.
20876         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20877         * doc/posix-functions/wmemmove.texi: Mention the new module.
20878
20879 2011-02-05  Bruno Haible  <bruno@clisp.org>
20880
20881         New module 'wmemcpy'.
20882         * modules/wmemcpy: New file.
20883         * lib/wchar.in.h (wmemcpy): New declaration.
20884         * lib/wmemcpy.c: New file.
20885         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20886         * m4/wmemcpy.m4: New file.
20887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20889         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20890         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20891         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20892
20893 2011-02-05  Bruno Haible  <bruno@clisp.org>
20894
20895         New module 'wmemcmp'.
20896         * modules/wmemcmp: New file.
20897         * lib/wchar.in.h (wmemcmp): New declaration.
20898         * lib/wmemcmp.c: New file.
20899         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20900         * m4/wmemcmp.m4: New file.
20901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20903         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20904         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20905         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20906
20907 2011-02-07  Jim Meyering  <meyering@redhat.com>
20908
20909         di-set, ino-map: new modules, from coreutils
20910         * lib/di-set.c: New file.
20911         * lib/di-set.h: Likewise.
20912         * lib/ino-map.c: Likewise.
20913         * lib/ino-map.h: Likewise.
20914         * modules/di-set: Likewise.
20915         * modules/di-set-tests: Likewise.
20916         * modules/ino-map: Likewise.
20917         * modules/ino-map-tests: Likewise.
20918         * tests/test-di-set.c: Likewise.
20919         * tests/test-ino-map.c: Likewise.
20920
20921 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20922
20923         getloadavg: merge minor changes from Emacs
20924
20925         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20926         (getloadavg): Use memset, not bzero.
20927
20928         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20929         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20930         clash (bug#86).
20931
20932 2010-11-14  Bruno Haible  <bruno@clisp.org>
20933
20934         Allow multiple gnulib generated replacements to coexist.
20935         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20936         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20937         * lib/langinfo.in.h (nl_item): Likewise.
20938         * lib/math.in.h (_NaN, NAN): Likewise.
20939         * lib/netdb.in.h (struct addrinfo): Likewise.
20940         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20941         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20942         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20943         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20944         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20945         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20946         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20947         pthread_mutexattr_init, pthread_mutexattr_settype,
20948         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20949         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20950         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20951         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20952         * lib/sched.in.h (struct sched_param): Likewise.
20953         * lib/se-selinux.in.h (security_class_t, security_context_t,
20954         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20955         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20956         lsetfilecon, fsetfilecon, security_check_context,
20957         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20958         Likewise.
20959         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20960         Likewise.
20961         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20962         _gl_function_taking_int_returning_void_t, union sigval,
20963         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20964         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20965         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20966         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20967         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20968         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20969         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20970         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20971         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20972         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20973         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20974         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20975         socklen_t, rpl_fd_isset): Likewise.
20976         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20977         * lib/sys_time.in.h (struct timeval): Likewise.
20978         * lib/sys_times.in.h (struct tms): Likewise.
20979         * lib/sys_utsname.in.h (struct utsname):
20980         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20981         * lib/unistd.in.h (getpagesize): Likewise.
20982         * lib/wchar.in.h (mbstate_t): Likewise.
20983         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20984         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20985         towlower, towupper): Likewise.
20986         Reported by Sam Steingold <sds@gnu.org>.
20987
20988 2011-02-05  Eric Blake  <eblake@redhat.com>
20989
20990         unsetenv: work around Haiku issues
20991         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20992         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20993
20994 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20995
20996         libposix: avoid calling error() within libposix
20997         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20998         is defined.
20999
21000 2011-02-05  Eric Blake  <eblake@redhat.com>
21001
21002         strerror_r-posix: port to cygwin
21003         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21004         implementation.
21005         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21006         * tests/test-strerror_r.c (main): Fix test.
21007         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21008         issue.
21009
21010 2011-02-05  Bruno Haible  <bruno@clisp.org>
21011
21012         New module 'wmemchr'.
21013         * modules/wmemchr: New file.
21014         * lib/wchar.in.h (wmemchr): New declaration.
21015         * lib/wmemchr.c: New file.
21016         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21017         * m4/wmemchr.m4: New file.
21018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21020         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21021         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21022         * doc/posix-functions/wmemchr.texi: Mention the new module.
21023
21024 2011-02-04  Eric Blake  <eblake@redhat.com>
21025
21026         fdopendir: detect FreeBSD bug
21027         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21028         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21029
21030 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21031
21032         stdbool: do not define HAVE_STDBOOL_H
21033         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21034         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21035         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21036         imported from the latest Autoconf git.  It was motivated by Emacs,
21037         which uses gnulib but does not need HAVE_STDBOOL_H.
21038
21039 2011-02-04  Bruno Haible  <bruno@clisp.org>
21040
21041         wcsnrtombs: Prepare for new module wwcsnrtombs.
21042         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21043         * lib/wcsnrtombs.c: Include it.
21044         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21045
21046         wcsrtombs: Prepare for new module wwcsrtombs.
21047         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21048         * lib/wcsrtombs.c: Include it.
21049         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21050
21051         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21052         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21053         * lib/mbsnrtowcs.c: Include it.
21054         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21055
21056         mbsrtowcs: Prepare for new module mbsrtowwcs.
21057         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21058         * lib/mbsrtowcs.c: Include it.
21059         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21060
21061 2011-02-04  Bruno Haible  <bruno@clisp.org>
21062
21063         vasnprintf: Reduce use of malloc for small format strings.
21064         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21065         (arguments): Add room for the first 7 arguments.
21066         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21067         (char_directives, u8_directives, u16_directives, u32_directives): Add
21068         room for the first 7 directives.
21069         * lib/printf-parse.c: Include <string.h>.
21070         (PRINTF_PARSE): Change memory handling code so that it uses the first
21071         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21072         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21073         Reported by Pádraig Brady <P@draigbrady.com>.
21074
21075 2011-01-31  Eric Blake  <eblake@redhat.com>
21076
21077         dup2: work around Haiku bug
21078         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21079         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21080         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21081         * tests/test-dup2.c (main): Enhance test.
21082
21083 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21084
21085         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21086         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21087         declared by eglibc 2.11.2.
21088         * lib/stdio.in.h: Likewise.
21089
21090 2011-01-31  Eric Blake  <eblake@redhat.com>
21091
21092         ignore-value: add missing test dependency
21093         * tests/test-ignore-value.c: Revert previous change; stdio.h
21094         provides off_t.
21095         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21096
21097 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21098
21099         mktime: clarify long_int width checking
21100         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21101         the top level, to make it clearer that the assumption about
21102         long_int width is being checked.  See
21103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21104
21105 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21106
21107         ignore-value: Fix self-test.
21108         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21109
21110 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21111
21112         TYPE_MAXIMUM: avoid theoretically undefined behavior
21113         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21114         negative number, which the C Standard says has undefined behavior.
21115         In practice this is not a problem, but might as well do it by the book.
21116         Reported by Rich Felker and Eric Blake; see
21117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21118         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21119         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21121         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21122         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21123         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21124
21125         mktime: #undef mktime before #defining it
21126         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21127
21128         mktime: systematically normalize tm_isdst comparisons
21129         * lib/mktime.c (isdst_differ): New function.
21130         (__mktime_internal): Use it systematically for all isdst comparisons.
21131         This completes the fix for libc BZ #6723, and removes the need for
21132         normalizing tm_isdst.  See
21133         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21134         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21135
21136         mktime: fix some integer overflow issues and sidestep the rest
21137
21138         This was prompted by a bug report by Benjamin Lindner for MinGW
21139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21140         His bug is due to signed integer overflow (0 - INT_MIN), and I
21141         I scanned through mktime.c looking for other integer overflow
21142         problems, fixing all the bugs I found.
21143
21144         Although the C Standard says the resulting code is still not safe
21145         in the presence of integer overflow, in practice it should be good
21146         enough for all real-world two's-complement implementations, except
21147         for debugging environments that deliberately trap on integer
21148         overflow (e.g., gcc -ftrapv).
21149
21150         * lib/mktime.c (WRAPV): New macro.
21151         (SHR): Also check that long_int and time_t shift right in the
21152         usual way, before using the fast-but-unportable method.
21153         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21154         used.  The code already assumed two's complement, so there's
21155         no need to test for alternatives.  All uses removed.
21156         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21157         the C standard.  Problem reported by Rich Felker in
21158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21159         (twos_complement_arithmetic): Also check long_int and time_t.
21160         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21161         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21162         (__mktime_internal): Avoid integer overflow with unary subtraction
21163         in two instances where -1 - X is an adequate replacement for -X,
21164         since the calculations are approximate.
21165
21166 2011-01-29  Eric Blake  <eblake@redhat.com>
21167
21168         mktime: avoid infinite loop
21169         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21170         type; behavior is still undefined but portable to all known targets.
21171         Reported by Rich Felker.
21172
21173 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21174
21175         rename, unlink, same-inode: Relicense.
21176         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21177         * modules/unlink (License): Likewise.
21178         * modules/same-inode (License): Likewise.
21179
21180 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21181
21182         mktime: avoid problems on NetBSD 5 / i386
21183         * lib/mktime.c (long_int): New type.  This works around a problem
21184         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21185         but time_t is 64 bits, and where I expect the existing code is
21186         wrong in some cases.
21187         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21188         (ydhms_diff): Bring back the compile-time check for wide-enough
21189         year and yday.
21190
21191         mktime: fix misspelling in comment
21192         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21193         This merges all recent glibc changes of importance.
21194
21195 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21196
21197         move-if-change: cope with concurrent mv of identical file.
21198         * build-aux/move-if-change (CMPPROG): Accept environment
21199         variable as an override for `cmp'.
21200         (usage): Document CMPPROG.
21201         Adjust comparison to drop stdout.  Cope with failure of mv if
21202         the target file exists and is identical to the source, for
21203         parallel builds.
21204         Report from H.J. Lu against binutils in PR binutils/12283.
21205
21206 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21207
21208         * users.txt: Mention sharutils.
21209
21210 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21211
21212         * users.txt: Mention OATH Toolkit.
21213
21214 2011-01-27  Bruno Haible  <bruno@clisp.org>
21215
21216         Prepare for supporting FreeBSD 10.
21217         * build-aux/config.libpath: Remove handling of freebsd1*.
21218
21219 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21220
21221         Prepare for supporting FreeBSD 10.
21222         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21223         match FreeBSD 10.0.
21224
21225 2011-01-27  Bruno Haible  <bruno@clisp.org>
21226
21227         vma-iter, get-rusage-as: Add OpenBSD support.
21228         * modules/vma-iter (configure.ac): Test for mquery.
21229         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21230         * lib/vma-iter.c: Include <sys/mman.h>.
21231         (vma_iterate): Add an implementation based on mquery().
21232         * lib/resource-ext.h (get_rusage_as): Update comments.
21233         * lib/get-rusage-as.c: Likewise.
21234         * lib/get-rusage-data.c: Likewise.
21235
21236 2011-01-26  Karl Berry  <karl@gnu.org>
21237
21238         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21239         variables to make it easier to override the makeinfo program used.
21240
21241 2011-01-26  Eric Blake  <eblake@redhat.com>
21242
21243         fcntl: work around Haiku F_DUPFD bugs
21244         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21245         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21246         cloexec bit on duplication.
21247         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21248
21249 2011-01-26  Bruno Haible  <bruno@clisp.org>
21250
21251         Enable memory leak tests on AIX.
21252         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21253         * tests/test-fprintf-posix3.c (main): Likewise.
21254
21255 2011-01-26  Bruno Haible  <bruno@clisp.org>
21256
21257         Tests for module 'get-rusage-data'.
21258         * modules/get-rusage-data-tests: New file.
21259         * tests/test-get-rusage-data.c: New file.
21260
21261         New module 'get-rusage-data'.
21262         * lib/resource-ext.h (get_rusage_data): New declaration.
21263         * lib/get-rusage-data.c: New file.
21264         * modules/get-rusage-data: New file.
21265
21266 2011-01-25  Bruno Haible  <bruno@clisp.org>
21267
21268         get-rusage-as: Allow for easier testing.
21269         * lib/resource-ext.h (get_rusage_as): Add comment.
21270         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21271         (main): New function for interactive testing.
21272
21273 2011-01-25  Bruno Haible  <bruno@clisp.org>
21274
21275         vma-iter: Treat Haiku like BeOS.
21276         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21277         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21278
21279 2011-01-25  Eric Blake  <eblake@redhat.com>
21280
21281         c-stack: fix regression on cygwin when libsigsegv is present
21282         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21283
21284 2011-01-24  Bruno Haible  <bruno@clisp.org>
21285
21286         vma-iter: Avoid empty intervals.
21287         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21288         on an empty interval.
21289
21290 2011-01-24  Jim Meyering  <meyering@redhat.com>
21291
21292         u64: remove unnecessary #include
21293         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21294
21295 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21296
21297         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21298         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21299
21300 2011-01-23  Bruno Haible  <bruno@clisp.org>
21301
21302         New module 'vma-iter'.
21303         * lib/vma-iter.h: New file.
21304         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21305         * modules/vma-iter: New file.
21306         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21307         for get_rusage_as_via_iterator.
21308         (vma_iterate_callback): New function.
21309         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21310         * modules/get-rusage-as (Depends-on): Add vma-iter.
21311
21312 2011-01-23  Bruno Haible  <bruno@clisp.org>
21313
21314         uninorm: Tweak includes.
21315         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21316         Reported by Jim Meyering.
21317
21318 2011-01-23  Bruno Haible  <bruno@clisp.org>
21319
21320         get-rusage-as: Improve on NetBSD.
21321         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21322         /proc, like on FreeBSD.
21323
21324 2011-01-23  Jim Meyering  <meyering@redhat.com>
21325
21326         xreadlink.h: remove unnecessary #include
21327         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21328
21329         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21330         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21331
21332 2011-01-23  Bruno Haible  <bruno@clisp.org>
21333
21334         get-rusage-as: Fix bug.
21335         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21336         original limit when aborting the first loop.
21337
21338 2011-01-23  Bruno Haible  <bruno@clisp.org>
21339
21340         wctype: Ensure valid C syntax.
21341         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21342         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21343
21344 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21345
21346         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21348         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21349         as they are needed only for configure's test case.
21350         This removes two unnecessary symbols from config.h.
21351
21352         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21353         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21355         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21356         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21357         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21358         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21359         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21360         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21361         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21364         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21365         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21366         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21367         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21368         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21369         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21370
21371 2011-01-21  Eric Blake  <eblake@redhat.com>
21372
21373         maintainer-makefile: work with older git for submodule check
21374         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21375         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21376         Reported by Matthias Bolte.
21377
21378         bootstrap: minor portability fixes
21379         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21380         (usage): Omit leading capital and trailing . on help phrases, per
21381         GNU Coding Standards.
21382         (check_versions, top level): Prefix messages with script name.
21383
21384 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21385
21386         bootstrap: support --no-git option
21387         * build-aux/bootstrap: Add --no-git option, to be used when
21388         --gnulib-srcdir points to the exact desired checkout.
21389
21390 2011-01-21  Eric Blake  <eblake@redhat.com>
21391
21392         strerror_r-posix: work with glibc 2.13
21393         * lib/strerror_r.c (strerror_r): Fix return type.
21394
21395 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21396             Bruno Haible  <bruno@clisp.org>
21397
21398         uN_strstr: New unit tests.
21399         * modules/unistr/u8-strstr-tests: New file.
21400         * modules/unistr/u16-strstr-tests: New file.
21401         * modules/unistr/u32-strstr-tests: New file.
21402         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21403         * tests/unistr/test-u8-strstr.c: New file.
21404         * tests/unistr/test-u16-strstr.c: New file.
21405         * tests/unistr/test-u32-strstr.c: New file.
21406
21407 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21408             Bruno Haible  <bruno@clisp.org>
21409
21410         Make uN_strstr functions O(n) worst-case.
21411         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21412         16-bit and 32-bit unit cases, use the unibyte algorithm from
21413         lib/mbsstr.c.
21414         * lib/unistr/u8-strstr.c: Include <string.h>.
21415         (UNIT_IS_UINT8_T): New macro.
21416         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21417         (U_STRLEN, U_STRNLEN): New macros.
21418         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21419         (U_STRLEN, U_STRNLEN): New macros.
21420         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21421         (configure.ac): Update required libunistring version.
21422         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21423         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21424         malloca.
21425         (configure.ac): Update required libunistring version.
21426         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21427         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21428         malloca.
21429         (configure.ac): Update required libunistring version.
21430
21431 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21432             Bruno Haible  <bruno@clisp.org>
21433
21434         Prepare for faster uN_strstr functions.
21435         * lib/str-kmp.h: Support definable UNITs.
21436         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21437         needle_len argument.
21438         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21439         * lib/mbscasestr.c (mbscasestr): Likewise.
21440
21441 2011-01-21  Pádraig Brady <P@draigBrady.com>
21442
21443         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21444         * tests/test-malloca.c (main): Unset the environment variable
21445         to greatly speed up the test.
21446         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21447         * modules/malloca-tests: Depend on unsetenv.
21448
21449 2011-01-21  Pádraig Brady <P@draigBrady.com>
21450
21451         ignore-value: remove stdint dependency
21452         * lib/ignore-value.h: Remove <stdint.h>
21453         * modules/ignore-value: Remove stdint dependency.
21454
21455 2011-01-21  Jim Meyering  <meyering@redhat.com>
21456
21457         maint.mk: adjust variable name to be consistent with other gl_ vars
21458         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21459         to be lower case.
21460
21461 2011-01-20  Jim Meyering  <meyering@redhat.com>
21462
21463         maint.mk: make "check" depend on public-submodule-commit by default
21464         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21465
21466 2011-01-20  Bruno Haible  <bruno@clisp.org>
21467
21468         mbfile, mbiter: Complete change from 2008-12-21.
21469         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21470         * m4/mbiter.m4 (gl_MBITER): Likewise.
21471
21472 2011-01-20  Jim Meyering  <meyering@redhat.com>
21473
21474         init.sh: insert space between each function name and "()"
21475         * tests/init.sh: Make it a little easier to see that a function's
21476         name is "warn_", and not "warn" when looking at the first part of
21477         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21478
21479 2011-01-20  Jim Meyering  <meyering@redhat.com>
21480
21481         mountlist: clean up code formatting
21482         * lib/mountlist.c (read_file_system_list): Split a long line,
21483         correct bracing style, use NULL in place of "(struct statfs *)0",
21484         don't parenthesize return value, add spaces around "=" and after
21485         ";-in-for-stmt".
21486
21487 2011-01-14  Markus Duft <mduft@gentoo.org>
21488
21489         mountlist: add support for Interix
21490         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21491         Apply statvfs to all entries of /dev/fs.
21492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21493         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21494
21495 2011-01-20  Jim Meyering  <meyering@redhat.com>
21496
21497         maint.mk: improve the public-submodule-commit rule
21498         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21499         to suppress printing of its commands... unless V=1.
21500         Add git submodule's --quiet option to suppress printing of e.g.,
21501         "Entering gnulib" output.
21502         "cd" into $(srcdir) before running git submodule.
21503
21504 2011-01-20  Bruno Haible  <bruno@clisp.org>
21505
21506         include_next: Fix bug introduced on 2011-01-18.
21507         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21508         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21509         ac_cv_header_... variable if the second argument is not 'check'.
21510         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21511         gl_NEXT_HEADERS_INTERNAL.
21512
21513 2011-01-20  Bruno Haible  <bruno@clisp.org>
21514
21515         Allow the user to avoid the GNULIB_TEST_* macros.
21516         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21517         Suggested by Paul Eggert.
21518
21519 2011-01-14  Jim Meyering  <meyering@redhat.com>
21520
21521         bootstrap: avoid failure when there is no .gitmodules file
21522         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21523         has been assigned to, even when its value is the empty string.
21524         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21525         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21526         Reported by John W. Eaton <jwe@gnu.org>.
21527
21528 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         assume <ctype.h>, ..., <time.h> exist
21531         For years gnulib has been assuming the existence of the headers
21532         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21533         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21534         them, since they don't appear to be needed.
21535         * README (Portability guidelines): Document this.
21536         * lib/flock.c: Assume <fcntl.h> exists.
21537         * lib/regex_internal.h: Assume <locale.h> exists.
21538         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21539         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21540         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21541         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21542         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21543         * m4/regex.m4 (gl_REGEX): Likewise.
21544         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21545         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21546         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21547         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21548         * tests/test-argp.c: Likewise.
21549         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21550
21551         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21552         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21553         AA_APPLE_UNIVERSAL_BUILD.  See
21554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21555         * NEWS: Document this.
21556
21557 2011-01-19  Eric Blake  <eblake@redhat.com>
21558
21559         c-stack: assume stack overflow if SA_SIGINFO unsupported
21560         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21561         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21562         sigaction will work.
21563         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21564         behavior match Linux.
21565         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21566
21567         stdbool-tests: accomodate Haiku
21568         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21569
21570         binary-io: fix O_TEXT on Haiku
21571         * modules/binary-io (Depends-on): Add fcntl-h.
21572         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21573         than blindly undefining O_TEXT.
21574         Reported by Scott McCreary.
21575
21576 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21577
21578         include_next: do not check for standard headers like stddef.h
21579
21580         I found this problem when modifying Emacs to use gnulib.
21581         I noticed that it added HAVE_STDDEF_H to config.h, even though
21582         gnulib always assumes <stddef.h> exists as per README and this
21583         symbol is unnecessary.
21584         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21585         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21586         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21587         faster for headers like stddef.h that are known to exist.
21588         (gl_CHECK_NEXT_HEADERS): Use it.
21589         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21590         rather than gl_CHECK_NEXT_HEADERS.
21591         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21592         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21593
21594 2011-01-18  Eric Blake  <eblake@redhat.com>
21595
21596         ansi-c++-opt: skip C++ dependency style if C++ is unused
21597         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21598         tests when we know C++ compilation is not desired.
21599         Reported by Scott McCreary.
21600
21601 2011-01-18  Bruno Haible  <bruno@clisp.org>
21602
21603         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21604         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21605         (main): Perform test also when getrlimit and setrlimit don't exist or
21606         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21607         limiting the address space size using setrlimit, compare the address
21608         space size before and after the the test.
21609         * tests/test-dprintf-posix2.c: Likewise.
21610         * tests/test-fprintf-posix3.sh: Update skip messages.
21611         * tests/test-dprintf-posix2.sh: Likewise.
21612         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21613         * modules/dprintf-posix-tests (Depends-on): Likewise.
21614         Reported by Bruce Korb <bkorb@gnu.org> and
21615         Gary V. Vaughan <gary@gnu.org>.
21616
21617 2011-01-18  Bruno Haible  <bruno@clisp.org>
21618
21619         get-rusage-as: Improvement for Cygwin.
21620         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21621         areas that are merely reserved.
21622
21623 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21624
21625         strftime: remove dependencies on multibyte modules
21626
21627         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21628         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21629         only if __osf__ is defined, and I suspect OSF doesn't need these
21630         other modules.  If my guess is wrong, we'll need to come up with a
21631         variant of strftime that doesn't need the multibyte modules.
21632
21633         I discovered this problem when attempting modify Emacs to use the
21634         strftime module.  With the previous gnulib, this caused Emacs to
21635         need 31 new files, ranging from lib/config.charset to
21636         m4/wint_t.m4.  This was overkill and I expect would be offputting
21637         to the Emacs maintainers.  After this change, only 6 new files are
21638         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21639         stdbool.m4, and tm_gmtoff.m4.
21640
21641         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21642         Suggested by Bruno Haible in
21643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21644         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21645         and do not check for wchar.h.
21646         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21647         (Depends-on): Remove mbrlen, mbsinit, wchar.
21648
21649 2011-01-18  Bruno Haible  <bruno@clisp.org>
21650
21651         Tests for module 'get-rusage-as'.
21652         * modules/get-rusage-as-tests: New file.
21653         * tests/test-get-rusage-as.c: New file.
21654
21655         New module 'get-rusage-as'.
21656         * modules/get-rusage-as: New file.
21657         * lib/resource-ext.h: New file.
21658         * lib/get-rusage-as.c: New file.
21659
21660 2011-01-17  Eric Blake  <eblake@redhat.com>
21661
21662         sigaction: relax license from LGPLv3+ to LGPLv2+
21663         * modules/sigaction (License): Relax to LGPLv2+.
21664
21665 2011-01-14  Bruno Haible  <bruno@clisp.org>
21666
21667         filemode: Make function declarations usable in C++ mode.
21668         * lib/filemode.h: Enclose function declarations in extern "C" block.
21669         Reported by John W. Eaton <jwe@gnu.org>.
21670
21671 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21672
21673         save-cwd: no longer include "xgetcwd.h"
21674         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21675         This avoids a compilation failure in projects that use save-cwd
21676         without also using the xgetcwd module.
21677
21678 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21679
21680         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21681         This is so that a program like Emacs, which needs only dtoastr,
21682         does not have to bother with distributing and compiling ftoastr
21683         and ldtoastr.
21684         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21685         * modules/dtoastr, modules/ldtoastr: New files.
21686         * modules/ftoastr: Now works just for 'float'.
21687         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21688         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21689         dtoastr.c, ldtoastr.c.
21690
21691 2011-01-11  Jim Meyering  <meyering@redhat.com>
21692
21693         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21694         There is no need to work around the lack of the fchdir function,
21695         since gnulib can now provide a replacement when required.
21696         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21697         * modules/save-cwd (Depends-on): Add fchdir.
21698
21699 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21700
21701         openat, save-cwd: avoid xmalloc
21702
21703         This removes a direct (but undocumented) dependency of openat on
21704         xalloc, along with an indirect dependency via save-cwd.  It also
21705         removes a dependency of save-cwd on xgetcwd, and thereby
21706         indirectly on xalloc.  This change causes the openat substitute
21707         to fall back on save_cwd when memory is tight, and for save_cwd to
21708         fail instead of dying when memory is tight, but that's good enough.
21709         Problem and initial idea for fix reported by Bastien Roucaries in
21710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21711
21712         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21713         xalloc.h (for xmalloc).
21714         (openat_proc_name): Use malloc, not xmalloc.
21715         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21716         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21717
21718         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21719         This avoids heap allocation for file names whose lengths are in
21720         the range 512..1023, with the upper bound increasing to at most
21721         4031 depending on the platform's PATH_MAX.  (We do not want
21722         pathmax.h here as it might supply a non-constant PATH_MAX.)
21723         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21724         Perhaps they should be moved to malloca.h?
21725         (OPENAT_BUFFER_SIZE): Use them.
21726
21727 2011-01-10  Bruno Haible  <bruno@clisp.org>
21728
21729         doc: Update users.txt.
21730         * users.txt: Add recutils.
21731
21732 2011-01-09  Karl Berry  <karl@gnu.org>
21733
21734         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21735
21736         * doc/configmake.texi: New file.
21737         * doc/gnulib.texi: Include it.
21738         * modules/configmake: Move documentation from here.
21739
21740 2011-01-09  Bruno Haible  <bruno@clisp.org>
21741
21742         Update to Unicode 6.0.0.
21743         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21744         (get_lbp): Update for Unicode 6.0.0.
21745         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21746         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21747         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21748         U+11001, U+11038..U+11046. Remove U+06DE.
21749         (uc_width): Fix bounds of planes.
21750         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21751         lib/uniwidth/width.c.
21752         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21753         trailing whitespace removed.
21754         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21755         without comments, but with the original copyright notice.
21756         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21757         * lib/unicase/ignorable.h: Likewise.
21758         * lib/unicase/tocasefold.h: Likewise.
21759         * lib/unicase/tolower.h: Likewise.
21760         * lib/unicase/totitle.h: Likewise.
21761         * lib/unicase/toupper.h: Likewise.
21762         * lib/unictype/bidi_of.h: Likewise.
21763         * lib/unictype/blocks.h: Likewise.
21764         * lib/unictype/categ_C.h: Likewise.
21765         * lib/unictype/categ_Cn.h: Likewise.
21766         * lib/unictype/categ_L.h: Likewise.
21767         * lib/unictype/categ_Ll.h: Likewise.
21768         * lib/unictype/categ_Lm.h: Likewise.
21769         * lib/unictype/categ_Lo.h: Likewise.
21770         * lib/unictype/categ_Lu.h: Likewise.
21771         * lib/unictype/categ_M.h: Likewise.
21772         * lib/unictype/categ_Mc.h: Likewise.
21773         * lib/unictype/categ_Me.h: Likewise.
21774         * lib/unictype/categ_Mn.h: Likewise.
21775         * lib/unictype/categ_N.h: Likewise.
21776         * lib/unictype/categ_Nd.h: Likewise.
21777         * lib/unictype/categ_No.h: Likewise.
21778         * lib/unictype/categ_P.h: Likewise.
21779         * lib/unictype/categ_Po.h: Likewise.
21780         * lib/unictype/categ_S.h: Likewise.
21781         * lib/unictype/categ_Sc.h: Likewise.
21782         * lib/unictype/categ_Sk.h: Likewise.
21783         * lib/unictype/categ_Sm.h: Likewise.
21784         * lib/unictype/categ_So.h: Likewise.
21785         * lib/unictype/categ_of.h: Likewise.
21786         * lib/unictype/combining.h: Likewise.
21787         * lib/unictype/ctype_alnum.h: Likewise.
21788         * lib/unictype/ctype_alpha.h: Likewise.
21789         * lib/unictype/ctype_graph.h: Likewise.
21790         * lib/unictype/ctype_lower.h: Likewise.
21791         * lib/unictype/ctype_print.h: Likewise.
21792         * lib/unictype/ctype_punct.h: Likewise.
21793         * lib/unictype/ctype_upper.h: Likewise.
21794         * lib/unictype/decdigit.h: Likewise.
21795         * lib/unictype/digit.h: Likewise.
21796         * lib/unictype/numeric.h: Likewise.
21797         * lib/unictype/pr_alphabetic.h: Likewise.
21798         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21799         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21800         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21801         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21802         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21803         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21804         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21805         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21806         * lib/unictype/pr_case_ignorable.h: Likewise.
21807         * lib/unictype/pr_cased.h: Likewise.
21808         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21809         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21810         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21811         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21812         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21813         * lib/unictype/pr_combining.h: Likewise.
21814         * lib/unictype/pr_composite.h: Likewise.
21815         * lib/unictype/pr_currency_symbol.h: Likewise.
21816         * lib/unictype/pr_decimal_digit.h: Likewise.
21817         * lib/unictype/pr_deprecated.h: Likewise.
21818         * lib/unictype/pr_format_control.h: Likewise.
21819         * lib/unictype/pr_grapheme_base.h: Likewise.
21820         * lib/unictype/pr_grapheme_extend.h: Likewise.
21821         * lib/unictype/pr_grapheme_link.h: Likewise.
21822         * lib/unictype/pr_id_continue.h: Likewise.
21823         * lib/unictype/pr_id_start.h: Likewise.
21824         * lib/unictype/pr_ideographic.h: Likewise.
21825         * lib/unictype/pr_lowercase.h: Likewise.
21826         * lib/unictype/pr_math.h: Likewise.
21827         * lib/unictype/pr_numeric.h: Likewise.
21828         * lib/unictype/pr_other_alphabetic.h: Likewise.
21829         * lib/unictype/pr_other_id_continue.h: Likewise.
21830         * lib/unictype/pr_other_math.h: Likewise.
21831         * lib/unictype/pr_punctuation.h: Likewise.
21832         * lib/unictype/pr_sentence_terminal.h: Likewise.
21833         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21834         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21835         * lib/unictype/pr_unified_ideograph.h: Likewise.
21836         * lib/unictype/pr_uppercase.h: Likewise.
21837         * lib/unictype/pr_xid_continue.h: Likewise.
21838         * lib/unictype/pr_xid_start.h: Likewise.
21839         * lib/unictype/scripts.h: Likewise.
21840         * lib/unictype/scripts_byname.gperf: Likewise.
21841         * lib/unictype/sy_java_ident.h: Likewise.
21842         * lib/unigbrk/gbrkprop.h: Likewise.
21843         * lib/unilbrk/lbrkprop1.h: Likewise.
21844         * lib/unilbrk/lbrkprop2.h: Likewise.
21845         * lib/uninorm/decomposition-table2.h: Likewise.
21846         * lib/uniwbrk/wbrkprop.h: Likewise.
21847         * tests/unicase/test-cased.c: Likewise.
21848         * tests/unicase/test-ignorable.c: Likewise.
21849         * tests/unicase/test-uc_tolower.c: Likewise.
21850         * tests/unicase/test-uc_totitle.c: Likewise.
21851         * tests/unicase/test-uc_toupper.c: Likewise.
21852         * tests/unictype/test-categ_C.c: Likewise.
21853         * tests/unictype/test-categ_Cn.c: Likewise.
21854         * tests/unictype/test-categ_L.c: Likewise.
21855         * tests/unictype/test-categ_Ll.c: Likewise.
21856         * tests/unictype/test-categ_Lm.c: Likewise.
21857         * tests/unictype/test-categ_Lo.c: Likewise.
21858         * tests/unictype/test-categ_Lu.c: Likewise.
21859         * tests/unictype/test-categ_M.c: Likewise.
21860         * tests/unictype/test-categ_Mc.c: Likewise.
21861         * tests/unictype/test-categ_Me.c: Likewise.
21862         * tests/unictype/test-categ_Mn.c: Likewise.
21863         * tests/unictype/test-categ_N.c: Likewise.
21864         * tests/unictype/test-categ_Nd.c: Likewise.
21865         * tests/unictype/test-categ_No.c: Likewise.
21866         * tests/unictype/test-categ_P.c: Likewise.
21867         * tests/unictype/test-categ_Po.c: Likewise.
21868         * tests/unictype/test-categ_S.c: Likewise.
21869         * tests/unictype/test-categ_Sc.c: Likewise.
21870         * tests/unictype/test-categ_Sk.c: Likewise.
21871         * tests/unictype/test-categ_Sm.c: Likewise.
21872         * tests/unictype/test-categ_So.c: Likewise.
21873         * tests/unictype/test-ctype_alnum.c: Likewise.
21874         * tests/unictype/test-ctype_alpha.c: Likewise.
21875         * tests/unictype/test-ctype_graph.c: Likewise.
21876         * tests/unictype/test-ctype_lower.c: Likewise.
21877         * tests/unictype/test-ctype_print.c: Likewise.
21878         * tests/unictype/test-ctype_punct.c: Likewise.
21879         * tests/unictype/test-ctype_upper.c: Likewise.
21880         * tests/unictype/test-decdigit.h: Likewise.
21881         * tests/unictype/test-digit.h: Likewise.
21882         * tests/unictype/test-numeric.h: Likewise.
21883         * tests/unictype/test-pr_alphabetic.c: Likewise.
21884         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21885         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21886         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21887         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21888         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21889         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21890         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21891         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21892         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21893         * tests/unictype/test-pr_cased.c: Likewise.
21894         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21895         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21896         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21897         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21898         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21899         * tests/unictype/test-pr_combining.c: Likewise.
21900         * tests/unictype/test-pr_composite.c: Likewise.
21901         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21902         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21903         * tests/unictype/test-pr_deprecated.c: Likewise.
21904         * tests/unictype/test-pr_format_control.c: Likewise.
21905         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21906         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21907         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21908         * tests/unictype/test-pr_id_continue.c: Likewise.
21909         * tests/unictype/test-pr_id_start.c: Likewise.
21910         * tests/unictype/test-pr_ideographic.c: Likewise.
21911         * tests/unictype/test-pr_lowercase.c: Likewise.
21912         * tests/unictype/test-pr_math.c: Likewise.
21913         * tests/unictype/test-pr_numeric.c: Likewise.
21914         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21915         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21916         * tests/unictype/test-pr_other_math.c: Likewise.
21917         * tests/unictype/test-pr_punctuation.c: Likewise.
21918         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21919         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21920         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21921         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21922         * tests/unictype/test-pr_uppercase.c: Likewise.
21923         * tests/unictype/test-pr_xid_continue.c: Likewise.
21924         * tests/unictype/test-pr_xid_start.c: Likewise.
21925         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21926         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21927         changes.
21928         * lib/unictype/categ_Cc.h: Likewise.
21929         * lib/unictype/categ_Cf.h: Likewise.
21930         * lib/unictype/categ_Co.h: Likewise.
21931         * lib/unictype/categ_Cs.h: Likewise.
21932         * lib/unictype/categ_Lt.h: Likewise.
21933         * lib/unictype/categ_Nl.h: Likewise.
21934         * lib/unictype/categ_Pc.h: Likewise.
21935         * lib/unictype/categ_Pd.h: Likewise.
21936         * lib/unictype/categ_Pe.h: Likewise.
21937         * lib/unictype/categ_Pf.h: Likewise.
21938         * lib/unictype/categ_Pi.h: Likewise.
21939         * lib/unictype/categ_Ps.h: Likewise.
21940         * lib/unictype/categ_Z.h: Likewise.
21941         * lib/unictype/categ_Zl.h: Likewise.
21942         * lib/unictype/categ_Zp.h: Likewise.
21943         * lib/unictype/categ_Zs.h: Likewise.
21944         * lib/unictype/ctype_blank.h: Likewise.
21945         * lib/unictype/ctype_cntrl.h: Likewise.
21946         * lib/unictype/ctype_digit.h: Likewise.
21947         * lib/unictype/ctype_space.h: Likewise.
21948         * lib/unictype/ctype_xdigit.h: Likewise.
21949         * lib/unictype/mirror.h: Likewise.
21950         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21951         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21952         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21953         * lib/unictype/pr_bidi_control.h: Likewise.
21954         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21955         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21956         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21957         * lib/unictype/pr_bidi_pdf.h: Likewise.
21958         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21959         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21960         * lib/unictype/pr_dash.h: Likewise.
21961         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21962         * lib/unictype/pr_diacritic.h: Likewise.
21963         * lib/unictype/pr_extender.h: Likewise.
21964         * lib/unictype/pr_hex_digit.h: Likewise.
21965         * lib/unictype/pr_hyphen.h: Likewise.
21966         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21967         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21968         * lib/unictype/pr_ignorable_control.h: Likewise.
21969         * lib/unictype/pr_iso_control.h: Likewise.
21970         * lib/unictype/pr_join_control.h: Likewise.
21971         * lib/unictype/pr_left_of_pair.h: Likewise.
21972         * lib/unictype/pr_line_separator.h: Likewise.
21973         * lib/unictype/pr_logical_order_exception.h: Likewise.
21974         * lib/unictype/pr_non_break.h: Likewise.
21975         * lib/unictype/pr_not_a_character.h: Likewise.
21976         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21977         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21978         * lib/unictype/pr_other_id_start.h: Likewise.
21979         * lib/unictype/pr_other_lowercase.h: Likewise.
21980         * lib/unictype/pr_other_uppercase.h: Likewise.
21981         * lib/unictype/pr_paired_punctuation.h: Likewise.
21982         * lib/unictype/pr_paragraph_separator.h: Likewise.
21983         * lib/unictype/pr_pattern_syntax.h: Likewise.
21984         * lib/unictype/pr_pattern_white_space.h: Likewise.
21985         * lib/unictype/pr_private_use.h: Likewise.
21986         * lib/unictype/pr_quotation_mark.h: Likewise.
21987         * lib/unictype/pr_radical.h: Likewise.
21988         * lib/unictype/pr_soft_dotted.h: Likewise.
21989         * lib/unictype/pr_space.h: Likewise.
21990         * lib/unictype/pr_titlecase.h: Likewise.
21991         * lib/unictype/pr_variation_selector.h: Likewise.
21992         * lib/unictype/pr_white_space.h: Likewise.
21993         * lib/unictype/pr_zero_width.h: Likewise.
21994         * lib/unictype/sy_c_ident.h: Likewise.
21995         * lib/unictype/sy_c_whitespace.h: Likewise.
21996         * lib/unictype/sy_java_whitespace.h: Likewise.
21997         * lib/uninorm/composition-table.gperf: Likewise.
21998         * lib/uninorm/decomposition-table1.h: Likewise.
21999         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22000         LB8.
22001         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22002         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22003         * modules/unictype/*: Bump version number of expected libunistring
22004         version.
22005
22006 2011-01-09  Bruno Haible  <bruno@clisp.org>
22007
22008         Update to Unicode 5.2.0.
22009         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22010         trailing whitespace removed.
22011
22012 2011-01-09  Bruno Haible  <bruno@clisp.org>
22013
22014         New Unicode character properties, from Unicode 5.2.0.
22015         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22016         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22017         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22018         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22019         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22020         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22021         uc_is_property_cased, uc_is_property_case_ignorable,
22022         uc_is_property_changes_when_lowercased,
22023         uc_is_property_changes_when_uppercased,
22024         uc_is_property_changes_when_titlecased,
22025         uc_is_property_changes_when_casefolded,
22026         uc_is_property_changes_when_casemapped): New declarations.
22027         * lib/unictype/pr_byname.gperf: Add the new properties.
22028         * modules/unictype/property-byname (Depends-on): Depend on the new
22029         properties modules.
22030         * modules/unictype/property-all (Depends-on): Likewise.
22031         * MODULES.html.sh (Unicode string functions): Add
22032         unictype/property-case-ignorable, unictype/property-cased,
22033         unictype/property-changes-when-casefolded,
22034         unictype/property-changes-when-casemapped,
22035         unictype/property-changes-when-lowercased,
22036         unictype/property-changes-when-titlecased,
22037         unictype/property-changes-when-uppercased.
22038
22039         New module 'unictype/property-changes-when-casemapped'.
22040         * modules/unictype/property-changes-when-casemapped: New file.
22041         * lib/unictype/pr_changes_when_casemapped.c: New file.
22042         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22043         generated by gen-uni-tables.
22044         * modules/unictype/property-changes-when-casemapped-tests: New file.
22045         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22046         automatically generated by gen-uni-tables.
22047
22048         New module 'unictype/property-changes-when-casefolded'.
22049         * modules/unictype/property-changes-when-casefolded: New file.
22050         * lib/unictype/pr_changes_when_casefolded.c: New file.
22051         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22052         generated by gen-uni-tables.
22053         * modules/unictype/property-changes-when-casefolded-tests: New file.
22054         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22055         automatically generated by gen-uni-tables.
22056
22057         New module 'unictype/property-changes-when-titlecased'.
22058         * modules/unictype/property-changes-when-titlecased: New file.
22059         * lib/unictype/pr_changes_when_titlecased.c: New file.
22060         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22061         generated by gen-uni-tables.
22062         * modules/unictype/property-changes-when-titlecased-tests: New file.
22063         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22064         automatically generated by gen-uni-tables.
22065
22066         New module 'unictype/property-changes-when-uppercased'.
22067         * modules/unictype/property-changes-when-uppercased: New file.
22068         * lib/unictype/pr_changes_when_uppercased.c: New file.
22069         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22070         generated by gen-uni-tables.
22071         * modules/unictype/property-changes-when-uppercased-tests: New file.
22072         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22073         automatically generated by gen-uni-tables.
22074
22075         New module 'unictype/property-changes-when-lowercased'.
22076         * modules/unictype/property-changes-when-lowercased: New file.
22077         * lib/unictype/pr_changes_when_lowercased.c: New file.
22078         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22079         generated by gen-uni-tables.
22080         * modules/unictype/property-changes-when-lowercased-tests: New file.
22081         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22082         automatically generated by gen-uni-tables.
22083
22084         New module 'unictype/property-case-ignorable'.
22085         * modules/unictype/property-case-ignorable: New file.
22086         * lib/unictype/pr_case_ignorable.c: New file.
22087         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22088         by gen-uni-tables.
22089         * modules/unictype/property-case-ignorable-tests: New file.
22090         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22091         generated by gen-uni-tables.
22092
22093         New module 'unictype/property-cased'.
22094         * modules/unictype/property-cased: New file.
22095         * lib/unictype/pr_cased.c: New file.
22096         * lib/unictype/pr_cased.h: New file, automatically generated by
22097         gen-uni-tables.
22098         * modules/unictype/property-cased-tests: New file.
22099         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22100         gen-uni-tables.
22101
22102 2011-01-09  Bruno Haible  <bruno@clisp.org>
22103
22104         Update to Unicode 5.2.0.
22105         * lib/gen-uni-tables.c (output_predicate, output_category,
22106         output_combclass, output_bidi_category, output_decimal_digit_test,
22107         output_decimal_digit, output_digit_test, output_digit,
22108         output_numeric_test, output_numeric, output_mirror, output_scripts,
22109         output_scripts_byname, output_blocks, output_ident_category): Fix
22110         comment header.
22111         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22112         get_wbp.
22113         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22114         items.
22115         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22116         Changes_When_Lowercased, Changes_When_Uppercased,
22117         Changes_When_Titlecased, Changes_When_Casefolded,
22118         Changes_When_Casemapped.
22119         (is_property_alphabetic, is_property_default_ignorable_code_point):
22120         Update for Unicode 5.2.0.
22121         (is_property_cased, is_property_case_ignorable,
22122         is_property_changes_when_lowercased,
22123         is_property_changes_when_uppercased,
22124         is_property_changes_when_titlecased,
22125         is_property_changes_when_casefolded,
22126         is_property_changes_when_casemapped): New functions.
22127         (output_properties): Output also the properties cased, case_ignorable,
22128         changes_when_lowercased, changes_when_uppercased,
22129         changes_when_titlecased, changes_when_casefolded,
22130         changes_when_casemapped.
22131         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22132         Unicode TR#11 revision 17 -> 19.
22133         (LBP_CP): New enumeration value.
22134         (LBP_*): Adjust values accordingly.
22135         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22136         TR#14 revision 22 -> 24.
22137         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22138         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22139         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22140         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22141         is_WBP_MIDLETTER.
22142         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22143         the code1 and code2 of each composition rule.
22144         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22145         * lib/unicase/ignorable.h: Likewise.
22146         * lib/unicase/tocasefold.h: Likewise.
22147         * lib/unicase/tolower.h: Likewise.
22148         * lib/unicase/totitle.h: Likewise.
22149         * lib/unicase/toupper.h: Likewise.
22150         * lib/unictype/bidi_of.h: Likewise.
22151         * lib/unictype/blocks.h: Likewise.
22152         * lib/unictype/categ_C.h: Likewise.
22153         * lib/unictype/categ_Cf.h: Likewise.
22154         * lib/unictype/categ_Cn.h: Likewise.
22155         * lib/unictype/categ_L.h: Likewise.
22156         * lib/unictype/categ_Ll.h: Likewise.
22157         * lib/unictype/categ_Lm.h: Likewise.
22158         * lib/unictype/categ_Lo.h: Likewise.
22159         * lib/unictype/categ_Lu.h: Likewise.
22160         * lib/unictype/categ_M.h: Likewise.
22161         * lib/unictype/categ_Mc.h: Likewise.
22162         * lib/unictype/categ_Mn.h: Likewise.
22163         * lib/unictype/categ_N.h: Likewise.
22164         * lib/unictype/categ_Nd.h: Likewise.
22165         * lib/unictype/categ_Nl.h: Likewise.
22166         * lib/unictype/categ_No.h: Likewise.
22167         * lib/unictype/categ_P.h: Likewise.
22168         * lib/unictype/categ_Pd.h: Likewise.
22169         * lib/unictype/categ_Po.h: Likewise.
22170         * lib/unictype/categ_S.h: Likewise.
22171         * lib/unictype/categ_Sc.h: Likewise.
22172         * lib/unictype/categ_So.h: Likewise.
22173         * lib/unictype/categ_of.h: Likewise.
22174         * lib/unictype/combining.h: Likewise.
22175         * lib/unictype/ctype_alnum.h: Likewise.
22176         * lib/unictype/ctype_alpha.h: Likewise.
22177         * lib/unictype/ctype_graph.h: Likewise.
22178         * lib/unictype/ctype_lower.h: Likewise.
22179         * lib/unictype/ctype_print.h: Likewise.
22180         * lib/unictype/ctype_punct.h: Likewise.
22181         * lib/unictype/ctype_upper.h: Likewise.
22182         * lib/unictype/decdigit.h: Likewise.
22183         * lib/unictype/digit.h: Likewise.
22184         * lib/unictype/numeric.h: Likewise.
22185         * lib/unictype/pr_alphabetic.h: Likewise.
22186         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22187         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22188         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22189         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22190         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22191         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22192         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22193         * lib/unictype/pr_combining.h: Likewise.
22194         * lib/unictype/pr_composite.h: Likewise.
22195         * lib/unictype/pr_currency_symbol.h: Likewise.
22196         * lib/unictype/pr_dash.h: Likewise.
22197         * lib/unictype/pr_decimal_digit.h: Likewise.
22198         * lib/unictype/pr_deprecated.h: Likewise.
22199         * lib/unictype/pr_diacritic.h: Likewise.
22200         * lib/unictype/pr_extender.h: Likewise.
22201         * lib/unictype/pr_grapheme_base.h: Likewise.
22202         * lib/unictype/pr_grapheme_extend.h: Likewise.
22203         * lib/unictype/pr_grapheme_link.h: Likewise.
22204         * lib/unictype/pr_id_continue.h: Likewise.
22205         * lib/unictype/pr_id_start.h: Likewise.
22206         * lib/unictype/pr_ideographic.h: Likewise.
22207         * lib/unictype/pr_ignorable_control.h: Likewise.
22208         * lib/unictype/pr_logical_order_exception.h: Likewise.
22209         * lib/unictype/pr_lowercase.h: Likewise.
22210         * lib/unictype/pr_numeric.h: Likewise.
22211         * lib/unictype/pr_other_alphabetic.h: Likewise.
22212         * lib/unictype/pr_punctuation.h: Likewise.
22213         * lib/unictype/pr_sentence_terminal.h: Likewise.
22214         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22215         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22216         * lib/unictype/pr_unified_ideograph.h: Likewise.
22217         * lib/unictype/pr_uppercase.h: Likewise.
22218         * lib/unictype/pr_xid_continue.h: Likewise.
22219         * lib/unictype/pr_xid_start.h: Likewise.
22220         * lib/unictype/pr_zero_width.h: Likewise.
22221         * lib/unictype/scripts.h: Likewise.
22222         * lib/unictype/scripts_byname.gperf: Likewise.
22223         * lib/unictype/sy_java_ident.h: Likewise.
22224         * lib/unigbrk/gbrkprop.h: Likewise.
22225         * lib/unilbrk/lbrkprop1.h: Likewise.
22226         * lib/unilbrk/lbrkprop2.h: Likewise.
22227         * lib/unilbrk/lbrktables.h: Likewise.
22228         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22229         LBP_CP. Implement rule LB30.
22230         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22231         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22232         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22233         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22234         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22235         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22236         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22237         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22238         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22239         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22240         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22241         bits instead of 16 bits in the code1 and code2 of each composition
22242         rule.
22243         (uc_composition): Update for Unicode 5.2.0.
22244         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22245         * lib/uninorm/decomposition-table2.h: Likewise.
22246         * lib/uniwbrk/wbrkprop.h: Likewise.
22247         * tests/unicase/test-cased.c: Likewise.
22248         * tests/unicase/test-ignorable.c: Likewise.
22249         * tests/unicase/test-uc_tolower.c: Likewise.
22250         * tests/unicase/test-uc_totitle.c: Likewise.
22251         * tests/unicase/test-uc_toupper.c: Likewise.
22252         * tests/unictype/test-categ_C.c: Likewise.
22253         * tests/unictype/test-categ_Cf.c: Likewise.
22254         * tests/unictype/test-categ_Cn.c: Likewise.
22255         * tests/unictype/test-categ_L.c: Likewise.
22256         * tests/unictype/test-categ_Ll.c: Likewise.
22257         * tests/unictype/test-categ_Lm.c: Likewise.
22258         * tests/unictype/test-categ_Lo.c: Likewise.
22259         * tests/unictype/test-categ_Lu.c: Likewise.
22260         * tests/unictype/test-categ_M.c: Likewise.
22261         * tests/unictype/test-categ_Mc.c: Likewise.
22262         * tests/unictype/test-categ_Mn.c: Likewise.
22263         * tests/unictype/test-categ_N.c: Likewise.
22264         * tests/unictype/test-categ_Nd.c: Likewise.
22265         * tests/unictype/test-categ_Nl.c: Likewise.
22266         * tests/unictype/test-categ_No.c: Likewise.
22267         * tests/unictype/test-categ_P.c: Likewise.
22268         * tests/unictype/test-categ_Pd.c: Likewise.
22269         * tests/unictype/test-categ_Po.c: Likewise.
22270         * tests/unictype/test-categ_S.c: Likewise.
22271         * tests/unictype/test-categ_Sc.c: Likewise.
22272         * tests/unictype/test-categ_So.c: Likewise.
22273         * tests/unictype/test-ctype_alnum.c: Likewise.
22274         * tests/unictype/test-ctype_alpha.c: Likewise.
22275         * tests/unictype/test-ctype_graph.c: Likewise.
22276         * tests/unictype/test-ctype_lower.c: Likewise.
22277         * tests/unictype/test-ctype_print.c: Likewise.
22278         * tests/unictype/test-ctype_punct.c: Likewise.
22279         * tests/unictype/test-ctype_upper.c: Likewise.
22280         * tests/unictype/test-decdigit.h: Likewise.
22281         * tests/unictype/test-digit.h: Likewise.
22282         * tests/unictype/test-numeric.h: Likewise.
22283         * tests/unictype/test-pr_alphabetic.c: Likewise.
22284         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22285         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22286         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22287         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22288         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22289         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22290         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22291         * tests/unictype/test-pr_combining.c: Likewise.
22292         * tests/unictype/test-pr_composite.c: Likewise.
22293         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22294         * tests/unictype/test-pr_dash.c: Likewise.
22295         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22296         * tests/unictype/test-pr_deprecated.c: Likewise.
22297         * tests/unictype/test-pr_diacritic.c: Likewise.
22298         * tests/unictype/test-pr_extender.c: Likewise.
22299         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22300         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22301         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22302         * tests/unictype/test-pr_id_continue.c: Likewise.
22303         * tests/unictype/test-pr_id_start.c: Likewise.
22304         * tests/unictype/test-pr_ideographic.c: Likewise.
22305         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22306         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22307         * tests/unictype/test-pr_lowercase.c: Likewise.
22308         * tests/unictype/test-pr_numeric.c: Likewise.
22309         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22310         * tests/unictype/test-pr_punctuation.c: Likewise.
22311         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22312         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22313         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22314         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22315         * tests/unictype/test-pr_uppercase.c: Likewise.
22316         * tests/unictype/test-pr_xid_continue.c: Likewise.
22317         * tests/unictype/test-pr_xid_start.c: Likewise.
22318         * tests/unictype/test-pr_zero_width.c: Likewise.
22319         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22320         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22321         changed behaviour: line breaking is now disallowed between a letter
22322         or '=' and '('.
22323         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22324         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22325         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22326         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22327         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22328         lib/uniwidth/width.c.
22329         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22330         without comments, but with the original copyright notice.
22331         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22332         changes.
22333         * lib/unictype/categ_Cc.h: Likewise.
22334         * lib/unictype/categ_Co.h: Likewise.
22335         * lib/unictype/categ_Cs.h: Likewise.
22336         * lib/unictype/categ_Lt.h: Likewise.
22337         * lib/unictype/categ_Me.h: Likewise.
22338         * lib/unictype/categ_Pc.h: Likewise.
22339         * lib/unictype/categ_Pe.h: Likewise.
22340         * lib/unictype/categ_Pf.h: Likewise.
22341         * lib/unictype/categ_Pi.h: Likewise.
22342         * lib/unictype/categ_Ps.h: Likewise.
22343         * lib/unictype/categ_Sk.h: Likewise.
22344         * lib/unictype/categ_Sm.h: Likewise.
22345         * lib/unictype/categ_Z.h: Likewise.
22346         * lib/unictype/categ_Zl.h: Likewise.
22347         * lib/unictype/categ_Zp.h: Likewise.
22348         * lib/unictype/categ_Zs.h: Likewise.
22349         * lib/unictype/ctype_blank.h: Likewise.
22350         * lib/unictype/ctype_cntrl.h: Likewise.
22351         * lib/unictype/ctype_digit.h: Likewise.
22352         * lib/unictype/ctype_space.h: Likewise.
22353         * lib/unictype/ctype_xdigit.h: Likewise.
22354         * lib/unictype/mirror.h: Likewise.
22355         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22356         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22357         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22358         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22359         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22360         * lib/unictype/pr_bidi_control.h: Likewise.
22361         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22362         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22363         * lib/unictype/pr_bidi_pdf.h: Likewise.
22364         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22365         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22366         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22367         * lib/unictype/pr_format_control.h: Likewise.
22368         * lib/unictype/pr_hex_digit.h: Likewise.
22369         * lib/unictype/pr_hyphen.h: Likewise.
22370         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22371         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22372         * lib/unictype/pr_iso_control.h: Likewise.
22373         * lib/unictype/pr_join_control.h: Likewise.
22374         * lib/unictype/pr_left_of_pair.h: Likewise.
22375         * lib/unictype/pr_line_separator.h: Likewise.
22376         * lib/unictype/pr_math.h: Likewise.
22377         * lib/unictype/pr_non_break.h: Likewise.
22378         * lib/unictype/pr_not_a_character.h: Likewise.
22379         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22380         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22381         * lib/unictype/pr_other_id_continue.h: Likewise.
22382         * lib/unictype/pr_other_id_start.h: Likewise.
22383         * lib/unictype/pr_other_lowercase.h: Likewise.
22384         * lib/unictype/pr_other_math.h: Likewise.
22385         * lib/unictype/pr_other_uppercase.h: Likewise.
22386         * lib/unictype/pr_paired_punctuation.h: Likewise.
22387         * lib/unictype/pr_paragraph_separator.h: Likewise.
22388         * lib/unictype/pr_pattern_syntax.h: Likewise.
22389         * lib/unictype/pr_pattern_white_space.h: Likewise.
22390         * lib/unictype/pr_private_use.h: Likewise.
22391         * lib/unictype/pr_quotation_mark.h: Likewise.
22392         * lib/unictype/pr_radical.h: Likewise.
22393         * lib/unictype/pr_soft_dotted.h: Likewise.
22394         * lib/unictype/pr_space.h: Likewise.
22395         * lib/unictype/pr_titlecase.h: Likewise.
22396         * lib/unictype/pr_variation_selector.h: Likewise.
22397         * lib/unictype/pr_white_space.h: Likewise.
22398         * lib/unictype/sy_c_ident.h: Likewise.
22399         * lib/unictype/sy_c_whitespace.h: Likewise.
22400         * lib/unictype/sy_java_whitespace.h: Likewise.
22401         * modules/uni*/*: Bump version number of expected libunistring version.
22402         Reported by Simon Josefsson.
22403
22404 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22405
22406         useless-if-before-free: fix typo in --help and make the internal,
22407         automatic version date update process work once again.
22408         --help output contained a NUL character instead of the
22409         backslash-zero that was intended.  Also, the "must lie within
22410         the first 8 lines" line is on line 9, and hence not getting
22411         automatically updated.
22412         * build-aux/useless-if-before-free: Fix the former by adding a
22413         backslash, and the latter by condensing the three lines of what-it-does
22414         to a single line, leaving one line of slack for the future.
22415
22416 2011-01-09  Bruno Haible  <bruno@clisp.org>
22417
22418         uniwidth/width: Fix width of U+1D173..U+1D17A.
22419         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22420         symbolic_width, output_width_property_test): New functions.
22421         (main): Invoke output_nonspacing_property, output_width_property_test.
22422         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22423         U+1D173..U+1D17A.
22424         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22425         1.
22426         * modules/uniwidth/*: Bump version number of expected libunistring
22427         version.
22428         * modules/unilbrk/*: Likewise.
22429
22430 2011-01-08  Bruno Haible  <bruno@clisp.org>
22431
22432         uninorm tests: Preserve copyright of Unicode data file.
22433         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22434         Mention modifications.
22435
22436 2011-01-08  Bruno Haible  <bruno@clisp.org>
22437
22438         gen-uni-tables: Prepare for Unicode 5.2.0.
22439         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22440         (debug_output_lbp, output_lbp): Update.
22441
22442 2011-01-08  Bruno Haible  <bruno@clisp.org>
22443
22444         unilbrk: Clarify gen-uni-tables.c code.
22445         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22446         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22447         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22448
22449 2011-01-07  Bruno Haible  <bruno@clisp.org>
22450
22451         strtod: Restore errno when successfully parsing Infinity or NaN.
22452         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22453         restore the original errno.
22454
22455 2011-01-07  Bruno Haible  <bruno@clisp.org>
22456
22457         remove test: Avoid failure on HP-UX 11.
22458         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22459
22460 2011-01-07  Bruno Haible  <bruno@clisp.org>
22461
22462         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22463         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22464         error code.
22465
22466 2011-01-07  Pádraig Brady <P@draigBrady.com>
22467
22468         ignore-value: fixup comments, and add Eric Blake
22469         as an author since he rewrote the macros.
22470         * lib/ignore-value.h (ignore_value):  State that
22471         we now support aggregates.  Also specify exactly
22472         when the GCC warn_unused_result feature was added.
22473
22474 2011-01-06  Eric Blake  <eblake@redhat.com>
22475
22476         ignore-value: support aggregate types
22477         * lib/ignore-value.h (ignore_value): Provide separate gcc
22478         definition.
22479         * modules/ignore-value-tests: New test module.
22480         * tests/test-ignore-value.c: New test.
22481
22482         maint.mk: improve sc_prohibit_strcmp regex
22483         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22484         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22485         definition of STRNEQ.
22486
22487         signal: work around Haiku issue with SIGBUS
22488         * lib/siglist.h: Add comment.
22489         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22490         strsignal's favoring of SIGSEGV.
22491         * tests/test-signal.c (main): Avoid test failure.
22492         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22493         Reported by Scott McCreary.
22494
22495         maint.mk: add pre-release check to ensure submodule commits are public
22496         * top/maint.mk (public-submodule-commit): New rule.
22497         (submodule-checks): New variable.
22498         (alpha beta stable): Depend on the variable.
22499
22500 2011-01-05  Pádraig Brady <P@draigBrady.com>
22501         and Jim Meyering  <meyering@redhat.com>
22502
22503         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22504         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22505         (ATTRIBUTE_DEPRECATED): Define.
22506         (_ignore_case): New function.
22507         (ignore_value): New macro, to replace the old function.
22508         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22509         * modules/ignore-value (Depends-on): Add stdint.
22510
22511 2011-01-04  Eric Blake  <eblake@redhat.com>
22512
22513         doc: regenerate INSTALL
22514         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22515         @firstparagraphindent support, now that autoconf dropped it.
22516         (INSTALL_PRELUDE): Reinstate old macro.
22517         * doc/install.texi: Resync from autoconf.
22518         * doc/INSTALL: Reflect recent autoconf update.
22519         * doc/INSTALL.ISO: Likewise.
22520         * doc/INSTALL.UTF-8: Likewise.
22521         Reported by Karl Berry.
22522
22523 2011-01-04  Bruce Korb  <address@hidden>
22524
22525         git-version-gen: avoid a sub-shell
22526         * build-aux/git-version-gen: Redirect stderr in `...` via
22527         "exec 2>...", rather than via an added sub-shell.
22528
22529 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22530
22531         git-version-gen: use (...) rather than sh -c '...'
22532         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22533         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22534
22535 2011-01-03  Jim Meyering  <meyering@redhat.com>
22536
22537         git-version-gen: convert leading TABs to spaces
22538         * build-aux/git-version-gen: Expand leading TABs.
22539
22540         git-version-gen: handle failed "git rev-list"
22541         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22542         from git and proceeding as if it had succeeded but printed no SHA1
22543         checksums, suppress the diagnostic and handle the failure.
22544         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22545
22546         git-version-gen: include command name in one more diagnostic
22547         * build-aux/git-version-gen: When the required .tarball-version file
22548         was missing or unreadable, you might see the diagnostic from "cat",
22549         but no trace of the name of the invoking script.  Now, you still see
22550         the diagnostic from cat, but also get one from "git-version-gen: ".
22551         Inspired by a patch from Bruce Korb.
22552
22553         update-copyright: adjust test to match changed code
22554         * tests/test-update-copyright.sh: Change test's expected output
22555         to match new actual output.
22556
22557 2011-01-02  Bruno Haible  <bruno@clisp.org>
22558
22559         getlogin_r: Avoid test failure on HP-UX 11.
22560         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22561         ERANGE when the second argument is zero.
22562         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22563         portability problem.
22564
22565 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22566
22567         * build-aux/update-copyright: doc Simon's changes
22568
22569 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22570
22571         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22572         environment variable.
22573
22574 2011-01-02  Bruno Haible  <bruno@clisp.org>
22575
22576         unigbrk: Avoid gcc warnings.
22577         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22578         unused variable.
22579         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22580         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22581         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22582         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22583         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22584         Change type of first argument to 'const char *'.
22585         (main): Remove unused variable.
22586         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22587         type of first argument to 'const char *'.
22588         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22589         Likewise.
22590         (main): Change type of variable 's'.
22591         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22592         to 'int'.
22593
22594 2011-01-02  Bruno Haible  <bruno@clisp.org>
22595
22596         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22597         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22598         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22599         bug.
22600         * lib/pwrite.c: Undo 2010-12-31 patch.
22601         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22602
22603 2011-01-02  Bruno Haible  <bruno@clisp.org>
22604
22605         pread: Fix test whether it works.
22606         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22607
22608 2011-01-02  Bruno Haible  <bruno@clisp.org>
22609
22610         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22611         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22612         ends in "6". Don't require a specific month name. Try also the locale
22613         names found on HP-UX 11 and Solaris 7.
22614
22615 2011-01-02  Bruno Haible  <bruno@clisp.org>
22616
22617         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22618         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22619         C linkage.
22620         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22621
22622 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22623
22624         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22625         for consistency, since the "cluster" term is not used elsewhere.
22626         * lib/unigbrk.in.h: Update name.
22627         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22628         * lib/unigbrk/u16-grapheme-next.c: Update name.
22629         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22630         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22631         * lib/unigbrk/u32-grapheme-next.c: Update name.
22632         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22633         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22634         * lib/unigbrk/u8-grapheme-next.c: Update name.
22635         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22636         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22637         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22638         Suggested by Bruno Haible.
22639
22640 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22641
22642         Remove module 'u8-grapheme-len' as too redundant with
22643         'u8-grapheme-next'.
22644         * modules/unigbrk/u8-grapheme-len: Delete file.
22645         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22646         * lib/unigbrk.in.h: Remove prototype for deleted function.
22647         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22648         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22649
22650         Remove module 'u16-grapheme-len' as too redundant with
22651         'u16-grapheme-next'.
22652         * modules/unigbrk/u16-grapheme-len: Delete file.
22653         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22654         * lib/unigbrk.in.h: Remove prototype for deleted function.
22655         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22656         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22657
22658         Remove module 'u32-grapheme-len' as too redundant with
22659         'u32-grapheme-next'.
22660         * modules/unigbrk/u32-grapheme-len: Delete file.
22661         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22662         * lib/unigbrk.in.h: Remove prototype for deleted function.
22663         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22664         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22665
22666         Suggested by Bruno Haible.
22667
22668 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22669
22670         * unigbrk.in.h: Fix typo: "ben" => "been".
22671         Reported by Bruno Haible.
22672
22673 2011-01-01  Jim Meyering  <meyering@redhat.com>
22674
22675         maint: update almost all copyright ranges to include 2011
22676         Run the new "make update-copyright" rule.
22677
22678 2011-01-01  Jim Meyering  <meyering@redhat.com>
22679
22680         maint: update-copyright: exempt doc/INSTALL*
22681         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22682         since they are generated.  Suggested by Bruno Haible.
22683
22684 2011-01-01  Jim Meyering  <meyering@redhat.com>
22685
22686         maint: refine the update-copyright rule
22687         * Makefile (update-copyright): Also exclude any file that includes
22688         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22689         code that merely generates the comment.
22690
22691 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22692
22693         New module 'u8-grapheme-len'.
22694         * modules/unigbrk/u8-grapheme-len: New file.
22695         * modules/unigbrk/u8-grapheme-len-tests: New file.
22696         * lib/unigbrk.in.h: Add prototype for new function.
22697         * lib/unigbrk/u8-grapheme-len.c: New file.
22698         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22699
22700         New module 'u16-grapheme-len'.
22701         * modules/unigbrk/u16-grapheme-len: New file.
22702         * modules/unigbrk/u16-grapheme-len-tests: New file.
22703         * lib/unigbrk.in.h: Add prototype for new function.
22704         * lib/unigbrk/u16-grapheme-len.c: New file.
22705         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22706
22707         New module 'u32-grapheme-len'.
22708         * modules/unigbrk/u32-grapheme-len: New file.
22709         * modules/unigbrk/u32-grapheme-len-tests: New file.
22710         * lib/unigbrk.in.h: Add prototype for new function.
22711         * lib/unigbrk/u32-grapheme-len.c: New file.
22712         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22713
22714         New module 'u8-grapheme-next'.
22715         * modules/unigbrk/u8-grapheme-next: New file.
22716         * modules/unigbrk/u8-grapheme-next-tests: New file.
22717         * lib/unigbrk.in.h: Add prototype for new function.
22718         * lib/unigbrk/u8-grapheme-next.c: New file.
22719         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22720
22721         New module 'u16-grapheme-next'.
22722         * modules/unigbrk/u16-grapheme-next: New file.
22723         * modules/unigbrk/u16-grapheme-next-tests: New file.
22724         * lib/unigbrk.in.h: Add prototype for new function.
22725         * lib/unigbrk/u16-grapheme-next.c: New file.
22726         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22727
22728         New module 'u32-grapheme-next'.
22729         * modules/unigbrk/u32-grapheme-next: New file.
22730         * modules/unigbrk/u32-grapheme-next-tests: New file.
22731         * lib/unigbrk.in.h: Add prototype for new function.
22732         * lib/unigbrk/u32-grapheme-next.c: New file.
22733         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22734
22735         New module 'u8-grapheme-prev'.
22736         * modules/unigbrk/u8-grapheme-prev: New file.
22737         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22738         * lib/unigbrk.in.h: Add prototype for new function.
22739         * lib/unigbrk/u8-grapheme-prev.c: New file.
22740         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22741
22742         New module 'u16-grapheme-prev'.
22743         * modules/unigbrk/u16-grapheme-prev: New file.
22744         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22745         * lib/unigbrk.in.h: Add prototype for new function.
22746         * lib/unigbrk/u16-grapheme-prev.c: New file.
22747         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22748
22749         New module 'u32-grapheme-prev'.
22750         * modules/unigbrk/u32-grapheme-prev: New file.
22751         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22752         * lib/unigbrk.in.h: Add prototype for new function.
22753         * lib/unigbrk/u32-grapheme-prev.c: New file.
22754         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22755
22756         New module 'u8-grapheme-breaks'.
22757         * modules/unigbrk/u8-grapheme-breaks: New file.
22758         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22759         * lib/unigbrk.in.h: Add prototype for new function.
22760         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22761         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22762
22763         New module 'u16-grapheme-breaks'.
22764         * modules/unigbrk/u16-grapheme-breaks: New file.
22765         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22766         * lib/unigbrk.in.h: Add prototype for new function.
22767         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22768         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22769
22770         New module 'u32-grapheme-breaks'.
22771         * modules/unigbrk/u32-grapheme-breaks: New file.
22772         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22773         * lib/unigbrk.in.h: Add prototype for new function.
22774         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22775         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22776
22777         New module 'ulc-grapheme-breaks'.
22778         * modules/unigbrk/ulc-grapheme-breaks: New file.
22779         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22780         * m4/locale-ar.m4: New file.
22781         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22782         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22783         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22784
22785 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22786
22787         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22788         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22789         modified how this file was generated before I initially submitted
22790         the module, but failed to regenerate it.  This meant that several
22791         of the level2 entries were wrong.
22792         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22793         Remove the division-by-2 that is folded into the table now that
22794         gbrkprop.h has been regenerated properly.  Now -1 entries are
22795         handled correctly.
22796
22797         New module 'unigbrk/uc-gbrk-prop-tests'.
22798         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22799         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22800         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22801         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22802
22803 2011-01-01  Bruno Haible  <bruno@clisp.org>
22804
22805         Avoid use of hexadecimal escapes.
22806         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22807         instead of hexadecimal escapes.
22808
22809 2011-01-01  Jim Meyering  <meyering@redhat.com>
22810
22811         maint: new rule to update copyright year ranges
22812         * Makefile (update-copyright): New rule.
22813
22814         maint: indent with TABs in Makefile
22815         * Makefile: Expand leading sequences of spaces to TABs
22816
22817         version-etc: update the copyright year it reports
22818         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22819
22820 2010-12-31  Bruno Haible  <bruno@clisp.org>
22821
22822         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22823         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22824         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22825         zero.
22826
22827 2010-12-31  Bruno Haible  <bruno@clisp.org>
22828
22829         pwrite: Work around HP-UX 11.11 bug.
22830         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22831         works and set REPLACE_PWRITE if not.
22832         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22833         function.
22834         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22835
22836 2010-12-31  Bruno Haible  <bruno@clisp.org>
22837
22838         pread: Work around HP-UX 11 bugs.
22839         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22840         and set REPLACE_PREAD if not.
22841         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22842
22843 2010-12-31  Eric Blake  <eblake@redhat.com>
22844
22845         nl_langinfo: fix YESEXPR on Irix 6.5
22846         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22847         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22848         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22849         it.
22850
22851 2010-12-31  Bruno Haible  <bruno@clisp.org>
22852
22853         iconv: Document HP-UX 11 bug.
22854         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22855
22856 2010-12-31  Bruno Haible  <bruno@clisp.org>
22857
22858         ldexpl: Fix link error on HP-UX 11.
22859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22860         LDEXPL_LIBM, using $ISNANL_LIBM.
22861
22862 2010-12-31  Eric Blake  <eblake@redhat.com>
22863
22864         ftello: avoid compilation failure with SunStudio c89
22865         * lib/ftello.c (ftello): Use lseek, not llseek.
22866
22867         tests: avoid failing coreutils tests on cygwin
22868         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22869         (create_exe_shims_): Return 0 when skipping.
22870
22871 2010-12-31  Bruno Haible  <bruno@clisp.org>
22872
22873         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22874         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22875
22876 2010-12-31  Bruno Haible  <bruno@clisp.org>
22877
22878         waitpid: Fix link error in C++ mode.
22879         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22880
22881 2010-12-31  Bruno Haible  <bruno@clisp.org>
22882
22883         isnan: Use GCC built-ins when possible.
22884         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22885         __builtin_isnan.
22886         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22887         (isnan): Define using GCC built-ins for GCC >= 4.0.
22888
22889 2010-12-31  Bruno Haible  <bruno@clisp.org>
22890
22891         isnand: Fix mistake.
22892         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22893         __builtin_isnand.
22894
22895 2010-12-31  Bruno Haible  <bruno@clisp.org>
22896
22897         open: Avoid C++ error on HP-UX 11.
22898         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22899
22900 2010-12-31  Bruno Haible  <bruno@clisp.org>
22901
22902         time_r: Add missing declarations on HP-UX 11.
22903         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22904         instead of HAVE_LOCALTIME_R.
22905         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22906         HAVE_LOCALTIME_R always.
22907         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22908         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22909         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22910         HAVE_LOCALTIME_R.
22911         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22912         * doc/posix-functions/localtime_r.texi: Likewise.
22913
22914 2010-12-29  Eric Blake  <eblake@redhat.com>
22915
22916         mountlist: tweak previous commit
22917         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22918         Reported by Paul Eggert.
22919
22920         mountlist: fix local drive detection on cygwin
22921         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22922         that works for cygwin.
22923
22924 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22925
22926         ftoastr, snprintf: ftoastr + snprintf module
22927         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22928         since the snprintf module now should be good enough here.
22929         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22930         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22931         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22932         GNULIB_SNPRINTF only for the test directory, and the latter
22933         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22934         seems to suffice by itself.
22935
22936 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22937
22938         alloca: one step towards thread-safety
22939         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22940         need for a static variable.  All callers changed.  This does not
22941         make the alloca replacement thread-safe, but it's one step.
22942
22943         tests: minor indenting change
22944         * tests/init.sh: Sync from coreutils housekeeping patch
22945         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22946         to keep lines within 80 columns.
22947
22948 2010-12-28  Jim Meyering  <meyering@redhat.com>
22949
22950         regex: don't infloop on persistent failing calloc
22951         * lib/regexec.c (build_trtable): Return failure indication upon
22952         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22953         In glibc, this was fixed for version 2.13:
22954         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22955
22956 2010-12-28  Bruno Haible  <bruno@clisp.org>
22957             Paul Eggert <eggert@cs.ucla.edu>
22958
22959         linkat: Make implementation robust against system behaviour variations.
22960         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22961         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22962         way, and to -2 if it needs a generic runtime test.
22963         * lib/linkat.c (solaris_optimized_link_immediate,
22964         solaris_optimized_link_follow): New functions.
22965         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22966         (check_same_link): Use it.
22967
22968 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22969
22970         New module 'unigbrk/base'.
22971         * modules/unigbrk/base: New file.
22972         * lib/unigbrk.in.h: New file.
22973
22974         New module 'unigbrk/uc-gbrk-prop'.
22975         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22976         * modules/unigbrk/uc-gbrk-prop: New file.
22977         * lib/unigbrk/gbrkprop.h: New file.
22978         * lib/unigbrk/uc-gbrk-prop.c: New file.
22979
22980         New module 'unigbrk/uc-is-grapheme-break'.
22981         * modules/unigbrk/uc-is-grapheme-break: New file.
22982         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22983         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22984         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22985         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22986         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22987
22988         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22989
22990 2010-12-27  Bruno Haible  <bruno@clisp.org>
22991
22992         linkat test: Avoid failure on Solaris 11 2010-11.
22993         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22994
22995 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22996
22997         utimens: work around glibc rounding bug on more platforms
22998         * lib/utimens.c (fdutimens): Work around rounding bug even if
22999         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23001
23002 2010-12-27  Bruno Haible  <bruno@clisp.org>
23003
23004         select tests: Improve comments.
23005         * tests/test-select.c (do_select): Add comments.
23006
23007 2010-12-27  Bruno Haible  <bruno@clisp.org>
23008
23009         select tests: Safer way of handling timeout.
23010         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23011         at every invocation.
23012
23013 2010-12-27  Bruno Haible  <bruno@clisp.org>
23014
23015         select tests: Use 'bool' where appropriate.
23016         * tests/test-select.c (connect_to_socket): Change argument type to
23017         'bool'.
23018
23019 2010-12-27  Bruno Haible  <bruno@clisp.org>
23020
23021         select tests: Use existing modules.
23022         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23023         (configure.ac): Don't test for unistd.h.
23024         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23025         declared in <unistd.h>.
23026
23027 2010-12-27  Bruno Haible  <bruno@clisp.org>
23028
23029         mbrtowc: Work around a Solaris 7 bug.
23030         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23031         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23032         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23033         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23034         MBRTOWC_NULL_ARG1_BUG.
23035         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23036         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23037         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23038         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23039
23040 2010-12-27  Jim Meyering  <meyering@redhat.com>
23041
23042         read-file.c: tweak syntax
23043         * lib/read-file.c (fread_file): Remove space after "*" in function
23044         definitions.
23045
23046 2010-12-27  Bruno Haible  <bruno@clisp.org>
23047
23048         times test: Avoid gcc warnings on OSF/1.
23049         * tests/test-times.c (main): Cast printf arguments from clock_t to
23050         'long int'.
23051
23052 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         utimens: work around glibc rounding bug on older Linux kernels
23055         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23056         on Linux with a glibc whose utimes might not work, then work
23057         around a longstanding glibc bug involving rounding rather than
23058         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23060
23061 2010-12-26  Bruno Haible  <bruno@clisp.org>
23062
23063         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23064         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23065         _GL_CXXALIAS_SYS.
23066         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23067
23068 2010-12-26  Bruno Haible  <bruno@clisp.org>
23069
23070         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23071         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23072         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23073         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23074         looking for the declaration.
23075         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23076         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23077         problem.
23078         * doc/posix-functions/inet_pton.texi: Likewise.
23079
23080 2010-12-26  Bruno Haible  <bruno@clisp.org>
23081
23082         arpa_inet: Use the common idioms with C++ support.
23083         * lib/arpa_inet.in.h: Include c++defs.h.
23084         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23085         support.
23086         * modules/arpa_inet (Depends-on): Add c++defs.
23087         (Makefile.am): Substitute the contents of c++defs.h.
23088         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23089         * modules/arpa_inet-c++-tests: New file.
23090         * tests/test-arpa_inet-c++.cc: New file.
23091
23092 2010-12-25  Bruno Haible  <bruno@clisp.org>
23093
23094         Fix more C++ link errors on Solaris 8.
23095         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23096         $(LIB_EACCESS).
23097         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23098         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23099         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23100         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23101         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23102
23103 2010-12-25  Bruno Haible  <bruno@clisp.org>
23104
23105         printf-posix: Fix link error when a non-GCC compiler is used.
23106         * lib/stdio.in.h (printf): When not using GCC, override printf
23107         correctly.
23108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23109
23110 2010-12-25  Bruno Haible  <bruno@clisp.org>
23111
23112         strerror_r-posix: Update doc.
23113         * doc/posix-functions/strerror_r.texi: Update doc about the return
23114         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23115
23116 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23117
23118         utimens: simplify the logic of the previous change
23119         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23120         This should not affect whether the test succeeds or fails.
23121
23122         utimens: configure better on hosts with NFS clock skew
23123         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23124         uses the clock of the local host.  It might use the clock of the
23125         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23127
23128 2010-12-25  Bruno Haible  <bruno@clisp.org>
23129
23130         ptsname test: Avoid failure on Solaris.
23131         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23132         open a pseudo-terminal; don't use BSD-style ptys.
23133         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23134
23135 2010-12-25  Bruno Haible  <bruno@clisp.org>
23136
23137         ptsname: Avoid ERANGE failure on some systems.
23138         * lib/ptsname.c (buffer): Increase size.
23139
23140 2010-12-25  Bruno Haible  <bruno@clisp.org>
23141
23142         rename, renameat: Avoid test failures at NFS mounted locations.
23143         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23144         so that subsequent mkdir calls succeed.
23145
23146 2010-12-25  Bruno Haible  <bruno@clisp.org>
23147
23148         iswblank: Fix C++ link error on Solaris 8.
23149         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23150         _GL_FUNCDECL_SYS.
23151
23152 2010-12-25  Bruno Haible  <bruno@clisp.org>
23153
23154         unistd: Fix C++ link error on Solaris 8.
23155         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23156
23157 2010-12-25  Bruno Haible  <bruno@clisp.org>
23158
23159         readlink doc: Mention an old glibc bug.
23160         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23161
23162 2010-12-25  Bruno Haible  <bruno@clisp.org>
23163
23164         fcntl-h: Fix for use of C++ on glibc systems.
23165         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23166         also on glibc systems in C++ mode.
23167         Reported by Gary V. Vaughan <gary@gnu.org>.
23168
23169 2010-12-25  Bruno Haible  <bruno@clisp.org>
23170
23171         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23172         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23173
23174 2010-12-25  Bruno Haible  <bruno@clisp.org>
23175
23176         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23177         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23178         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23179         test whether truncl works according to ISO C 99 with IEC 60559.
23180         * m4/truncl-ieee.m4: New file.
23181         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23182         m4/signbit.m4.
23183         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23184
23185 2010-12-25  Bruno Haible  <bruno@clisp.org>
23186
23187         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23188         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23189         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23190         test whether ceill works according to ISO C 99 with IEC 60559.
23191         * m4/ceill-ieee.m4: New file.
23192         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23193         m4/signbit.m4.
23194         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23195
23196 2010-12-25  Bruno Haible  <bruno@clisp.org>
23197
23198         Ensure all prerequisites of <wchar.h> are included.
23199         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23200         before <wchar.h>.
23201         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23202         gl_MBRLEN_NUL_RETVAL): Likewise.
23203         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23204         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23205         AC_FUNC_MBRTOWC): Likewise.
23206         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23207         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23208         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23209         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23210         Likewise.
23211         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23212         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23213         (gl_WCHAR_H): Improve comments.
23214         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23215
23216 2010-12-25  Bruno Haible  <bruno@clisp.org>
23217
23218         strtok_r: Fix C syntax error in autoconf macro.
23219         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23220         characters in test program.
23221
23222 2010-12-24  Bruno Haible  <bruno@clisp.org>
23223
23224         ceil, trunc, round: Fix gcc warnings.
23225         * lib/ceil.c (MIN): Undefine before redefining.
23226         * lib/trunc.c (MIN): Likewise.
23227         * lib/round.c (MIN): Likewise.
23228         Include <math.h> first.
23229
23230 2010-12-24  Bruno Haible  <bruno@clisp.org>
23231
23232         select tests: Avoid failures on OSF/1 5.1.
23233         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23234         failure of closing the last socket; it may fail with ECONNRESET.
23235
23236 2010-12-24  Eric Blake  <eblake@redhat.com>
23237
23238         stdint: avoid HP-UX 10.20 preprocessor bug
23239         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23240         than #if.
23241         * tests/test-floor2.c (main): Likewise.
23242         Reported by Peter O'Gorman.
23243
23244         pipe: make obsoletion transition easier
23245         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23246         * modules/pipe (Files): Include revived file.
23247         (Include): Drop reference, to mirror getdate's behavior.
23248
23249 2010-12-24  Bruno Haible  <bruno@clisp.org>
23250
23251         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23252         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23253         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23254         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23255
23256 2010-12-24  Bruno Haible  <bruno@clisp.org>
23257
23258         gethostname: Ensure declaration on NonStop Kernel.
23259         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23261
23262 2010-12-24  Bruno Haible  <bruno@clisp.org>
23263
23264         sys_select: Ensure all necessary types on NonStop Kernel.
23265         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23266         include <sys/time.h>.
23267         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23268         NonStop Kernel.
23269         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23270
23271 2010-12-24  Bruno Haible  <bruno@clisp.org>
23272
23273         sys_select: Remove unneeded include.
23274         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23275         have <sys/select.h>.
23276
23277 2010-12-24  Bruno Haible  <bruno@clisp.org>
23278
23279         gethostname: Provide a fallback for HOST_NAME_MAX.
23280         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23281         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23282         instead.
23283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23284
23285 2010-12-24  Bruno Haible  <bruno@clisp.org>
23286
23287         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23288         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23289         (SA_RESTART): Likewise.
23290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23291
23292 2010-12-24  Bruno Haible  <bruno@clisp.org>
23293
23294         signal: Define NSIG.
23295         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23296         * tests/test-signal.c (nsig): New variable.
23297         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23298
23299 2010-12-24  Bruno Haible  <bruno@clisp.org>
23300
23301         rename, renameat: Avoid test failures on OSF/1 5.1.
23302         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23303         alternative error codes.
23304         * tests/test-renameat.c (main): Likewise.
23305
23306 2010-12-24  Bruno Haible  <bruno@clisp.org>
23307
23308         *printf: Detect large precisions bug on Solaris 10/SPARC.
23309         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23310         by Paul Eggert.
23311         * tests/test-snprintf-posix.h (test_function): Add this test code here
23312         too.
23313         * tests/test-sprintf-posix.h (test_function): Likewise.
23314         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23315         * tests/test-vasprintf-posix.c (test_function): Likewise.
23316         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23317         around by gnulib.
23318         * doc/posix-functions/printf.texi: Likewise.
23319         * doc/posix-functions/snprintf.texi: Likewise.
23320         * doc/posix-functions/sprintf.texi: Likewise.
23321         * doc/posix-functions/vfprintf.texi: Likewise.
23322         * doc/posix-functions/vprintf.texi: Likewise.
23323         * doc/posix-functions/vsnprintf.texi: Likewise.
23324         * doc/posix-functions/vsprintf.texi: Likewise.
23325         * doc/posix-functions/dprintf.texi: Undo last commit.
23326         * doc/posix-functions/vdprintf.texi: Likewise.
23327
23328 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23329
23330         tests: port test-fdutimensat.c to Solaris 8
23331         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23332         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23333         On Solaris 8, it fails with errno == ENOSYS, because there is no
23334         futimens (so it can't use the fd), and there is no lutimens (so it
23335         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23336
23337         vsnprintf: make more consistent with snprintf; doc fixes
23338
23339         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23340         the byte count return problem was promoted from the snprintf-posix
23341         to the snprintf module.
23342         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23343         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23344         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23345         * tests/test-snprintf.c (main): Check the byte count returned.
23346         * tests/test-vsnprintf.c (main): Likewise.
23347
23348 2010-12-23  Eric Blake  <eblake@redhat.com>
23349
23350         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23351         * modules/sigpipe (License): Relax license.
23352
23353 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23354
23355         doc: document Solaris printf bug with large float precisions
23356         * doc/posix-functions/dprintf.texi (dprintf):
23357         * doc/posix-functions/fprintf.texi (fprintf):
23358         * doc/posix-functions/printf.texi (printf):
23359         * doc/posix-functions/snprintf.texi (snprintf):
23360         * doc/posix-functions/sprintf.texi (sprintf):
23361         * doc/posix-functions/vdprintf.texi (vdprintf):
23362         * doc/posix-functions/vfprintf.texi (vfprintf):
23363         * doc/posix-functions/vprintf.texi (vprintf):
23364         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23365         * doc/posix-functions/vsprintf.texi (vsprintf):
23366         Mention that these functions mishandle large floating point
23367         precisions on Solaris 10.  The same bug is also present in Solaris
23368         8, and I assume earlier.  This causes "cd gnulib-tests; make
23369         check" to fail on Solaris 8 (and I assume, later) when building
23370         the latest coreutils, in test-vasprintf-posix's call to
23371         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23372         the wide flavors (e.g., wprintf) so this patch just updates the
23373         documentation for the narrow ones.
23374
23375         test-posixtm.c: add two tests
23376         * tests/test-posixtm.c: Add two tests, to highlight the
23377         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23378         around this bug; this is merely to document it.
23379
23380 2010-12-22  Bruno Haible  <bruno@clisp.org>
23381
23382         getlogin_r: Work around portability problem on OSF/1.
23383         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23384         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23385         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23386         test for a truncated result.
23387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23388         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23389         * modules/getlogin_r (Depends-on): Add memchr.
23390         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23391
23392 2010-12-22  Bruno Haible  <bruno@clisp.org>
23393
23394         ptsname: Avoid test failure on OSF/1 5.1.
23395         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23396         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23397         (same_slave): New function.
23398         (main): Use it to compare ptsname's result with the expected file name.
23399
23400 2010-12-22  Bruno Haible  <bruno@clisp.org>
23401
23402         Port extended stdio modules to HP NonStop Kernel.
23403         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23404         macros.
23405         * lib/fbufmode.c: Update comments.
23406         * lib/fflush.c: Likewise.
23407         * lib/fpurge.c: Likewise.
23408         * lib/freadable.c: Likewise.
23409         * lib/freadahead.c: Likewise.
23410         * lib/freading.c: Likewise.
23411         * lib/freadptr.c: Likewise.
23412         * lib/freadseek.c: Likewise.
23413         * lib/fseeko.c: Likewise.
23414         * lib/fseterr.c: Likewise.
23415         * lib/fwritable.c: Likewise.
23416         * lib/fwriting.c: Likewise.
23417         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23418
23419 2010-12-22  Bruno Haible  <bruno@clisp.org>
23420
23421         ttyname_r: Work around bug on OSF/1 5.1.
23422         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23423         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23424         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23425         present.
23426         * lib/ttyname_r.c (ttyname_r): Update comments.
23427
23428 2010-12-22  Bruno Haible  <bruno@clisp.org>
23429
23430         round: Implement result sign according to IEEE 754.
23431         * lib/round.c (MIN, MINUS_ZERO): New macros.
23432         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23433         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23434         * tests/test-round-ieee.c (main): Likewise.
23435         * tests/test-roundl-ieee.c (main): Likewise.
23436
23437         trunc: Implement result sign according to IEEE 754.
23438         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23439         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23440         * tests/test-trunc2.c: Include minus-zero.h.
23441         (MINUS_ZERO): New macro.
23442         (trunc_reference): Keep in sync with lib/trunc.c.
23443         * tests/test-truncf2.c: Include minus-zero.h.
23444         (MINUS_ZERO): New macro.
23445         (truncf_reference): Keep in sync with lib/trunc.c.
23446         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23447         * tests/test-trunc-ieee.c (main): Likewise.
23448         * tests/test-truncl-ieee.c (main): Likewise.
23449
23450         ceil: Implement result sign according to IEEE 754.
23451         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23452         (FUNC): Return -0.0 for -1 < x < 0.
23453         * tests/test-ceil2.c: Include minus-zero.h.
23454         (MINUS_ZERO): New macro.
23455         (ceil_reference): Keep in sync with lib/ceil.c.
23456         * tests/test-ceilf2.c: Include minus-zero.h.
23457         (MINUS_ZERO): New macro.
23458         (ceilf_reference): Keep in sync with lib/ceil.c.
23459         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23460         * tests/test-ceil-ieee.c (main): Likewise.
23461         * tests/test-ceill-ieee.c (main): Likewise.
23462
23463         floor: Implement result sign according to IEEE 754.
23464         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23465         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23466         * tests/test-floorf2.c (floorf_reference): Likewise.
23467         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23468         * tests/test-floor-ieee.c (main): Likewise.
23469         * tests/test-floorl-ieee.c (main): Likewise.
23470
23471 2010-12-22  Bruno Haible  <bruno@clisp.org>
23472
23473         getaddrinfo: Update doc.
23474         * doc/posix-functions/gai_strerror.texi: Return type is also different
23475         on AIX and HP-UX.
23476
23477 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23478
23479         getaddrinfo, inet_ntop: Update doc for Solaris.
23480         * doc/posix-functions/gai_strerror.texi: Return type is also an
23481         issue on Solaris 9 and earlier.
23482         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23483         on Solaris 10 and earlier.
23484
23485 2010-12-21  Bruno Haible  <bruno@clisp.org>
23486
23487         New module 'roundl-ieee'.
23488         * modules/roundl-ieee: New file.
23489         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23490         test whether roundl works according to ISO C 99 with IEC 60559.
23491         * m4/roundl-ieee.m4: New file.
23492         * modules/roundl-ieee-tests: New file.
23493         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23494         * tests/test-roundl.c (main): Remove signbit tests.
23495         * modules/roundl-tests (Depends-on): Remove signbit.
23496         * doc/posix-functions/roundl.texi: Mention the new module.
23497
23498 2010-12-21  Bruno Haible  <bruno@clisp.org>
23499
23500         New module 'truncl-ieee'.
23501         * modules/truncl-ieee: New file.
23502         * modules/truncl-ieee-tests: New file.
23503         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23504         * tests/test-truncl.c (main): Remove signbit tests.
23505         * modules/truncl-tests (Depends-on): Remove signbit.
23506         * doc/posix-functions/truncl.texi: Mention the new module.
23507
23508 2010-12-21  Bruno Haible  <bruno@clisp.org>
23509
23510         New module 'ceill-ieee'.
23511         * modules/ceill-ieee: New file.
23512         * modules/ceill-ieee-tests: New file.
23513         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23514         * tests/test-ceill.c (main): Remove signbit tests.
23515         * modules/ceill-tests (Depends-on): Remove signbit.
23516         * doc/posix-functions/ceill.texi: Mention the new module.
23517
23518 2010-12-21  Bruno Haible  <bruno@clisp.org>
23519
23520         New module 'floorl-ieee'.
23521         * modules/floorl-ieee: New file.
23522         * modules/floorl-ieee-tests: New file.
23523         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23524         * tests/test-floorl.c (main): Remove signbit tests.
23525         * modules/floorl-tests (Depends-on): Remove signbit.
23526         * doc/posix-functions/floorl.texi: Mention the new module.
23527
23528 2010-12-21  Bruno Haible  <bruno@clisp.org>
23529
23530         New module 'round-ieee'.
23531         * modules/round-ieee: New file.
23532         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23533         whether round works according to ISO C 99 with IEC 60559.
23534         * m4/round-ieee.m4: New file.
23535         * modules/round-ieee-tests: New file.
23536         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23537         * tests/test-round1.c (main): Remove signbit tests.
23538         * modules/round-tests (Depends-on): Remove 'signbit'.
23539         * doc/posix-functions/round.texi: Mention the new module.
23540
23541 2010-12-21  Bruno Haible  <bruno@clisp.org>
23542
23543         New module 'trunc-ieee'.
23544         * modules/trunc-ieee: New file.
23545         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23546         whether trunc works according to ISO C 99 with IEC 60559.
23547         * m4/trunc-ieee.m4: New file.
23548         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23550         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23551         * modules/trunc-ieee-tests: New file.
23552         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23553         * tests/test-trunc1.c (main): Remove signbit tests.
23554         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23555         * doc/posix-functions/trunc.texi: Mention the new module.
23556
23557 2010-12-21  Bruno Haible  <bruno@clisp.org>
23558
23559         New module 'ceil-ieee'.
23560         * modules/ceil-ieee: New file.
23561         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23562         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23563         ISO C 99 with IEC 60559.
23564         * m4/ceil-ieee.m4: New file.
23565         * modules/ceil (Files): Add lib/ceil.c.
23566         (Depends-on): Add 'float'.
23567         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23568         * lib/math.in.h (ceil): New declaration.
23569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23570         REPLACE_CEIL.
23571         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23572         * modules/ceil-ieee-tests: New file.
23573         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23574         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23575         * doc/posix-functions/ceil.texi: Mention the new module.
23576
23577 2010-12-21  Bruno Haible  <bruno@clisp.org>
23578
23579         New module 'floor-ieee'.
23580         * modules/floor-ieee: New file.
23581         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23582         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23583         ISO C 99 with IEC 60559.
23584         * m4/floor-ieee.m4: New file.
23585         * modules/floor (Files): Add lib/floor.c.
23586         (Depends-on): Add 'float'.
23587         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23588         * lib/math.in.h (floor): New declaration.
23589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23590         REPLACE_FLOOR.
23591         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23592         * modules/floor-ieee-tests: New file.
23593         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23594         * tests/test-math-c++.cc: Check the signature of 'floor'.
23595         * doc/posix-functions/floor.texi: Mention the new module.
23596
23597 2010-12-21  Bruno Haible  <bruno@clisp.org>
23598
23599         New module 'roundf-ieee'.
23600         * modules/roundf-ieee: New file.
23601         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23602         test whether roundf works according to ISO C 99 with IEC 60559.
23603         * m4/roundf-ieee.m4: New file.
23604         * modules/roundf-ieee-tests: New file.
23605         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23606         * tests/test-roundf1.c (main): Remove signbit tests.
23607         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23608         * doc/posix-functions/roundf.texi: Mention the new module.
23609
23610 2010-12-21  Bruno Haible  <bruno@clisp.org>
23611
23612         New module 'truncf-ieee'.
23613         * modules/truncf-ieee: New file.
23614         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23615         test whether truncf works according to ISO C 99 with IEC 60559.
23616         * m4/truncf-ieee.m4: New file.
23617         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23619         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23620         * modules/truncf-ieee-tests: New file.
23621         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23622         * tests/test-truncf1.c (main): Remove signbit tests.
23623         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23624         * doc/posix-functions/truncf.texi: Mention the new module.
23625
23626 2010-12-21  Bruno Haible  <bruno@clisp.org>
23627
23628         New module 'ceilf-ieee'.
23629         * modules/ceilf-ieee: New file.
23630         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23631         test whether ceilf works according to ISO C 99 with IEC 60559.
23632         * m4/ceilf-ieee.m4: New file.
23633         * modules/ceilf-ieee-tests: New file.
23634         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23635         * tests/test-ceilf1.c (main): Remove signbit tests.
23636         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23637         * doc/posix-functions/ceilf.texi: Mention the new module.
23638
23639 2010-12-21  Bruno Haible  <bruno@clisp.org>
23640
23641         New module 'floorf-ieee'.
23642         * modules/floorf-ieee: New file.
23643         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23644         test whether floorf works according to ISO C 99 with IEC 60559.
23645         * m4/floorf-ieee.m4: New file.
23646         * modules/floorf-ieee-tests: New file.
23647         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23648         * tests/test-floorf1.c (main): Remove signbit tests.
23649         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23650         * doc/posix-functions/floorf.texi: Mention the new module.
23651
23652 2010-12-21  Bruno Haible  <bruno@clisp.org>
23653
23654         Support for minus zero in autoconf macros.
23655         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23656         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23657         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23658         * tests/minus-zero.h: Update comments.
23659
23660 2010-12-21  Bruno Haible  <bruno@clisp.org>
23661
23662         Tests for module 'ceil'.
23663         * modules/ceil-tests: New file.
23664         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23665         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23666
23667 2010-12-21  Bruno Haible  <bruno@clisp.org>
23668
23669         Tests for module 'floor'.
23670         * modules/floor-tests: New file.
23671         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23672         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23673
23674 2010-12-21  Bruno Haible  <bruno@clisp.org>
23675
23676         math: Fix indentation.
23677         * lib/math.in.h (floorf): Fix indentation.
23678
23679 2010-12-21  Bruno Haible  <bruno@clisp.org>
23680
23681         Fix cross-compilation guesses on Solaris.
23682         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23683         not match "solaris2.10".
23684         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23685         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23686         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23687
23688 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23689
23690         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23691         This fixes a problem observed with the latest coreutils snapshot
23692         that caused a test to fail on Solaris 8.  src/csplit.c's call
23693         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23694         earlier, instead of returning the number of bytes that would have
23695         been generated; this causes csplit to incorrectly report memory
23696         exhaustion.
23697         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23698         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23699         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23700         comments to match.
23701         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23702         Fix typo in matching older versions of Solaris: "solaris2.10"
23703         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23704         only for guessing while cross-compiling.
23705         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23706
23707 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         ftoastr: fix comment again
23710         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23711         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23712         Also, simplify example a bit by using flags = 0.
23713
23714 2010-12-20  Bruno Haible  <bruno@clisp.org>
23715
23716         round*, trunc*: Update documentation regarding glibc.
23717         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23718         * doc/posix-functions/round.texi: Likewise.
23719         * doc/posix-functions/roundl.texi: Likewise.
23720         * doc/posix-functions/truncf.texi: Likewise.
23721         * doc/posix-functions/trunc.texi: Likewise.
23722         * doc/posix-functions/truncl.texi: Likewise.
23723
23724 2010-12-20  Bruno Haible  <bruno@clisp.org>
23725
23726         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23727         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23728         * doc/posix-functions/round.texi: Likewise.
23729         * doc/posix-functions/roundl.texi: Likewise.
23730
23731 2010-12-20  Bruno Haible  <bruno@clisp.org>
23732
23733         ttyname_r: Add missing declaration on HP-UX 11.
23734         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23735         HAVE_TTYNAME_R.
23736         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23737         declared. Set HAVE_TTYNAME_R always.
23738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23739         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23740         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23741         HAVE_TTYNAME_R.
23742         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23743
23744 2010-12-20  Bruno Haible  <bruno@clisp.org>
23745
23746         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23747         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23748         * doc/posix-functions/getlogin_r.texi: Likewise.
23749         * tests/test-getlogin.c: Include <errno.h>.
23750         (main): Avoid test failure on HP-UX 11.11.
23751         * tests/test-getlogin_r.c (main): Likewise.
23752
23753 2010-12-20  Bruno Haible  <bruno@clisp.org>
23754
23755         getlogin_r: Add missing declaration on HP-UX 11.
23756         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23757         declared also when it exists as a function.
23758         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23759
23760 2010-12-20  Bruno Haible  <bruno@clisp.org>
23761
23762         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23763         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23764         through wcrtomb.
23765
23766 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23767
23768         ftoastr: fix comment
23769         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23771
23772 2010-12-19  Bruno Haible  <bruno@clisp.org>
23773
23774         isnan: Ensure it is a macro.
23775         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23776         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23777         Solaris.
23778
23779 2010-12-19  Bruno Haible  <bruno@clisp.org>
23780
23781         ldexpl test: Fix link error on OSF/1 5.1.
23782         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23783
23784 2010-12-19  Bruno Haible  <bruno@clisp.org>
23785
23786         wctype: Make it work in C++ mode on OSF/1 5.1.
23787         * lib/wctype.in.h (iswblank): Declare but not define here.
23788         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23789         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23790         * modules/wctype (Files): Add lib/iswblank.c.
23791
23792 2010-12-19  Bruno Haible  <bruno@clisp.org>
23793
23794         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23795         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23796         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23797
23798 2010-12-19  Bruno Haible  <bruno@clisp.org>
23799
23800         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23801         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23802         _POSIX_PII_SOCKET.
23803         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23804         * doc/posix-functions/recvfrom.texi: Likewise.
23805         * doc/posix-functions/send.texi: Likewise.
23806         * doc/posix-functions/sendto.texi: Likewise.
23807
23808 2010-12-19  Bruno Haible  <bruno@clisp.org>
23809
23810         tcgetsid: Add missing declaration on OSF/1 5.1.
23811         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23812         HAVE_TCGETSID.
23813         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23814         Don't set HAVE_TCGETSID.
23815         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23816         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23817         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23818         HAVE_TCGETSID.
23819         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23820
23821 2010-12-19  Bruno Haible  <bruno@clisp.org>
23822
23823         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23824         * lib/stdio.in.h: During the include_next statement, let recursive
23825         includes of this file include only the system header file.
23826
23827 2010-12-19  Bruno Haible  <bruno@clisp.org>
23828
23829         iconv_open: Fix regression from 2010-12-04.
23830         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23831         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23832
23833 2010-12-19  Bruno Haible  <bruno@clisp.org>
23834
23835         stdbool test: Avoid a gcc warning.
23836         * tests/test-stdbool.c (main): Fail if e1 is false.
23837         Reported by Jim Meyering.
23838
23839 2010-12-19  Jim Meyering  <meyering@redhat.com>
23840
23841         setenv: restore to working order
23842         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23843         mistakenly removed.
23844         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23845         HAVE_SETENV.
23846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23847         HAVE_SETENV.
23848
23849 2010-12-19  Bruno Haible  <bruno@clisp.org>
23850
23851         Document some different function declarations on OSF/1 5.1.
23852         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23853         * doc/posix-functions/inet_ntop.texi: Likewise.
23854         * doc/posix-functions/gethostname.texi: Likewise.
23855         * lib/unistd.in.h (gethostname): Update comment.
23856
23857 2010-12-19  Bruno Haible  <bruno@clisp.org>
23858
23859         doc: Mention vasprintf-posix module.
23860         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23861         the 'vasprintf-posix' module.
23862         * doc/glibc-functions/vasprintf.texi: Likewise.
23863
23864 2010-12-19  Bruno Haible  <bruno@clisp.org>
23865
23866         unsetenv: Add missing declaration on OSF/1 5.1.
23867         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23868         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23869         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23871         not HAVE_UNSETENV.
23872         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23873         HAVE_UNSETENV.
23874         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23875
23876 2010-12-19  Bruno Haible  <bruno@clisp.org>
23877
23878         setenv: Add missing declaration on OSF/1 5.1.
23879         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23880         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23881         declared. Don't set HAVE_SETENV.
23882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23883         not HAVE_SETENV.
23884         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23885         HAVE_SETENV.
23886         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23887
23888 2010-12-19  Bruno Haible  <bruno@clisp.org>
23889
23890         nl_langinfo tests: Avoid gcc warning.
23891         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23892
23893 2010-12-19  Bruno Haible  <bruno@clisp.org>
23894
23895         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23896         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23897         _GL_CXXALIAS_SYS.
23898
23899 2010-12-19  Bruno Haible  <bruno@clisp.org>
23900
23901         stdbool: Relax test.
23902         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23903         address to 'bool' work in static initializer, for compilers other than
23904         GCC.
23905
23906 2010-12-19  Bruno Haible  <bruno@clisp.org>
23907
23908         ftello: Add missing declaration on OSF/1 5.1.
23909         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23910         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23912         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23913         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23914
23915 2010-12-19  Bruno Haible  <bruno@clisp.org>
23916
23917         fseeko: Add missing declaration on OSF/1 5.1.
23918         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23919         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23921         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23922         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23923
23924 2010-12-19  Bruno Haible  <bruno@clisp.org>
23925
23926         fchdir: Add missing declaration on OSF/1 5.1.
23927         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23930         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23931         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23932
23933 2010-12-19  Bruno Haible  <bruno@clisp.org>
23934
23935         relocatable-prog-wrapper: Separate from relocatable-prog.
23936         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23937         uninstall-relocwrapper rule here.
23938         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23939         Reported by Ian Beckwith <ianb@erislabs.net>.
23940
23941 2010-12-19  Bruno Haible  <bruno@clisp.org>
23942
23943         unistr/u8-mbsnlen: Add missing dependency.
23944         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23945         Reported by Ian Beckwith <ianb@erislabs.net>.
23946
23947 2010-12-19  Bruno Haible  <bruno@clisp.org>
23948
23949         iconv: Make it possible again to use this module without 'iconv-h'.
23950         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23951         if it is not defined.
23952         Reported by Ian Beckwith <ianb@erislabs.net>.
23953
23954 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23955
23956         acl: port to Solaris 8 when copying from tmpfs to ufs
23957         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23958         error number.  Problem observed on Solaris 8 with latest
23959         coreutils, with "mv A B", where A is on a tmpfs file system and B
23960         is on a ufs file system.  This caused coreutils' mv/part-symlink
23961         test to fail.
23962
23963         tests: set fail=0 at start
23964         * tests/init.sh (setup_): Move fail=0 initialization here ...
23965         (mktempd_): ... from here, so that tests can rely on fail being
23966         set to 0 initially.  This fixes a problem in coreutils; see:
23967         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23968
23969 2010-12-18  Bruno Haible  <bruno@clisp.org>
23970
23971         memmem-simple: Stylistic changes.
23972         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23973         Fix preprocessor directive indentation.
23974
23975 2010-12-15  Pádraig Brady <P@draigBrady.com>
23976
23977         memmem, memmem-simple: reorganize and expand empty needle check
23978         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23979         functional checks to memmem-simple so that one has a fully functional
23980         memmem by using just this module.
23981         Restrict the performance only check to the memmem module.
23982         Also expand the empty needle check to ensure the correct
23983         pointer is returned, not just a non NULL pointer.
23984         * doc/glibc-functions/memmem.texi: Rearrange the portability
23985         documentation to correlate with the rearranged checks.
23986         Clarify exactly how the memmem and memmem-simple modules
23987         relate to each other.
23988
23989 2010-12-15  Pádraig Brady <P@draigBrady.com>
23990             Bruno Haible  <bruno@clisp.org>
23991
23992         Improve cross-compilation guesses for uClibc.
23993         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23994         that uClibc does not have the glibc bug.
23995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23996         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23997
23998 2010-12-14  Eric Blake  <eblake@redhat.com>
23999
24000         configmake: provide fallbacks for oldest supported autotools
24001         * m4/configmake.m4: New file.
24002         * modules/configmake (Files): Ship it.
24003         (configure.ac): Use it to guarantee fallbacks.
24004
24005 2010-12-13  Pádraig Brady <P@draigBrady.com>
24006
24007         read-file: Improve handling of large files
24008         * lib/read-file.c (fread_file): Minimize realloc()s
24009         for regular files, and better manage sizes around SIZE_MAX.
24010
24011 2010-12-13  Eric Blake  <eblake@redhat.com>
24012
24013         cloexec, fcntl: relax license
24014         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24015         consent from all contributors.
24016         * modules/fcntl (License): Likewise.
24017
24018 2010-12-10  Bruno Haible  <bruno@clisp.org>
24019
24020         Tests for module 'pipe-posix'.
24021         * modules/pipe-posix-tests: New file.
24022         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24023
24024 2010-12-10  Bruno Haible  <bruno@clisp.org>
24025
24026         pipe-posix: Make it work in C++ mode.
24027         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24028         (pipe): Use common idiom, not a macro definition.
24029         * lib/pipe.c: New file.
24030         * m4/pipe.m4: New file.
24031         * modules/pipe-posix (Description): Enhance.
24032         (Files): Add lib/pipe.c, m4/pipe.m4.
24033         (configure.ac): Invoke gl_FUNC_PIPE.
24034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24035         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24036         * tests/test-unistd-c++.cc: Check the signature of pipe.
24037
24038 2010-12-10  Bruno Haible  <bruno@clisp.org>
24039
24040         Rename module 'pipe' to 'spawn-pipe'.
24041         * modules/spawn-pipe: New file, renamed from modules/pipe.
24042         (Files, configure.ac, Makefile.am): Update.
24043         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24044         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24045         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24046         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24047         "spawn-pipe.h" instead of "pipe.h".
24048         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24049         to gl_SPAWN_PIPE.
24050         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24051         (Files, Makefile.am): Update.
24052         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24053         Update.
24054         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24055         Include "spawn-pipe.h" instead of "pipe.h".
24056         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24057         * lib/javacomp.c: Likewise.
24058         * lib/javaversion.c: Likewise.
24059         * lib/pipe-filter-gi.c: Likewise.
24060         * lib/pipe-filter-ii.c: Likewise.
24061         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24062         * modules/javacomp (Depends-on): Likewise.
24063         * modules/javaversion (Depends-on): Likewise.
24064         * modules/pipe-filter-gi (Depends-on): Likewise.
24065         * modules/pipe-filter-ii (Depends-on): Likewise.
24066         * MODULES.html.sh (Executing programs): Update.
24067         * NEWS: Mention the change.
24068
24069 2010-12-10  Eric Blake  <eblake@redhat.com>
24070
24071         pipe-posix: new module
24072         * modules/pipe-posix: New file.
24073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24074         (gl_UNISTD_H): Check for declaration.
24075         * modules/unistd (Makefile.am): Substitute it.
24076         * lib/unistd.in.h (pipe): Provide it for mingw.
24077         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24078         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24079
24080 2010-12-07  Bruno Haible  <bruno@clisp.org>
24081
24082         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24083         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24084         u8_strcmp_gnu.
24085         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24086
24087 2010-12-06  Bruno Haible  <bruno@clisp.org>
24088
24089         Update internal documentation.
24090         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24091
24092 2010-12-04  Bruno Haible  <bruno@clisp.org>
24093
24094         Put more information about failed tests into the test return codes.
24095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24096         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24097         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24099         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24100         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24101         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24102         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24103         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24106         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24107         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24108         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24110         returns a bit mask.
24111         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24112         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24113         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24114         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24115         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24117         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24118         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24119         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24121         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24122         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24125         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24126         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24127         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24128         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24129         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24132         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24134         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24135         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24136         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24137         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24138         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24139         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24140         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24141         gl_PRINTF_PRECISION): Likewise.
24142         * m4/regex.m4 (gl_REGEX): Likewise.
24143         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24144         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24145         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24146         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24149         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24150         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24151         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24152         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24153         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24154         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24155         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24156         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24157         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24158         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24159         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24160         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24162         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24163         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24164         enumerated value.
24165         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24166
24167 2010-12-04  Bruno Haible  <bruno@clisp.org>
24168
24169         Update for Solaris 11 2010-11.
24170         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24171         Express, released in November 2010.
24172
24173 2010-12-04  Bruno Haible  <bruno@clisp.org>
24174
24175         nproc: Relax license.
24176         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24177         and Paul Eggert.
24178         Requested by Ludovic Courtès <ludo@gnu.org>.
24179
24180 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24181
24182         utimecmp: fine-grained src to nearby coarse-grained dest
24183
24184         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24185         and the source is on a file system with higher-resolution time
24186         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24187         not work, and the time stamps are close together, the algorithm to
24188         determine the exact resolution from the read-back mtime was buggy:
24189         it had a "!=" where it should have had an "==".  This bug has been
24190         in the code ever since it was introduced to gnulib.
24191         Problem reported by Dan Jacobson in
24192         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24193
24194 2010-11-30  Bruno Haible  <bruno@clisp.org>
24195
24196         strerror_r-posix: Fix autoconf test.
24197         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24198
24199 2010-11-28  Bruno Haible  <bruno@clisp.org>
24200             Paul Eggert  <eggert@cs.ucla.edu>
24201
24202         Tests for module 'getdomainname'.
24203         * modules/getdomainname-tests: New file.
24204         * tests/test-getdomainname.c: New file, based on
24205         tests/test-gethostname.c.
24206
24207 2010-11-28  Bruno Haible  <bruno@clisp.org>
24208             Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         getdomainname: Use the system function when possible.
24211         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24212         (getdomainname): Replace if needed. Provide the declaration if it is
24213         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24214         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24215         (getdomainname): When the system has getdomainname, call the system
24216         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24217         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24218         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24219         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24220         the function if its second argument is of type 'int' or if it is found
24221         in libnsl.
24222         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24223         <sys/systeminfo.h> and sysinfo().
24224         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24226         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24227         HAVE_GETDOMAINNAME.
24228         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24229         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24230         * doc/glibc-functions/getdomainname.texi: Document the problems with
24231         the getdomainname declaration.
24232
24233 2010-11-28  Bruno Haible  <bruno@clisp.org>
24234
24235         sys_socket: Ensure ss_family field on AIX.
24236         * lib/sys_socket.in.h (ss_family): New macro definition.
24237         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24238         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24239         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24240         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24241         * modules/sys_socket (Makefile.am): Substitute
24242         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24243         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24244
24245 2010-11-27  Bruno Haible  <bruno@clisp.org>
24246
24247         readline: Improve configure output.
24248         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24249         "checking for readline..." result understandable.
24250
24251 2010-11-27  Bruno Haible  <bruno@clisp.org>
24252
24253         *printf-posix: Detect a bug on Solaris 10/x86.
24254         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24255         for floating-point output.
24256         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24257         directive.
24258         * tests/test-snprintf-posix.h (test_function): Likewise.
24259         * tests/test-sprintf-posix.h (test_function): Likewise.
24260         * tests/test-vasprintf-posix.c (test_function): Likewise.
24261         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24262         * doc/posix-functions/printf.texi: Likewise.
24263         * doc/posix-functions/snprintf.texi: Likewise.
24264         * doc/posix-functions/sprintf.texi: Likewise.
24265         * doc/posix-functions/vfprintf.texi: Likewise.
24266         * doc/posix-functions/vprintf.texi: Likewise.
24267         * doc/posix-functions/vsnprintf.texi: Likewise.
24268         * doc/posix-functions/vsprintf.texi: Likewise.
24269         * doc/glibc-functions/obstack_printf.texi: Likewise.
24270         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24271
24272 2010-11-27  Bruno Haible  <bruno@clisp.org>
24273
24274         Fix link error when module libunistring-optional is in use.
24275         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24276         * modules/striconveha-tests (Makefile.am): Likewise.
24277
24278 2010-11-27  Bruno Haible  <bruno@clisp.org>
24279
24280         regex: Mention link dependencies.
24281         * modules/regex (Link): New section.
24282         * modules/rpmatch (Link): Likewise.
24283         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24284
24285 2010-11-27  Bruno Haible  <bruno@clisp.org>
24286
24287         ftoastr: Fix compilation error on Solaris.
24288         * lib/ftoastr.c: Include <config.h>.
24289
24290 2010-11-27  Bruno Haible  <bruno@clisp.org>
24291
24292         getloadavg: Update documentation.
24293         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24294
24295 2010-11-27  Bruno Haible  <bruno@clisp.org>
24296
24297         sys_socket: Fix test whether the functions are declared.
24298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24299         not <sys/select.h>.
24300
24301 2010-11-27  Bruno Haible  <bruno@clisp.org>
24302
24303         getpass: Make sure to get system declaration on some platforms.
24304         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24305         gl_USE_SYSTEM_EXTENSIONS.
24306         * modules/getpass (Depends-on): Add extensions.
24307
24308 2010-11-26  Bruno Haible  <bruno@clisp.org>
24309
24310         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24311         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24312         'iconv' module is present.
24313         (ICONV_CONST): New macro.
24314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24315         ICONV_CONST.
24316         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24317         set ICONV_CONST.
24318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24319         here.
24320         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24321         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24322         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24323         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24324         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24325         present.
24326
24327 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24328
24329         ftoastr: comment fix
24330         * lib/ftoastr.c: "little" -> "little or no" in comment
24331
24332 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         stdint: port to GCC 4.3 + OSX + Octave
24335         On this platform, stdint.h is buggy and defines int64_t to long
24336         long int.  The replacement defined it to long int, causing
24337         problems with C++ style name mangling.  Instead, trust the system
24338         definition if INT64_MAX is defined, and likewise for the unsigned
24339         variant.   Problem reported by Jarno Rajahalme in
24340         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24341         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24342         and don't mess with int64_t and INT64_MAX in this case.
24343         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24344
24345 2010-11-24  Bruno Haible  <bruno@clisp.org>
24346
24347         doc: Corrections regarding MacOS X 10.4 and 10.5.
24348         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24349         MacOS X.
24350         Reported by Simon Josefsson.
24351
24352 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24353
24354         Uninstall ".bin" files installed by relocwrapper.
24355         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24356         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24357         unless it is already there.
24358
24359 2010-11-21  Bruno Haible  <bruno@clisp.org>
24360
24361         Update for NetBSD 5.0.
24362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24363         NetBSD; the test fails on NetBSD 5.0.
24364         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24365         about NetBSD.
24366
24367 2010-11-21  Bruno Haible  <bruno@clisp.org>
24368
24369         Update for HP-UX 11.23 and HP-UX 11.31.
24370         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24371         HP-UX.
24372
24373 2010-11-21  Bruno Haible  <bruno@clisp.org>
24374
24375         Update for MacOS X 10.5.
24376         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24377         MacOS X; the test fails on MacOS X 10.5.8.
24378         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24379         about MacOS X.
24380
24381 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24382
24383         bootstrap: add bootstrap_sync option.
24384         See discussion at
24385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24387         * build-aux/bootstrap: Accept --bootstrap-sync to update
24388         bootstrap if it is not identical to the local gnulib's
24389         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24390         enable this by default.  Accept --no-bootstrap-sync to disable
24391         it.
24392
24393 2010-11-20  Bruno Haible  <bruno@clisp.org>
24394
24395         Ensure that <features.h> is included before __GLIBC__ is tested.
24396         * lib/printf-parse.h: Include <features.h>.
24397         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24398         Reported by Mike Frysinger <vapier@gentoo.org>.
24399
24400         Ensure that <features.h> is included before __GLIBC__ is tested.
24401         * lib/wchar.in.h: Include <features.h>.
24402         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24403         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24404         Reported by Mike Frysinger <vapier@gentoo.org>.
24405
24406         Ensure that <features.h> is included before __GLIBC__ is tested.
24407         * lib/arpa_inet.in.h: Include <features.h>.
24408         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24409         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24410         Reported by Mike Frysinger <vapier@gentoo.org>.
24411
24412         Ensure that <features.h> is included before __GLIBC__ is tested.
24413         * build-aux/link-warning.h: Include <features.h>.
24414         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24415         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24416         Reported by Mike Frysinger <vapier@gentoo.org>.
24417
24418         Ensure that <features.h> is included before __GLIBC__ is tested.
24419         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24420         Reported by Mike Frysinger <vapier@gentoo.org>.
24421
24422 2010-11-20  Bruno Haible  <bruno@clisp.org>
24423
24424         memmem: Fix autoconf test.
24425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24426
24427 2010-11-20  Bruno Haible  <bruno@clisp.org>
24428
24429         Port to uClibc.
24430         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24431         * lib/fcntl.in.h: Likewise.
24432         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24433         * lib/mbrtowc.c (mbrtowc): Likewise.
24434         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24435         * lib/strerror_r.c: Likewise.
24436         * lib/unistr/u8-strnlen.c: Likewise.
24437         * lib/vasnprintf.c (decimal_point_char): Likewise.
24438         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24439         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24440         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24441         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24442         * tests/test-sigaction.c (handler, main): Likewise.
24443         * lib/freading.h: Treat uClibc like a non-glibc platform.
24444         * lib/freading.c: Likewise.
24445         * lib/gettext.h: Likewise.
24446         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24447         Likewise.
24448         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24449         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24450         * lib/propername.c (proper_name_utf8): Likewise.
24451         * lib/spawn.in.h: Likewise.
24452         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24453         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24454         mem_cd_iconveh_internal): Likewise.
24455         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24456         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24457         strstr, strcasestr): Likewise.
24458         * lib/unicodeio.c (unicode_to_mb): Likewise.
24459         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24460         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24461         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24462         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24463         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24464         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24465         * lib/unistr/u8-stpncpy.c: Likewise.
24466         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24467         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24468         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24469         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24470         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24471         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24472         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24473         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24474         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24475         Likewise.
24476         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24477         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24478         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24481         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24482         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24483         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24484         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24485         * tests/test-striconveha.c (main): Likewise.
24486         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24487         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24488         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24489         * doc/posix-functions/getline.texi: Likewise.
24490         Reported by Mike Frysinger <vapier@gentoo.org>.
24491
24492 2010-11-20  Bruno Haible  <bruno@clisp.org>
24493
24494         nproc: Fix condition.
24495         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24496         HAVE_PTHREAD_AFFINITY_NP.
24497
24498 2010-11-20  Bruno Haible  <bruno@clisp.org>
24499
24500         Fix a comment.
24501         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24502
24503 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24504
24505         ftoastr: don't assume snprintf
24506         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24507         Implement a subset of snprintf here, by using sprintf safely.
24508         * modules/ftoastr (Depends-on): Remove snprintf.
24509
24510 2010-11-19  Jim Meyering  <meyering@redhat.com>
24511
24512         test-rename.h: fix compilation failure
24513         * tests/test-rename.h (test_rename): Add omitted "}".
24514
24515 2010-11-17  Jim Meyering  <meyering@redhat.com>
24516
24517         maint.mk: add a URL discussing the no-@acronym policy
24518         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24519
24520 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         ftoastr: depend on snprintf, improve comments
24523         * lib/ftoastr.c: Also mention Loitsch's draft.
24524         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24525         needed in the current implementation, but it might simplify
24526         speeding up the code later.
24527         * modules/ftoastr: Depend on snprintf; this improves portability.
24528         Suggested by Bruno Haible in the same email.
24529
24530         ftoastr: port to hosts lacking strtof and strtold
24531         Problem reported by Bruno Haible in
24532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24533         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24534         environment and strtold (and presumably strtof) are not available.
24535         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24536         (configure.ac): Require gl_C99_STRTOLD.
24537
24538 2010-11-18  Bruno Haible  <bruno@clisp.org>
24539
24540         c-strtold: Avoid link error on AIX 7.
24541         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24542         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24543         (gl_C_STRTOLD): Test whether strtold_l exists.
24544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24545
24546 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24547
24548         intprops: new macro INT_BITS_STRLEN_BOUND
24549         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24550         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24551         not exposed.  Also, it uses a slightly tighter bound than before;
24552         though this makes no practical difference, we might as well be as
24553         tight as we easily can.
24554
24555         ftoastr: new module, for lossless conversion of floats to short strings
24556         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24557         * modules/ftoastr: New files.
24558
24559 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24560
24561         bootstrap: port to Solaris sed
24562         * build-aux/bootstrap (get_version): Port to Solaris sed.
24563         See Ralf Wildenhues's note in
24564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24565
24566 2010-11-14  Jim Meyering  <meyering@redhat.com>
24567
24568         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24569         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24570         and move definition closer to sole use.
24571
24572 2010-11-13  Jim Meyering  <meyering@redhat.com>
24573
24574         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24575         Now we require at least autoconf-2.59, which means the work-around
24576         is no longer needed.
24577         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24580         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24581         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24582
24583 2010-11-13  Bruno Haible  <bruno@clisp.org>
24584
24585         rename, renameat: Avoid test failures at NFS mounted locations.
24586         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24587         functions.
24588         (test_rename): Use assert_nonexistent.
24589         * tests/test-rename.c: Include <dirent.h>.
24590         * tests/test-renameat.c: Likewise.
24591         Reported by Gary V. Vaughan <gary@gnu.org>.
24592
24593         rename, renameat: Document Linux bug with NFS
24594         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24595         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24596         * doc/posix-functions/renameat.texi: Likewise.
24597         Suggested by Eric Blake.
24598
24599 2010-11-13  Bruno Haible  <bruno@clisp.org>
24600
24601         rename test: Add comments.
24602         * tests/test-rename.h (test_rename): Add structure and comments.
24603
24604 2010-11-13  Eric Blake  <eblake@redhat.com>
24605
24606         maintainer-makefile: cover a few more files
24607         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24608         scripts generated within C files, for libvirt.
24609
24610 2010-11-13  Bruno Haible  <bruno@clisp.org>
24611
24612         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24613         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24614         character, return the number of bytes that belong together, not always
24615         1.
24616         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24617         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24618         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24619         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24620         number of bytes of an invalid character.
24621         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24622         (main): Invoke it.
24623         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24624         results.
24625         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24626         malformed byte sequences.
24627         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24628         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24629         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24630         Reported by Ben Pfaff and Paolo Bonzini.
24631
24632 2010-11-13  Bruno Haible  <bruno@clisp.org>
24633
24634         openat: Work around glibc bug with fchownat() and empty file names.
24635         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24636         (gl_FUNC_FCHOWNAT): Invoke it.
24637         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24638         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24639         Reported by Gary V. Vaughan <gary@gnu.org>.
24640
24641 2010-11-13  Bruno Haible  <bruno@clisp.org>
24642
24643         openat: Ensure autoconf macro ordering.
24644         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24645         gl_USE_SYSTEM_EXTENSIONS.
24646         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24647
24648 2010-11-13  Bruno Haible  <bruno@clisp.org>
24649
24650         Update comments.
24651         * lib/unistr/u8-check.c: Update file name in comments.
24652         * lib/unistr/u8-mblen.c: Likewise.
24653         * lib/unistr/u8-prev.c: Likewise.
24654         * lib/unistr/u8-strmblen.c: Likewise.
24655         * lib/unistr/u8-strmbtouc.c: Likewise.
24656
24657 2010-11-13  Jim Meyering  <meyering@redhat.com>
24658
24659         tests: avoid test failure on Solaris 10 due to lack of PATH export
24660         * tests/test-update-copyright.sh: Don't forget to export PATH.
24661
24662         init.sh: ensure that IFS is defined, just in case...
24663         * tests/init.sh (setup_): Ensure that IFS is defined,
24664         so that saving and restoring it works as expected.  This
24665         appears to be useful at least for an old version of dash
24666         from a long time ago (RH 6).  See here for details:
24667         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24668
24669         maint.mk: tighten "test a == b" check
24670         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24671         test to files that contain something like #!/bin/sh.
24672         Without this, coreutils would get two false positives in
24673         the comments of C source files.
24674
24675 2010-11-12  Eric Blake  <eblake@redhat.com>
24676
24677         bootstrap: fix typo in previous attempt
24678         * build-aux/bootstrap (buildreq): Correct the grouping.
24679         Reported by Paul Eggert.
24680
24681         maintainer-makefile: prohibit test x == x
24682         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24683         Based on a report by Matthias Bolte.
24684
24685         bootstrap: allow FreeBSD gzip
24686         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24687         which has no '.' and goes to stderr.
24688         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24689         Reported by Matthias Bolte.
24690
24691         maintainer-makefile: check for i18n setup
24692         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24693         will likely work.
24694
24695 2010-11-12  Bruno Haible  <bruno@clisp.org>
24696
24697         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24698         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24699         * lib/nanosleep.c (nanosleep): Likewise.
24700
24701 2010-11-11  Bruno Haible  <bruno@clisp.org>
24702
24703         fcntl-h: Fix for use of C++ on glibc systems.
24704         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24705         also on glibc systems in C++ mode.
24706         Reported by Gary V. Vaughan <gary@gnu.org>.
24707
24708 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24709
24710         mknod: avoid false failure with dash
24711         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24712
24713 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24714
24715         unlink: Fix "is it should" typo in diagnostic.
24716         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24717         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24718
24719 2010-11-11  Bruno Haible  <bruno@clisp.org>
24720
24721         Tests for module 'strerror_r-posix'.
24722         * modules/strerror_r-posix-tests: New file.
24723         * tests/test-strerror_r.c: New file.
24724         * tests/test-string-c++.cc: Check the signature of strerror_r.
24725
24726         New module 'strerror_r-posix'.
24727         * lib/string.in.h (strerror_r): New declaration.
24728         * lib/strerror_r.c: New file.
24729         * m4/strerror_r.m4: New file.
24730         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24731         of strerror_r.
24732         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24733         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24734         * modules/strerror_r-posix: New file.
24735         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24736         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24737         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24738         portability problems.
24739
24740 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24741
24742         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24743         line is also considered for output. Quoted function name in shell
24744         command, so temporary files for functions like MyClass::operator()
24745         are removed correctly without errors.
24746
24747 2010-11-09  Bruno Haible  <bruno@clisp.org>
24748
24749         * doc/posix-functions/strerror.texi: List more failing platforms.
24750
24751         * doc/posix-functions/strerror.texi: Add a comment.
24752
24753 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         fdopendir: fix bug on MacOS X when low on file descriptors
24756
24757         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24758         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24759         All callers changed.
24760         (fdopendir): Invoke save_cwd at the top level, not after using
24761         multiple dup() calls to use up file descriptors.  Then retry
24762         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24763         less than the maximum number of open file descriptors, because
24764         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24765         on Mac OS X 10.6.4 for tar 1.24
24766         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24767         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24768         and for tar 1.25
24769         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24770
24771 2010-11-07  Bruno Haible  <bruno@clisp.org>
24772
24773         vasnprintf: Support I flag on glibc systems.
24774         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24775         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24776         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24777         snprintf function.
24778         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24779         glibc systems.
24780         * tests/test-vasnprintf-posix3.c: New file.
24781         * modules/vasnprintf-posix-tests (Files): Add it.
24782         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24783
24784 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24785
24786         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24787         * MODULES.html.sh: For compiler warnings, use name
24788         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24789
24790 2010-11-05  Eric Blake  <eblake@redhat.com>
24791
24792         ceil, floor: avoid spurious failure with icc
24793         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24794         [denormals-as-zero] when optimizing without -mieee-fp option.
24795         * tests/test-floorf2.c (floorf_reference): Likewise.
24796         * tests/test-ceilf1.c (dummy): New function.
24797         (main): Use it to outsmart icc's optimization.
24798         * tests/test-floorf1.c (dummy, main): Likewise.
24799
24800         tests: require working signbit
24801         * modules/ceilf-tests (Depends-on): Add signbit.
24802         * modules/ceill-tests (Depends-on): Likewise.
24803         * modules/floorf-tests (Depends-on): Likewise.
24804         * modules/floorl-tests (Depends-on): Likewise.
24805         * modules/round-tests (Depends-on): Likewise.
24806         * modules/roundf-tests (Depends-on): Likewise.
24807         * modules/roundl-tests (Depends-on): Likewise.
24808         * modules/trunc-tests (Depends-on): Likewise.
24809         * modules/truncf-tests (Depends-on): Likewise.
24810         * modules/truncl-tests (Depends-on): Likewise.
24811
24812         strtod: work around icc bug
24813         * lib/strtod.c (minus_zero): Define to working value.
24814         (strtod): Use it to avoid icc bug.
24815
24816         copysign: enhance tests
24817         * modules/copysign-tests (Files): Add minus-zero.h.
24818         * tests/test-copysign.c (main): Also test zeros.
24819
24820 2010-11-04  Eric Blake  <eblake@redhat.com>
24821
24822         ceil, floor, round, trunc: enhance tests of -0
24823         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24824         * tests/test-ceill.c (main): Likewise.
24825         * tests/test-floorf1.c (main): Likewise.
24826         * tests/test-floorl.c (main): Likewise.
24827         * tests/test-round1.c (main): Likewise.
24828         * tests/test-roundf1.c (main): Likewise.
24829         * tests/test-roundl.c (main): Likewise.
24830         * tests/test-trunc1.c (main): Likewise.
24831         * tests/test-truncf1.c (main): Likewise.
24832         * tests/test-truncl.c (main): Likewise.
24833
24834 2010-11-04  Eric Blake  <eblake@redhat.com>
24835
24836         frexp, tests: work around ICC bug with -zero
24837         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24838         works with more compilers.
24839         * tests/minus-zero.h: New file.
24840         * modules/ceilf-tests (Files): Include it.
24841         * modules/ceill-tests (Files): Likewise.
24842         * modules/floorf-tests (Files): Likewise.
24843         * modules/floorl-tests (Files): Likewise.
24844         * modules/frexp-nolibm-tests (Files): Likewise.
24845         * modules/frexp-tests (Files): Likewise.
24846         * modules/frexpl-nolibm-tests (Files): Likewise.
24847         * modules/frexpl-tests (Files): Likewise.
24848         * modules/isnan-tests (Files): Likewise.
24849         * modules/isnand-nolibm-tests (Files): Likewise.
24850         * modules/isnand-tests (Files): Likewise.
24851         * modules/isnanf-nolibm-tests (Files): Likewise.
24852         * modules/isnanf-tests (Files): Likewise.
24853         * modules/isnanl-nolibm-tests (Files): Likewise.
24854         * modules/isnanl-tests (Files): Likewise.
24855         * modules/round-tests (Files): Likewise.
24856         * modules/roundf-tests (Files): Likewise.
24857         * modules/roundl-tests (Files): Likewise.
24858         * modules/ldexpl-tests (Files): Likewise.
24859         * modules/signbit-tests (Files): Likewise.
24860         * modules/snprintf-posix-tests (Files): Likewise.
24861         * modules/sprintf-posix-tests (Files): Likewise.
24862         * modules/strtod-tests (Files): Likewise.
24863         * modules/trunc-tests (Files): Likewise.
24864         * modules/truncf-tests (Files): Likewise.
24865         * modules/truncl-tests (Files): Likewise.
24866         * modules/vsnprintf-posix-tests (Files): Likewise.
24867         * modules/vsprintf-posix-tests (Files): Likewise.
24868         * modules/vasnprintf-posix-tests (Files): Likewise.
24869         * modules/vasprintf-posix-tests (Files): Likewise.
24870         * tests/test-ceilf1.c (main): Use it.
24871         * tests/test-ceill.c (main): Likewise.
24872         * tests/test-floorf1.c (main): Likewise.
24873         * tests/test-floorl.c (main): Likewise.
24874         * tests/test-frexp.c (main): Likewise.
24875         * tests/test-frexpl.c (main): Likewise.
24876         * tests/test-isnan.c (main): Likewise.
24877         * tests/test-isnand.h (main): Likewise.
24878         * tests/test-isnanf.h (main): Likewise.
24879         * tests/test-isnanl.h (main): Likewise.
24880         * tests/test-ldexpl.c (main): Likewise.
24881         * tests/test-round.c (main): Likewise.
24882         * tests/test-roundf.c (main): Likewise.
24883         * tests/test-roundl.c (main): Likewise.
24884         * tests/test-signbit.c (test_signbitf, test_signbitd)
24885         (test_signbitl): Likewise.
24886         * tests/test-snprintf-posix.h (test_function): Likewise.
24887         * tests/test-sprintf-posix.h (test_function): Likewise.
24888         * tests/test-strtod.c (main): Likewise.
24889         * tests/test-trunc1.c (main): Likewise.
24890         * tests/test-truncf1.c (main): Likewise.
24891         * tests/test-truncl.c (main): Likewise.
24892
24893         isnanl: work around icc bug
24894         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24895
24896 2010-11-03  Eric Blake  <eblake@redhat.com>
24897
24898         tests: fix compiler warnings
24899         * tests/test-getopt.h (test_getopt): Fix condition.
24900         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24901         * tests/test-pipe2.c (main): Likewise.
24902         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24903
24904         utimens: fix broken m4 test
24905         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24906
24907 2010-10-28  Bruno Haible  <bruno@clisp.org>
24908
24909         posix_spawn*, getdtablesize: Relax license.
24910         * modules/posix_spawn (License): Change to LGPLv2+.
24911         * modules/posix_spawnp (License): Likewise.
24912         * modules/posix_spawn-internal (License): Likewise.
24913         * modules/posix_spawnattr_init (License): Likewise.
24914         * modules/posix_spawnattr_getflags (License): Likewise.
24915         * modules/posix_spawnattr_setflags (License): Likewise.
24916         * modules/posix_spawnattr_getpgroup (License): Likewise.
24917         * modules/posix_spawnattr_setpgroup (License): Likewise.
24918         * modules/posix_spawnattr_getschedparam (License): Likewise.
24919         * modules/posix_spawnattr_setschedparam (License): Likewise.
24920         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24921         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24922         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24923         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24924         * modules/posix_spawnattr_getsigmask (License): Likewise.
24925         * modules/posix_spawnattr_setsigmask (License): Likewise.
24926         * modules/posix_spawnattr_destroy (License): Likewise.
24927         * modules/posix_spawn_file_actions_init (License): Likewise.
24928         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24929         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24930         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24931         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24932         * modules/getdtablesize (License): Likewise.
24933         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24934
24935 2010-10-26  Bruno Haible  <bruno@clisp.org>
24936
24937         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24938         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24939         Cygwin and mingw.
24940         Suggested by Eric Blake.
24941
24942 2010-10-26  Bruno Haible  <bruno@clisp.org>
24943
24944         stdio: Work around compilation error due to renameat() on Solaris 10.
24945         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24946         * lib/renameat.c: Don't include <unistd.h> here.
24947         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24948         Reported by Paul Eggert and Eric Blake.
24949
24950 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24951
24952         renameat: port to Solaris 10, which declares renameat in unistd.h
24953
24954         * lib/renameat.c: Include unistd.h before stdio.h, because
24955         Solaris 10 declares renameat in unistd.h.  Problem encountered
24956         when building GNU tar 1.24 on Solaris 10.
24957
24958 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24959
24960         fdopendir: fix C89 compilation
24961         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24962         compilers.
24963
24964 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         inttostr: simplify by removing unnecessary redundancy
24967         * lib/anytostr.c: Don't include verify.h.
24968         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24969         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24970         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24971         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24972         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24973         Likewise.
24974         * modules/inttostr (Depends-on): Remove 'verify'.
24975
24976 2010-10-23  Bruno Haible  <bruno@clisp.org>
24977
24978         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24979         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24980         Reported by Eric Blake.
24981
24982 2010-10-23  Bruno Haible  <bruno@clisp.org>
24983
24984         Tests: Fix LOCALE_JA on MirBSD 10.
24985         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24986         to an UTF-8 locale.
24987         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24988         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24989         Reported by Eric Blake.
24990
24991 2010-10-21  Bruno Haible  <bruno@clisp.org>
24992
24993         nl_langinfo test: Avoid test failure on NetBSD 5.
24994         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24995         Reported by Eric Blake.
24996
24997 2010-10-21  Eric Blake  <eblake@redhat.com>
24998
24999         c-stack: work around libsigsegv 2.8 bug
25000         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25001         overflow on at least PowerPC64.
25002
25003 2010-10-17  Bruno Haible  <bruno@clisp.org>
25004
25005         userspec: Drop redundant file.
25006         * modules/userspec (Files): Remove lib/inttostr.h.
25007
25008 2010-10-17  Bruno Haible  <bruno@clisp.org>
25009
25010         nl_langinfo tests: Silence some warnings.
25011         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25012         Reported by Jim Meyering.
25013
25014 2010-10-17  Bruno Haible  <bruno@clisp.org>
25015
25016         Make use of GCC's attribute __alloc_size__.
25017         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25018         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25019         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25020         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25021         __alloc_size__.
25022         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25023         Suggested by Jim Meyering.
25024
25025 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25026
25027         bootstrap: anchor .gitignore entries.
25028         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25029         with...
25030         (insert_vc_ignore): ... this new function, which prepends `/' to
25031         all .gitignore entries before passing them to
25032         insert_sorted_if_absent.
25033
25034 2010-10-16  Bruno Haible  <bruno@clisp.org>
25035
25036         nextafter: Fix configure check.
25037         * modules/nextafter (configure.ac): Correct expected prototype.
25038
25039 2010-10-16  Bruno Haible  <bruno@clisp.org>
25040
25041         termios: Update documentation.
25042         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25043
25044 2010-10-16  Bruno Haible  <bruno@clisp.org>
25045
25046         tests: Make them compile with TinyCC.
25047         * tests/test-strstr.c (main): Remove parentheses around array
25048         initializer.
25049
25050 2010-10-15  Eric Blake  <eblake@redhat.com>
25051
25052         ignore-value: make header idempotent
25053         * lib/ignore-value.h: Add double-inclusion guards.
25054         Reported by Stefan Berger.
25055
25056 2010-10-15  Jim Meyering  <meyering@redhat.com>
25057
25058         GNUmakefile: handle "stable" target, not "major"
25059         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25060         lists in maint.mk and announce-gen.  Without this, "make stable"
25061         would fail to ensure that $(VERSION) is up to date.
25062
25063 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25064
25065         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25066         & co.
25067
25068 2010-10-14  Bruno Haible  <bruno@clisp.org>
25069
25070         vasnprintf: Don't set errno to 0.
25071         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25072         block that sets it to 0.
25073         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25074
25075 2010-10-14  Bruno Haible  <bruno@clisp.org>
25076
25077         socketlib: Fix.
25078         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25079         gl_PREREQ_SYS_H_WINSOCK2.
25080         Reported by Ian Beckwith <ianb@erislabs.net>.
25081
25082 2010-10-13  Jim Meyering  <meyering@redhat.com>
25083
25084         test-select-stdin.c: avoid warn_unused_result warnings
25085         * tests/test-select-stdin.c: Include "macros.h".
25086         ASSERT that read and fflush succeed.
25087
25088 2010-10-13  Jim Meyering  <meyering@redhat.com>
25089
25090         git-version-gen: do require git-VC'd files in cwd
25091         * build-aux/git-version-gen: Reject a git version string
25092         if there are no commits associated with the current directory.
25093         This avoids an unlikely false-positive (unrelated dir whose parent
25094         repository also contains a tag matching v*), as pointed out
25095         by Giuseppe Scrivano in
25096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25097
25098 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25099
25100         argv-iter: omit nonconforming declaration
25101         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25102         enum arg_iter_err declaration, which doesn't conform to C99.
25103         Solaris 10 cc warns about this.
25104
25105 2010-10-13  Eric Blake  <eblake@redhat.com>
25106
25107         termios: fix compilation on mingw
25108         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25109         (gl_TERMIOS_H): Adjust it on mingw.
25110         * modules/termios (Makefile.am): Substitute new key.
25111         * lib/termios.in.h (includes): Make include_next conditional.
25112         * doc/posix-headers/termios.texi (termios.h): Update
25113         documentation.
25114         Reported by Daniel P. Berrange.
25115
25116 2010-10-13  Jim Meyering  <meyering@redhat.com>
25117
25118         git-version-gen: don't require that .git/ be in the current dir
25119         * build-aux/git-version-gen: Adjust this script so that it works
25120         when run from any working directory beneath the top-level .git/-
25121         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25122         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25123
25124         test-select: avoid warn_unused_result warnings
25125         * tests/test-select.c: Include "macros.h".
25126         ASSERT that each call to read, write, and pipe succeeds.
25127         While not technically required, also check each "close".
25128         * modules/select-tests (Files): Add tests/macros.h.
25129
25130         test-symlinkat: remove declaration of unused local
25131         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25132
25133         test-inttostr: avoid shadowing warnings
25134         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25135         and use malloc rather than the stack for the same reason as
25136         mentioned in the comment justifying the other allocation.
25137
25138 2010-10-11  Bruno Haible  <bruno@clisp.org>
25139
25140         stdlib: Allow multiple gnulib generated replacements to coexist.
25141         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25142         Reported by Sam Steingold <sds@gnu.org>.
25143
25144 2010-10-11  Jim Meyering  <meyering@redhat.com>
25145
25146         fix a documentation typo
25147         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25148
25149 2010-10-11  Eric Blake  <eblake@redhat.com>
25150
25151         futimens: work around Solaris 11 bug
25152         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25153         * tests/test-futimens.h (test_futimens): Enhance, rather than
25154         weaken test.
25155         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25156
25157 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25158
25159         Indentation.
25160         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25161         higher-level operators more to the left.
25162
25163 2010-10-11  Jim Meyering  <meyering@redhat.com>
25164
25165         test-futimens: avoid unwarranted test failure on Solaris 5.11
25166         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25167         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25168         because it tries to dereference the NULL name argument.
25169
25170 2010-10-11  Bruno Haible  <bruno@clisp.org>
25171
25172         Indentation.
25173         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25174         indentation.
25175
25176 2010-10-11  Jim Meyering  <meyering@redhat.com>
25177
25178         spawn.in.h: make indentation consistent with parentheses
25179         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25180         Make indentation consistent with parentheses.
25181
25182 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25183
25184         Fix mismatched parens in previous commit
25185         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25186         parens.
25187
25188 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25189
25190         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25191
25192         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25193         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25194         * lib/malloca.c: Include "verify.h".
25195         (verify1): Remove, replacing with a verify call.
25196         * lib/relocwrapper.c (verify1): Likewise.
25197         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25198         Likewise.
25199         * modules/malloca (Depends-on): Add 'verify'.
25200         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25201         * modules/vasnprintf (Depends-on): Add 'verify'.
25202         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25204         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25205         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25206         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25207         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25209
25210         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25211
25212         Formerly the style was sometimes 2*X - 1, because the C standard
25213         was wrongly thought to disallow ?: in integral constant expressions.
25214         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25215         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25216         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25217         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25218         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25219         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25220         verify that time_t cannot be floating.
25221
25222 2010-10-08  Eric Blake  <eblake@redhat.com>
25223
25224         time: enforce recent POSIX ruling that time_t is integral
25225         * lib/time.in.h (__time_t_must_be_integral): Detect any
25226         problematic systems, allowing the rest of gnulib to assume POSIX.
25227
25228 2010-10-08  Jim Meyering  <meyering@redhat.com>
25229
25230         fdopendir: fix a bug on systems lacking openat and /proc support
25231         OpenBSD 4.7 is one such system.  The most noticeable effect was
25232         failure of any application making nontrivial use of fts: rm, du,
25233         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25234           ./rm: traversal failed: `a': Bad file descriptor
25235         Debugging that, you see that even though FD 6 was closed just
25236         prior to the opendir call in fd_clone_opendir, its resulting
25237         dir->dd_fd was 8, rather than the expected value of 6:
25238
25239         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25240         93                close (fd);
25241         (gdb) n
25242         94                dir = fd_clone_opendir (dupfd);
25243         (gdb) n
25244         95                saved_errno = errno;
25245         (gdb) p dir->dd_fd
25246         $11 = 8
25247
25248         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25249         The problem is that on OpenBSD, fd_clone_opendir has to resort
25250         to using the old-style save/restore CWD mechanism, due to its
25251         lack of openat/proc support, and *that* would steal the FD (6)
25252         that opendir was supposed to use.
25253
25254         The fix is to squirrel away the desired FD so that save_cwd uses a
25255         different one, and then free the dest FD right before calling opendir.
25256         That guarantees opendir will use the required file descriptor.
25257
25258         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25259
25260 2010-10-08  Bruno Haible  <bruno@clisp.org>
25261
25262         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25263         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25264
25265 2010-10-08  Bruno Haible  <bruno@clisp.org>
25266
25267         nanosleep: Make replacement POSIX compliant.
25268         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25269         is out of range.
25270         Reported by Jim Meyering.
25271
25272 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         bootstrap: add hook for altering gnulib.mk, for Bison
25275         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25276         the Bison bootstrapping process can rewrite file names and variables
25277         in this file before later parts of 'bootstrap' use the file.
25278         Bison wants to include lib/gnulib.mk from the top-level makefile,
25279         so it needs the file names in this file to be relative to the top
25280         level, not relative to lib; plus it needs variable names to be
25281         rewritten.
25282         (slurp): Use the new function.
25283
25284         bootstrap: reformat for readability
25285         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25286
25287 2010-10-08  Eric Blake  <eblake@redhat.com>
25288
25289         docs: update cygwin progress
25290         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25291         1.7.7.
25292         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25293         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25294         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25295         * doc/posix-functions/carg.texi (carg): Likewise.
25296         * doc/posix-functions/cargf.texi (cargf): Likewise.
25297         * doc/posix-functions/casin.texi (casin): Likewise.
25298         * doc/posix-functions/casinf.texi (casinf): Likewise.
25299         * doc/posix-functions/casinh.texi (casinh): Likewise.
25300         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25301         * doc/posix-functions/catan.texi (catan): Likewise.
25302         * doc/posix-functions/catanf.texi (catanf): Likewise.
25303         * doc/posix-functions/catanh.texi (catanh): Likewise.
25304         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25305         * doc/posix-functions/ccos.texi (ccos): Likewise.
25306         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25307         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25308         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25309         * doc/posix-functions/cexp.texi (cexp): Likewise.
25310         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25311         * doc/posix-functions/cimag.texi (cimag): Likewise.
25312         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25313         * doc/posix-functions/clog.texi (clog): Likewise.
25314         * doc/posix-functions/clogf.texi (clogf): Likewise.
25315         * doc/posix-functions/conj.texi (conj): Likewise.
25316         * doc/posix-functions/conjf.texi (conjf): Likewise.
25317         * doc/posix-functions/cpow.texi (cpow): Likewise.
25318         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25319         * doc/posix-functions/cproj.texi (cproj): Likewise.
25320         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25321         * doc/posix-functions/creal.texi (creal): Likewise.
25322         * doc/posix-functions/crealf.texi (crealf): Likewise.
25323         * doc/posix-functions/csin.texi (csin): Likewise.
25324         * doc/posix-functions/csinf.texi (csinf): Likewise.
25325         * doc/posix-functions/csinh.texi (csinh): Likewise.
25326         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25327         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25328         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25329         * doc/posix-functions/ctan.texi (ctan): Likewise.
25330         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25331         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25332         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25333         * doc/posix-headers/complex.texi (complex.h): Likewise.
25334
25335 2010-10-07  Jim Meyering  <meyering@redhat.com>
25336
25337         parse-datetime: avoid compilation failure on OpenBSD 4.7
25338         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25339         This works around a compilation failure on OpenBSD 4.7:
25340         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25341
25342 2010-10-07  Eric Blake  <eblake@redhat.com>
25343
25344         docs: update cygwin progress
25345         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25346         1.7.6.
25347         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25348         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25349         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25350         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25351         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25352         Likewise.
25353         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25354         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25355         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25356         Likewise.
25357         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25358         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25359         Likewise.
25360         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25361         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25362         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25363         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25364         Likewise.
25365         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25366         Likewise.
25367         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25368
25369         docs: update parse-datetime history
25370         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25371         documentation of this function's history and alternatives.
25372
25373         cygwin: use more robust version check
25374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25375         exclude an eventual cygwin 1.9.1.
25376         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25378         (gl_FUNC_STRCASESTR): Likewise.
25379         Reported by Bruno Haible.
25380
25381 2010-10-06  Bruno Haible  <bruno@clisp.org>
25382
25383         string, sys_select: Avoid #including large headers unless necessary.
25384         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25385         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25386         OSF/1, BeOS, Haiku.
25387         Reported by Jim Meyering.
25388
25389 2010-10-05  Eric Blake  <eblake@redhat.com>
25390
25391         memmem, strstr, strcasestr: fix bug with long periodic needle
25392         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25393         periodic needle having false positive.
25394         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25395         and cygwin 1.7.7.
25396         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25397         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25398         (gl_FUNC_STRCASESTR): Likewise.
25399         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25400         * tests/test-memmem.c (main): Expose the bug.
25401         * tests/test-strcasestr.c (main): Likewise.
25402         * tests/test-strstr.c (main): Likewise.
25403         * tests/test-c-strcasestr.c (main): Likewise.
25404         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25405         * doc/posix-functions/strstr.texi (strstr): Likewise.
25406         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25407         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25408
25409 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25410
25411         parse-datetime: do some more renaming
25412         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25413         parse_datetime, not get_date.  Mention the renaming.
25414         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25415         in comments.
25416         * m4/bison.m4: Likewise.
25417
25418 2010-10-05  Eric Blake  <eblake@redhat.com>
25419
25420         parse-datetime: better name than get_date
25421         * NEWS: Reword the deprecation notice.
25422         * modules/get_date: Rename to modules/parse-datetime.
25423         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25424         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25425         * lib/get_date.y: Rename to lib/parse-datetime.y.
25426         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25427         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25428         * doc/getdate.texi: Provide fallback wrapper.
25429         * lib/getdate.h: Move guts, and wrap...
25430         * lib/parse-datetime.h: ...new file.
25431         * lib/parse-datetime.y (get_date): Rename...
25432         (parse_datetime): ...to this.
25433         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25434         (gl_PARSE_DATETIME): ...to this.
25435         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25436         documentation.
25437         * modules/getdate (Files): Provide fallback docs and header.
25438         (Notice, Depends-on): Update references.
25439         * tests/test-parse-datetime.c: Likewise.
25440         * DEPENDENCIES: Likewise.
25441         * MODULES.html.sh (Date and time <time.h>): Likewise.
25442         * doc/parse-datetime.texi (Date input formats)
25443         (Authors of parse_datetime): Likewise.
25444         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25445         (Include): Likewise.
25446         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25447         * gnulib-tool: Likewise.
25448         * m4/bison.m4 (gl_BISON): Likewise.
25449         Suggested by Bruno Haible.
25450
25451 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25452
25453         more ports to Solaris tr, which needs [] around ranges
25454         * gnulib-tool: Solaris tr needs [] around ranges.
25455         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25456         * tests/test-pipe-filter-gi1.c (main): Likewise.
25457         * tests/test-pipe-filter-ii1.c (main): Likewise.
25458
25459 2010-10-05  Eric Blake  <eblake@redhat.com>
25460
25461         bootstrap: fix Solaris regression
25462         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25463         around ranges.
25464         Reported by Pádraig Brady.
25465
25466         bootstrap: work with pkg-config
25467         * build-aux/bootstrap (check_versions): Also transliterate - in
25468         prerequisite name.
25469         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25470         prerequisites that were already found, to avoid confusion.
25471         Reported by Justin Clift.
25472
25473         faccessat: remove unused wrappers
25474         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25475         presence of these wrappers dragged in -lgen on Solaris.
25476         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25477
25478 2010-10-05  Jim Meyering  <meyering@redhat.com>
25479
25480         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25481         * Makefile (sc_pragma_columns): New syntax-check rule.
25482
25483 2010-10-04  Bruno Haible  <bruno@clisp.org>
25484
25485         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25486         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25487         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25488         Reported by Bruce Korb and Eric Blake.
25489
25490 2010-10-04  Bruno Haible  <bruno@clisp.org>
25491
25492         threadlib: Make option --with-libpth-prefix work.
25493         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25494         use $LIBPTH, not just -lpth.
25495
25496 2010-10-04  Bruno Haible  <bruno@clisp.org>
25497
25498         Avoid line length limitation from HP NonStop system header files.
25499         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25500         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25501         * lib/ctype.in.h: Likewise.
25502         * lib/dirent.in.h: Likewise.
25503         * lib/errno.in.h: Likewise.
25504         * lib/fcntl.in.h: Likewise.
25505         * lib/float.in.h: Likewise.
25506         * lib/getopt.in.h: Likewise.
25507         * lib/iconv.in.h: Likewise.
25508         * lib/inttypes.in.h: Likewise.
25509         * lib/langinfo.in.h: Likewise.
25510         * lib/locale.in.h: Likewise.
25511         * lib/math.in.h: Likewise.
25512         * lib/netdb.in.h: Likewise.
25513         * lib/netinet_in.in.h: Likewise.
25514         * lib/poll.in.h: Likewise.
25515         * lib/pthread.in.h: Likewise.
25516         * lib/pty.in.h: Likewise.
25517         * lib/sched.in.h: Likewise.
25518         * lib/se-selinux.in.h: Likewise.
25519         * lib/search.in.h: Likewise.
25520         * lib/signal.in.h: Likewise.
25521         * lib/spawn.in.h: Likewise.
25522         * lib/stdarg.in.h: Likewise.
25523         * lib/stddef.in.h: Likewise.
25524         * lib/stdint.in.h: Likewise.
25525         * lib/stdio.in.h: Likewise.
25526         * lib/stdlib.in.h: Likewise.
25527         * lib/string.in.h: Likewise.
25528         * lib/strings.in.h: Likewise.
25529         * lib/sys_file.in.h: Likewise.
25530         * lib/sys_ioctl.in.h: Likewise.
25531         * lib/sys_select.in.h: Likewise.
25532         * lib/sys_socket.in.h: Likewise.
25533         * lib/sys_stat.in.h: Likewise.
25534         * lib/sys_time.in.h: Likewise.
25535         * lib/sys_times.in.h: Likewise.
25536         * lib/sys_utsname.in.h: Likewise.
25537         * lib/sys_wait.in.h: Likewise.
25538         * lib/sysexits.in.h: Likewise.
25539         * lib/termios.in.h: Likewise.
25540         * lib/time.in.h: Likewise.
25541         * lib/unistd.in.h: Likewise.
25542         * lib/wchar.in.h: Likewise.
25543         * lib/wctype.in.h: Likewise.
25544         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25545         * modules/ctype (Makefile.am): Likewise.
25546         * modules/dirent (Makefile.am): Likewise.
25547         * modules/errno (Makefile.am): Likewise.
25548         * modules/fcntl-h (Makefile.am): Likewise.
25549         * modules/float (Makefile.am): Likewise.
25550         * modules/getopt-posix (Makefile.am): Likewise.
25551         * modules/iconv-h (Makefile.am): Likewise.
25552         * modules/inttypes (Makefile.am): Likewise.
25553         * modules/langinfo (Makefile.am): Likewise.
25554         * modules/locale (Makefile.am): Likewise.
25555         * modules/math (Makefile.am): Likewise.
25556         * modules/netdb (Makefile.am): Likewise.
25557         * modules/netinet_in (Makefile.am): Likewise.
25558         * modules/poll-h (Makefile.am): Likewise.
25559         * modules/pthread (Makefile.am): Likewise.
25560         * modules/pty (Makefile.am): Likewise.
25561         * modules/sched (Makefile.am): Likewise.
25562         * modules/search (Makefile.am): Likewise.
25563         * modules/selinux-h (Makefile.am): Likewise.
25564         * modules/signal (Makefile.am): Likewise.
25565         * modules/spawn (Makefile.am): Likewise.
25566         * modules/stdarg (Makefile.am): Likewise.
25567         * modules/stddef (Makefile.am): Likewise.
25568         * modules/stdint (Makefile.am): Likewise.
25569         * modules/stdio (Makefile.am): Likewise.
25570         * modules/stdlib (Makefile.am): Likewise.
25571         * modules/string (Makefile.am): Likewise.
25572         * modules/strings (Makefile.am): Likewise.
25573         * modules/sys_file (Makefile.am): Likewise.
25574         * modules/sys_ioctl (Makefile.am): Likewise.
25575         * modules/sys_select (Makefile.am): Likewise.
25576         * modules/sys_socket (Makefile.am): Likewise.
25577         * modules/sys_stat (Makefile.am): Likewise.
25578         * modules/sys_time (Makefile.am): Likewise.
25579         * modules/sys_times (Makefile.am): Likewise.
25580         * modules/sys_utsname (Makefile.am): Likewise.
25581         * modules/sys_wait (Makefile.am): Likewise.
25582         * modules/sysexits (Makefile.am): Likewise.
25583         * modules/termios (Makefile.am): Likewise.
25584         * modules/time (Makefile.am): Likewise.
25585         * modules/unistd (Makefile.am): Likewise.
25586         * modules/wchar (Makefile.am): Likewise.
25587         * modules/wctype (Makefile.am): Likewise.
25588
25589 2010-10-04  Bruno Haible  <bruno@clisp.org>
25590
25591         read-file tests: Avoid a test failure on NonStop Kernel.
25592         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25593         a regular file.
25594         Reported by Joachim Schmitz <schmitz@hp.com>.
25595
25596 2010-10-03  Bruno Haible  <bruno@clisp.org>
25597
25598         gnulib-tool: Fixes for --create-testdir with --libtool.
25599         * gnulib-tool (func_get_automake_snippet): Don't augment
25600         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25601         an executable.
25602         (func_create_testdir): Handle module 'alloca' like func_import.
25603         Reported by Bruce Korb <bruce.korb@gmail.com>.
25604
25605 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25606
25607         Avoid some lines longer than 80 characters.
25608         * lib/stdint.in.h: Break long comment lines.
25609         * lib/math.in.h: Likewise.
25610         (_GL_NUM_UINT_WORDS): New macro, for readability.
25611         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25612         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25613         * lib/stdlib.in.h: Likewise.
25614         * lib/spawn.in.h: Likewise.
25615         * lib/sys_socket.in.h: Update an URL.
25616         * lib/sys_stat.in.h: Break long line.
25617
25618 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25619
25620         Improve pmccabe2html.
25621         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25622         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25623         when the sources change. Remove the line in the HTML about "Used
25624         ranges" (which implied that there might be other unused ranges),
25625         rename "Resume" to "Summary" (easier to understand for more users).
25626         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25627         styles, and some unnecessary blank lines.
25628
25629 2010-10-03  Bruno Haible  <bruno@clisp.org>
25630             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25631
25632         acl: Add support for ACLs on NonStop Kernel.
25633         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25634         Check whether the function aclsort() exists.
25635         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25636         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25637         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25638         (acl_nontrivial [HAVE_ACLSORT]: New function.
25639         (file_has_acl): Implement for NonStop Kernel.
25640         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25641         (qset_acl): Implement for NonStop Kernel.
25642         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25643         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25644         (main): Implement for NonStop Kernel.
25645         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25646         Kernel. Handle this flavor.
25647         * tests/test-set-mode-acl.sh: Likewise.
25648         * tests/test-copy-acl.sh: Likewise.
25649         * tests/test-copy-file.sh: Likewise.
25650
25651 2010-10-03  Bruno Haible  <bruno@clisp.org>
25652
25653         Info about ACLs on NonStop Kernel.
25654         * doc/acl-resources.txt: Add info about NonStop Kernel.
25655         References by Joachim Schmitz <schmitz@hp.com>.
25656
25657 2010-10-02  Bruno Haible  <bruno@clisp.org>
25658
25659         Define missing EDQUOT on NonStop Kernel.
25660         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25661         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25663         missing.
25664         * doc/posix-headers/errno.texi: Mention the NSK bug.
25665         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25666         Reported by Joachim Schmitz <schmitz@hp.com>.
25667
25668 2010-10-02  Bruno Haible  <bruno@clisp.org>
25669
25670         Update doc for POSIX:2008.
25671         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25672         Update URL of POSIX specification.
25673
25674 2010-10-02  Bruno Haible  <bruno@clisp.org>
25675
25676         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25677         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25678         from gnulib, not from Automake.
25679
25680 2010-10-02  Bruno Haible  <bruno@clisp.org>
25681
25682         New module 'system-posix'.
25683         * modules/system-posix: New file.
25684         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25685         module is present.
25686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25687         GNULIB_SYSTEM_POSIX.
25688         * modules/stdlib (Depends-on): Remove sys_wait.
25689         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25690         * doc/posix-functions/system.texi: Mention the new module.
25691         * doc/posix-headers/stdlib.texi: Likewise.
25692         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25693         define test_sys_wait_macros to a no-op.
25694         Reported by Sam Steingold <sds@gnu.org>.
25695
25696 2010-09-30  Bruno Haible  <bruno@clisp.org>
25697
25698         More renaming from 'getdate' to 'get_date'.
25699         * doc/get_date.texi: Renamed from doc/getdate.texi.
25700         * modules/get_date (Files): Update.
25701         * MODULES.html.sh (Date and time <time.h>): Update.
25702         * DEPENDENCIES: Update.
25703         * gnulib-tool: Update comment.
25704         * m4/bison.m4 (gl_BISON): Likewise.
25705         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25706
25707 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25708
25709         bootstrap: support ACLOCAL_FLAGS during aclocal
25710         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25711         can add additional -I dir for third-party .m4 files.
25712
25713 2010-09-30  Eric Blake  <eblake@redhat.com>
25714
25715         bootstrap: use glibtoolize on MacOS
25716         * build-aux/bootstrap (check_versions): Convert libtool into
25717         libtoolize.
25718         (tool search): Move libtool check earlier, and look for
25719         glibtoolize for MacOS.
25720         (gnulib_tool_options): Auto-add --libtool when appropriate.
25721         Reported by Justin Clift.
25722
25723         poll: fix typo that broke test on MacOS
25724         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25725         Reported by Justin Clift.
25726
25727         getdate: rename to get_date
25728         Note: getdate.h is not renamed, to minimize client impact.
25729         * modules/getdate: Mark obsolete.  Move old contents...
25730         * modules/get_date: ...to new module name.
25731         * modules/getdate-tests: Move...
25732         * modules/get_date-tests: ...here.
25733         * m4/getdate.m4: Move...
25734         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25735         * lib/getdate.y: Move...
25736         * lib/get_date.y: ...here.
25737         * tests/test-getdate.c: Move...
25738         * tests/test-get_date.c: ...here.
25739         * doc/posix-functions/getdate.texi (getdate): Update name.
25740         * NEWS: Mention the change.
25741
25742 2010-09-29  Bruno Haible  <bruno@clisp.org>
25743
25744         Separate the module 'waitpid' from the module 'sys_wait'.
25745         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25746         present.
25747         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25748         gl_MODULE_INDICATOR_FOR_TESTS.
25749         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25750         * modules/sys_wait (Depends-on): Remove waitpid.
25751         (Makefile.am): Substitute GNULIB_WAITPID.
25752         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25753         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25754         signature only if the 'waitpid' module is present.
25755         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25756         * NEWS: Mention the change.
25757         * modules/grantpt (Depends-on): Add waitpid.
25758         * modules/wait-process (Depends-on): Likewise.
25759
25760 2010-09-29  Bruno Haible  <bruno@clisp.org>
25761
25762         More tests for module 'sys_wait'.
25763         * modules/sys_wait-c++-tests: New file.
25764         * tests/test-sys_wait-c++.cc: New file.
25765         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25766         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25767
25768 2010-09-29  Bruno Haible  <bruno@clisp.org>
25769
25770         New module 'waitpid'.
25771         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25772         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25773         Don't include <process.h>.
25774         (waitpid): Declare only, using modern idiom.
25775         * m4/waitpid.m4: New file.
25776         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25777         * modules/waitpid: New file.
25778         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25779         (Makefile.am): Update.
25780         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25781
25782 2010-09-28  Bruno Haible  <bruno@clisp.org>
25783
25784         poll: Assume ANSI C.
25785         * lib/poll.c (poll): Use an ANSI C declaration.
25786
25787 2010-09-28  Bruno Haible  <bruno@clisp.org>
25788
25789         poll-h: Create poll.h on all platforms.
25790         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25791         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25792         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25793         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25794         (gl_REPLACE_POLL_H): Don't set POLL_H.
25795         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25796         * modules/poll-h (Depends-on): Add include_next.
25797         (Makefile.am): Create poll.h unconditionally. Substitute also
25798         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25799
25800 2010-09-28  Bruno Haible  <bruno@clisp.org>
25801
25802         Tests for module 'poll-h'.
25803         * modules/poll-h-c++-tests: New file.
25804         * tests/test-poll-h-c++.cc: New file.
25805
25806         Tests for module 'poll-h'.
25807         * modules/poll-h-tests: New file.
25808         * tests/test-poll-h.c: New file.
25809
25810 2010-09-28  Bruno Haible  <bruno@clisp.org>
25811
25812         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25813         * modules/poll-h (Depends-on): Add 'extensions'.
25814
25815 2010-09-28  Bruno Haible  <bruno@clisp.org>
25816
25817         New module 'poll-h'.
25818         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25819         (poll): Use modern idiom.
25820         * modules/poll-h: New file.
25821         * modules/poll (Files): Remove lib/poll.in.h.
25822         (Depends-on): Add poll-h.
25823         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25824         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25825         * m4/poll_h.m4: New file.
25826         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25827         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25828         and invoke gl_REPLACE_POLL_H.
25829         * lib/poll.c: Use common idiom.
25830         * tests/test-poll.c: Likewise.
25831         * doc/posix-headers/poll.texi: Mention the poll-h module.
25832         Suggested by Eric Blake.
25833
25834 2010-09-26  Bruno Haible  <bruno@clisp.org>
25835
25836         sys_wait: Implement WSTOPSIG.
25837         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25838         Reported by Simon Josefsson.
25839
25840 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25841
25842         stdlib, sys_wait: Avoid compilation error on mingw.
25843         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25844
25845 2010-09-26  Bruno Haible  <bruno@clisp.org>
25846
25847         stdlib tests: Avoid code duplication.
25848         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25849         * modules/sys_wait-tests (Files): Likewise.
25850         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25851         * tests/test-stdlib.c: Include test-sys_wait.h.
25852         (main): Invoke test_sys_wait_macros.
25853         * tests/test-sys_wait.c: Include test-sys_wait.h.
25854         (main): Invoke test_sys_wait_macros.
25855
25856 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25857
25858         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25859         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25860         sure Windows sockets are working before calling getaddrinfo.
25861         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25862         * doc/gnulib.texi (Windows sockets): Fix typo.
25863
25864 2010-09-25  Bruno Haible  <bruno@clisp.org>
25865
25866         Tests for module 'regex-quote'.
25867         * modules/regex-quote-tests: New file.
25868         * tests/test-regex-quote.c: New file.
25869
25870         New module 'regex-quote'.
25871         * lib/regex-quote.h: New file.
25872         * lib/regex-quote.c: New file.
25873         * modules/regex-quote: New file.
25874         Suggested by Reuben Thomas <rrt@sc3d.org>.
25875
25876 2010-09-24  Bruno Haible  <bruno@clisp.org>
25877
25878         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25879         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25880
25881 2010-09-23  Bruno Haible  <bruno@clisp.org>
25882
25883         setenv: Relax license.
25884         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25885         Blake.
25886         Requested by Eric Blake.
25887
25888 2010-09-22  Bruno Haible  <bruno@clisp.org>
25889
25890         termios: Relax license.
25891         * modules/termios (License): Change to LGPLv2+.
25892         Requested by Eric Blake.
25893
25894 2010-09-22  Bruno Haible  <bruno@clisp.org>
25895
25896         threadlib: Allow the package to change the default to 'no'.
25897         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25898         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25899         Reported by Paul Eggert.
25900
25901 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25902             Bruno Haible  <bruno@clisp.org>
25903
25904         Fix endless loop in mbmemcasecoll.
25905         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25906         byte.
25907         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25908
25909 2010-09-22  Bruno Haible  <bruno@clisp.org>
25910
25911         Tests for module 'memcoll'.
25912         * modules/memcoll-tests: New file.
25913         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25914
25915         memcoll, xmemcoll: Clarify size vs. length.
25916         * modules/memcoll.c (memcoll0): Clarify specification.
25917         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25918         passed to collate_error.
25919
25920 2010-09-22  Bruno Haible  <bruno@clisp.org>
25921
25922         Tests for module 'memcasecmp'.
25923         * modules/memcasecmp-tests: New file.
25924         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25925
25926 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25927
25928         * lib/pthread.in.h: Add split double-inclusion guard, and include
25929         system <pthread.h> if there is one.  Use @@-style as in other
25930         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25931         pthread.h doesn't.
25932         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25933         (pthread_mutexattr_settype, pthread_mutex_trylock):
25934         New static inline functions, if there's no system <pthread.h>.
25935         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25936         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25937         Approximate with mutexes if the system lacks spinlocks, as in
25938         MacOS.
25939         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25940         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25941         @@-style.  Check for spinlocks separately.
25942         (gl_PTHREAD_DEFAULTS): New macro.
25943         * modules/pthread: Redo to use a more typical style for in.h files.
25944
25945 2010-09-21  Eric Blake  <eblake@redhat.com>
25946
25947         net_if: enhance tests
25948         * tests/test-net_if.c (main): Move signature checks earlier.
25949         Print failures to stderr.
25950         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25951         Document the bug that we do not yet fix.
25952
25953 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25954
25955         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25956         about gnulib, not GSS.
25957
25958 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25959
25960         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25961         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25962         for Emacs.
25963         * build-aux/pmccabe2html: Make Makefile.am example code more
25964         cut-and-paste friendly.
25965
25966 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25967
25968         * tests/test-net_if.c: New file.
25969         * modules/net_if-tests: New file.
25970
25971 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         pthread: add pthread_spin_destroy
25974         * lib/pthread.in.h (pthread_spin_destroy): New function.
25975
25976 2010-09-19  Bruno Haible  <bruno@clisp.org>
25977
25978         gnulib-tool: Fix --help output.
25979         * gnulib-tool (func_usage): Fix help message.
25980         Reported by Reuben Thomas <rrt@sc3d.org>.
25981
25982 2010-09-18  Jim Meyering  <meyering@redhat.com>
25983
25984         maint.mk: avoid unexpanded \n in two diagnostics
25985         * top/maint.mk (sc_prohibit_always_true_header_tests):
25986         Don't use a literal \n in a halt=... assignment.  It would not be
25987         expanded, and the two \n bytes would appear in the diagnostic output
25988         rather than the desired newline.  Use halt=$$(printf ... instead.
25989         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25990
25991 2010-09-18  Bruno Haible  <bruno@clisp.org>
25992
25993         netinet_in: Doc tweak.
25994         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25995         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25996
25997 2010-09-18  Jim Meyering  <meyering@redhat.com>
25998
25999         init.sh: correct an outdated comment
26000         * tests/init.sh (create_exe_shims_):  s/function/alias/
26001
26002         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26003         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26004         a file named "*.exe" is removed between the glob expansion and the
26005         processing of that oddly named file.
26006
26007 2010-09-17  Eric Blake  <eblake@redhat.com>
26008
26009         mirbsd: add some more support
26010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26011         in BSD family.
26012         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26013         devices as OpenBSD.
26014         * m4/host-os.m4 (mirbsd): Add MirBSD.
26015
26016         tests: fix unportable assumption on sys/wait.h
26017         * tests/test-sys_wait.c (main): Relax test.
26018         * tests/test-stdlib.c (main): Likewise.
26019
26020         init.sh: accomodate directory with no .exes
26021         * tests/init.sh: Accomodate directory containing only scripts.
26022
26023         tests: avoid compiler warning
26024         * tests/test-stdlib.c (main): Use the variable.
26025
26026         fdutimens, fdutimensat: update signature, again
26027         * lib/utimens.h (gl_futimens): Delete, and move signature...
26028         (fdutimens): ...here.
26029         (fdutimensat): Rearrange signature.
26030         (lutimensat): Rename variable for clarity.
26031         * lib/fdutimensat.c (fdutimensat): Update signature.
26032         * lib/utimens.c (fdutimens): Likewise.
26033         (gl_futimens): Delete.
26034         (utimens, lutimens): Update callers.
26035         * lib/futimens.c (futimens): Likewise.
26036         * tests/test-fdutimensat.c: Likewise.
26037         * tests/test-utimens.c: Likewise.
26038         * tests/test-futimens.h: Update comment.
26039         * NEWS: Mention this.
26040         Suggested by Paul Eggert.
26041
26042 2010-09-17  Bruno Haible  <bruno@clisp.org>
26043
26044         Take over the maintenance of some older macros from Autoconf.
26045         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26046         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26047         GNU Autoconf.
26048         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26049         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26050
26051 2010-09-17  Eric Blake  <eblake@redhat.com>
26052
26053         fdutimensat: drop atflag validation
26054         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26055         with valid fd, to close a race scenario where futimens is
26056         unsupported and FILE was replaced by a symlink.
26057         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26058         accordingly.
26059         Suggested by Paul Eggert.
26060
26061 2010-09-16  Bruno Haible  <bruno@clisp.org>
26062
26063         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26064         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26065
26066 2010-09-16  Bruno Haible  <bruno@clisp.org>
26067
26068         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26069         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26070         login_tty exists.
26071         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26072
26073 2010-09-16  Bruno Haible  <bruno@clisp.org>
26074
26075         login_tty: Make the replacement code work on BSD systems.
26076         * lib/login_tty.c: Include <sys/ioctl.h>.
26077         (login_tty): Use ioctl TIOCSCTTY when available.
26078         * modules/login_tty (Depends-on): Add sys_ioctl.
26079         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26080
26081 2010-09-16  Bruno Haible  <bruno@clisp.org>
26082
26083         login_tty: Stricter unit test.
26084         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26085         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26086         and tcgetsid() after login_tty.
26087         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26088
26089 2010-09-16  Bruno Haible  <bruno@clisp.org>
26090
26091         New module 'tcgetsid'.
26092         * lib/tcgetsid.c: New file.
26093         * m4/tcgetsid.m4: New file.
26094         * modules/tcgetsid: New file.
26095         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26096         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26097         GNULIB_TCGETSID, HAVE_TCGETSID.
26098         * lib/termios.in.h: Include <sys/types.h>.
26099         (tcgetsid): New declaration.
26100         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26101         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26102         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26103         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26104
26105 2010-09-16  Bruno Haible  <bruno@clisp.org>
26106
26107         Tests for module 'termios'.
26108         * modules/termios-c++-tests: New file.
26109         * modules/termios-tests: New file.
26110         * tests/test-termios-c++.cc: New file.
26111         * tests/test-termios.c: New file.
26112
26113         New module 'termios'.
26114         * modules/termios: New file.
26115         * lib/termios.in.h: New file.
26116         * m4/termios_h.m4: New file.
26117         * doc/posix-headers/termios.texi: Mention the new module.
26118
26119 2010-09-16  Eric Blake  <eblake@redhat.com>
26120
26121         fdutimensat: add an atflag parameter
26122         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26123         * lib/utimens.h (fdutimensat): Update prototype.
26124         * tests/test-fdutimensat.c: Adjust test to match.
26125         * NEWS: Document the change.
26126         Suggested by Paul Eggert.
26127
26128 2010-09-16  Bruno Haible  <bruno@clisp.org>
26129
26130         Fix typos in comments.
26131         * lib/striconveh.h: Fix typo in comment.
26132         * lib/login_tty.c (login_tty): Likewise.
26133
26134 2010-09-15  Bruno Haible  <bruno@clisp.org>
26135
26136         stdlib: clarify MirBSD WEXITSTATUS bug
26137         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26138         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26139
26140 2010-09-15  Eric Blake  <eblake@redhat.com>
26141
26142         stdlib: work around MirBSD WEXITSTATUS bug
26143         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26144         * modules/stdlib (Depends-on): Add sys_wait.
26145         * tests/test-sys_wait.c (main): Enhance test.
26146         * tests/test-stdlib.c (main): Likewise.
26147         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26148
26149         docs: mention MacOS issue with WEXITSTATUS(constant)
26150         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26151         issue.
26152         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26153
26154         strnlen: add tests
26155         * modules/strnlen-tests: New file.
26156         * tests/test-strnlen.c: Likewise.
26157
26158 2010-09-14  Bruno Haible  <bruno@clisp.org>
26159
26160         unistr/base: Avoid link errors when module 'libunistring' is also used.
26161         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26162         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26163         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26164         Declare also when HAVE_LIBUNISTRING is set.
26165         Reported by Pádraig Brady <P@draigbrady.com>.
26166
26167 2010-09-14  Eric Blake  <eblake@redhat.com>
26168
26169         test-rawmemchr: make more robust
26170         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26171         (Depends-on, configure.ac): Add needed prerequisites to use it.
26172         * modules/memchr-tests (Files, Depends-on, configure.ac):
26173         Likewise, to avoid implicit reliance on memchr module prereqs.
26174         * tests/test-memchr.c (main): Ensure proper masking.
26175         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26176         reads.
26177
26178         memchr: detect glibc Alpha bug
26179         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26181         Alpha.
26182         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26183         * tests/test-memchr.c (main): Enhance test.
26184         Reported by Nelson H. F. Beebe.
26185
26186 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26187
26188         fts, getcwd, glob: audit for dirfd returning -1
26189         * lib/fts.c (opendir): Remove #define; no longer used.
26190         (opendirat): New arg PDIR_FD.  All callers changed.
26191         (fts_build, _opendir2): Use new opendirat to avoid the need for
26192         dirfd, or for checking whether dirfd returns a negative value.
26193         Don't use opendir; always use openat followed by fdopendir.
26194         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26195         it.
26196         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26197         returns -1 here.
26198         * modules/fts (Depends-on): Remove dirfd.
26199         * modules/getcwd (Depends-on): Likewise.
26200
26201 2010-09-13  Eric Blake  <eblake@redhat.com>
26202
26203         float: fix broken MirBSD header
26204         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26205         * doc/posix-headers/float.texi (float.h): Document it.
26206
26207 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26208
26209         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26210         * lib/fts.c (opendirat): New arg extra_flags.
26211         (__opendir2): Use it to avoid following symlinks when opening
26212         a directory, if symlinks are not supposed to be followed.  See
26213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26214
26215         fdopendir: preserve argument fd before returning
26216         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26217         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26218         (fdopendir): Use them, arranging for FD to be open to the same
26219         directory that it was when it started.  (It might be temporarily
26220         closed while fdopendir is running, so this not thread- or
26221         signal-safe.)  Be careful to do the right thing even when file
26222         descriptors are scarce and dup fails with errno == EMFILE.  See
26223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26224
26225 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26226
26227         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26228         * NEWS: Document change.
26229         * m4/regex.m4: Disable test for regoff_t size.
26230
26231 2010-09-13  Jim Meyering  <meyering@redhat.com>
26232
26233         fts: don't operate on an invalid file descriptor after failed dup
26234         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26235         negative file descriptor.
26236
26237 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26238
26239         savedir: add streamsavedir, deprecate fdsavedir
26240         * NEWS: Mention deprecation of fdsavedir.
26241         * lib/savedir.c (streamsavedir): New extern function, whose name
26242         ends in "savedir" to be consistent with the others.  This differs
26243         from savedirstream in that it doesn't close its argument.  The
26244         next version of GNU tar will use this instead of fdsavedir, to
26245         avoid some race conditions and conserve file descriptors.
26246         (savedirstream): Reimplement as a wrapper around streamsavedir.
26247         (fdsavedir): Add a comment deprecating this function.  As far as
26248         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26249         * lib/savedir.h (streamsavedir): New decl.
26250         (fdsavedir): Add a comment deprecating this.
26251
26252 2010-09-10  Bruno Haible  <bruno@clisp.org>
26253
26254         langinfo: Fix last commit.
26255         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26256         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26258
26259 2010-09-10  Bruno Haible  <bruno@clisp.org>
26260
26261         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26262         * lib/progreloc.c (O_EXEC): Define fallback.
26263
26264 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26265
26266         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26267         * NEWS: Document recent changes to fcntl-h.
26268         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26269         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26270         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26271         Similarly for O_SEARCH; this last was already true, but not documented.
26272         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26273         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26274         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26275         Likewise.
26276         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26277         is zero, not whether it is defined.
26278         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26279         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26280         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26281
26282 2010-09-10  Bruno Haible  <bruno@clisp.org>
26283
26284         langinfo, nl_langinfo: Fix for IRIX 5.3.
26285         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26286         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26287         HAVE_LANGINFO_YESEXPR.
26288         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26289         HAVE_LANGINFO_YESEXPR.
26290         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26291         HAVE_LANGINFO_T_FMT_AMPM is 0.
26292         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26293         HAVE_LANGINFO_YESEXPR is 0.
26294         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26295         NOEXPR.
26296         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26297         * doc/posix-functions/nl_langinfo.texi: Likewise.
26298         Reported by Eric Blake.
26299
26300 2010-09-10  Bruno Haible  <bruno@clisp.org>
26301
26302         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26303         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26304         on FreeBSD 8.0 and OpenBSD 4.6.
26305         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26306         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26307         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26308         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26309         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26310         ac_includes_default.
26311         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26312
26313 2010-09-09  Eric Blake  <eblake@redhat.com>
26314
26315         strsignal: work around NetBSD bug
26316         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26317         * lib/string.in.h (includes): Likewise.
26318         * doc/posix-functions/strsignal.texi (strsignal): Document the
26319         bug.
26320         Reported by Nelson H. F. Beebe.
26321
26322         gnulib-tool: work with NetBSD /bin/sh
26323         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26324         (func_get_description, func_get_comment, func_get_status)
26325         (func_get_notice, func_get_applicability, func_get_filelist)
26326         (func_get_dependencies, func_get_autoconf_early_snippet)
26327         (func_get_autoconf_snippet, func_get_automake_snippet)
26328         (func_get_include_directive, func_get_link_directive)
26329         (func_get_license, func_get_maintainer, func_import): Avoid
26330         shell syntax errors from parsing syntax extensions.
26331
26332 2010-09-09  Bruno Haible  <bruno@clisp.org>
26333
26334         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26335         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26336         a reliable way to determine whether the 'alias' command works.
26337
26338 2010-09-08  Jim Meyering  <meyering@redhat.com>
26339
26340         init.sh: penalize a set-x-impaired shell; don't disqualify it
26341         * tests/init.sh: Too many shells corrupt application stderr when
26342         you set -x, so we can't afford to disqualify them, since at least
26343         on Irix-6.5, that would disqualify all bourne shells.
26344         Instead, use a two-pass approach.
26345         On the first pass, try to find a shell that meets the stricter
26346         condition that set -x does not corrupt stderr.
26347         If no shell meets the stricter condition, retest each candidate
26348         shell, but without that extra condition.  Finally, when
26349         VERBOSE=yes is requested and set -x might cause trouble, simply
26350         issue a warning and refrain from enabling debug output.
26351
26352 2010-09-08  Eric Blake  <eblake@redhat.com>
26353
26354         unsetenv: fix OpenBSD bug
26355         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26356         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26357         documentation.
26358         Reported by Jim Meyering.
26359
26360         strtod: work around IRIX 6.5 bug
26361         * lib/strtod.c (strtod): Reparse number on shorter string if
26362         exponent parse was invalid.
26363         * tests/test-strtod.c (main): Add check for "0x1p 2".
26364         Reported by Tom G. Christensen.
26365
26366         getopt: optimize previous patch
26367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26368         empty variable.  Speed up awk script.
26369         Reported by Paolo Bonzini.
26370
26371 2010-09-08  Jim Meyering  <meyering@redhat.com>
26372
26373         test.sh: disqualify shells for which set -x corrupts stderr
26374         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26375         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26376         appear in stderr output.  For example, this command:
26377             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26378         prints "P=1" on those two systems:
26379
26380 2010-09-08  Bruno Haible  <bruno@clisp.org>
26381
26382         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26383         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26384         commands, because some shells ignore redirections when there is an
26385         error in the command lookup.
26386         Reported by Eric Blake.
26387
26388 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26389
26390         * lib/regex.h: Fix a mention of `regex_compile' (should be
26391         `re_compile_pattern').
26392         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26393         (re_set_registers): Correct name of parameter in comment.
26394
26395         * doc/regex.texi: Add documentation for missing syntax flags.
26396         Remove commented-out documentation of defunct syntax option
26397         RE_NO_EMPTY_ALTS.
26398         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26399         Add documentation of re_set_registers.
26400         Document trick to re-use a pattern buffer by setting fastmap manually.
26401         Update documentation of struct re_pattern_buffer per public members.
26402         Uncomment documentation of equivalence class operators and
26403         collating symbol operators, since they are now implemented,
26404         Explain leftmost-longest matching in relation to alternatives.
26405         Tidy documentation of substring matching.
26406         Remove POSIX documentation, which is done better in
26407         glibc, and refer the reader there. Keep BSD API documentation, as
26408         that is not readily available elsewhere.
26409
26410 2010-09-07  Eric Blake  <eblake@redhat.com>
26411
26412         getopt: handle POSIXLY_CORRECT set but not exported
26413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26414         export state of POSIXLY_CORRECT, due to bash set -o posix.
26415         Reported by Dustin J. Mitchell.
26416
26417 2010-09-05  Bruno Haible  <bruno@clisp.org>
26418
26419         gnulib-tool: Highlight the changed options.
26420         * gnulib-tool (func_usage): Display the --import, --add-import,
26421         --remove-import explanations in bold font.
26422
26423 2010-09-06  Karl Berry  <karl@gnu.org>
26424
26425         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26426
26427 2010-09-05  Bruno Haible  <bruno@clisp.org>
26428
26429         uniwidth/width: Update comment.
26430         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26431         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26432
26433 2010-09-05  Bruno Haible  <bruno@clisp.org>
26434
26435         isinf, isnan: Relax license.
26436         * modules/isinf (License): Change from GPL to LGPL, with consent from
26437         Ben Pfaff.
26438         * modules/isnan (License): Likewise.
26439         Requested by Ludovic Courtès.
26440
26441 2010-09-04  Bruno Haible  <bruno@clisp.org>
26442
26443         gnulib-tool: Help migration from --import to --add-import or --update.
26444         * gnulib-tool: Emit a verbose error message when --import is used
26445         without any module name.
26446
26447 2010-09-04  Bruno Haible  <bruno@clisp.org>
26448
26449         Update doc about gnulib-tool.
26450         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26451         'gnulib-tool --update' in more detail.
26452         Reported by Eric Blake.
26453
26454 2010-09-04  Bruno Haible  <bruno@clisp.org>
26455
26456         gnulib-tool: Change --import. New options --add/remove-import.
26457         * gnulib-tool: New options --add-import, --remove-import.
26458         (func_usage): Document them.
26459         (have_associative): Define always.
26460         (func_import): In import mode, don't merge the specified settings with
26461         the cached settings. Implement remove-import mode.
26462         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26463         Explain when to use them versus --import.
26464         (Simple update): Use --add-import instead of --import.
26465         * NEWS: Mention the change.
26466
26467 2010-09-04  Bruno Haible  <bruno@clisp.org>
26468
26469         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26470         separate gnulib.mk.
26471
26472 2010-09-04  Bruno Haible  <bruno@clisp.org>
26473
26474         gnulib-tool: Don't talk about CVS any more.
26475         * gnulib-tool (func_usage, func_import): Write "version control"
26476         instead of CVS.
26477
26478 2010-09-04  Jim Meyering  <meyering@redhat.com>
26479
26480         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26481         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26482         false positives (whose names may be ill-chosen) when searching
26483         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26484         would cause a false-positive.
26485
26486         avoid coreutils "make distcheck" failure
26487         Coreutils tests with an absolute build directory name that contains
26488         a space.  Not quoting this directory name caused a failure.
26489         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26490         * tests/test-vc-list-files-cvs.sh: Likewise.
26491
26492 2010-09-04  Bruno Haible  <bruno@clisp.org>
26493
26494         gnulib-tool: Avoid error when run in a package without Makefile.am.
26495         * gnulib-tool: When collecting the m4dirs in a package that does not
26496         have a Makefile.am, eliminate those directories that contain no
26497         gnulib-cache.m4. Fix expression that counts these directories.
26498
26499 2010-09-04  Bruno Haible  <bruno@clisp.org>
26500
26501         update-copyright test: Improve output when perl is missing or too old.
26502         * tests/test-update-copyright.sh: Move test of Perl version down after
26503         the test whether Perl exists. Provide an explanation relating Perl's
26504         error message to Automake's SKIP: message.
26505
26506 2010-09-04  Bruno Haible  <bruno@clisp.org>
26507
26508         Don't augment PATH in TESTS_ENVIRONMENT.
26509         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26510         set abs_aux_dir instead of augmenting PATH.
26511         * modules/vc-list-files-tests (Makefile.am): Likewise.
26512         * tests/test-update-copyright.sh: Augment PATH here.
26513         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26514         path_prepend_.
26515         * tests/test-vc-list-files-git.sh: Likewise.
26516
26517 2010-09-04  Jim Meyering  <meyering@redhat.com>
26518
26519         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26520         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26521
26522 2010-09-04  Bruno Haible  <bruno@clisp.org>
26523
26524         strdup: Fix compilation error in C++ mode.
26525         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26526         the macro.
26527
26528 2010-09-04  Bruno Haible  <bruno@clisp.org>
26529
26530         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26531         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26532         macro into a function.
26533         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26534
26535 2010-09-04  Bruno Haible  <bruno@clisp.org>
26536
26537         Set PATH_SEPARATOR the same way autoconf does.
26538         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26539         the value of PATH_SEPARATOR the same way autoconf-generated configure
26540         scripts do.
26541         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26542         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26543
26544 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26545
26546         Set PATH_SEPARATOR the same way autoconf does.
26547         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26548         the same way autoconf-generated configure scripts do.
26549         * posix-modules: Likewise.
26550
26551 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26552
26553         hash: fix safe_hasher const typo
26554         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26555         const; otherwise, there is a type error later.
26556
26557 2010-09-02  Jim Meyering  <meyering@redhat.com>
26558
26559         test-update-copyright.sh: require perl 5.8.0
26560         * tests/test-update-copyright.sh: Require 5.8.0,
26561         which Tom G. Christensen has confirmed is adequate,
26562         while 5.6.1 is not.
26563
26564 2010-09-02  Eric Blake  <eblake@redhat.com>
26565
26566         tests: init.sh improvements for re-exec'ing with zsh
26567         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26568         -vx through shell re-exec.
26569         Reported by Tom G. Christensen.
26570
26571         wctype: fix typo in previous commit
26572         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26573         Reported by Ludovic Courtès.
26574
26575 2010-09-02  Jim Meyering  <meyering@redhat.com>
26576
26577         test-update-copyright.sh: skip test if Perl is too old
26578         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26579         Reported by Tom G. Christensen.
26580
26581 2010-09-02  Bruno Haible  <bruno@clisp.org>
26582
26583         wctype: Avoid compilation error on IRIX 6.5.30.
26584         * lib/wctype.in.h (iswblank): Declare with a replacement if
26585         REPLACE_ISWBLANK is set.
26586         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26587         declared. Set REPLACE_ISWBLANK.
26588         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26589         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26590         * doc/posix-headers/wctype.texi: Likewise.
26591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26592
26593 2010-09-01  Bruno Haible  <bruno@clisp.org>
26594
26595         New module 'socketlib'.
26596         * modules/socketlib: New file.
26597         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26598         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26599         * modules/sockets (Depends-on): Add socketlib.
26600         Suggested by Sam Steingold <sds@gnu.org>.
26601
26602 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26603
26604         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26605
26606         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26607         when one needs search access to a directory but not read access.
26608         On systems where it is available, it works in some cases where
26609         O_RDONLY does not, namely on directories that are searchable but
26610         not readable, and which need only to be searchable.  If O_SEARCH
26611         is not available, fall back to the traditional method of using
26612         O_RDONLY.
26613
26614         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26615         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26616         when opening a directory that needs only to be searchable.
26617         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26618         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26619         * lib/openat-proc.c (openat_proc_name): Likewise.
26620         * lib/openat.c (openat_needs_fchdir): Likewise.
26621         * lib/save-cwd.c (save_cwd): Likewise.
26622         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26623
26624 2010-08-28  Bruno Haible  <bruno@clisp.org>
26625
26626         New module 'host-cpu-c-abi'.
26627         * modules/host-cpu-c-abi: New file.
26628         * m4/host-cpu-c-abi.m4: New file, based on part of
26629         clisp/src/m4/general.m4.
26630         Requested by Sam Steingold <sds@gnu.org>.
26631
26632 2010-08-31  Eric Blake  <eblake@redhat.com>
26633         and Jim Meyering  <meyering@redhat.com>
26634
26635         hash: factor, and guard against misbehaving hasher function
26636         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26637         of table->hasher's return value.  Also protect against a hash value
26638         so large that adding it to table->bucket results in a NULL pointer.
26639         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26640         Use it in place of open-coded check-and-abort.
26641
26642 2010-08-30  Bruno Haible  <bruno@clisp.org>
26643
26644         hash: silence spurious clang warning
26645         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26646         Reported by Eric Blake.
26647
26648 2010-08-30  Eric Blake  <eblake@redhat.com>
26649
26650         strstr, memmem, strcasestr: avoid leaked shell message
26651         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26652         FreeBSD.
26653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26654         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26655
26656         tests: silence clang warning
26657         * tests/test-malloca.c (do_allocation): Avoid dead store.
26658
26659 2010-08-29  Bruno Haible  <bruno@clisp.org>
26660
26661         gettext: Fix recent mistake.
26662         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26663
26664 2010-08-29  Bruno Haible  <bruno@clisp.org>
26665
26666         selinux-h: Offer a --without-selinux option.
26667         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26668         --without-selinux was specified, skip all tests and define
26669         HAVE_SELINUX_SELINUX_H to 0.
26670         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26671         set LIB_SELINUX to empty.
26672         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26673         gl_LIBSELINUX. If --without-selinux was specified, replace
26674         selinux/context.h.
26675         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26676
26677 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26678             Bruno Haible  <bruno@clisp.org>
26679
26680         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26681         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26682         of HAVE_REALLOC.
26683         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26684         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26685         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26686         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26687
26688 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26689             Bruno Haible  <bruno@clisp.org>
26690
26691         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26692         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26693         HAVE_CALLOC.
26694         * lib/xmalloc.c: Update accordingly.
26695         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26696         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26697         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26698
26699 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26700             Bruno Haible  <bruno@clisp.org>
26701
26702         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26703         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26704         HAVE_MALLOC.
26705         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26706         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26707         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26708
26709 2010-08-29  Bruno Haible  <bruno@clisp.org>
26710
26711         Update modules list.
26712         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26713         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26714         (String handling <string.h>): Add astrxfrm.
26715         (File system functions): Add readlinkat.
26716
26717 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26718
26719         Tests for module 'realloc-gnu'.
26720         * modules/realloc-gnu-tests: New file.
26721         * tests/test-realloc-gnu.c: New file.
26722
26723         Tests for module 'calloc-gnu'.
26724         * modules/calloc-gnu-tests: New file.
26725         * tests/test-calloc-gnu.c: New file.
26726
26727         Tests for module 'malloc-gnu'.
26728         * modules/malloc-gnu-tests: New file.
26729         * tests/test-malloc-gnu.c: New file.
26730
26731 2010-08-28  Bruno Haible  <bruno@clisp.org>
26732
26733         Rename module 'realloc' -> 'realloc-gnu'.
26734         * modules/realloc-gnu: New file, copied from modules/realloc.
26735         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26736         obsolete.
26737         * modules/mgetgroups (Depends-on): Update.
26738         * doc/posix-functions/realloc.texi: Update.
26739         * NEWS: Mention the change.
26740
26741         Rename module 'calloc' -> 'calloc-gnu'.
26742         * modules/calloc-gnu: New file, copied from modules/calloc.
26743         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26744         obsolete.
26745         * doc/posix-functions/calloc.texi: Update.
26746         * NEWS: Mention the change.
26747
26748         Rename module 'malloc' -> 'malloc-gnu'.
26749         * modules/malloc-gnu: New file, copied from modules/malloc.
26750         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26751         obsolete.
26752         * modules/argp (Depends-on): Update.
26753         * modules/regex (Depends-on): Update.
26754         * doc/posix-functions/malloc.texi: Update.
26755         * NEWS: Mention the change.
26756
26757 2010-08-28  Eric Blake  <eblake@redhat.com>
26758
26759         pread, pwrite: add missing dependency
26760         * modules/pread (Depends-on): Add extensions.
26761         * modules/pwrite (Depends-on): Likewise.
26762
26763 2010-08-28  Bruno Haible  <bruno@clisp.org>
26764
26765         unistr/u*-strchr: Fix tests dependencies.
26766         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26767         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26768         Reported by Ian Beckwith <ianb@erislabs.net>.
26769
26770 2010-08-28  Bruno Haible  <bruno@clisp.org>
26771
26772         read-file: Don't occupy too much unused memory.
26773         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26774
26775 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26776             Eric Blake  <eblake@redhat.com>
26777             Bruno Haible  <bruno@clisp.org>
26778
26779         read-file: Avoid memory reallocations with regular files.
26780         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26781         (fread_file): With regular files, use the remaining length as the
26782         initial buffer size.  Check against overflow.
26783         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26784         sys_stat.
26785
26786 2010-08-28  Bruno Haible  <bruno@clisp.org>
26787
26788         ftello: Relax license.
26789         * modules/ftello (License): Relax to LGPLv2+.
26790         Reported by Eric Blake.
26791
26792 2010-08-28  Bruno Haible  <bruno@clisp.org>
26793
26794         Avoid relocwrapper link errors due to gnulib replacement functions.
26795         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26796         function.
26797         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26798
26799 2010-08-28  Bruno Haible  <bruno@clisp.org>
26800
26801         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26802         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26803         defined.
26804         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26805         Suggested by Eric Blake.
26806
26807 2010-08-28  Bruno Haible  <bruno@clisp.org>
26808
26809         sys_socket, netdb: Ensure socklen_t gets defined.
26810         * modules/sys_socket (Depends-on): Add socklen.
26811         * modules/netdb (Depends-on): Likewise.
26812         * modules/getaddrinfo (Depends-on): Remove socklen.
26813         * modules/getsockopt (Depends-on): Likewise.
26814         * modules/setsockopt (Depends-on): Likewise.
26815         * tests/test-sys_socket.c: Check that socklen_t is defined.
26816         * tests/test-netdb.c: Likewise.
26817         * m4/socklen.m4: Update comments.
26818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26819
26820 2010-08-27  Eric Blake  <eblake@redhat.com>
26821
26822         login_tty: add missing dependency
26823         * modules/login_tty (Depends-on): Add pty.
26824
26825 2010-08-26  Eric Blake  <eblake@redhat.com>
26826
26827         lib-symbol-versions: fix m4 quoting
26828         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26829         format for AC_LINK_IFELSE.
26830
26831         glob: fix compile test
26832         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26833
26834         btowc: fix missing file
26835         * modules/btowc (Files): Also ship locale-fr.m4.
26836
26837         lseek: fix link test
26838         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26839         AC_LINK_IFELSE.
26840
26841         include_next: silence autoconf 2.68 warning
26842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26843         AC_COMPILE_IFELSE as special.
26844         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26845         autoconf < 2.68.
26846
26847         acl: fix compilation test
26848         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26849         AC_COMPILE_IFELSE.
26850
26851 2010-08-26  Bruno Haible  <bruno@clisp.org>
26852
26853         Modernize AC_TRY_RUN invocations.
26854         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26855         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26856         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26857         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26858         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26859         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26860         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26862         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26863         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26864         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26865         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26866         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26869         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26870         gl_MBRLEN_NUL_RETVAL): Likewise.
26871         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26872         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26873         Likewise.
26874         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26875         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26876         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26877         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26878         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26879         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26880         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26881         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26882         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26883         Likewise.
26884         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26885         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26887         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26889         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26890         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26891         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26892         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26894
26895 2010-08-26  Bruno Haible  <bruno@clisp.org>
26896
26897         Modernize AC_TRY_LINK invocations.
26898         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26899         AC_TRY_LINK.
26900         * m4/argp.m4 (gl_ARGP): Likewise.
26901         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26902         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26903         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26904         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26905         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26906         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26907         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26908         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26909         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26910         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26911         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26912         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26913         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26914         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26915         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26916         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26917         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26918         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26919         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26920         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26921         Likewise.
26922         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26923         Likewise.
26924         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26925         Likewise.
26926         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26928         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26929         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26930         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26931         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26932         * m4/servent.m4 (gl_SERVENT): Likewise.
26933         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26934         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26935         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26936         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26937         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26938         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26939         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26940         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26941         * modules/tsearch-tests (configure.ac): Likewise.
26942
26943 2010-08-26  Bruno Haible  <bruno@clisp.org>
26944
26945         Modernize AC_TRY_COMPILE invocations.
26946         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26947         AC_TRY_COMPILE.
26948         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26949         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26950         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26951         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26952         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26953         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26954         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26955         * m4/lock.m4 (gl_LOCK): Likewise.
26956         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26957         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26958         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26959         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26960         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26961         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26962         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26964         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26965         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26966         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26967         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26968         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26969         extraneous semicolon.
26970
26971 2010-08-26  Jim Meyering  <meyering@redhat.com>
26972
26973         stat-time: relax license LGPL
26974         * modules/stat-time (License): Change from GPL to LGPL,
26975         with consent from all contributors, for use in libguile.
26976         Requested by Ludovic Courtès.
26977
26978 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26979
26980         poll: return immediately on POLLHUP.
26981         * lib/poll.c (poll): Always set timeout before wait_timeout is
26982         computed.
26983
26984 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26985
26986         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26987         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26988         rmdir ("dir/.//"), unlinkat.
26989
26990 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26991
26992         stdbool: avoid spurious failure with modern xlc
26993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26994
26995 2010-08-24  Bruno Haible  <bruno@clisp.org>
26996
26997         getloadavg: simplify code
26998         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26999         gl_have_func. Update comments.
27000
27001 2010-08-24  Eric Blake  <eblake@redhat.com>
27002
27003         getloadavg: don't define SVR4 on cygwin
27004         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27005         only define SVR4 when -lkvm is required.
27006         Reported by Yaakov Selkowitz.
27007
27008 2010-08-24  Bruno Haible  <bruno@clisp.org>
27009
27010         priv-set: fix comment
27011         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27012
27013 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27014
27015         priv-set: fix comments
27016         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27017         to match code, as suggested by David Bartley in:
27018         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27019
27020 2010-08-23  Eric Blake  <eblake@redhat.com>
27021
27022         stdbool: avoid rejecting clang
27023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27024         * tests/test-stdbool.c: Enable more tests if using the system
27025         <stdbool.h> instead of the gnulib replacement.
27026         (main): Move xlc bug test to a runtime test for all compilers.
27027         Reported by Anders Kaseorg.
27028
27029         argz: fix shell quoting issue
27030         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27031         Reported by Charles Wilson.
27032
27033 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27034             Erik Faye-Lund <kusmabite@gmail.com>
27035
27036         poll, select: handle ERROR_BROKEN_PIPE.
27037         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27038         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27039         * lib/select.c (win32_compute_revents): Do not mark a pipe
27040         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27041
27042 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27043
27044         fts: allow compilation with C++
27045         * lib/fts_.h: Specify extern "C" linkage with C++.
27046
27047 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27048
27049         Fix gnulib-tool sed script de-commentation for AIX sed.
27050         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27051         sed.
27052
27053 2010-08-17  Eric Blake  <eblake@redhat.com>
27054
27055         test-stddef: test for (some) offsetof bugs
27056         * tests/test-stddef.c: Enhance test to ensure correct type of
27057         offsetof.
27058         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27059         that we are not fixing at this time.
27060
27061 2010-08-15  Bruno Haible  <bruno@clisp.org>
27062
27063         stpncpy: Allow stpncpy to be defined as a macro.
27064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27065         if it's already correctly declared.
27066         * lib/string.in.h (stpncpy): Undefine before redefining.
27067         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27068
27069 2010-08-14  Bruno Haible  <bruno@clisp.org>
27070
27071         Rename module 'memxfrm' to 'amemxfrm'.
27072         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27073         (amemxfrm): Renamed from memxfrm.
27074         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27075         (amemxfrm): Renamed from memxfrm.
27076         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27077         * NEWS: Mention the change.
27078         * MODULES.html.sh (String handling <string.h>): Update.
27079         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27080         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27081         * lib/unicase/u16-casexfrm.c: Likewise.
27082         * lib/unicase/u32-casexfrm.c: Likewise.
27083         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27084         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27085         * lib/uninorm/u16-normxfrm.c: Likewise.
27086         * lib/uninorm/u32-normxfrm.c: Likewise.
27087         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27088         memxfrm.
27089         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27090         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27091         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27092         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27093         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27094         Suggested by Paul Eggert.
27095
27096 2010-08-14  Bruno Haible  <bruno@clisp.org>
27097
27098         Tests for module 'astrxfrm'.
27099         * modules/astrxfrm-tests: New file.
27100         * tests/test-astrxfrm.c: New file.
27101
27102         New module 'astrxfrm'.
27103         * lib/astrxfrm.h: New file.
27104         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27105         * modules/astrxfrm: New file.
27106
27107 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27108
27109         regex: Tweak doc.
27110         * doc/regex.texi (Overview): Don't mention regex.c.
27111         (GNU Regular Expression Compiling): Likewise.
27112         (Match-end-of-line Operator): Mention 'not_eol'.
27113
27114 2010-08-14  Brian Gough  <bjg@gnu.org>
27115             Bruno Haible  <bruno@clisp.org>
27116
27117         git-merge-changelog: add doc relating to use with bzr and hg.
27118         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27119
27120 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27121
27122         pthread: fix pthread.h creation for srcdir != builddir
27123         * modules/pthread (Makefile.am): Fix the rule to work also in a
27124         non-srcdir build.
27125
27126 2010-08-13  Karl Berry  <karl@gnu.org>
27127
27128         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27129         * doc/posix-*/*: force line break before @url of POSIX
27130         specifications.
27131         Suggested by Werner Lemberg.
27132
27133 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27134
27135         strtod: fix const diagnostic
27136         * lib/strtod.c (strtod): Don't assign const char * to char *,
27137         as this elicits a warning from GCC when warnings are enabled.
27138
27139 2010-08-10  Pádraig Brady <P@draigbrady.com>
27140         and Eric Blake  <eblake@redhat.com>
27141
27142         copy-acl: ignore ENOTSUP on HP-UX
27143         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27144         so that it is available for HP-UX.
27145         * lib/copy-acl.c (qcopy_acl): Use it.
27146         Reported by Patrick M. Callahan.
27147
27148 2010-08-10  Eric Blake  <eblake@redhat.com>
27149
27150         open, chown: relax license
27151         * modules/open (License): Change to LGPLv2+, with consent by all
27152         authors, for use in augeas.
27153         * modules/chown (License): Likewise.
27154         * modules/lchown (Likewise): Likewise.
27155         Requested by Adam Stokes.
27156
27157 2010-08-09  Karl Berry  <karl@gnu.org>
27158
27159         * build-aux/ar-lib: new file, import from Automake.
27160         * config/srclist.txt: autocheck for updates.
27161
27162 2010-08-09  Eric Blake  <eblake@redhat.com>
27163
27164         readlinkat: adjust client modules
27165         * modules/areadlinkat (Depends-on): Use readlinkat, not
27166         symlinkat.
27167         * modules/areadlinkat-with-size (Depends-on): Likewise.
27168
27169         mknod: be more vocal about danger of running tests as root
27170         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27171         root, since that is just asking for problems.
27172         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27173
27174         readlinkat: split into its own module
27175         * modules/symlinkat: Split readlinkat...
27176         * modules/readlinkat: ...into separate module.
27177         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27178         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27179         * lib/symlinkat.c (readlinkat): Move...
27180         * lib/readlinkat.c: ...into new file.
27181         * modules/symlinkat-tests: Split readlinkat test...
27182         * modules/readlinkat-tests: ...into separate module.
27183         * tests/test-symlinkat.c: Split...
27184         * tests/test-readlinkat.c: ...into new file.
27185         * NEWS: Document the split.
27186         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27187         * lib/unistd.in.h (readlinkat): Likewise.
27188         Suggested by Bruno Haible.
27189
27190 2010-08-08  Bruno Haible  <bruno@clisp.org>
27191
27192         memxfrm: Speed up.
27193         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27194         that usually only one call to strxfrm is necessary for each string
27195         part.
27196         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27197
27198 2010-08-07  Karl Berry  <karl@gnu.org>
27199
27200         * doc/posix-headers/limits.texi,
27201         * doc/posix-functions/malloc.texi,
27202         * doc/posix-functions/strsignal.texi: missing @item.
27203         * doc/ld-version-script.texi: spurious leading i.
27204         * doc/regex.texi (Interval Operators): no commas inside @var.
27205
27206 2010-08-01  Bruno Haible  <bruno@clisp.org>
27207
27208         Integrate the regex documentation.
27209         * doc/gnulib.texi: Define 'cn' index.
27210         (Regular expressions): New a chapter that includes regex.texi and
27211         regexprops-generic.texi.
27212         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27213         syntax.
27214
27215         Whitespace cleanup.
27216         * doc/regex.texi: Remove trailing spaces.
27217
27218         Add regex documentation.
27219         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27220         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27221         Written by Kathy A. Hargreaves and Karl Berry.
27222
27223 2010-08-01  Bruno Haible  <bruno@clisp.org>
27224
27225         link: Update documentation.
27226         * doc/posix-functions/link.texi: Update regarding Solaris.
27227
27228 2010-07-31  Bruno Haible  <bruno@clisp.org>
27229
27230         Update modules list.
27231         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27232         (String handling <string.h>): Add memcmp2, memxfrm.
27233         (Container data structures): Add xlist, xsublist, xoset.
27234         (Core language properties): Add alignof, unused-parameter.
27235         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27236         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27237         (Unibyte characters <ctype.h>): New section.
27238         (String handling <string.h>): New section.
27239         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27240         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27241         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27242         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27243         tan, tanh, tanl, y0, y1, yn.
27244         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27245         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27246         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27247         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27248         unlockpt, vdprintf, vdprintf-posix.
27249         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27250         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27251         xconcat-filename.
27252         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27253         getdtablesize, pipe2, pipe2-safer.
27254         (Security): New section.
27255         (Networking functions): Add accept4.
27256         (Signal handling): Add sigpipe.
27257         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27258         mbmemcasecoll.
27259         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27260         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27261         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27262         pipe-filter-ii.
27263         (Misc): Add argp-version-etc, login_tty, parse-duration.
27264
27265 2010-07-31  Bruno Haible  <bruno@clisp.org>
27266
27267         Improve doc in MODULES.html.
27268         * modules/linkat (Description): Add the word "function".
27269         * modules/mkfifo (Description): Likewise.
27270         * modules/mknod (Description): Likewise.
27271         * modules/remove (Description): Likewise.
27272         * modules/renameat (Description): Likewise.
27273         * modules/stat (Description): Likewise.
27274         * modules/symlink (Description): Likewise.
27275         * modules/unlink (Description): Likewise.
27276
27277 2010-07-31  Bruno Haible  <bruno@clisp.org>
27278
27279         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27280         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27281         option --enable/disable-c++ instead of --enable/disable-cxx.
27282         * NEWS: Mention the change.
27283
27284 2010-07-31  Bruno Haible  <bruno@clisp.org>
27285
27286         readlink, areadlink: Relax test a bit.
27287         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27288         alternative to ENOTDIR.
27289         * tests/test-areadlink.h (test_areadlink): Likewise.
27290         Reported by Rainer Tammer.
27291
27292 2010-07-31  Bruno Haible  <bruno@clisp.org>
27293
27294         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27295         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27296         character, perform the search using U_STRCHR.
27297         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27298         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27299         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27300         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27301         Suggested by Paolo Bonzini.
27302
27303 2010-07-31  Bruno Haible  <bruno@clisp.org>
27304
27305         unistr/u*-strstr: Fix dependencies.
27306         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27307         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27308         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27309
27310 2010-07-31  Bruno Haible  <bruno@clisp.org>
27311
27312         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27313         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27314         the beginning of the loop.
27315         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27316         cases in 'switch' statement.
27317
27318         unistr/u8-strchr: Fix several bugs.
27319         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27320         the string. When not found, return NULL, not a pointer near the end.
27321
27322         More tests for unistr/u8-strchr.
27323         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27324         that the function does not read past the first occurrence of the byte
27325         being searched.
27326         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27327         * tests/unistr/test-u16-strchr.c (main): New function.
27328         * tests/unistr/test-u32-strchr.c (main): New function.
27329
27330 2010-07-31  Bruno Haible  <bruno@clisp.org>
27331
27332         posix-modules: Ignore backup files of documentation files.
27333         * posix-modules: grep only through files named *.texi.
27334
27335 2010-07-31  Bruno Haible  <bruno@clisp.org>
27336
27337         symlinkat: Fix documentation.
27338         * doc/posix-functions/readlinkat.texi: Fix module name.
27339
27340 2010-07-31  Bruno Haible  <bruno@clisp.org>
27341
27342         fchownat: Replace also when chown has the trailing slash bug.
27343         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27344         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27345         introduced on 2010-04-10.
27346         Reported by Rainer Tammer.
27347
27348 2010-07-31  Bruno Haible  <bruno@clisp.org>
27349
27350         linkat: Work around AIX 7.1 bug.
27351         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27352         whether linkat handles trailing slash correctly. If not, replace linkat
27353         and define LINKAT_TRAILING_SLASH_BUG.
27354         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27355         check whether (fd1,file1) points to a directory if file1 or file2 ends
27356         in a slash. Code taken from lib/link.c.
27357         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27358         Reported by Rainer Tammer.
27359
27360 2010-07-31  Bruno Haible  <bruno@clisp.org>
27361
27362         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27363         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27364         This disables an xlc optimization that was causing wrong test results.
27365         Reported by Rainer Tammer.
27366
27367 2010-07-31  Bruno Haible  <bruno@clisp.org>
27368
27369         iconv: Work around AIX 6.1..7.1 bug.
27370         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27371         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27372         cross-compiling, guess no on all versions of AIX.
27373         Reported by Rainer Tammer.
27374
27375 2010-07-31  Bruno Haible  <bruno@clisp.org>
27376
27377         readlink: Relax test a bit.
27378         * tests/test-readlink.h (test_readlink): Allow different errno value
27379         when readlink is called with a file name that ends in / and refers to
27380         a file.
27381         Suggested by Eric Blake.
27382         Reported by Rainer Tammer.
27383
27384 2010-07-31  Bruno Haible  <bruno@clisp.org>
27385
27386         copysign: Does not require -lm on glibc systems.
27387         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27388         gl_COMMON_DOUBLE_MATHFUNC.
27389         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27390
27391 2010-07-31  Bruno Haible  <bruno@clisp.org>
27392
27393         duplocale: Work around AIX 7.1 bug.
27394         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27395         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27396         * lib/duplocale.c (rpl_duplocale): Update comment.
27397         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27398         Reported by Rainer Tammer.
27399
27400 2010-07-30  Bruno Haible  <bruno@clisp.org>
27401
27402         dirfd: Avoid link error on AIX 7.1.
27403         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27404         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27405         exist, set REPLACE_DIRFD.
27406         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27407         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27408         * doc/posix-functions/dirfd.texi: Update.
27409         Reported by Rainer Tammer.
27410
27411 2010-07-30  Eric Blake  <eblake@redhat.com>
27412
27413         strtod: next round of AIX fixes
27414         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27415         exponent.
27416         * tests/test-strtod.c (main): Enhance tests.
27417         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27418         Reported by Rainer Tammer.
27419
27420         futimens: fix configure check
27421         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27422         Reported by Bruno Haible.
27423
27424 2010-07-30  Bruno Haible  <bruno@clisp.org>
27425
27426         getline: Update regarding AIX.
27427         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27428         Reported by Rainer Tammer.
27429
27430 2010-07-30  Bruno Haible  <bruno@clisp.org>
27431
27432         wcwidth: Drop replacement on AIX 7.
27433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27434         AIX 7.
27435         Reported by Rainer Tammer.
27436
27437 2010-07-30  Bruno Haible  <bruno@clisp.org>
27438
27439         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27441         a 'char *'.
27442         Reported by Rainer Tammer.
27443
27444 2010-07-30  Bruno Haible  <bruno@clisp.org>
27445
27446         unlink: Update regarding AIX.
27447         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27448         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27449         Reported by Rainer Tammer.
27450
27451 2010-07-30  Bruno Haible  <bruno@clisp.org>
27452
27453         symlink: Update regarding AIX.
27454         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27455         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27456         Reported by Rainer Tammer.
27457
27458 2010-07-30  Bruno Haible  <bruno@clisp.org>
27459
27460         strndup: Update regarding AIX.
27461         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27462         AIX 7.
27463         Reported by Rainer Tammer.
27464
27465 2010-07-30  Bruno Haible  <bruno@clisp.org>
27466
27467         stat: Update regarding AIX.
27468         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27469         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27470         Reported by Rainer Tammer.
27471
27472 2010-07-30  Bruno Haible  <bruno@clisp.org>
27473
27474         truncl: Fix autoconf test.
27475         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27476         whether truncl works.
27477         Reported by Rainer Tammer.
27478
27479 2010-07-30  Bruno Haible  <bruno@clisp.org>
27480
27481         round: Update regarding AIX.
27482         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27483         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27484         Reported by Rainer Tammer.
27485
27486 2010-07-30  Bruno Haible  <bruno@clisp.org>
27487
27488         rename: Update regarding AIX.
27489         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27490         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27491         Reported by Rainer Tammer.
27492
27493 2010-07-30  Bruno Haible  <bruno@clisp.org>
27494
27495         printf.m4: Update regarding AIX.
27496         * m4/printf.m4: Update comments regarding AIX.
27497         Reported by Rainer Tammer.
27498
27499 2010-07-30  Bruno Haible  <bruno@clisp.org>
27500
27501         iconv: Update regarding AIX.
27502         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27503         AIX 7.
27504         Reported by Rainer Tammer.
27505
27506 2010-07-30  Bruno Haible  <bruno@clisp.org>
27507
27508         getopt: Update regarding AIX.
27509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27510         no on AIX.
27511         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27512         Reported by Rainer Tammer.
27513
27514 2010-07-30  Bruno Haible  <bruno@clisp.org>
27515
27516         ldexpl; Update regarding AIX.
27517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27518         on AIX 7.
27519         Reported by Rainer Tammer.
27520
27521 2010-07-30  Bruno Haible  <bruno@clisp.org>
27522
27523         frexpl: Update regarding AIX.
27524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27525         on AIX 7.
27526         Reported by Rainer Tammer.
27527
27528 2010-07-30  Bruno Haible  <bruno@clisp.org>
27529
27530         open, fopen: Update regarding AIX.
27531         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27532         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27533         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27534         * doc/posix-functions/fopen.texi: Likewise.
27535         Reported by Rainer Tammer.
27536
27537 2010-07-30  Bruno Haible  <bruno@clisp.org>
27538
27539         chown: Update doc regarding AIX.
27540         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27541         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27542         Reported by Rainer Tammer.
27543
27544 2010-07-30  Eric Blake  <eblake@redhat.com>
27545
27546         strtod: fix bug in replacement function on AIX
27547         * lib/strtod.c (strtod): Special case broken "0x" parse in
27548         underlying strtod.
27549         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27550         * doc/posix-functions/strtod.texi (strtod): Likewise.
27551         Reported by Rainer Tammer.
27552
27553 2010-07-30  Bruno Haible  <bruno@clisp.org>
27554
27555         mbrlen: Fix cross-compilation guess for AIX.
27556         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27557         guess. Leftover from 2008-12-22.
27558
27559 2010-07-30  Bruno Haible  <bruno@clisp.org>
27560
27561         mbrtowc: Fix cross-compilation guess for AIX.
27562         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27563         guess. Leftover from 2008-12-21.
27564
27565 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27566
27567         init.sh: work around trap limitation of some shells
27568         * tests/init.sh (setup_): Move exit trap outside of shell function.
27569
27570 2010-07-29  Eric Blake  <eblake@redhat.com>
27571
27572         strtod: aid debugging
27573         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27574         understanding why strtod is rejected.
27575
27576 2010-07-28  Bruno Haible  <bruno@clisp.org>
27577
27578         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27579         * lib/unistr/u8-chr.c: Include <string.h>.
27580         * tests/unistr/test-u8-chr.c: Likewise.
27581         * tests/unistr/test-u16-chr.c: Likewise.
27582         * tests/unistr/test-u32-chr.c: Likewise.
27583         * tests/unistr/test-u8-strchr.c: Likewise.
27584         * tests/unistr/test-u16-strchr.c: Likewise.
27585         * tests/unistr/test-u32-strchr.c: Likewise.
27586         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27587         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27588         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27589         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27590
27591 2010-07-28  Bruno Haible  <bruno@clisp.org>
27592
27593         Use spaces for indentation, not tabs.
27594         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27595
27596 2010-07-27  Bruno Haible  <bruno@clisp.org>
27597
27598         mbspcasecmp: Fix function specification.
27599         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27600         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27601         Reported by Eric Blake <eblake@redhat.com>.
27602
27603 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27604
27605         timespec: use cast and not conditional, as truncation isn't possible
27606         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27607         instead of a conditional.  Comment about the situation in more detail.
27608         This undoes most of the 2009-10-29 patch.
27609
27610 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27611
27612         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27613         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27614         * lib/unistr/u8-strchr.c: Likewise.
27615         * modules/unistr/u8-chr: Depend on memchr.
27616
27617         unistr/u*-strchr: add tests
27618         * modules/unistr/u8-strchr-tests: New file.
27619         * modules/unistr/u16-strchr-tests: New file.
27620         * modules/unistr/u32-strchr-tests: New file.
27621         * tests/unistr/test-strchr.h: New file.
27622         * tests/unistr/test-u8-strchr.c: New file.
27623         * tests/unistr/test-u16-strchr.c: New file.
27624         * tests/unistr/test-u32-strchr.c: New file.
27625
27626         unistr/u*-chr: test multibyte sequences more
27627         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27628         test vector.
27629         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27630         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27631         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27632
27633         unistr/u*-chr: test multibyte sequences
27634         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27635
27636         unistr/u*-chr: prepare for multibyte tests
27637         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27638         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27639         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27640         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27641         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27642         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27643
27644 2010-07-18  Bruno Haible  <bruno@clisp.org>
27645
27646         unistr/u8-strchr: Optimize non-ASCII argument case.
27647         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27648         because the first byte often matches anyway.
27649         Reported by Pádraig Brady <P@draigbrady.com>.
27650
27651 2010-07-15  Karl Berry  <karl@gnu.org>
27652
27653         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27654
27655 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27656
27657         getcwd: on Solaris, work better if ancestors are inaccessible
27658         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27659         buffer and size, try again with a large buffer.  This works better
27660         on Solaris, since its getcwd succeeds even if the path to the root
27661         is inaccessible, and this is helpful in common cases such as .zfs
27662         hidden directories.  Problem reported by J Chapman Flack in
27663         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27664         Use system getcwd if it's declared, not merely if it's partly
27665         working; use the partly-working test only to avoid needless effort
27666         if the system getcwd fails.
27667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27668         comment that was already obsolete and is now even more obsolete.
27669         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27670         now might call strdup.
27671
27672 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27673
27674         pthread: Add enough so that coreutils/src/sort.c compiles.
27675         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27676         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27677         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27678         Include <sys/types.h>, in case it defines pthread_t.
27679         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27680         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27681         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27682         (pthread_rwlockattr_t, pthread_spinlock_t):
27683         New typedefs, if HAVE_PTHREAD_T is not defined.
27684         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27685         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27686         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27687         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27688         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27689         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27690         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27691         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27692         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27693         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27694         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27695         New macros.
27696         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27697         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27698         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27699         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27700         (pthread_spin_unlock): New dummy functions.
27701         (pthread_create): Return EAGAIN; don't set errno.
27702         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27703         require AC_C_INLINE.
27704         * modules/pthread (Depends-on): Add sched, time.
27705         (pthread.h): Use AM_V_GEN.
27706
27707 2010-07-13  Bruno Haible  <bruno@clisp.org>
27708
27709         striconveh: Don't malloc memory if the result buffer is sufficient.
27710         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27711         buffer if its size is sufficient.
27712         Reported by Ludovic Courtès <ludo@gnu.org>.
27713
27714 2010-07-13  Bruno Haible  <bruno@clisp.org>
27715
27716         strtod: Add safety check.
27717         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27718
27719 2010-07-12  Bruno Haible  <bruno@clisp.org>
27720
27721         Unify tests that set gl_cv_func_ldexpl_no_libm.
27722         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27723         gl_FUNC_LDEXPL.
27724         (gl_FUNC_LDEXPL): Invoke it.
27725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27726
27727 2010-07-12  Bruno Haible  <bruno@clisp.org>
27728
27729         Unify tests that set gl_cv_func_ldexp_no_libm.
27730         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27731         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27732         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27733         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27734         * modules/strtod (Files): Add m4/ldexp.m4.
27735
27736 2010-07-12  Bruno Haible  <bruno@clisp.org>
27737
27738         Unify tests that set gl_cv_func_frexpl_no_libm.
27739         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27740         gl_FUNC_FREXPL_NO_LIBM.
27741         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27743
27744 2010-07-12  Bruno Haible  <bruno@clisp.org>
27745
27746         Unify tests that set gl_cv_func_frexp_no_libm.
27747         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27748         gl_FUNC_FREXP_NO_LIBM.
27749         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27750         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27751
27752 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27753
27754         memcoll: clarify sizes versus lengths, document better, and tweak perf
27755         * lib/memcoll.c (strcoll_loop, memcoll0):
27756         Improve quality of descriptive comments.  Name variables
27757         consistently as to whether they are lengths (which do not include
27758         terminating null) versus sizes (which do).
27759         * lib/xmemcoll.c (xmemcoll0): Likewise.
27760         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27761         returned when s1size == 0; this is easier to compile and saves
27762         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27763
27764 2010-07-12  Bruno Haible  <bruno@clisp.org>
27765
27766         Tests for module '_Exit'.
27767         * modules/_Exit-tests: New file.
27768         * tests/test-_Exit.sh: New file.
27769         * tests/test-_Exit.c: New file.
27770
27771         New module '_Exit'.
27772         * lib/stdlib.in.h (__attribute__): New macro.
27773         (_Exit): New declaration.
27774         * lib/_Exit.c: New file.
27775         * m4/_Exit.m4: New file.
27776         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27777         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27778         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27779         * modules/_Exit: New file.
27780         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27781         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27782
27783 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27784
27785         strtod: make it more-accurate typically, and don't require libm
27786         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27787         Include limits.h.  Don't include string.h.
27788         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27789         (locale_isspace): New function, so that no casts are needed to
27790         check whether *s is a space.
27791         (ldexp): Provide an unused dummy if not available.
27792         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27793         (strtod): Use them.  This implementation prefers to use the
27794         underlying strtod if available, falling back on our own code
27795         only to fix known bugs.  This is more likely to produce an
27796         accurate result.  Also, it avoids the use of libm functions.
27797         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27798         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27799         was absent, but it caused a test failure with coreutils.
27800         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27801         with libm.
27802         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27803         * modules/strtod-tests (Makefile.am): Likewise.
27804
27805 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27806             Bruno Haible  <bruno@clisp.org>
27807
27808         unistr/u8-strchr: Optimize ASCII argument case.
27809         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27810
27811 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27812
27813         (x)memcoll: minor tweaks
27814         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27815         is after the type that it qualifies.
27816         (memcoll0): Likewise.
27817         * lib/memcoll.h (memcoll0): Likewise.
27818         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27819         * lib/xmemcoll.h (xmemcoll0): Likewise.
27820         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27821         differs from memcoll in that the NUL byte is part of the argument.
27822         Omit the abort-checks, as performance is a real issue here.  Plus,
27823         the checks were wrong anyway (an off-by-one error).  Omit local
27824         variable 'diff', as it's a bit clearer that way.
27825         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27826         no longer needed.
27827
27828 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27829
27830         (x)memcoll: speedup when input is known to be NUL delimited
27831         * lib/memcoll.c: Include stdlib.
27832         (memcoll0): New function.
27833         (strcoll_loop): New function, refactored for use in both memcoll
27834         and memcoll0.
27835         * lib/memcoll.h (memcoll0): Add prototype.
27836         * lib/xmemcoll.c (xmemcoll0): New function.
27837         (collate_error): New function, refactored for use in both xmemcoll
27838         and xmemcoll0.
27839         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27840         * m4/memcoll.m4: add inline invocation.
27841
27842 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27843
27844         * build-aux/bootstrap: Remove any local translations
27845         from the translation project synchronization directory,
27846         so that local only translations are not distributed.
27847
27848 2010-07-04  Bruno Haible  <bruno@clisp.org>
27849
27850         fsusage: Clarify which code applies to which platforms.
27851         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27852         platform.
27853         * lib/fsusage.c (get_fs_usage): Likewise.
27854
27855 2010-07-04  Bruno Haible  <bruno@clisp.org>
27856
27857         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27858         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27859         Reported by Martin Lambers <marlam@marlam.de>.
27860
27861 2010-07-04  Jim Meyering  <meyering@redhat.com>
27862
27863         hash: once again explicitly disallow insertion of NULL
27864         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27865         inserting a NULL pointer cannot work with these functions.
27866         Add a comment with details.
27867         This reverts part of the 2010-07-01 commit, 5bef1a35
27868         "hash: extend module to deal with non-pointer keys".
27869
27870 2010-07-01  Bruno Haible  <bruno@clisp.org>
27871
27872         stdbool: Update doc.
27873         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27874         Info from Christian Weisgerber <naddy@mips.inka.de>.
27875
27876 2010-07-01  Jim Meyering  <meyering@redhat.com>
27877
27878         hash: extend module to deal with non-pointer keys
27879         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27880         but that allows insertion of non-pointer entries.
27881         Do not disallow an ENTRY value of NULL.
27882         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27883         * lib/hash.h (hash_insert0): Declare.
27884
27885 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27886
27887         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27888         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27889         not present (i.e. with autoconf 2.59 and when using gettextize, not
27890         gnulib), require AC_GNU_SOURCE instead.
27891
27892 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27893
27894         idpriv-drop: Fix tests.
27895         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27896         not to the test-idpriv-droptemp program.
27897
27898 2010-06-29  Bruno Haible  <bruno@clisp.org>
27899
27900         string: Fix syntax error with g++ 2.96.
27901         * lib/string.in.h (__pure__): Remove definition.
27902         (_GL_ATTRIBUTE_PURE): New macro.
27903         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27904         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27905         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27906
27907 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27908
27909         unitypes: Fix bug introduced on 2010-05-18.
27910         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27911
27912 2010-06-22  Eric Blake  <eblake@redhat.com>
27913
27914         memmem: slight optimization
27915         * lib/str-two-way.h (critical_factorization): Update comments.
27916         Reduce work during factorization phase.
27917         Reported by Carlos Bueno <carlos@bueno.org>.
27918
27919 2010-06-21  Bruno Haible  <bruno@clisp.org>
27920
27921         Fix HAVE_CALLOC_POSIX misnomer.
27922         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27923         !HAVE_CALLOC_POSIX.
27924         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27925         HAVE_CALLOC_POSIX.
27926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27927         instead of HAVE_CALLOC_POSIX.
27928         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27929         HAVE_CALLOC_POSIX.
27930
27931         Use modern idiom for calloc() replacement.
27932         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27933         AC_FUNC_CALLOC.
27934         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27935         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27936         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27937         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27938         (gl_REPLACE_CALLOC): New macro.
27939
27940 2010-06-21  Bruno Haible  <bruno@clisp.org>
27941
27942         Fix HAVE_REALLOC_POSIX misnomer.
27943         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27944         !HAVE_REALLOC_POSIX.
27945         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27946         HAVE_REALLOC_POSIX.
27947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27948         instead of HAVE_REALLOC_POSIX.
27949         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27950         HAVE_REALLOC_POSIX.
27951
27952         Use modern idiom for realloc() replacement.
27953         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27954         AC_FUNC_REALLOC.
27955         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27956         Autoconf's AC_FUNC_REALLOC.
27957         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27958         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27959         (gl_REPLACE_REALLOC): New macro.
27960         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27961
27962 2010-06-21  Bruno Haible  <bruno@clisp.org>
27963
27964         Fix HAVE_MALLOC_POSIX misnomer.
27965         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27966         !HAVE_MALLOC_POSIX.
27967         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27968         HAVE_MALLOC_POSIX.
27969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27970         instead of HAVE_MALLOC_POSIX.
27971         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27972         HAVE_MALLOC_POSIX.
27973
27974         Use modern idiom for malloc() replacement.
27975         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27976         AC_FUNC_MALLOC.
27977         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27978         Autoconf's AC_FUNC_MALLOC.
27979         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27980         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27981         (gl_REPLACE_MALLOC): New macro.
27982         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27983
27984 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27985
27986         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27987         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27988         This macro takes 3 arguments, not 4.
27989
27990 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27991
27992         ipv6: fix detection under mingw
27993         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27994         in6_addr.
27995
27996 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27997
27998         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27999         that strtod() works when cross-compiling to a glibc version known
28000         to work.
28001
28002 2010-06-15  Bruno Haible  <bruno@clisp.org>
28003
28004         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28005
28006 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28007
28008         select: Correct timeout.
28009         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28010
28011 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28012
28013         git-version-gen: init shell var to avoid env var influence
28014         * build-aux/git-version-gen (v): Init shell var to empty.
28015
28016 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28017
28018         priv-set: Don't assume that priv.h exists merely because getppriv does.
28019         See Jan Andersen's bug report about AIX 5L in
28020         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28021         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28022         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28023         * lib/priv-set.h: Likewise.
28024         * tests/test-priv-set.c: Likewise.
28025
28026 2010-06-13  Bruno Haible  <bruno@clisp.org>
28027
28028         relocatable: Make it easier to test whether to install wrappers.
28029         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28030         RELOCATABLE_VIA_WRAPPER.
28031
28032 2010-06-13  Bruno Haible  <bruno@clisp.org>
28033
28034         gnulib-tool: Display specified modules and dependencies differently.
28035         * gnulib-tool (func_show_module_list): New function.
28036         (func_import, func_create_testdir): Invoke it.
28037         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28038
28039 2010-06-13  Bruno Haible  <bruno@clisp.org>
28040
28041         gnulib-tool: Align code of func_import and func_create_testdir.
28042         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28043         specified_modules.
28044
28045 2010-06-12  Jim Meyering  <meyering@redhat.com>
28046
28047         test-inttostr: avoid spurious failure on Solaris 9
28048         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28049         to accept "%ju".  Reported by Bruno Haible.
28050
28051 2010-06-11  Jim Meyering  <meyering@redhat.com>
28052
28053         test-sys_socket: mark variables as used more readably
28054         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28055         as "used" explicitly via (void) statement casts.  This is more
28056         readable than using them in an artificial return expression.
28057         Suggestion from Bruno Haible.
28058
28059 2010-06-11  Bruno Haible  <bruno@clisp.org>
28060
28061         Avoid some more warnings from "gcc -Wwrite-strings".
28062         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28063         to 'const char *'.
28064         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28065         * tests/test-c-strcasestr.c (main): Likewise.
28066         * tests/test-mbscasestr1.c (main): Likewise.
28067         * tests/test-mbscasestr2.c (main): Likewise.
28068         * tests/test-memmem.c (main): Likewise.
28069         * tests/test-strstr.c (main): Likewise.
28070         * tests/test-strcasestr.c (main): Likewise.
28071
28072 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28073
28074         init.sh: change framework_failure_ to fail with status 99, not 1
28075         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28076         automake's parallel-tests rule that this is an unexpected failure,
28077         even if the test is listed in XFAIL_TESTS.
28078
28079 2010-06-11  Jim Meyering  <meyering@redhat.com>
28080
28081         test-inttostr: avoid warnings about 4-6KB literal strings
28082         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28083         Include "macros.h", for its definition of ASSERT.
28084         (CK): s/assert/ASSERT/
28085         * modules/inttostr-tests (Files): Add macros.h.
28086
28087         init.sh: don't use $ME_ or skip_ before they are defined
28088         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28089         their first uses.  Also hoist their companions: warn_, fail_,
28090         framework_failure_, $stderr_fileno.  Prompted by a patch from
28091         Stefano Lattarini.
28092
28093         test-sys_socket: avoid set-but-not-used warnings from gcc
28094         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28095         avoid warning about set-but-not-used variables.
28096
28097         test-xvasprintf: avoid 'const' discard warnings
28098         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28099         "const" when assigning from literal strings.
28100         (test_xasprintf): Add "void" in function argument list to placate
28101         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28102
28103         tests: avoid compilation warnings in argmatch and exclude tests...
28104         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28105         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28106         Since it always exits, declare with the "noreturn" attribute.
28107         * tests/test-argmatch.c: Likewise.
28108
28109         tests: avoid 'const' discard warnings in mbsstr tests
28110         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28111         * tests/test-mbsstr2.c (main): Likewise.
28112
28113         test-verify: avoid warning from gcc's -Wmissing-declarations
28114         * tests/test-verify.c (function): Declare to be static.
28115
28116         test-inttostr.c: include <string.h> for use of strcmp
28117         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28118
28119         test-linkat: avoid failed assertion on "other" architectures
28120         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28121         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28122         sparc: https://bugs.launchpad.net/bugs/591968
28123
28124 2010-06-11  Jim Meyering  <meyering@redhat.com>
28125
28126         printf.m4: avoid autoconf's "Expanded Before Required" warning
28127         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28128         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28129         autoconf warning.
28130
28131 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28132
28133         Replacement header templates are now named with ".in", not "_".
28134         * doc/gnulib-intro.texi: Correct.
28135
28136 2010-06-10  Jim Meyering  <meyering@redhat.com>
28137
28138         inttostr-tests: depend on snprintf, not snprintf-posix
28139         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28140         snprintf-posix, to avoid this aclocal failure:
28141           missing file gnulib-tests/vasnprintf.c
28142           configure.ac:45: error: expected source file, required through \
28143           AC_LIBSOURCES, not found
28144
28145 2010-06-10  Jim Meyering  <meyering@redhat.com>
28146
28147         inttostr: add a new function, inttostr, and tests
28148         The namesake function was not available.  The existence of the
28149         template file, inttostr.c makes its addition nontrivial.
28150         * lib/anytostr.c: Rename from inttostr.c.
28151         (anytostr): Rename from inttostr.
28152         * lib/inttostr.c: New file.
28153         * modules/inttostr (Files): Add anytostr.c.
28154         (Makefile.am): Set lib_SOURCES instead of ...
28155         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28156         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28157         * lib/offtostr.c: Likewise.
28158         * lib/uinttostr.c: Likewise.
28159         * lib/umaxtostr.c: Likewise.
28160         * modules/inttostr-tests: New file.
28161         * tests/test-inttostr.c: New file.  Test these functions.
28162
28163 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28164             Bruno Haible  <bruno@clisp.org>
28165
28166         Add "Extending Gnulib" chapter to manual.
28167         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28168         chapter.
28169         (Extending Gnulib): New chapter.
28170         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28171         chapter.
28172
28173 2010-06-09  Bruno Haible  <bruno@clisp.org>
28174
28175         Avoid relocwrapper link errors due to gnulib replacement functions.
28176         * lib/areadlink.c: Use the system's malloc, realloc functions.
28177         (areadlink): Set errno to ENOMEM explicitly.
28178         * modules/areadlink (Depends-on): Remove malloc-posix.
28179         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28180
28181 2010-06-09  Bruno Haible  <bruno@clisp.org>
28182
28183         Avoid relocwrapper link errors due to gnulib replacement functions.
28184         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28185         * lib/malloca.c: Likewise.
28186         * lib/relocatable.c: Likewise.
28187         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28188         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28189         * lib/setenv.c: Use the system's malloc, realloc functions.
28190         * lib/strerror.c: Use the system's sprintf function.
28191         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28192
28193 2010-06-04  Bruno Haible  <bruno@clisp.org>
28194
28195         Prefer documented low-level autoconf macro names.
28196         * m4/lib-link.m4: Use m4_translit instead of translit.
28197         * m4/environ.m4: Likewise.
28198         * m4/mathfunc.m4: Likewise.
28199         * m4/onceonly.m4: Likewise.
28200         * m4/stdint.m4: Likewise.
28201         Suggested by Eric Blake.
28202
28203 2010-06-04  Martin Lambers  <marlam@marlam.de>
28204             Bruno Haible  <bruno@clisp.org>
28205
28206         havelib: Allow library names with '+' characters.
28207         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28208         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28209
28210 2010-06-09  Bruno Haible  <bruno@clisp.org>
28211
28212         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28213         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28214         realloc failed.
28215
28216 2010-06-08  Peter Simons  <simons@cryp.to>
28217
28218         maint.mk: make the news-check rule more configurable
28219         * top/maint.mk (news-check-lines-spec): New variable.
28220         (news-check): Use "sed -n 1,10p" in place of "head".
28221
28222 2010-06-07  Jim Meyering  <meyering@redhat.com>
28223
28224         do-release-commit-and-tag: fix typo in --help
28225         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28226
28227         regex: avoid new dead-code warning with gcc-4.6.0
28228         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28229         if-block containing a while-loop.  It's been unused for at least
28230         5 years.
28231
28232 2010-06-05  Bruno Haible  <bruno@clisp.org>
28233
28234         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28235         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28236
28237 2010-06-04  Bruno Haible  <bruno@clisp.org>
28238
28239         Update to GNU gettext 0.18.1.
28240         * modules/gettext (configure.ac): Require gettext infrastructure from
28241         version 0.18.1.
28242
28243 2010-06-03  Bruno Haible  <bruno@clisp.org>
28244
28245         Don't use AC_LIBOBJ with file names in subdirectories.
28246         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28247         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28248         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28249         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28250         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28251         gl_LIBUNISTRING_LIBSOURCE.
28252         (Makefile.am): Augment lib_SOURCES here, conditionally.
28253         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28254
28255 2010-06-03  Bruno Haible  <bruno@clisp.org>
28256
28257         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28258         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28259         expansion does not end with a newline.
28260         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28261         unnecessary newline.
28262
28263 2010-06-03  Bruno Haible  <bruno@clisp.org>
28264
28265         Reduce dependencies.
28266         * tests/test-quotearg.h: New file, extracted from
28267         tests/test-quotearg.c.
28268         * tests/test-quotearg-simple.c: New file, extracted from
28269         tests/test-quotearg.c.
28270         * tests/test-quotearg.c: Don't include <ctype.h>.
28271         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28272         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28273         use_quote_double_quotes, use_quotearg_colon): Moved to
28274         tests/test-quotearg.h.
28275         (results_g, flag_results, custom_quotes, custom_results): Moved
28276         to tests/test-quotearg-simple.c.
28277         (main): Moved the part that does not depend on gettext to
28278         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28279         performed.
28280         * modules/quotearg-simple: New file.
28281         * modules/quotearg-simple-tests: New file.
28282         * modules/quotearg (Depends-on): Add quotearg-simple.
28283         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28284         (Files): Add tests/test-quotearg.h.
28285         Reported by Paolo Bonzini.
28286
28287 2010-06-03  Bruno Haible  <bruno@clisp.org>
28288
28289         Reduce dependencies.
28290         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28291
28292 2010-06-03  Bruno Haible  <bruno@clisp.org>
28293
28294         time: Undefine more broken macros.
28295         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28296         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28297         Reported by Eric Blake.
28298
28299 2010-06-03  Bruno Haible  <bruno@clisp.org>
28300
28301         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28302         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28303         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28304         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28305         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28306         Reported by Ludovic Courtès <ludo@gnu.org>.
28307
28308 2010-06-02  Eric Blake  <eblake@redhat.com>
28309
28310         time: work with mingw + pthreads-win32 library
28311         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28312         if timespec is defined only in pthread.h.
28313         * modules/time (Makefile.am): Substitute it.
28314         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28315         <pthread.h>, when needed.
28316         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28317         from the library.
28318
28319 2010-05-31  Bruno Haible  <bruno@clisp.org>
28320
28321         Avoid expanding two macros in the wrong order.
28322         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28323         gl_LIBUNISTRING if it is defined.
28324         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28325         autoconf >= 2.64.
28326         Reported by Ludovic Courtès <ludo@gnu.org>.
28327
28328 2010-05-27  Jim Meyering  <meyering@redhat.com>
28329
28330         maint.mk: also prohibit "#undef" of always-defined symbols
28331         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28332         Allow more than one space before the symbol name.
28333         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28334         the regexp uses alternation.
28335
28336 2010-05-26  Eric Blake  <eblake@redhat.com>
28337
28338         maint.mk: avoid echo -e
28339         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28340         Convert all uses of echo -* to printf.
28341         Reported by Matthias Bolte.
28342
28343 2010-05-25  Bruno Haible  <bruno@clisp.org>
28344
28345         Update to GNU gettext 0.18, part 2.
28346         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28347         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28348
28349 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28350
28351         Add missing include in test-pwrite.c.
28352         * tests/test-pwrite.c: Include string.h, for strcmp.
28353
28354 2010-05-24  Bruno Haible  <bruno@clisp.org>
28355
28356         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28357
28358 2010-05-24  Bruno Haible  <bruno@clisp.org>
28359
28360         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28361         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28362         iconveh_error argument.
28363         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28364         U_STRCONV_TO_LOCALE.
28365         * lib/unistr/u16-strcoll.c: Likewise.
28366         * lib/unistr/u32-strcoll.c: Likewise.
28367         * modules/unistr/u8-strcoll (Depends-on): Add
28368         uniconv/u8-strconv-to-enc, localcharset. Remove
28369         uniconv/u8-strconv-to-locale.
28370         (configure.ac): Bump version number.
28371         * modules/unistr/u16-strcoll (Depends-on): Add
28372         uniconv/u16-strconv-to-enc, localcharset. Remove
28373         uniconv/u16-strconv-to-locale.
28374         (configure.ac): Bump version number.
28375         * modules/unistr/u32-strcoll (Depends-on): Add
28376         uniconv/u32-strconv-to-enc, localcharset. Remove
28377         uniconv/u32-strconv-to-locale.
28378         (configure.ac): Bump version number.
28379
28380 2010-05-24  Bruno Haible  <bruno@clisp.org>
28381
28382         Avoid a test failure on NetBSD 5.0.
28383         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28384         an iconv() bug.
28385
28386 2010-05-24  Bruno Haible  <bruno@clisp.org>
28387
28388         Adjust #include directive style.
28389         * modules/regex (Includes): Recommend to write <regex.h>.
28390
28391 2010-05-24  Bruno Haible  <bruno@clisp.org>
28392
28393         regex: Don't require alloca.
28394         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28395         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28396         only inside if (0).
28397
28398 2010-05-23  Jim Meyering  <meyering@redhat.com>
28399
28400         test-renameat.c: include <sys/stat.h>
28401         * tests/test-renameat.c: Include <sys/stat.h>; required for
28402         definition of S_IS* macros.
28403
28404 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28405
28406         Update maintainer documentation for 'relocatable-prog' module.
28407         * doc/relocatable-maint.texi: Update.
28408         Comments by Bruno Haible.
28409
28410 2010-05-23  Bruno Haible  <bruno@clisp.org>
28411
28412         git-merge-changelog: Enable --split-merged-entry by default.
28413         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28414         (usage): Don't mention this option any more.
28415         Reported by Ralf Wildenhues.
28416
28417 2010-05-23  Jim Meyering  <meyering@redhat.com>
28418
28419         test-pwrite: do not leave behind a test file named "out"
28420         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28421         The trivial-looking use of init.sh is really necessary.
28422         It ensures that the temporary file, "out", is created in
28423         a temporary directory, and removed upon termination.
28424         * tests/test-pwrite.sh: Re-add file.
28425         * modules/pwrite-tests: Reference it.
28426
28427 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28428
28429         Fix output redirection buglet in init.sh.
28430         * tests/init.sh: Fix redirection of stderr.
28431
28432 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28433
28434         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28435
28436 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28437
28438         * modules/valgrind-tests: New file.
28439         * m4/valgrind-tests.m4: New file.
28440         * doc/valgrind-tests.texi: New file.
28441         * doc/gnulib.texi (Running self-tests under valgrind): New
28442         section.
28443
28444 2010-05-19  Bruno Haible  <bruno@clisp.org>
28445
28446         Clean up dead code in recent commit.
28447         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28448         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28449         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28450         Suggested by Paolo Bonzini.
28451
28452 2010-05-19  Bruno Haible  <bruno@clisp.org>
28453
28454         Avoid valgrind error reports from libunistring.
28455         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28456         * modules/libunistring (Files): Add it.
28457         * modules/libunistring-optional (Files): Likewise.
28458
28459 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28460             Bruno Haible  <bruno@clisp.org>
28461
28462         New module 'libunistring-optional'.
28463         * modules/libunistring-optional: New file.
28464         * m4/libunistring-base.m4: New file.
28465         * m4/libunistring-optional.m4: New file.
28466         * lib/unicase.in.h: Renamed from lib/unicase.h.
28467         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28468         * lib/unictype.in.h: Renamed from lib/unictype.h.
28469         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28470         * lib/uniname.in.h: Renamed from lib/uniname.h.
28471         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28472         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28473         * lib/unistr.in.h: Renamed from lib/unistr.h.
28474         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28475         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28476         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28477         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28478         gl_LIBUNISTRING. If the library was found, determine the installed
28479         version and set LIBUNISTRING_VERSION.
28480         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28481         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28482         handle a configuration option --with-included-libunistring.
28483         * modules/libunistring (Files): Add m4/absolute-header.m4.
28484         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28485         Add m4/libunistring-base.m4.
28486         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28487         (Makefile.am): Build unicase.h from unicase.in.h.
28488         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28489         Add m4/libunistring-base.m4.
28490         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28491         (Makefile.am): Build uniconv.h from uniconv.in.h.
28492         * modules/unictype/base (Files): Use unictype.in.h instead of
28493         unictype.h. Add m4/libunistring-base.m4.
28494         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28495         (Makefile.am): Build unictype.h from unictype.in.h.
28496         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28497         Add m4/libunistring-base.m4.
28498         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28499         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28500         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28501         Add m4/libunistring-base.m4.
28502         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28503         (Makefile.am): Build uniname.h from uniname.in.h.
28504         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28505         Add m4/libunistring-base.m4.
28506         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28507         (Makefile.am): Build uninorm.h from uninorm.in.h.
28508         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28509         unistdio.h. Add m4/libunistring-base.m4.
28510         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28511         (Makefile.am): Build unistdio.h from unistdio.in.h.
28512         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28513         Add m4/libunistring-base.m4.
28514         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28515         (Makefile.am): Build unistr.h from unistr.in.h.
28516         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28517         Add m4/libunistring-base.m4.
28518         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28519         (Makefile.am): Build unitypes.h from unitypes.in.h.
28520         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28521         Add m4/libunistring-base.m4.
28522         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28523         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28524         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28525         uniwidth.h. Add m4/libunistring-base.m4.
28526         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28527         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28528         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28529         instead of augmenting lib_SOURCES.
28530         * modules/unicase/empty-suffix-context: Likewise.
28531         * modules/unicase/locale-language: Likewise.
28532         * modules/unicase/tolower: Likewise.
28533         * modules/unicase/totitle: Likewise.
28534         * modules/unicase/toupper: Likewise.
28535         * modules/unicase/u8-casecmp: Likewise.
28536         * modules/unicase/u8-casecoll: Likewise.
28537         * modules/unicase/u8-casefold: Likewise.
28538         * modules/unicase/u8-casexfrm: Likewise.
28539         * modules/unicase/u8-ct-casefold: Likewise.
28540         * modules/unicase/u8-ct-tolower: Likewise.
28541         * modules/unicase/u8-ct-totitle: Likewise.
28542         * modules/unicase/u8-ct-toupper: Likewise.
28543         * modules/unicase/u8-is-cased: Likewise.
28544         * modules/unicase/u8-is-casefolded: Likewise.
28545         * modules/unicase/u8-is-lowercase: Likewise.
28546         * modules/unicase/u8-is-titlecase: Likewise.
28547         * modules/unicase/u8-is-uppercase: Likewise.
28548         * modules/unicase/u8-prefix-context: Likewise.
28549         * modules/unicase/u8-suffix-context: Likewise.
28550         * modules/unicase/u8-tolower: Likewise.
28551         * modules/unicase/u8-totitle: Likewise.
28552         * modules/unicase/u8-toupper: Likewise.
28553         * modules/unicase/u16-casecmp: Likewise.
28554         * modules/unicase/u16-casecoll: Likewise.
28555         * modules/unicase/u16-casefold: Likewise.
28556         * modules/unicase/u16-casexfrm: Likewise.
28557         * modules/unicase/u16-ct-casefold: Likewise.
28558         * modules/unicase/u16-ct-tolower: Likewise.
28559         * modules/unicase/u16-ct-totitle: Likewise.
28560         * modules/unicase/u16-ct-toupper: Likewise.
28561         * modules/unicase/u16-is-cased: Likewise.
28562         * modules/unicase/u16-is-casefolded: Likewise.
28563         * modules/unicase/u16-is-lowercase: Likewise.
28564         * modules/unicase/u16-is-titlecase: Likewise.
28565         * modules/unicase/u16-is-uppercase: Likewise.
28566         * modules/unicase/u16-prefix-context: Likewise.
28567         * modules/unicase/u16-suffix-context: Likewise.
28568         * modules/unicase/u16-tolower: Likewise.
28569         * modules/unicase/u16-totitle: Likewise.
28570         * modules/unicase/u16-toupper: Likewise.
28571         * modules/unicase/u32-casecmp: Likewise.
28572         * modules/unicase/u32-casecoll: Likewise.
28573         * modules/unicase/u32-casefold: Likewise.
28574         * modules/unicase/u32-casexfrm: Likewise.
28575         * modules/unicase/u32-ct-casefold: Likewise.
28576         * modules/unicase/u32-ct-tolower: Likewise.
28577         * modules/unicase/u32-ct-totitle: Likewise.
28578         * modules/unicase/u32-ct-toupper: Likewise.
28579         * modules/unicase/u32-is-cased: Likewise.
28580         * modules/unicase/u32-is-casefolded: Likewise.
28581         * modules/unicase/u32-is-lowercase: Likewise.
28582         * modules/unicase/u32-is-titlecase: Likewise.
28583         * modules/unicase/u32-is-uppercase: Likewise.
28584         * modules/unicase/u32-prefix-context: Likewise.
28585         * modules/unicase/u32-suffix-context: Likewise.
28586         * modules/unicase/u32-tolower: Likewise.
28587         * modules/unicase/u32-totitle: Likewise.
28588         * modules/unicase/u32-toupper: Likewise.
28589         * modules/unicase/ulc-casecmp: Likewise.
28590         * modules/unicase/ulc-casecoll: Likewise.
28591         * modules/unicase/ulc-casexfrm: Likewise.
28592         * modules/uniconv/u8-conv-from-enc: Likewise.
28593         * modules/uniconv/u8-conv-to-enc: Likewise.
28594         * modules/uniconv/u8-strconv-from-enc: Likewise.
28595         * modules/uniconv/u8-strconv-from-locale: Likewise.
28596         * modules/uniconv/u8-strconv-to-enc: Likewise.
28597         * modules/uniconv/u8-strconv-to-locale: Likewise.
28598         * modules/uniconv/u16-conv-from-enc: Likewise.
28599         * modules/uniconv/u16-conv-to-enc: Likewise.
28600         * modules/uniconv/u16-strconv-from-enc: Likewise.
28601         * modules/uniconv/u16-strconv-from-locale: Likewise.
28602         * modules/uniconv/u16-strconv-to-enc: Likewise.
28603         * modules/uniconv/u16-strconv-to-locale: Likewise.
28604         * modules/uniconv/u32-conv-from-enc: Likewise.
28605         * modules/uniconv/u32-conv-to-enc: Likewise.
28606         * modules/uniconv/u32-strconv-from-enc: Likewise.
28607         * modules/uniconv/u32-strconv-from-locale: Likewise.
28608         * modules/uniconv/u32-strconv-to-enc: Likewise.
28609         * modules/uniconv/u32-strconv-to-locale: Likewise.
28610         * modules/unictype/bidicategory-byname: Likewise.
28611         * modules/unictype/bidicategory-name: Likewise.
28612         * modules/unictype/bidicategory-of: Likewise.
28613         * modules/unictype/bidicategory-test: Likewise.
28614         * modules/unictype/block-list: Likewise.
28615         * modules/unictype/block-test: Likewise.
28616         * modules/unictype/category-C: Likewise.
28617         * modules/unictype/category-Cc: Likewise.
28618         * modules/unictype/category-Cf: Likewise.
28619         * modules/unictype/category-Cn: Likewise.
28620         * modules/unictype/category-Co: Likewise.
28621         * modules/unictype/category-Cs: Likewise.
28622         * modules/unictype/category-L: Likewise.
28623         * modules/unictype/category-Ll: Likewise.
28624         * modules/unictype/category-Lm: Likewise.
28625         * modules/unictype/category-Lo: Likewise.
28626         * modules/unictype/category-Lt: Likewise.
28627         * modules/unictype/category-Lu: Likewise.
28628         * modules/unictype/category-M: Likewise.
28629         * modules/unictype/category-Mc: Likewise.
28630         * modules/unictype/category-Me: Likewise.
28631         * modules/unictype/category-Mn: Likewise.
28632         * modules/unictype/category-N: Likewise.
28633         * modules/unictype/category-Nd: Likewise.
28634         * modules/unictype/category-Nl: Likewise.
28635         * modules/unictype/category-No: Likewise.
28636         * modules/unictype/category-P: Likewise.
28637         * modules/unictype/category-Pc: Likewise.
28638         * modules/unictype/category-Pd: Likewise.
28639         * modules/unictype/category-Pe: Likewise.
28640         * modules/unictype/category-Pf: Likewise.
28641         * modules/unictype/category-Pi: Likewise.
28642         * modules/unictype/category-Po: Likewise.
28643         * modules/unictype/category-Ps: Likewise.
28644         * modules/unictype/category-S: Likewise.
28645         * modules/unictype/category-Sc: Likewise.
28646         * modules/unictype/category-Sk: Likewise.
28647         * modules/unictype/category-Sm: Likewise.
28648         * modules/unictype/category-So: Likewise.
28649         * modules/unictype/category-Z: Likewise.
28650         * modules/unictype/category-Zl: Likewise.
28651         * modules/unictype/category-Zp: Likewise.
28652         * modules/unictype/category-Zs: Likewise.
28653         * modules/unictype/category-and: Likewise.
28654         * modules/unictype/category-and-not: Likewise.
28655         * modules/unictype/category-byname: Likewise.
28656         * modules/unictype/category-name: Likewise.
28657         * modules/unictype/category-none: Likewise.
28658         * modules/unictype/category-of: Likewise.
28659         * modules/unictype/category-or: Likewise.
28660         * modules/unictype/category-test: Likewise.
28661         * modules/unictype/combining-class: Likewise.
28662         * modules/unictype/ctype-alnum: Likewise.
28663         * modules/unictype/ctype-alpha: Likewise.
28664         * modules/unictype/ctype-blank: Likewise.
28665         * modules/unictype/ctype-cntrl: Likewise.
28666         * modules/unictype/ctype-digit: Likewise.
28667         * modules/unictype/ctype-graph: Likewise.
28668         * modules/unictype/ctype-lower: Likewise.
28669         * modules/unictype/ctype-print: Likewise.
28670         * modules/unictype/ctype-punct: Likewise.
28671         * modules/unictype/ctype-space: Likewise.
28672         * modules/unictype/ctype-upper: Likewise.
28673         * modules/unictype/ctype-xdigit: Likewise.
28674         * modules/unictype/decimal-digit: Likewise.
28675         * modules/unictype/digit: Likewise.
28676         * modules/unictype/mirror: Likewise.
28677         * modules/unictype/numeric: Likewise.
28678         * modules/unictype/property-alphabetic: Likewise.
28679         * modules/unictype/property-ascii-hex-digit: Likewise.
28680         * modules/unictype/property-bidi-arabic-digit: Likewise.
28681         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28682         * modules/unictype/property-bidi-block-separator: Likewise.
28683         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28684         * modules/unictype/property-bidi-common-separator: Likewise.
28685         * modules/unictype/property-bidi-control: Likewise.
28686         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28687         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28688         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28689         * modules/unictype/property-bidi-european-digit: Likewise.
28690         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28691         * modules/unictype/property-bidi-left-to-right: Likewise.
28692         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28693         * modules/unictype/property-bidi-other-neutral: Likewise.
28694         * modules/unictype/property-bidi-pdf: Likewise.
28695         * modules/unictype/property-bidi-segment-separator: Likewise.
28696         * modules/unictype/property-bidi-whitespace: Likewise.
28697         * modules/unictype/property-byname: Likewise.
28698         * modules/unictype/property-combining: Likewise.
28699         * modules/unictype/property-composite: Likewise.
28700         * modules/unictype/property-currency-symbol: Likewise.
28701         * modules/unictype/property-dash: Likewise.
28702         * modules/unictype/property-decimal-digit: Likewise.
28703         * modules/unictype/property-default-ignorable-code-point: Likewise.
28704         * modules/unictype/property-deprecated: Likewise.
28705         * modules/unictype/property-diacritic: Likewise.
28706         * modules/unictype/property-extender: Likewise.
28707         * modules/unictype/property-format-control: Likewise.
28708         * modules/unictype/property-grapheme-base: Likewise.
28709         * modules/unictype/property-grapheme-extend: Likewise.
28710         * modules/unictype/property-grapheme-link: Likewise.
28711         * modules/unictype/property-hex-digit: Likewise.
28712         * modules/unictype/property-hyphen: Likewise.
28713         * modules/unictype/property-id-continue: Likewise.
28714         * modules/unictype/property-id-start: Likewise.
28715         * modules/unictype/property-ideographic: Likewise.
28716         * modules/unictype/property-ids-binary-operator: Likewise.
28717         * modules/unictype/property-ids-trinary-operator: Likewise.
28718         * modules/unictype/property-ignorable-control: Likewise.
28719         * modules/unictype/property-iso-control: Likewise.
28720         * modules/unictype/property-join-control: Likewise.
28721         * modules/unictype/property-left-of-pair: Likewise.
28722         * modules/unictype/property-line-separator: Likewise.
28723         * modules/unictype/property-logical-order-exception: Likewise.
28724         * modules/unictype/property-lowercase: Likewise.
28725         * modules/unictype/property-math: Likewise.
28726         * modules/unictype/property-non-break: Likewise.
28727         * modules/unictype/property-not-a-character: Likewise.
28728         * modules/unictype/property-numeric: Likewise.
28729         * modules/unictype/property-other-alphabetic: Likewise.
28730         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28731         * modules/unictype/property-other-grapheme-extend: Likewise.
28732         * modules/unictype/property-other-id-continue: Likewise.
28733         * modules/unictype/property-other-id-start: Likewise.
28734         * modules/unictype/property-other-lowercase: Likewise.
28735         * modules/unictype/property-other-math: Likewise.
28736         * modules/unictype/property-other-uppercase: Likewise.
28737         * modules/unictype/property-paired-punctuation: Likewise.
28738         * modules/unictype/property-paragraph-separator: Likewise.
28739         * modules/unictype/property-pattern-syntax: Likewise.
28740         * modules/unictype/property-pattern-white-space: Likewise.
28741         * modules/unictype/property-private-use: Likewise.
28742         * modules/unictype/property-punctuation: Likewise.
28743         * modules/unictype/property-quotation-mark: Likewise.
28744         * modules/unictype/property-radical: Likewise.
28745         * modules/unictype/property-sentence-terminal: Likewise.
28746         * modules/unictype/property-soft-dotted: Likewise.
28747         * modules/unictype/property-space: Likewise.
28748         * modules/unictype/property-terminal-punctuation: Likewise.
28749         * modules/unictype/property-test: Likewise.
28750         * modules/unictype/property-titlecase: Likewise.
28751         * modules/unictype/property-unassigned-code-value: Likewise.
28752         * modules/unictype/property-unified-ideograph: Likewise.
28753         * modules/unictype/property-uppercase: Likewise.
28754         * modules/unictype/property-variation-selector: Likewise.
28755         * modules/unictype/property-white-space: Likewise.
28756         * modules/unictype/property-xid-continue: Likewise.
28757         * modules/unictype/property-xid-start: Likewise.
28758         * modules/unictype/property-zero-width: Likewise.
28759         * modules/unictype/scripts: Likewise.
28760         * modules/unictype/syntax-c-ident: Likewise.
28761         * modules/unictype/syntax-c-whitespace: Likewise.
28762         * modules/unictype/syntax-java-ident: Likewise.
28763         * modules/unictype/syntax-java-whitespace: Likewise.
28764         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28765         * modules/unilbrk/u8-width-linebreaks: Likewise.
28766         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28767         * modules/unilbrk/u16-width-linebreaks: Likewise.
28768         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28769         * modules/unilbrk/u32-width-linebreaks: Likewise.
28770         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28771         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28772         * modules/uniname/uniname: Likewise.
28773         * modules/uninorm/canonical-decomposition: Likewise.
28774         * modules/uninorm/composition: Likewise.
28775         * modules/uninorm/decomposing-form: Likewise.
28776         * modules/uninorm/decomposition: Likewise.
28777         * modules/uninorm/filter: Likewise.
28778         * modules/uninorm/nfc: Likewise.
28779         * modules/uninorm/nfd: Likewise.
28780         * modules/uninorm/nfkc: Likewise.
28781         * modules/uninorm/nfkd: Likewise.
28782         * modules/uninorm/u8-normalize: Likewise.
28783         * modules/uninorm/u8-normcmp: Likewise.
28784         * modules/uninorm/u8-normcoll: Likewise.
28785         * modules/uninorm/u8-normxfrm: Likewise.
28786         * modules/uninorm/u16-normalize: Likewise.
28787         * modules/uninorm/u16-normcmp: Likewise.
28788         * modules/uninorm/u16-normcoll: Likewise.
28789         * modules/uninorm/u16-normxfrm: Likewise.
28790         * modules/uninorm/u32-normalize: Likewise.
28791         * modules/uninorm/u32-normcmp: Likewise.
28792         * modules/uninorm/u32-normcoll: Likewise.
28793         * modules/uninorm/u32-normxfrm: Likewise.
28794         * modules/unistdio/u8-asnprintf: Likewise.
28795         * modules/unistdio/u8-asprintf: Likewise.
28796         * modules/unistdio/u8-snprintf: Likewise.
28797         * modules/unistdio/u8-sprintf: Likewise.
28798         * modules/unistdio/u8-u8-asnprintf: Likewise.
28799         * modules/unistdio/u8-u8-asprintf: Likewise.
28800         * modules/unistdio/u8-u8-snprintf: Likewise.
28801         * modules/unistdio/u8-u8-sprintf: Likewise.
28802         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28803         * modules/unistdio/u8-u8-vasprintf: Likewise.
28804         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28805         * modules/unistdio/u8-u8-vsprintf: Likewise.
28806         * modules/unistdio/u8-vasnprintf: Likewise.
28807         * modules/unistdio/u8-vasprintf: Likewise.
28808         * modules/unistdio/u8-vsnprintf: Likewise.
28809         * modules/unistdio/u8-vsprintf: Likewise.
28810         * modules/unistdio/u16-asnprintf: Likewise.
28811         * modules/unistdio/u16-asprintf: Likewise.
28812         * modules/unistdio/u16-snprintf: Likewise.
28813         * modules/unistdio/u16-sprintf: Likewise.
28814         * modules/unistdio/u16-u16-asnprintf: Likewise.
28815         * modules/unistdio/u16-u16-asprintf: Likewise.
28816         * modules/unistdio/u16-u16-snprintf: Likewise.
28817         * modules/unistdio/u16-u16-sprintf: Likewise.
28818         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28819         * modules/unistdio/u16-u16-vasprintf: Likewise.
28820         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28821         * modules/unistdio/u16-u16-vsprintf: Likewise.
28822         * modules/unistdio/u16-vasnprintf: Likewise.
28823         * modules/unistdio/u16-vasprintf: Likewise.
28824         * modules/unistdio/u16-vsnprintf: Likewise.
28825         * modules/unistdio/u16-vsprintf: Likewise.
28826         * modules/unistdio/u32-asnprintf: Likewise.
28827         * modules/unistdio/u32-asprintf: Likewise.
28828         * modules/unistdio/u32-snprintf: Likewise.
28829         * modules/unistdio/u32-sprintf: Likewise.
28830         * modules/unistdio/u32-u32-asnprintf: Likewise.
28831         * modules/unistdio/u32-u32-asprintf: Likewise.
28832         * modules/unistdio/u32-u32-snprintf: Likewise.
28833         * modules/unistdio/u32-u32-sprintf: Likewise.
28834         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28835         * modules/unistdio/u32-u32-vasprintf: Likewise.
28836         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28837         * modules/unistdio/u32-u32-vsprintf: Likewise.
28838         * modules/unistdio/u32-vasnprintf: Likewise.
28839         * modules/unistdio/u32-vasprintf: Likewise.
28840         * modules/unistdio/u32-vsnprintf: Likewise.
28841         * modules/unistdio/u32-vsprintf: Likewise.
28842         * modules/unistdio/ulc-asnprintf: Likewise.
28843         * modules/unistdio/ulc-asprintf: Likewise.
28844         * modules/unistdio/ulc-fprintf: Likewise.
28845         * modules/unistdio/ulc-snprintf: Likewise.
28846         * modules/unistdio/ulc-sprintf: Likewise.
28847         * modules/unistdio/ulc-vasnprintf: Likewise.
28848         * modules/unistdio/ulc-vasprintf: Likewise.
28849         * modules/unistdio/ulc-vfprintf: Likewise.
28850         * modules/unistdio/ulc-vsnprintf: Likewise.
28851         * modules/unistdio/ulc-vsprintf: Likewise.
28852         * modules/unistr/u8-check: Likewise.
28853         * modules/unistr/u8-chr: Likewise.
28854         * modules/unistr/u8-cmp: Likewise.
28855         * modules/unistr/u8-cmp2: Likewise.
28856         * modules/unistr/u8-cpy: Likewise.
28857         * modules/unistr/u8-cpy-alloc: Likewise.
28858         * modules/unistr/u8-endswith: Likewise.
28859         * modules/unistr/u8-mblen: Likewise.
28860         * modules/unistr/u8-mbsnlen: Likewise.
28861         * modules/unistr/u8-mbtouc: Likewise.
28862         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28863         * modules/unistr/u8-mbtoucr: Likewise.
28864         * modules/unistr/u8-move: Likewise.
28865         * modules/unistr/u8-next: Likewise.
28866         * modules/unistr/u8-prev: Likewise.
28867         * modules/unistr/u8-set: Likewise.
28868         * modules/unistr/u8-startswith: Likewise.
28869         * modules/unistr/u8-stpcpy: Likewise.
28870         * modules/unistr/u8-stpncpy: Likewise.
28871         * modules/unistr/u8-strcat: Likewise.
28872         * modules/unistr/u8-strchr: Likewise.
28873         * modules/unistr/u8-strcmp: Likewise.
28874         * modules/unistr/u8-strcoll: Likewise.
28875         * modules/unistr/u8-strcpy: Likewise.
28876         * modules/unistr/u8-strcspn: Likewise.
28877         * modules/unistr/u8-strdup: Likewise.
28878         * modules/unistr/u8-strlen: Likewise.
28879         * modules/unistr/u8-strmblen: Likewise.
28880         * modules/unistr/u8-strmbtouc: Likewise.
28881         * modules/unistr/u8-strncat: Likewise.
28882         * modules/unistr/u8-strncmp: Likewise.
28883         * modules/unistr/u8-strncpy: Likewise.
28884         * modules/unistr/u8-strnlen: Likewise.
28885         * modules/unistr/u8-strpbrk: Likewise.
28886         * modules/unistr/u8-strrchr: Likewise.
28887         * modules/unistr/u8-strspn: Likewise.
28888         * modules/unistr/u8-strstr: Likewise.
28889         * modules/unistr/u8-strtok: Likewise.
28890         * modules/unistr/u8-to-u16: Likewise.
28891         * modules/unistr/u8-to-u32: Likewise.
28892         * modules/unistr/u8-uctomb: Likewise.
28893         * modules/unistr/u16-check: Likewise.
28894         * modules/unistr/u16-chr: Likewise.
28895         * modules/unistr/u16-cmp: Likewise.
28896         * modules/unistr/u16-cmp2: Likewise.
28897         * modules/unistr/u16-cpy: Likewise.
28898         * modules/unistr/u16-cpy-alloc: Likewise.
28899         * modules/unistr/u16-endswith: Likewise.
28900         * modules/unistr/u16-mblen: Likewise.
28901         * modules/unistr/u16-mbsnlen: Likewise.
28902         * modules/unistr/u16-mbtouc: Likewise.
28903         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28904         * modules/unistr/u16-mbtoucr: Likewise.
28905         * modules/unistr/u16-move: Likewise.
28906         * modules/unistr/u16-next: Likewise.
28907         * modules/unistr/u16-prev: Likewise.
28908         * modules/unistr/u16-set: Likewise.
28909         * modules/unistr/u16-startswith: Likewise.
28910         * modules/unistr/u16-stpcpy: Likewise.
28911         * modules/unistr/u16-stpncpy: Likewise.
28912         * modules/unistr/u16-strcat: Likewise.
28913         * modules/unistr/u16-strchr: Likewise.
28914         * modules/unistr/u16-strcmp: Likewise.
28915         * modules/unistr/u16-strcoll: Likewise.
28916         * modules/unistr/u16-strcpy: Likewise.
28917         * modules/unistr/u16-strcspn: Likewise.
28918         * modules/unistr/u16-strdup: Likewise.
28919         * modules/unistr/u16-strlen: Likewise.
28920         * modules/unistr/u16-strmblen: Likewise.
28921         * modules/unistr/u16-strmbtouc: Likewise.
28922         * modules/unistr/u16-strncat: Likewise.
28923         * modules/unistr/u16-strncmp: Likewise.
28924         * modules/unistr/u16-strncpy: Likewise.
28925         * modules/unistr/u16-strnlen: Likewise.
28926         * modules/unistr/u16-strpbrk: Likewise.
28927         * modules/unistr/u16-strrchr: Likewise.
28928         * modules/unistr/u16-strspn: Likewise.
28929         * modules/unistr/u16-strstr: Likewise.
28930         * modules/unistr/u16-strtok: Likewise.
28931         * modules/unistr/u16-to-u32: Likewise.
28932         * modules/unistr/u16-to-u8: Likewise.
28933         * modules/unistr/u16-uctomb: Likewise.
28934         * modules/unistr/u32-check: Likewise.
28935         * modules/unistr/u32-chr: Likewise.
28936         * modules/unistr/u32-cmp: Likewise.
28937         * modules/unistr/u32-cmp2: Likewise.
28938         * modules/unistr/u32-cpy: Likewise.
28939         * modules/unistr/u32-cpy-alloc: Likewise.
28940         * modules/unistr/u32-endswith: Likewise.
28941         * modules/unistr/u32-mblen: Likewise.
28942         * modules/unistr/u32-mbsnlen: Likewise.
28943         * modules/unistr/u32-mbtouc: Likewise.
28944         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28945         * modules/unistr/u32-mbtoucr: Likewise.
28946         * modules/unistr/u32-move: Likewise.
28947         * modules/unistr/u32-next: Likewise.
28948         * modules/unistr/u32-prev: Likewise.
28949         * modules/unistr/u32-set: Likewise.
28950         * modules/unistr/u32-startswith: Likewise.
28951         * modules/unistr/u32-stpcpy: Likewise.
28952         * modules/unistr/u32-stpncpy: Likewise.
28953         * modules/unistr/u32-strcat: Likewise.
28954         * modules/unistr/u32-strchr: Likewise.
28955         * modules/unistr/u32-strcmp: Likewise.
28956         * modules/unistr/u32-strcoll: Likewise.
28957         * modules/unistr/u32-strcpy: Likewise.
28958         * modules/unistr/u32-strcspn: Likewise.
28959         * modules/unistr/u32-strdup: Likewise.
28960         * modules/unistr/u32-strlen: Likewise.
28961         * modules/unistr/u32-strmblen: Likewise.
28962         * modules/unistr/u32-strmbtouc: Likewise.
28963         * modules/unistr/u32-strncat: Likewise.
28964         * modules/unistr/u32-strncmp: Likewise.
28965         * modules/unistr/u32-strncpy: Likewise.
28966         * modules/unistr/u32-strnlen: Likewise.
28967         * modules/unistr/u32-strpbrk: Likewise.
28968         * modules/unistr/u32-strrchr: Likewise.
28969         * modules/unistr/u32-strspn: Likewise.
28970         * modules/unistr/u32-strstr: Likewise.
28971         * modules/unistr/u32-strtok: Likewise.
28972         * modules/unistr/u32-to-u16: Likewise.
28973         * modules/unistr/u32-to-u8: Likewise.
28974         * modules/unistr/u32-uctomb: Likewise.
28975         * modules/uniwbrk/u8-wordbreaks: Likewise.
28976         * modules/uniwbrk/u16-wordbreaks: Likewise.
28977         * modules/uniwbrk/u32-wordbreaks: Likewise.
28978         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28979         * modules/uniwbrk/wordbreak-property: Likewise.
28980         * modules/uniwidth/u8-strwidth: Likewise.
28981         * modules/uniwidth/u8-width: Likewise.
28982         * modules/uniwidth/u16-strwidth: Likewise.
28983         * modules/uniwidth/u16-width: Likewise.
28984         * modules/uniwidth/u32-strwidth: Likewise.
28985         * modules/uniwidth/u32-width: Likewise.
28986         * modules/uniwidth/width: Likewise.
28987         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28988         with $(LIBUNISTRING).
28989         * modules/unicase/ignorable-tests: Likewise.
28990         * modules/unicase/locale-language-tests: Likewise.
28991         * modules/unicase/tolower-tests: Likewise.
28992         * modules/unicase/totitle-tests: Likewise.
28993         * modules/unicase/toupper-tests: Likewise.
28994         * modules/unicase/u8-casecmp-tests: Likewise.
28995         * modules/unicase/u8-casecoll-tests: Likewise.
28996         * modules/unicase/u8-casefold-tests: Likewise.
28997         * modules/unicase/u8-is-cased-tests: Likewise.
28998         * modules/unicase/u8-is-casefolded-tests: Likewise.
28999         * modules/unicase/u8-is-lowercase-tests: Likewise.
29000         * modules/unicase/u8-is-titlecase-tests: Likewise.
29001         * modules/unicase/u8-is-uppercase-tests: Likewise.
29002         * modules/unicase/u8-tolower-tests: Likewise.
29003         * modules/unicase/u8-totitle-tests: Likewise.
29004         * modules/unicase/u8-toupper-tests: Likewise.
29005         * modules/unicase/u16-casecmp-tests: Likewise.
29006         * modules/unicase/u16-casecoll-tests: Likewise.
29007         * modules/unicase/u16-casefold-tests: Likewise.
29008         * modules/unicase/u16-is-cased-tests: Likewise.
29009         * modules/unicase/u16-is-casefolded-tests: Likewise.
29010         * modules/unicase/u16-is-lowercase-tests: Likewise.
29011         * modules/unicase/u16-is-titlecase-tests: Likewise.
29012         * modules/unicase/u16-is-uppercase-tests: Likewise.
29013         * modules/unicase/u16-tolower-tests: Likewise.
29014         * modules/unicase/u16-totitle-tests: Likewise.
29015         * modules/unicase/u16-toupper-tests: Likewise.
29016         * modules/unicase/u32-casecmp-tests: Likewise.
29017         * modules/unicase/u32-casecoll-tests: Likewise.
29018         * modules/unicase/u32-casefold-tests: Likewise.
29019         * modules/unicase/u32-is-cased-tests: Likewise.
29020         * modules/unicase/u32-is-casefolded-tests: Likewise.
29021         * modules/unicase/u32-is-lowercase-tests: Likewise.
29022         * modules/unicase/u32-is-titlecase-tests: Likewise.
29023         * modules/unicase/u32-is-uppercase-tests: Likewise.
29024         * modules/unicase/u32-tolower-tests: Likewise.
29025         * modules/unicase/u32-totitle-tests: Likewise.
29026         * modules/unicase/u32-toupper-tests: Likewise.
29027         * modules/unicase/ulc-casecmp-tests: Likewise.
29028         * modules/unicase/ulc-casecoll-tests: Likewise.
29029         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29030         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29031         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29032         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29033         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29034         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29035         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29036         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29037         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29038         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29039         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29040         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29041         * modules/unictype/bidicategory-byname-tests: Likewise.
29042         * modules/unictype/bidicategory-name-tests: Likewise.
29043         * modules/unictype/bidicategory-of-tests: Likewise.
29044         * modules/unictype/bidicategory-test-tests: Likewise.
29045         * modules/unictype/block-list-tests: Likewise.
29046         * modules/unictype/block-of-tests: Likewise.
29047         * modules/unictype/block-test-tests: Likewise.
29048         * modules/unictype/category-C-tests: Likewise.
29049         * modules/unictype/category-Cc-tests: Likewise.
29050         * modules/unictype/category-Cf-tests: Likewise.
29051         * modules/unictype/category-Cn-tests: Likewise.
29052         * modules/unictype/category-Co-tests: Likewise.
29053         * modules/unictype/category-Cs-tests: Likewise.
29054         * modules/unictype/category-L-tests: Likewise.
29055         * modules/unictype/category-Ll-tests: Likewise.
29056         * modules/unictype/category-Lm-tests: Likewise.
29057         * modules/unictype/category-Lo-tests: Likewise.
29058         * modules/unictype/category-Lt-tests: Likewise.
29059         * modules/unictype/category-Lu-tests: Likewise.
29060         * modules/unictype/category-M-tests: Likewise.
29061         * modules/unictype/category-Mc-tests: Likewise.
29062         * modules/unictype/category-Me-tests: Likewise.
29063         * modules/unictype/category-Mn-tests: Likewise.
29064         * modules/unictype/category-N-tests: Likewise.
29065         * modules/unictype/category-Nd-tests: Likewise.
29066         * modules/unictype/category-Nl-tests: Likewise.
29067         * modules/unictype/category-No-tests: Likewise.
29068         * modules/unictype/category-P-tests: Likewise.
29069         * modules/unictype/category-Pc-tests: Likewise.
29070         * modules/unictype/category-Pd-tests: Likewise.
29071         * modules/unictype/category-Pe-tests: Likewise.
29072         * modules/unictype/category-Pf-tests: Likewise.
29073         * modules/unictype/category-Pi-tests: Likewise.
29074         * modules/unictype/category-Po-tests: Likewise.
29075         * modules/unictype/category-Ps-tests: Likewise.
29076         * modules/unictype/category-S-tests: Likewise.
29077         * modules/unictype/category-Sc-tests: Likewise.
29078         * modules/unictype/category-Sk-tests: Likewise.
29079         * modules/unictype/category-Sm-tests: Likewise.
29080         * modules/unictype/category-So-tests: Likewise.
29081         * modules/unictype/category-Z-tests: Likewise.
29082         * modules/unictype/category-Zl-tests: Likewise.
29083         * modules/unictype/category-Zp-tests: Likewise.
29084         * modules/unictype/category-Zs-tests: Likewise.
29085         * modules/unictype/category-and-not-tests: Likewise.
29086         * modules/unictype/category-and-tests: Likewise.
29087         * modules/unictype/category-byname-tests: Likewise.
29088         * modules/unictype/category-name-tests: Likewise.
29089         * modules/unictype/category-none-tests: Likewise.
29090         * modules/unictype/category-of-tests: Likewise.
29091         * modules/unictype/category-or-tests: Likewise.
29092         * modules/unictype/category-test-withtable-tests: Likewise.
29093         * modules/unictype/combining-class-tests: Likewise.
29094         * modules/unictype/ctype-alnum-tests: Likewise.
29095         * modules/unictype/ctype-alpha-tests: Likewise.
29096         * modules/unictype/ctype-blank-tests: Likewise.
29097         * modules/unictype/ctype-cntrl-tests: Likewise.
29098         * modules/unictype/ctype-digit-tests: Likewise.
29099         * modules/unictype/ctype-graph-tests: Likewise.
29100         * modules/unictype/ctype-lower-tests: Likewise.
29101         * modules/unictype/ctype-print-tests: Likewise.
29102         * modules/unictype/ctype-punct-tests: Likewise.
29103         * modules/unictype/ctype-space-tests: Likewise.
29104         * modules/unictype/ctype-upper-tests: Likewise.
29105         * modules/unictype/ctype-xdigit-tests: Likewise.
29106         * modules/unictype/decimal-digit-tests: Likewise.
29107         * modules/unictype/digit-tests: Likewise.
29108         * modules/unictype/mirror-tests: Likewise.
29109         * modules/unictype/numeric-tests: Likewise.
29110         * modules/unictype/property-alphabetic-tests: Likewise.
29111         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29112         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29113         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29114         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29115         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29116         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29117         * modules/unictype/property-bidi-control-tests: Likewise.
29118         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29119         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29120         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29121         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29122         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29123         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29124         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29125         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29126         * modules/unictype/property-bidi-pdf-tests: Likewise.
29127         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29128         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29129         * modules/unictype/property-byname-tests: Likewise.
29130         * modules/unictype/property-combining-tests: Likewise.
29131         * modules/unictype/property-composite-tests: Likewise.
29132         * modules/unictype/property-currency-symbol-tests: Likewise.
29133         * modules/unictype/property-dash-tests: Likewise.
29134         * modules/unictype/property-decimal-digit-tests: Likewise.
29135         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29136         * modules/unictype/property-deprecated-tests: Likewise.
29137         * modules/unictype/property-diacritic-tests: Likewise.
29138         * modules/unictype/property-extender-tests: Likewise.
29139         * modules/unictype/property-format-control-tests: Likewise.
29140         * modules/unictype/property-grapheme-base-tests: Likewise.
29141         * modules/unictype/property-grapheme-extend-tests: Likewise.
29142         * modules/unictype/property-grapheme-link-tests: Likewise.
29143         * modules/unictype/property-hex-digit-tests: Likewise.
29144         * modules/unictype/property-hyphen-tests: Likewise.
29145         * modules/unictype/property-id-continue-tests: Likewise.
29146         * modules/unictype/property-id-start-tests: Likewise.
29147         * modules/unictype/property-ideographic-tests: Likewise.
29148         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29149         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29150         * modules/unictype/property-ignorable-control-tests: Likewise.
29151         * modules/unictype/property-iso-control-tests: Likewise.
29152         * modules/unictype/property-join-control-tests: Likewise.
29153         * modules/unictype/property-left-of-pair-tests: Likewise.
29154         * modules/unictype/property-line-separator-tests: Likewise.
29155         * modules/unictype/property-logical-order-exception-tests: Likewise.
29156         * modules/unictype/property-lowercase-tests: Likewise.
29157         * modules/unictype/property-math-tests: Likewise.
29158         * modules/unictype/property-non-break-tests: Likewise.
29159         * modules/unictype/property-not-a-character-tests: Likewise.
29160         * modules/unictype/property-numeric-tests: Likewise.
29161         * modules/unictype/property-other-alphabetic-tests: Likewise.
29162         * modules/unictype/property-other-default-ignorable-code-point-tests:
29163         Likewise.
29164         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29165         * modules/unictype/property-other-id-continue-tests: Likewise.
29166         * modules/unictype/property-other-id-start-tests: Likewise.
29167         * modules/unictype/property-other-lowercase-tests: Likewise.
29168         * modules/unictype/property-other-math-tests: Likewise.
29169         * modules/unictype/property-other-uppercase-tests: Likewise.
29170         * modules/unictype/property-paired-punctuation-tests: Likewise.
29171         * modules/unictype/property-paragraph-separator-tests: Likewise.
29172         * modules/unictype/property-pattern-syntax-tests: Likewise.
29173         * modules/unictype/property-pattern-white-space-tests: Likewise.
29174         * modules/unictype/property-private-use-tests: Likewise.
29175         * modules/unictype/property-punctuation-tests: Likewise.
29176         * modules/unictype/property-quotation-mark-tests: Likewise.
29177         * modules/unictype/property-radical-tests: Likewise.
29178         * modules/unictype/property-sentence-terminal-tests: Likewise.
29179         * modules/unictype/property-soft-dotted-tests: Likewise.
29180         * modules/unictype/property-space-tests: Likewise.
29181         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29182         * modules/unictype/property-test-tests: Likewise.
29183         * modules/unictype/property-titlecase-tests: Likewise.
29184         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29185         * modules/unictype/property-unified-ideograph-tests: Likewise.
29186         * modules/unictype/property-uppercase-tests: Likewise.
29187         * modules/unictype/property-variation-selector-tests: Likewise.
29188         * modules/unictype/property-white-space-tests: Likewise.
29189         * modules/unictype/property-xid-continue-tests: Likewise.
29190         * modules/unictype/property-xid-start-tests: Likewise.
29191         * modules/unictype/property-zero-width-tests: Likewise.
29192         * modules/unictype/scripts-tests: Likewise.
29193         * modules/unictype/syntax-c-ident-tests: Likewise.
29194         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29195         * modules/unictype/syntax-java-ident-tests: Likewise.
29196         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29197         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29198         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29199         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29200         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29201         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29202         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29203         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29204         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29205         * modules/uniname/uniname-tests: Likewise.
29206         * modules/uninorm/canonical-decomposition-tests: Likewise.
29207         * modules/uninorm/compat-decomposition-tests: Likewise.
29208         * modules/uninorm/composition-tests: Likewise.
29209         * modules/uninorm/decomposing-form-tests: Likewise.
29210         * modules/uninorm/decomposition-tests: Likewise.
29211         * modules/uninorm/filter-tests: Likewise.
29212         * modules/uninorm/nfc-tests: Likewise.
29213         * modules/uninorm/nfd-tests: Likewise.
29214         * modules/uninorm/nfkc-tests: Likewise.
29215         * modules/uninorm/nfkd-tests: Likewise.
29216         * modules/uninorm/u8-normcmp-tests: Likewise.
29217         * modules/uninorm/u8-normcoll-tests: Likewise.
29218         * modules/uninorm/u16-normcmp-tests: Likewise.
29219         * modules/uninorm/u16-normcoll-tests: Likewise.
29220         * modules/uninorm/u32-normcmp-tests: Likewise.
29221         * modules/uninorm/u32-normcoll-tests: Likewise.
29222         * modules/unistdio/u8-asnprintf-tests: Likewise.
29223         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29224         * modules/unistdio/u8-vasprintf-tests: Likewise.
29225         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29226         * modules/unistdio/u8-vsprintf-tests: Likewise.
29227         * modules/unistdio/u16-asnprintf-tests: Likewise.
29228         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29229         * modules/unistdio/u16-vasprintf-tests: Likewise.
29230         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29231         * modules/unistdio/u16-vsprintf-tests: Likewise.
29232         * modules/unistdio/u32-asnprintf-tests: Likewise.
29233         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29234         * modules/unistdio/u32-vasprintf-tests: Likewise.
29235         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29236         * modules/unistdio/u32-vsprintf-tests: Likewise.
29237         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29238         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29239         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29240         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29241         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29242         * modules/unistr/u8-check-tests: Likewise.
29243         * modules/unistr/u8-chr-tests: Likewise.
29244         * modules/unistr/u8-cmp-tests: Likewise.
29245         * modules/unistr/u8-cmp2-tests: Likewise.
29246         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29247         * modules/unistr/u8-cpy-tests: Likewise.
29248         * modules/unistr/u8-mblen-tests: Likewise.
29249         * modules/unistr/u8-mbsnlen-tests: Likewise.
29250         * modules/unistr/u8-mbtouc-tests: Likewise.
29251         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29252         * modules/unistr/u8-mbtoucr-tests: Likewise.
29253         * modules/unistr/u8-move-tests: Likewise.
29254         * modules/unistr/u8-next-tests: Likewise.
29255         * modules/unistr/u8-prev-tests: Likewise.
29256         * modules/unistr/u8-set-tests: Likewise.
29257         * modules/unistr/u8-stpcpy-tests: Likewise.
29258         * modules/unistr/u8-stpncpy-tests: Likewise.
29259         * modules/unistr/u8-strcat-tests: Likewise.
29260         * modules/unistr/u8-strcmp-tests: Likewise.
29261         * modules/unistr/u8-strcoll-tests: Likewise.
29262         * modules/unistr/u8-strcpy-tests: Likewise.
29263         * modules/unistr/u8-strdup-tests: Likewise.
29264         * modules/unistr/u8-strlen-tests: Likewise.
29265         * modules/unistr/u8-strmblen-tests: Likewise.
29266         * modules/unistr/u8-strmbtouc-tests: Likewise.
29267         * modules/unistr/u8-strncat-tests: Likewise.
29268         * modules/unistr/u8-strncmp-tests: Likewise.
29269         * modules/unistr/u8-strncpy-tests: Likewise.
29270         * modules/unistr/u8-strnlen-tests: Likewise.
29271         * modules/unistr/u8-to-u16-tests: Likewise.
29272         * modules/unistr/u8-to-u32-tests: Likewise.
29273         * modules/unistr/u8-uctomb-tests: Likewise.
29274         * modules/unistr/u16-check-tests: Likewise.
29275         * modules/unistr/u16-chr-tests: Likewise.
29276         * modules/unistr/u16-cmp-tests: Likewise.
29277         * modules/unistr/u16-cmp2-tests: Likewise.
29278         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29279         * modules/unistr/u16-cpy-tests: Likewise.
29280         * modules/unistr/u16-mblen-tests: Likewise.
29281         * modules/unistr/u16-mbsnlen-tests: Likewise.
29282         * modules/unistr/u16-mbtouc-tests: Likewise.
29283         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29284         * modules/unistr/u16-mbtoucr-tests: Likewise.
29285         * modules/unistr/u16-move-tests: Likewise.
29286         * modules/unistr/u16-next-tests: Likewise.
29287         * modules/unistr/u16-prev-tests: Likewise.
29288         * modules/unistr/u16-set-tests: Likewise.
29289         * modules/unistr/u16-stpcpy-tests: Likewise.
29290         * modules/unistr/u16-stpncpy-tests: Likewise.
29291         * modules/unistr/u16-strcat-tests: Likewise.
29292         * modules/unistr/u16-strcmp-tests: Likewise.
29293         * modules/unistr/u16-strcoll-tests: Likewise.
29294         * modules/unistr/u16-strcpy-tests: Likewise.
29295         * modules/unistr/u16-strdup-tests: Likewise.
29296         * modules/unistr/u16-strlen-tests: Likewise.
29297         * modules/unistr/u16-strmblen-tests: Likewise.
29298         * modules/unistr/u16-strmbtouc-tests: Likewise.
29299         * modules/unistr/u16-strncat-tests: Likewise.
29300         * modules/unistr/u16-strncmp-tests: Likewise.
29301         * modules/unistr/u16-strncpy-tests: Likewise.
29302         * modules/unistr/u16-strnlen-tests: Likewise.
29303         * modules/unistr/u16-to-u32-tests: Likewise.
29304         * modules/unistr/u16-to-u8-tests: Likewise.
29305         * modules/unistr/u16-uctomb-tests: Likewise.
29306         * modules/unistr/u32-check-tests: Likewise.
29307         * modules/unistr/u32-chr-tests: Likewise.
29308         * modules/unistr/u32-cmp-tests: Likewise.
29309         * modules/unistr/u32-cmp2-tests: Likewise.
29310         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29311         * modules/unistr/u32-cpy-tests: Likewise.
29312         * modules/unistr/u32-mblen-tests: Likewise.
29313         * modules/unistr/u32-mbsnlen-tests: Likewise.
29314         * modules/unistr/u32-mbtouc-tests: Likewise.
29315         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29316         * modules/unistr/u32-mbtoucr-tests: Likewise.
29317         * modules/unistr/u32-move-tests: Likewise.
29318         * modules/unistr/u32-next-tests: Likewise.
29319         * modules/unistr/u32-prev-tests: Likewise.
29320         * modules/unistr/u32-set-tests: Likewise.
29321         * modules/unistr/u32-stpcpy-tests: Likewise.
29322         * modules/unistr/u32-stpncpy-tests: Likewise.
29323         * modules/unistr/u32-strcat-tests: Likewise.
29324         * modules/unistr/u32-strcmp-tests: Likewise.
29325         * modules/unistr/u32-strcoll-tests: Likewise.
29326         * modules/unistr/u32-strcpy-tests: Likewise.
29327         * modules/unistr/u32-strdup-tests: Likewise.
29328         * modules/unistr/u32-strlen-tests: Likewise.
29329         * modules/unistr/u32-strmblen-tests: Likewise.
29330         * modules/unistr/u32-strmbtouc-tests: Likewise.
29331         * modules/unistr/u32-strncat-tests: Likewise.
29332         * modules/unistr/u32-strncmp-tests: Likewise.
29333         * modules/unistr/u32-strncpy-tests: Likewise.
29334         * modules/unistr/u32-strnlen-tests: Likewise.
29335         * modules/unistr/u32-to-u16-tests: Likewise.
29336         * modules/unistr/u32-to-u8-tests: Likewise.
29337         * modules/unistr/u32-uctomb-tests: Likewise.
29338         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29339         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29340         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29341         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29342         * modules/uniwidth/u8-strwidth-tests: Likewise.
29343         * modules/uniwidth/u8-width-tests: Likewise.
29344         * modules/uniwidth/u16-strwidth-tests: Likewise.
29345         * modules/uniwidth/u16-width-tests: Likewise.
29346         * modules/uniwidth/u32-strwidth-tests: Likewise.
29347         * modules/uniwidth/u32-width-tests: Likewise.
29348         * modules/uniwidth/width-tests: Likewise.
29349
29350 2010-05-18  Richard Jones  <rjones@redhat.com>
29351
29352         doc: users.txt: list hivex
29353         * users.txt: Add hivex.
29354
29355 2010-05-18  Richard Jones  <rjones@redhat.com>
29356
29357         doc: users.txt: list febootstrap
29358         * users.txt: Add febootstrap.
29359
29360 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29361
29362         bootstrap: fix an error when gnulib is not used as a git submodule
29363         * build-aux/bootstrap (gnulib_path): If its length is zero then
29364         assign "gnulib" to it.
29365         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29366
29367 2010-05-16  Bruno Haible  <bruno@clisp.org>
29368
29369         Avoid autoconf warnings about AM_ICONV.
29370         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29371         2.64.
29372
29373 2010-05-16  Bruno Haible  <bruno@clisp.org>
29374
29375         absolute-header: Make the macro usable in more situations.
29376         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29377         from gl_ABSOLUTE_HEADER.
29378         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29379
29380 2010-05-16  James Youngman  <jay@gnu.org>
29381
29382         doc: update users.txt
29383         * users.txt: Add CSSC.
29384
29385 2010-05-16  Jim Meyering  <meyering@redhat.com>
29386
29387         init.sh: fix an error in the previous change; add more comments
29388         * tests/init.sh: Compare exit code in loop against 9, not 2.
29389         Patch by Bruno Haible.
29390         Make the two tests more similar by adding an empty "then" clause.
29391         Add comments.
29392
29393         init.sh: avoid unnecessary shell re-exec
29394         * tests/init.sh: Improve the re-exec-required check to first test the
29395         current shell.  If it passes the test, do not search for a shell that
29396         does pass, and do not re-exec.  This test is particularly contorted to
29397         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29398         of $(...) evokes a syntax error and causes immediate shell exit with
29399         status 2.  Bruno Haible reported that the re-exec made it impossible
29400         to single-step through any init.sh-using script.
29401
29402 2010-05-16  Bruno Haible  <bruno@clisp.org>
29403
29404         Fix collision between gnulib's and libintl's printf replacements.
29405         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29406         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29407         (printf): When using GNU C, map the __printf__ function to rpl_printf
29408         via __asm__. When not using GNU C, define rpl_printf instead of
29409         __printf__.
29410         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29411         commit.
29412         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29413         commit.
29414         * m4/asm-underscore.m4: New file.
29415         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29416         * modules/stdio (Files): Add m4/asm-underscore.m4.
29417         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29418         Reported by Ben Pfaff.
29419
29420 2010-05-16  Bruno Haible  <bruno@clisp.org>
29421
29422         verify: Avoid skipping the test on openSUSE 11.0.
29423         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29424
29425 2010-05-13  Bruno Haible  <bruno@clisp.org>
29426
29427         Avoid useless warnings from G++.
29428         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29429         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29430         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29431
29432 2010-05-11  Jim Meyering  <meyering@redhat.com>
29433
29434         maint.mk: tweak preceding change
29435         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29436         regexps tighter by anchoring at EOL, and make the new group "shy"
29437         for slightly decreased overhead.
29438
29439 2010-05-11  Eric Blake  <eblake@redhat.com>
29440
29441         maint.mk: gnulib doesn't guarantee NSIG
29442         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29443
29444 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29445
29446         test-pwrite.c: Remove unused variable declaration.
29447         * tests/test-pwrite.c (main): Remove read_buf declaration.
29448
29449         Remove useless test-pwrite.sh file.
29450         * tests/test-pwrite.sh: Delete file.
29451         * modules/pwrite-tests: Remove references.
29452         Reported by Bruno Haible.
29453
29454 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29455
29456         init.sh: fix a typo
29457         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29458
29459 2010-05-10  Jim Meyering  <meyering@redhat.com>
29460
29461         maint.mk: avoid using a temporary file in the always-defined-macros check
29462         * top/maint.mk (.re-defmac): Remove rule.
29463         (gl_trap_): Remove definition.
29464         (sc_prohibit_always-defined_macros): Rewrite not to create and
29465         depend on a temporary file.  Instead, depend on GNU grep's ability
29466         to read a list of regular expressions from stdin when given "-f -".
29467
29468 2010-05-09  Bruno Haible  <bruno@clisp.org>
29469
29470         Update to GNU gettext 0.18, part 1.
29471         * m4/gettext.m4: Update to GNU gettext 0.18.
29472         * m4/intl.m4: Likewise.
29473         * m4/po.m4: Likewise.
29474         * modules/gettext (Files): Add m4/fcntl-o.m4.
29475         (configure.ac): Require gettext infrastructure from version 0.18.
29476
29477 2010-05-09  Jim Meyering  <meyering@redhat.com>
29478
29479         init.sh: enable MALLOC_PERTURB_
29480         * tests/init.sh: Enable glibc's malloc-perturbing option.
29481
29482         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29483         With my recent change in init.sh from the two-line form:
29484             -#   : ${srcdir=.}
29485             -#   . "$srcdir/init.sh"; path_prepend_ .
29486             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29487         I noticed that using the one-line form would cause this test
29488         to fail with a false-positive, or to stop working altogether,
29489         depending on whether help-version changed or all the tests did.
29490         * top/maint.mk (_hv_regex): Remove this definition.
29491         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29492         (_hv_regex_strong): Use a stronger regex to check for conformance.
29493         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29494         Give a separate diagnostic for lack of conforming use.
29495
29496         maint.mk: prohibit definition of symbols defined by gnulib
29497         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29498         definition of symbols defined by gnulib.
29499
29500 2010-05-09  Bruno Haible  <bruno@clisp.org>
29501
29502         acl: Avoid test failure on Cygwin-hosted mingw.
29503         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29504
29505 2010-05-09  Bruno Haible  <bruno@clisp.org>
29506
29507         error: Use system's fcntl function.
29508         * lib/error.c (fcntl): Undefine.
29509
29510 2010-05-09  Jim Meyering  <meyering@redhat.com>
29511
29512         verify: adjust formatting to be more consistent
29513         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29514         argument-list '('s, and after one comma.
29515
29516 2010-05-09  Bruno Haible  <bruno@clisp.org>
29517
29518         error: More reliable output on mingw.
29519         * lib/error.c: Include <windows.h>.
29520         (is_open): New function.
29521         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29522         defined.
29523
29524 2010-05-09  Bruno Haible  <bruno@clisp.org>
29525
29526         vasnprintf: Fix syntax errors in libintl build on mingw.
29527         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29528         pad_ourselves and prec_ourselves after use.
29529
29530 2010-05-08  Bruno Haible  <bruno@clisp.org>
29531
29532         * lib/config.charset: Update comments for Cygwin 1.7.
29533         * lib/localcharset.c: Likewise.
29534
29535 2010-05-07  Jim Meyering  <meyering@redhat.com>
29536
29537         init.sh: improve comments
29538         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29539         . "${srcdir=.}/init.sh"; path_prepend_ .
29540         Add a note about path_prepend_ and the alternative of using
29541         TESTS_ENVIRONMENT.
29542
29543 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29544
29545         exclude: Unescape hashed patterns in wildcard mode.
29546         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29547         to the hash list.
29548         * tests/test-exclude8.sh: New test case.
29549         * modules/exclude-tests: Add new test.
29550
29551 2010-05-05  Eric Blake  <eblake@redhat.com>
29552
29553         verify: automate tests
29554         * modules/verify-tests: New module.
29555         * tests/test-verify.sh: New file.
29556         * tests/test-verify.c: Guard each negative test with a unique id.
29557         Also avoid warning about unused left hand of comma expressions.
29558
29559 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29560
29561         Further improvements to verify.h, suggested by Eric Blake.
29562         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29563         the GL_* versions, to avoid collision with OpenGL.
29564         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29565         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29566         than testing merely whether it's defined.
29567
29568         Modify verify.h to pacify gcc -Wredundant_decls.
29569         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29570         These use the prefix "GL_" since they're likely to be useful elsewhere.
29571         We may need to break them out into a different .h file.
29572         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29573         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29574         of verify_function__.
29575
29576 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29577
29578         Tests for module pwrite.
29579         * modules/pwrite-tests: New file.
29580         * tests/test-pwrite.sh: New file.
29581         * tests/test-pwrite.c: New file.
29582
29583         New module pwrite.
29584         * lib/unistd.in.h (pwrite): New declaration.
29585         * lib/pwrite.c: New file, from glibc with modifications.
29586         * m4/pwrite.m4: New file.
29587         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29588         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29589         REPLACE_PWRITE.
29590         * modules/pwrite: New file.
29591         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29592         REPLACE_PWRITE.
29593         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29594         * doc/posix-functions/pwrite.texi: Mention the new module.
29595
29596 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29597
29598         pread: Update documentation.
29599         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29600
29601 2010-05-04  Eric Blake  <eblake@redhat.com>
29602
29603         docs: update cygwin progress
29604         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29605         this bug.
29606         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29607         Added in cygwin 1.7.2.
29608         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29609         Likewise.
29610         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29611         Likewise.
29612         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29613         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29614         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29615         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29616         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29617         Mention nproc module.
29618         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29619         bug in cygwin 1.7.5 addition.
29620         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29621         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29622         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29623         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29624         1.7.5.
29625         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29626         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29627         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29628         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29629         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29630         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29631         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29632         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29633         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29634         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29635         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29636         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29637         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29638         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29639         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29640         Likewise.
29641         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29642         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29643         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29644         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29645         Likewise.
29646         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29647         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29648         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29649         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29650         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29651         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29652         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29653         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29654         Likewise.
29655         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29656         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29657         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29658         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29659         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29660         Likewise.
29661         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29662         Likewise.
29663         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29664         Likewise.
29665         * doc/glibc-functions/xdrrec_endofrecord.texi
29666         (xdrrec_endofrecord): Likewise.
29667         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29668         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29669         Likewise.
29670         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29671         Likewise.
29672
29673 2010-05-04  Jim Meyering  <meyering@redhat.com>
29674
29675         gendocs.sh: make its "-s FILE" option more useful
29676         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29677         $PACKAGE to reflect the probably-different basename of "FILE".
29678
29679 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29680
29681         bootstrap: don't ignore download_po_files failure
29682         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29683         failure.
29684
29685 2010-05-03  Jim Meyering  <meyering@redhat.com>
29686
29687         maint.mk: allow to pass options to gendocs.sh
29688         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29689         (gendocs_options_): New overridable variable.
29690
29691         gnu-web-doc-update: don't ignore configure or build failure
29692         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29693
29694         announce-gen: backslash-escape '@'s in --help output
29695         * build-aux/announce-gen: Fix syntax errors.
29696
29697         maint.mk, announce-gen: allow project-specific announcement mail headers
29698         * top/maint.mk (translation_project_): Define default.
29699         (announcement_Cc_, announcement_mail_headers_): Likewise.
29700         (announcement): Invoke announce-gen with new --mail-headers option.
29701         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29702
29703         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29704         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29705         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29706         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29707         line in the "err2" output file when running "make check" in verbose
29708         mode (i.e., with set -x enabled).
29709
29710 2010-05-03  Bruno Haible  <bruno@clisp.org>
29711
29712         wctob: Fix for weird platforms.
29713         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29714         argument value.
29715
29716 2010-05-03  Jim Meyering  <meyering@redhat.com>
29717
29718         maint.mk: prohibit unwarranted use of <strings.h>
29719         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29720         strings.h in a file that does not also use strcasecmp, strncasecmp,
29721         ffs or ffsll.
29722
29723         maint.mk: remove obsolete comments
29724         * top/maint.mk: Remove stale, commented-out rules.
29725
29726 2010-05-02  Bruno Haible  <bruno@clisp.org>
29727
29728         wcwidth: Declare also when it's aliased.
29729         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29730         macro.
29731
29732 2010-05-02  Bruno Haible  <bruno@clisp.org>
29733
29734         Fix regression from 2010-04-25.
29735         * gnulib-tool (func_modules_transitive_closure): Check the status of
29736         all modules, not only of the tests that are of the form foo-tests where
29737         foo is a module.
29738
29739 2010-05-02  Bruno Haible  <bruno@clisp.org>
29740
29741         wctob: Work around nasty Cygwin 1.7.2 bug.
29742         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29743         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29744
29745 2010-05-01  Bruno Haible  <bruno@clisp.org>
29746
29747         fpurge: Sharper test.
29748         * tests/test-fpurge.c (main): Add one more ftell check.
29749         * modules/fpurge-tests (Depends-on): Add ftell.
29750         Suggested by Eric Blake.
29751
29752 2010-05-01  Bruno Haible  <bruno@clisp.org>
29753
29754         ftello: Another test.
29755         * tests/test-ftello3.c: New file.
29756         * modules/ftello-tests (Files): Add it.
29757         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29758         MOSTLYCLEANFILES.
29759
29760         ftell: Another test.
29761         * tests/test-ftell3.c: New file.
29762         * modules/ftell-tests (Files): Add it.
29763         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29764         MOSTLYCLEANFILES.
29765
29766 2010-05-01  Bruno Haible  <bruno@clisp.org>
29767
29768         ftell, ftello: Work around Solaris bug.
29769         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29770         * lib/ftello.c: Include stdio-impl.h.
29771         (ftello): On Solaris, when _IOWRT is set, compute the result without
29772         looking at _IOREAD.
29773         * modules/ftello (Files): Add lib/stdio-impl.h.
29774         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29775         * doc/posix-functions/ftello.texi: Likewise.
29776         Reported by Eric Blake.
29777
29778 2010-05-01  Bruno Haible  <bruno@clisp.org>
29779
29780         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29781         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29782         the _IOWRT flag is also set.
29783
29784 2010-05-01  Bruno Haible  <bruno@clisp.org>
29785
29786         Fix doc about a HP-UX stdio bug.
29787         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29788         * doc/posix-functions/ftello.texi: Likewise.
29789
29790 2010-05-01  Bruno Haible  <bruno@clisp.org>
29791
29792         lseek test: Fix failure on Solaris.
29793         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29794         output.
29795
29796 2010-04-30  Jim Meyering  <meyering@redhat.com>
29797
29798         bootstrap: don't ignore failure to generate po*/Makevars
29799         * build-aux/bootstrap (with_gettext): Don't ignore failure
29800         to create po/Makevars or runtime-po/Makevars.
29801
29802 2010-04-29  Eric Blake  <eblake@redhat.com>
29803
29804         headers: relax license to LGPLv2+
29805         * modules/fcntl-h (License): Relax license.
29806         * modules/getopt-posix (License): Likewise.
29807         * modules/locale (License): Likewise.
29808         * modules/math (License): Likewise.
29809         * modules/pty (License): Likewise.
29810         * modules/sched (License): Likewise.
29811         * modules/search (License): Likewise.
29812         * modules/spawn (License): Likewise.
29813         * modules/stdarg (License): Likewise.
29814         * modules/sysexits (License): Likewise.
29815
29816 2010-04-29  Jim Meyering  <meyering@redhat.com>
29817
29818         inttypes: relax license to LGPLv2+
29819         * modules/inttypes (License): Relax license.
29820
29821 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29822
29823         * top/maint.mk (indent): Run twice to produce idempotent results.
29824
29825 2010-04-28  Bruno Haible  <bruno@clisp.org>
29826
29827         getdate: Generate getdate.c in the source directory.
29828         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29829         MOSTLYCLEANFILES.
29830         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29831
29832 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29833
29834         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29835         is not declared as a const *; avoid warnings in that case.
29836
29837 2010-04-28  Eric Blake  <eblake@redhat.com>
29838
29839         canonicalize-lgpl: avoid compiler warning
29840         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29841         declaration' / 'extraneous semicolon' warning with some compilers.
29842         Reported by Andreas Gruenbacher.
29843
29844 2010-04-28  Jim Meyering  <meyering@redhat.com>
29845
29846         init.sh: ensure a more reliable exit status when exiting via trap
29847         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29848         Inspired by patches from Dmitry V. Levin.
29849         Also trap on signal 3 (SIGQUIT).
29850
29851 2010-04-27  Bruno Haible  <bruno@clisp.org>
29852
29853         Update doc about utimes().
29854         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29855         'utimens' module.
29856         Reported by Andreas Gruenbacher <agruen@suse.de>.
29857
29858 2010-04-27  Eric Blake  <eblake@redhat.com>
29859
29860         full-read, full-write: relax license
29861         * modules/full-read (License): Drop to LGPLv2+.
29862         * modules/full-write (License): Likewise.
29863         * modules/safe-read (License): Likewise.
29864         * modules/safe-write (License): Likewise.
29865
29866         pthread: mention library for linking
29867         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29868
29869 2010-04-27  Jim Meyering  <meyering@redhat.com>
29870
29871         maint.mk: fix a bug introduced in last change
29872         * top/maint.mk (gl_assured_headers_): Now that all names are on
29873         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29874         is not anchored to end of word, it should be adequate.
29875
29876         maint.mk: avoid side-effect in latest syntax-check
29877         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29878         to run commands via $(shell...), and hence to incur cost only when
29879         the new rule is actually run.
29880
29881         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29882         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29883         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29884         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29885         (gl_assured_headers_, az_, AZ_): Define.
29886         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29887
29888 2010-04-26  Jim Meyering  <jim@meyering.net>
29889             Bruno Haible  <bruno@clisp.org>
29890
29891         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29892         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29893         Prompted by an exchange with Gilles Espinasse.
29894
29895 2010-04-26  Jim Meyering  <meyering@redhat.com>
29896
29897         git-version-gen: aesthetic tweak
29898         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29899         so that the command remains on a single line.
29900
29901 2010-04-26  Eric Blake  <eblake@redhat.com>
29902
29903         git-version-gen: allow use on EBCDIC hosts
29904         * build-aux/git-version-gen (dirty): Use literal rather than tying
29905         ourselves to ascii.
29906         Reported by Steve Goetze.
29907
29908 2010-04-25  Bruno Haible  <bruno@clisp.org>
29909
29910         netdb: Add support for GNULIB_POSIXCHECK.
29911         * lib/netdb.in.h: Include warn-on-use.h.
29912         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29913         functions are used when GNULIB_POSIXCHECK is defined and the
29914         getaddrinfo module is not in use.
29915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29916         freeaddrinfo, gai_strerror, getnameinfo are declared.
29917         * modules/netdb (Depends-on): Add warn-on-use.
29918         (Makefile.am): Include warn-on-use.h in netdb.h.
29919
29920 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29921
29922         build: avoid "make check" failure without .git/ directory
29923         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29924         there is no .git/ directory.
29925
29926 2010-04-25  Bruno Haible  <bruno@clisp.org>
29927
29928         ptsname: Fix misuse of ttyname_r.
29929         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29930         of errno.
29931
29932 2010-04-25  Bruno Haible  <bruno@clisp.org>
29933
29934         ttyname_r: Make it work on Solaris 10.
29935         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29936         if the system function has the POSIX declaration. Test whether the
29937         function fails if the buffer is less than 128 bytes large.
29938         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29939         system's ttyname_r function. Provide a reasonably large buffer.
29940         * modules/ttyname_r (Depends-on): Add extensions.
29941         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29942
29943 2010-04-25  Bruno Haible  <bruno@clisp.org>
29944
29945         Use the 'extensions' module for some more functions on Solaris.
29946         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29947         module.
29948         * doc/posix-functions/ctime_r.texi: Likewise.
29949         * doc/posix-functions/getgrgid_r.texi: Likewise.
29950         * doc/posix-functions/getgrnam_r.texi: Likewise.
29951         * doc/posix-functions/getpwnam_r.texi: Likewise.
29952         * doc/posix-functions/getpwuid_r.texi: Likewise.
29953         * doc/posix-functions/readdir_r.texi: Likewise.
29954         * doc/posix-functions/sigwait.texi: Likewise.
29955         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29956         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29957
29958 2010-04-25  Bruno Haible  <bruno@clisp.org>
29959
29960         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29961         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29962         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29963         * lib/ttyname_r.c: Include <limits.h>.
29964         (ttyname_r): Define using the system's ttyname_r function, if it exists
29965         and not on Solaris.
29966         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29967         set.
29968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29969         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29970         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29971         Reported by Simon Josefsson.
29972
29973 2010-04-25  Bruno Haible  <bruno@clisp.org>
29974
29975         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29976         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29977         * doc/posix-functions/ctime_r.texi: Likewise.
29978         * doc/posix-functions/getgrgid_r.texi: Likewise.
29979         * doc/posix-functions/getgrnam_r.texi: Likewise.
29980         * doc/posix-functions/getlogin_r.texi: Likewise.
29981         * doc/posix-functions/getpwnam_r.texi: Likewise.
29982         * doc/posix-functions/getpwuid_r.texi: Likewise.
29983         * doc/posix-functions/readdir_r.texi: Likewise.
29984         * doc/posix-functions/sigwait.texi: Likewise.
29985         * doc/posix-functions/ttyname_r.texi: Likewise.
29986         Reported by Simon Josefsson.
29987
29988 2010-04-25  Bruno Haible  <bruno@clisp.org>
29989
29990         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29991         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29992         also to --create-testdir.
29993         (func_acceptable): Don't consider the status of *-tests modules here.
29994         (func_modules_transitive_closure): Consider it here, before including a
29995         test module.
29996         (func_import, func_create_testdir): Set inc_all_direct_tests,
29997         inc_all_indirect_tests.
29998         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29999         --create-testdir and --create-megatestdir.
30000
30001 2010-04-25  Bruno Haible  <bruno@clisp.org>
30002
30003         gnulib-tool: Add --without-*-tests options.
30004         * gnulib-tool (func_usage): Document the --without-*-tests options.
30005         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30006         excl_unportable_tests): New variables.
30007         Fail if they are specified with --import or --update.
30008         (func_acceptable): Respect the excl_*_tests variables.
30009         (func_import): Set the excl_*_tests variables to empty.
30010
30011 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30012             Bruno Haible  <bruno@clisp.org>
30013
30014         Work around a MacOS X 10.4 bug with openpty.
30015         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30016         * tests/test-openpty.c (main): Close the master side explicitly.
30017
30018 2010-04-25  Bruno Haible  <bruno@clisp.org>
30019
30020         strnlen: Fix a C++ test error on MacOS X and Solaris.
30021         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30022         the function is not declared.
30023         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30024         Simon Josefsson.
30025
30026 2010-04-24  Bruno Haible  <bruno@clisp.org>
30027
30028         Avoid a gcc warning.
30029         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30030         of correct type for %08lx directive.
30031         Reported by Eric Blake.
30032
30033 2010-04-24  Bruno Haible  <bruno@clisp.org>
30034
30035         vasnprintf: Correct errno value in case of out-of-memory.
30036         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30037         or sprintf. Use the errno value from SNPRINTF or sprintf.
30038         Reported by Ian Beckwith <ianb@erislabs.net>.
30039
30040 2010-04-24  Bruno Haible  <bruno@clisp.org>
30041
30042         ansi-c++-opt: Find correct compiler when cross-compiling.
30043         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30044         AC_CHECK_PROGS.
30045         Reported by Simon Josefsson.
30046
30047 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30048
30049         vc-list-files: Add support for subversion
30050         * build-aux/vc-list-files: Use "svn list" to generate the list of
30051         files controlled by subversion.
30052
30053 2010-04-23  Jim Meyering  <meyering@redhat.com>
30054
30055         vc-list-files tests: convert to use init.sh
30056         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30057         path_prepend_.
30058         Use Exit, not exit.
30059         Use skip_ rather than open coding it.
30060         Remove trap set-up and compare definitions.
30061         * tests/test-vc-list-files-git.sh: Likewise.
30062         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30063
30064 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30065
30066         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30067         backup files.
30068
30069 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30070
30071         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30072
30073 2010-04-20  Eric Blake  <eblake@redhat.com>
30074
30075         tests: be robust to ignored SIGPIPE
30076         * tests/test-select-in.sh: Consume all output.
30077         * tests/test-lseek.sh: Check correct exit status, while avoiding
30078         EPIPE.
30079
30080 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30081             Bruno Haible  <bruno@clisp.org>
30082
30083         visibility: Don't use -fvisibility if it leads to a warning.
30084         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30085         yes, don't pretend that visibility works if it leads to a warning.
30086         Reported by Mike Gran <spk121@yahoo.com>.
30087
30088 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30089
30090         * build-aux/bootstrap: Use "git -h" for testing for supported options
30091         instead of "git --help".  The short-form option only shows a summary,
30092         and doesn't layout the full man page.  Grep for the full option name
30093         in the summary, too.
30094
30095 2010-04-19  Bruno Haible  <bruno@clisp.org>
30096
30097         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30098         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30099         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30100         mention of RELOCATABLE_STRIP.
30101         Reported by Sylvain Beucler <beuc@beuc.net>.
30102
30103 2010-04-19  Bruno Haible  <bruno@clisp.org>
30104
30105         * lib/diffseq.h: Fix typo in comment.
30106         Reported by Eric Blake.
30107
30108 2010-04-19  Bruno Haible  <bruno@clisp.org>
30109
30110         ioctl: Move autoconf macro to a .m4 file.
30111         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30112         * modules/ioctl (Files): Add it.
30113         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30114         Reported by Ian Beckwith <ianb@erislabs.net>.
30115
30116 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30117             Bruno Haible  <bruno@clisp.org>
30118
30119         diffseq: Accommodate use-case with abstract arrays.
30120         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30121         is not defined.
30122         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30123         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30124
30125 2010-04-18  Bruno Haible  <bruno@clisp.org>
30126
30127         * doc/posix-headers/stdbool.texi: More precise wording.
30128
30129 2010-04-17  Jim Meyering  <meyering@redhat.com>
30130
30131         maint.mk: use gnu-style indentation in an embedded perl script
30132         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30133         Rename variable: s/two/last_two_bytes/
30134
30135 2010-04-16  Eric Blake  <eblake@redhat.com>
30136
30137         test-stdbool: skip test that fails with Solaris CC
30138         * tests/test-stdbool.c (f): Skip test that causes compilation
30139         error under buggy C++ compiler.
30140         * lib/stdbool.in.h: Document the limitation.
30141         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30142
30143         setenv: allow compilation with C++
30144         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30145         register keyword.
30146
30147         stdint: allow test to pass with C++
30148         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30149
30150         getopt: allow compilation with C++
30151         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30152         struct.
30153         * lib/getopt.c (_getopt_internal_r): Use correct type.
30154         Reported by Dagobert Michelson, via Joel E. Denny.
30155
30156 2010-04-16  Bruno Haible  <bruno@clisp.org>
30157
30158         Override netdb.h always.
30159         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30160         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30161         Reported by Ludovic Courtès <ludo@gnu.org>.
30162
30163 2010-04-15  Bruno Haible  <bruno@clisp.org>
30164
30165         openpty: Fix mistake from 2010-03-21.
30166         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30167         Reported by Simon Josefsson.
30168
30169 2010-04-15  Eric Blake  <eblake@redhat.com>
30170
30171         test-forkpty: fix expected signature
30172         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30173         Reported by Simon Josefsson.
30174
30175 2010-04-15  Jim Meyering  <meyering@redhat.com>
30176
30177         maint.mk: texinfo_suffix_re_: correct the default regexp
30178         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30179
30180         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30181         make it configurable via texinfo_suffix_re_.
30182
30183 2010-04-14  Eric Blake  <eblake@redhat.com>
30184
30185         strtok_r: relax license to LGPLv2+
30186         * modules/strtok_r (License): Relax license.
30187         Reported by Matthias Bolte.
30188
30189 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30190
30191         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30192         version 1.4.4 by default instead of requiring the libgcrypt
30193         version used during build.  This makes it possible to use the
30194         application with older but still binary compatible libgcrypt
30195         versions.
30196
30197 2010-04-13  Eric Blake  <eblake@redhat.com>
30198
30199         getopt-gnu: match recent glibc fixes and posix ruling
30200         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30201         '+' handling, when requesting extensions.
30202         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30203         'W;' handling.
30204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30205         * doc/posix-functions/getopt.texi (getopt): Document this.
30206         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30207         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30208         Likewise.
30209
30210         getopt: merge bug fixes from glibc
30211         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30212         diagnostics.  Honor '+:' correctly.  Reject ';'.
30213
30214         getopt-posix: detect MacOS bug
30215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30216         optind when missing a required argument.
30217         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30218         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30219         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30220         Likewise.
30221
30222         getopt-posix: avoid spurious failure on Solaris
30223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30224         an indicator that setting optind=1 is sufficient for reset.
30225
30226         getopt-posix: avoid spurious failure on FreeBSD
30227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30228         in POSIX mode, since the m4 test uses it.
30229
30230         gnulib-tool: silence warning on BSD sh
30231         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30232
30233 2010-04-13  Jim Meyering  <meyering@redhat.com>
30234
30235         doc: users.txt: GNU patch now uses gnulib
30236         * users.txt: Add patch.
30237
30238 2010-04-12  Jim Meyering  <meyering@redhat.com>
30239
30240         maint.mk: generate more concise timing data for syntax-check rules
30241         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30242         " done" from each line that reports a syntax-check test duration.
30243
30244 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30245
30246         git-version-gen: use "git update-index..." rather than "git status"
30247         * build-aux/git-version-gen: Use git update-index --refresh, not
30248         "git status".  With some versions of git, "git status" would fail
30249         to update the index and result in an unwarranted "-dirty" suffix.
30250
30251 2010-04-11  Jim Meyering  <meyering@redhat.com>
30252
30253         openat: correct formatting (no semantic change)
30254         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30255         Suggested by Bruno Haible.
30256
30257 2010-04-11  Bruno Haible  <bruno@clisp.org>
30258
30259         Stricter declaration checking in testdirs.
30260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30261         If for_tests is true, augment AM_CPPFLAGS to define
30262         GNULIB_STRICT_CHECKING.
30263         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30264         GNULIB_STRICT_CHECKING is defined, verify that the function is
30265         declared.
30266
30267 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30268             Bruno Haible  <bruno@clisp.org>
30269
30270         libunistring: Improve configure output.
30271         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30272         Don't say "consider installing GNU libunistring" when checking again
30273         with libiconv.
30274
30275 2010-04-11  Bruno Haible  <bruno@clisp.org>
30276
30277         libunistring: Correct value of $LTLIBUNISTRING.
30278         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30279         correct the value of $LTLIBUNISTRING.
30280
30281 2010-04-11  Bruno Haible  <bruno@clisp.org>
30282
30283         havelib: Add static libraries to LIBS in the right order.
30284         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30285         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30286
30287 2010-04-11  Bruno Haible  <bruno@clisp.org>
30288
30289         libunistring: Detect libunistring also when it depends on libiconv.
30290         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30291         the second AC_LIB_HAVE_LINKFLAGS invocation.
30292
30293 2010-04-11  James Youngman  <jay@gnu.org>
30294
30295         close-stream: declare local scalars to be "const"
30296         * lib/close-stream.c (close_stream): Make boolean variables const
30297         to document the fact that we set but do not change them.
30298
30299 2010-04-11  Bruno Haible  <bruno@clisp.org>
30300
30301         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30302
30303 2010-04-11  Jim Meyering  <meyering@redhat.com>
30304
30305         maint.mk: don't include dist-check.mk
30306         * top/maint.mk: Remove bogus include directive.
30307
30308         maint.mk: improve empty-line-at-EOF check
30309         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30310         solution, rather than tail+Perl-based one.  The latter would read
30311         a few kilobytes from the end of each file, and did not handle empty
30312         files properly.
30313
30314         maint.mk: print the elapsed time for each syntax-check rule
30315         * top/maint.mk (sc_m_rules_): Save start time in a file.
30316         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30317         (local-check): Interpose the .z rules
30318
30319 2010-04-11  Jim Meyering  <meyering@redhat.com>
30320
30321         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30322         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30323         empty file with one that ends in an empty line.
30324
30325 2010-04-10  Bruno Haible  <bruno@clisp.org>
30326
30327         mkdir: Make it work on mingw64.
30328         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30329         * lib/mkdir.c: Update comment.
30330         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30331
30332 2010-04-10  Bruno Haible  <bruno@clisp.org>
30333
30334         Don't override improved macro from newer autoconf.
30335         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30336         autoconf >= 2.62.
30337         Reported by Joel E. Denny <jdenny@clemson.edu>.
30338
30339 2010-04-10  Jim Meyering  <meyering@redhat.com>
30340
30341         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30342         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30343
30344         maint.mk: correct a diagnostic
30345         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30346         in diagnostic; now use $prohibit.
30347
30348 2010-04-10  Bruno Haible  <address@hidden>
30349
30350         fchownat: Fix a C++ test error on Solaris 8.
30351         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30352         the function does not exist.
30353
30354 2010-04-10  Bruno Haible  <bruno@clisp.org>
30355
30356         vasnprintf: Add more tests.
30357         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30358         (test_function): Test converting an invalid wide string.
30359
30360         vasnprintf: Correct handling of unconvertible wide string arguments.
30361         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30362         VASNPRINTF.
30363         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30364         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30365         smaller than the expected maximum need for the directive. Set errno to
30366         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30367         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30368         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30369         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30370         * modules/vasnprintf (Files): Add m4/printf.m4.
30371         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30372
30373 2010-04-10  Bruno Haible  <bruno@clisp.org>
30374
30375         vasnprintf: Fix crash in %ls directive.
30376         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30377         string is passed as argument to %ls, with no precision and no width.
30378         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30379
30380 2010-04-10  Bruno Haible  <bruno@clisp.org>
30381
30382         vasnprintf: Fix multiple test failures on mingw.
30383         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30384         _snprintf, or snwprintf, not _snwprintf.
30385
30386 2010-04-10  Bruno Haible  <bruno@clisp.org>
30387
30388         write: Fix a C++ test error on mingw.
30389         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30390
30391 2010-04-10  Bruno Haible  <bruno@clisp.org>
30392
30393         vasnprintf test: Reduce code duplication.
30394         * tests/test-vasnprintf.c (test_function): New function, extracted from
30395         test_vasnprintf.
30396         (test_vasnprintf, test_asnprintf): Invoke it.
30397
30398 2010-04-10  Bruno Haible  <bruno@clisp.org>
30399
30400         strnlen: Fix warning in C++ mode on MacOS X.
30401         * lib/string.in.h (strnlen): Use the modern idiom.
30402         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30403         defining strnlen as a macro already in <config.h>.
30404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30405         REPLACE_STRNLEN.
30406         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30407         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30408
30409 2010-04-08  James Youngman  <jay@gnu.org>
30410
30411         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30412         the example.
30413
30414 2010-04-09  Jim Meyering  <meyering@redhat.com>
30415
30416         maint.mk: print better diagnostic when there is no $(_hv_file)
30417         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30418         announce that when $(_hv_file) (aka help-version) does not exist.
30419
30420         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30421         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30422         not try to interpret its random input bytes.  Jarno Rajahalme reported
30423         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30424         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30425         (mktempd_): Likewise, just in case.
30426
30427         ftruncate: add two years to projected module removal date: 2012
30428         * m4/ftruncate.m4: Adjust comments.
30429
30430         ftruncate: mark module as obsolete; even MinGW provides it, now
30431         * modules/ftruncate (Status): Obsolete.
30432         (Notice): Say that.
30433         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30434         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30435
30436 2010-04-08  Bruno Haible  <bruno@clisp.org>
30437
30438         Fix side effects from tests-related modules.
30439         * modules/dprintf-posix (Comment): New section.
30440         * modules/fprintf-posix (Comment): Likewise.
30441         * modules/obstack-printf-posix (Comment): Likewise.
30442         * modules/printf-posix (Comment): Likewise.
30443         * modules/snprintf-posix (Comment): Likewise.
30444         * modules/sprintf-posix (Comment): Likewise.
30445         * modules/vasnprintf-posix (Comment): Likewise.
30446         * modules/vasprintf-posix (Comment): Likewise.
30447         * modules/vdprintf-posix (Comment): Likewise.
30448         * modules/vfprintf-posix (Comment): Likewise.
30449         * modules/vprintf-posix (Comment): Likewise.
30450         * modules/vsnprintf-posix (Comment): Likewise.
30451         * modules/vsprintf-posix (Comment): Likewise.
30452         * modules/xprintf-posix (Comment): Likewise.
30453         * modules/xvasprintf-posix (Comment): Likewise.
30454         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30455         * modules/floorf-tests (Depends-on): Likewise.
30456         * modules/round-tests (Depends-on): Likewise.
30457         * modules/roundf-tests (Depends-on): Likewise.
30458         * modules/trunc-tests (Depends-on): Likewise.
30459         * modules/truncf-tests (Depends-on): Likewise.
30460         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30461         'fprintf-posix' module is not present.
30462         * tests/test-floorf2.c (check): Likewise.
30463         * tests/test-trunc2.c (check): Likewise.
30464         * tests/test-truncf2.c (check): Likewise.
30465         * tests/test-round2.c (equal): Likewise.
30466         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30467
30468 2010-04-07  Karl Berry  <karl@gnu.org>
30469
30470         * config/srclist.txt,
30471         * config/srclistvars.sh,
30472         * config/srclist-update: doc fixes.
30473
30474 2010-04-07  Jim Meyering  <meyering@redhat.com>
30475
30476         maint.mk: add a PATH crosschecking syntax-check rule
30477         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30478         Useful if you use a test like the one in help-version (coreutils,
30479         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30480         printed by prog --version.
30481
30482 2010-04-06  Bruno Haible  <bruno@clisp.org>
30483
30484         Fix link error on mingw.
30485         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30486         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30487
30488 2010-04-06  Bruno Haible  <bruno@clisp.org>
30489
30490         Assume rmdir exists.
30491         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30492
30493 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30494
30495         doc: update users.txt
30496         * users.txt: Add gcal.
30497
30498 2010-04-06  Jim Meyering  <meyering@redhat.com>
30499
30500         init.sh: simply unset TMPDIR rather than risking env -i
30501         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30502         although it probably works fine on all Unix-based systems, some
30503         systems (Cygwin?) cannot tolerate a totally cleared environment.
30504         Suggestion from Eric Blake.
30505
30506 2010-04-06  Jim Meyering  <meyering@redhat.com>
30507
30508         init.sh: portability fix: use env's POSIX-specified -i option not -u
30509         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30510         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30511
30512 2010-04-05  Bruno Haible  <bruno@clisp.org>
30513
30514         btowc: Work around Cygwin 1.7.2 bug.
30515         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30516         does not map NUL to 0.
30517         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30518
30519 2010-04-05  Bruno Haible  <bruno@clisp.org>
30520
30521         Make the multithread modules work on Cygwin 1.7.2.
30522         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30523         imported symbols can be declared weak, so that it returns "no" on
30524         Cygwin 1.7.2.
30525
30526 2010-04-05  Bruno Haible  <bruno@clisp.org>
30527
30528         Use the module 'strncat'.
30529         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30530
30531         Tests for module 'strncat'.
30532         * modules/strncat-tests: New file.
30533         * tests/test-strncat.c: New file.
30534
30535         New module 'strncat'.
30536         * lib/string.in.h (strncat): New declaration.
30537         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30538         * m4/strncat.m4: New file, based on m4/memchr.m4.
30539         * modules/strncat: New file.
30540         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30541         is declared.
30542         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30543         REPLACE_STRNCAT.
30544         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30545         REPLACE_STRNCAT.
30546         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30547         module.
30548         * tests/test-string-c++.cc: Check signature of strncat.
30549
30550 2010-04-05  Jim Meyering  <meyering@redhat.com>
30551
30552         xstrtoumax-tests: convert to use init.sh
30553         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30554         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30555         Use Exit, not exit.
30556         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30557
30558         xstrtoimax-tests: convert to use init.sh
30559         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30560         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30561         Use Exit, not exit.
30562         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30563
30564 2010-04-05  Bruno Haible  <bruno@clisp.org>
30565
30566         sys_socket: Avoid #define replacements in C++ mode.
30567         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30568         warning to the function if possible, rather than #defining the symbol
30569         to a dysfunctional alias.
30570
30571 2010-04-05  Bruno Haible  <bruno@clisp.org>
30572
30573         fseeko: Fix C++ test error on mingw.
30574         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30575         gl_FUNC_FSEEKO.
30576         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30577         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30578         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30579         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30580
30581 2010-04-05  Bruno Haible  <bruno@clisp.org>
30582
30583         duplocale: Improve test output.
30584         * tests/test-duplocale.c (main): Print reason for skipped test.
30585
30586 2010-04-05  Bruno Haible  <bruno@clisp.org>
30587
30588         Assume rmdir exists.
30589         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30590         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30591
30592 2010-04-05  Bruno Haible  <bruno@clisp.org>
30593
30594         Fix link error on Solaris 8 with cc.
30595         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30596
30597 2010-04-05  Bruno Haible  <bruno@clisp.org>
30598
30599         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30600         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30601
30602 2010-04-05  Bruno Haible  <bruno@clisp.org>
30603
30604         vasprintf: Update documentation.
30605         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30606
30607 2010-04-05  Bruno Haible  <bruno@clisp.org>
30608
30609         ptsname: Improve test.
30610         * tests/test-ptsname.c (main): Also try the various master names of BSD
30611         systems.
30612
30613 2010-04-05  Bruno Haible  <bruno@clisp.org>
30614
30615         memchr: Avoid a possible C++ test error.
30616         * lib/string.in.h (memchr): Provide declaration if function is missing.
30617         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30618         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30619         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30620         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30621
30622 2010-04-05  Bruno Haible  <bruno@clisp.org>
30623
30624         strtok_r: Improve idiom.
30625         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30626         AC_LIBOBJ is used.
30627
30628 2010-04-05  Bruno Haible  <bruno@clisp.org>
30629
30630         strdup: Improve idiom.
30631         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30632         AC_LIBOBJ is used.
30633         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30634         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30635         when AC_LIBOBJ is used.
30636
30637 2010-04-05  Bruno Haible  <bruno@clisp.org>
30638
30639         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30640         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30641         don't set REPLACE_MBSINIT to 1.
30642         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30643         don't set REPLACE_MBRTOWC to 1.
30644         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30645         exist, don't set REPLACE_MBSRTOWCS to 1.
30646         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30647         exist, don't set REPLACE_MBSNRTOWCS to 1.
30648         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30649         don't set REPLACE_WCRTOMB to 1.
30650         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30651         exist, don't set REPLACE_WCSRTOMBS to 1.
30652         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30653         exist, don't set REPLACE_WCSNRTOMBS to 1.
30654
30655 2010-04-05  Bruno Haible  <bruno@clisp.org>
30656
30657         ldexpl: Improve idiom.
30658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30659         make sure to set HAVE_DECL_LDEXPL to 0.
30660
30661 2010-04-05  Jim Meyering  <meyering@redhat.com>
30662
30663         xstrtol-tests: convert to use init.sh
30664         * modules/xstrtol-tests (Files): Add tests/init.sh.
30665         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30666         Use Exit, not exit.
30667         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30668
30669         atexit-tests: convert to use init.sh
30670         * modules/atexit-tests (Files): Add tests/init.sh.
30671         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30672         Use Exit, not exit.
30673         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30674
30675         init.sh: fix typo
30676         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30677
30678         init.sh: make it easier for a test script to write to the tty, ...
30679         when using automake's parallel-tests mode.
30680         * tests/init.sh (stderr_fileno_): Define overridable variable.
30681         (warn_): New function, to use it.
30682         (fail_, skip_, framework_failure_): Use warn_.
30683
30684 2010-04-04  Bruno Haible  <bruno@clisp.org>
30685
30686         btowc: Avoid warning.
30687         * lib/btowc.c: Include <stdlib.h>.
30688         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30689
30690 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30691             Bruno Haible  <bruno@clisp.org>
30692
30693         wchar: Port to NetBSD 1.5.
30694         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30695         * lib/wctype.in.h (WEOF): Likewise.
30696
30697 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30698             Bruno Haible  <bruno@clisp.org>
30699
30700         Port extended stdio to NetBSD 1.5.
30701         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30702         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30703         older.
30704
30705 2010-04-04  Bruno Haible  <bruno@clisp.org>
30706
30707         string: Remove unused substitution.
30708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30709         HAVE_DECL_STRERROR.
30710         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30711
30712 2010-04-04  Bruno Haible  <bruno@clisp.org>
30713
30714         strtod: Avoid a possible C++ test error.
30715         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30716         set REPLACE_STRTOD.
30717
30718 2010-04-04  Bruno Haible  <bruno@clisp.org>
30719
30720         strerror: Update documentation.
30721         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30722
30723 2010-04-04  Bruno Haible  <bruno@clisp.org>
30724
30725         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30726         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30727         _GL_CXXALIAS_SYS_CAST.
30728
30729 2010-04-04  Bruno Haible  <bruno@clisp.org>
30730
30731         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30732         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30733         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30734         REPLACE_FREXPL to 1.
30735         * doc/posix-functions/frexpl.texi: Update documentation.
30736
30737 2010-04-04  Bruno Haible  <bruno@clisp.org>
30738
30739         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30740         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30741
30742 2010-04-04  Bruno Haible  <bruno@clisp.org>
30743
30744         Implement nanosleep for native Windows.
30745         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30746
30747 2010-04-04  Bruno Haible  <bruno@clisp.org>
30748
30749         math: Fix some C++ test errors on Solaris 8.
30750         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30751
30752 2010-04-04  Bruno Haible  <bruno@clisp.org>
30753
30754         math: Fix some C++ test errors on Cygwin.
30755         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30756         truncl): Provide declaration if the system does not have it.
30757         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30758         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30759         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30760         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30761         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30762         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30763         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30764         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30765         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30766         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30767         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30768         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30769         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30770         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30771         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30772         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30774         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30775         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30776         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30777         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30778         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30779
30780 2010-04-04  Bruno Haible  <bruno@clisp.org>
30781
30782         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30783         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30784         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30785         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30786         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30787         * m4/isinf.m4 (gl_ISINF): Likewise.
30788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30789
30790 2010-04-04  Bruno Haible  <bruno@clisp.org>
30791
30792         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30793         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30794
30795 2010-04-04  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30798         * modules/tmpfile (configure.ac): Update.
30799
30800         tmpfile: Fix C++ test error on mingw.
30801         * lib/stdio.in.h (tmpfile): New declaration.
30802         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30803         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30804         * modules/tmpfile (Depends-on): Add stdio.
30805         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30806         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30807         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30808         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30809         REPLACE_TMPFILE.
30810         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30811
30812 2010-04-04  Bruno Haible  <bruno@clisp.org>
30813
30814         ioctl: Fix C++ test error on mingw.
30815         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30816         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30817         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30818
30819 2010-04-03  Bruno Haible  <bruno@clisp.org>
30820
30821         wcwidth: Fix C++ test error on mingw.
30822         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30824         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30825
30826 2010-04-03  Bruno Haible  <bruno@clisp.org>
30827
30828         nanosleep: Fix C++ test error on mingw.
30829         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30830         * lib/time.in.h (nanosleep): Use modern idiom.
30831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30832         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30833         REPLACE_NANOSLEEP to 1.
30834         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30835         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30836
30837 2010-04-03  Bruno Haible  <bruno@clisp.org>
30838
30839         strptime: Fix C++ test error on mingw.
30840         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30841         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30842         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30843         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30844         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30845         not REPLACE_STRPTIME.
30846         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30847         REPLACE_STRPTIME.
30848
30849 2010-04-03  Bruno Haible  <bruno@clisp.org>
30850
30851         timegm: Fix C++ test error on mingw.
30852         * lib/time.in.h (timegm): Use modern idiom.
30853         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30854         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30855         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30856         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30857
30858 2010-04-03  Bruno Haible  <bruno@clisp.org>
30859
30860         timegm: Assume declaration if function exists.
30861         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30862         if it exists. Don't clobber ac_cv_func_timegm.
30863
30864 2010-04-03  Bruno Haible  <bruno@clisp.org>
30865
30866         time_r: Fix C++ test error on mingw.
30867         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30868         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30869         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30870         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30871         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30872
30873 2010-04-03  Bruno Haible  <bruno@clisp.org>
30874
30875         time_r: Minor updates.
30876         * modules/time_r (Description): Mention the provided functions.
30877         * lib/time_r.c: Don't include <string.h>.
30878         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30879         * doc/posix-functions/localtime_r.texi: Likewise.
30880
30881 2010-04-03  Bruno Haible  <bruno@clisp.org>
30882
30883         time: Fix regression introduced on 2010-03-08.
30884         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30885         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30886
30887 2010-04-03  Jim Meyering  <meyering@redhat.com>
30888
30889         maint.mk: don't silently disable project-specific syntax-check rules
30890         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30891         that they need to convert their project-specific syntax-check rules
30892         to use the new _sc_search_regexp.
30893
30894 2010-04-03  Bruno Haible  <bruno@clisp.org>
30895
30896         fchdir: Fix regression introduced on 2010-03-08.
30897         * lib/unistd.in.h (fchdir): Fix declaration.
30898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30900         REPLACE_FCHDIR.
30901         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30902         REPLACE_FCHDIR.
30903
30904 2010-04-03  Bruno Haible  <bruno@clisp.org>
30905
30906         getpagesize: Fix C++ test error on mingw.
30907         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30908         system does not declare the function.
30909         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30910         declared.
30911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30912         HAVE_DECL_GETPAGESIZE.
30913         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30914
30915 2010-04-03  Bruno Haible  <bruno@clisp.org>
30916
30917         stdio: Make C++ tests work on mingw.
30918         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30919         does not declare the function.
30920
30921 2010-04-03  Bruno Haible  <bruno@clisp.org>
30922
30923         ftello: Fix C++ test error on mingw.
30924         * lib/stdio.in.h (ftello): Use modern idiom.
30925         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30926         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30927         is missing and that it needs to be replaced.
30928         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30930         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30931
30932 2010-04-03  Bruno Haible  <bruno@clisp.org>
30933
30934         fseeko: Fix C++ test error on mingw.
30935         * lib/stdio.in.h (fseeko): Use modern idiom.
30936         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30937         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30938         is missing and that it needs to be replaced.
30939         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30941         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30942
30943 2010-04-03  Bruno Haible  <bruno@clisp.org>
30944
30945         mkstemp: Fix C++ test error on mingw.
30946         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30947         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30948         function is missing and that it needs to be replaced.
30949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30950         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30951
30952 2010-04-03  Bruno Haible  <bruno@clisp.org>
30953
30954         stpncpy: Fix C++ test error on mingw.
30955         * lib/string.in.h (stpncpy): Use modern idiom.
30956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30957         function is missing and that it needs to be replaced.
30958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30959         REPLACE_STPNCPY.
30960         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30961
30962 2010-04-03  Bruno Haible  <bruno@clisp.org>
30963
30964         sys_stat: Fix C++ test error on mingw.
30965         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30966         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30967
30968 2010-04-03  Bruno Haible  <bruno@clisp.org>
30969
30970         pty: Update doc.
30971         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30972
30973 2010-04-03  Bruno Haible  <bruno@clisp.org>
30974
30975         unistd: Fix C++ test error on mingw.
30976         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30977
30978 2010-04-03  Bruno Haible  <bruno@clisp.org>
30979
30980         Update doc regarding mingw.
30981         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30982         * doc/glibc-functions/login_tty.texi: Likewise.
30983         * doc/glibc-functions/forkpty.texi: Likewise.
30984
30985 2010-04-03  Bruno Haible  <bruno@clisp.org>
30986
30987         stdlib: Avoid compilation failure of c-strtold on mingw.
30988         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30989
30990 2010-04-03  Bruno Haible  <bruno@clisp.org>
30991
30992         locale: Make C++ tests work on Cygwin and mingw.
30993         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30994         cannot provide the function.
30995         Reported by Simon Josefsson.
30996
30997 2010-04-03  Bruno Haible  <bruno@clisp.org>
30998
30999         localename: Port to MacOS X 10.6.
31000         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31001         memory layout of the locales in MacOS X 10.6 as well.
31002         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31003
31004 2010-04-02  Bruno Haible  <bruno@clisp.org>
31005
31006         gnulib-tool: Ensure that long-running tests are executed last.
31007         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31008         running tests after the one for the other tests.
31009
31010 2010-04-02  Bruno Haible  <bruno@clisp.org>
31011
31012         gnulib-tool: Ensure the tests in the main directory are executed first.
31013         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31014         start with the current directory.
31015
31016 2010-04-02  Bruno Haible  <bruno@clisp.org>
31017
31018         Tests for module 'havelib', moved here from GNU gettext.
31019         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31020         modifications.
31021         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31022         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31023         with modifications.
31024         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31025         modifications.
31026         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31027         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31028         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31029         with modifications.
31030         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31031         with modifications.
31032         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31033         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31034         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31035         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31036         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31037         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31038         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31039         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31040         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31041         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31042         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31043         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31044         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31045         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31046         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31047         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31048         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31049         with modifications.
31050         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31051         with modifications.
31052         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31053         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31054         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31055         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31056         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31057         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31058         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31059         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31060         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31061         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31062         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31063         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31064         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31065         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31066         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31067         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31068         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31069         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31070         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31071         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31072         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31073         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31074         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31075         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31076         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31077         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31078         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31079         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31080         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31081         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31082         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31083         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31084         * tests/havelib/rpathx/rpathx.c: New file, from
31085         gettext/autoconf-lib-link.
31086         * tests/havelib/rpathx/Makefile.am: New file, from
31087         gettext/autoconf-lib-link.
31088         * tests/havelib/rpathx/configure.ac: New file, from
31089         gettext/autoconf-lib-link with modifications.
31090         * tests/havelib/rpathy/rpathy.c: New file, from
31091         gettext/autoconf-lib-link.
31092         * tests/havelib/rpathy/Makefile.am: New file, from
31093         gettext/autoconf-lib-link.
31094         * tests/havelib/rpathy/configure.ac: New file, from
31095         gettext/autoconf-lib-link with modifications.
31096         * tests/havelib/rpathz/rpathz.c: New file, from
31097         gettext/autoconf-lib-link.
31098         * tests/havelib/rpathz/Makefile.am: New file, from
31099         gettext/autoconf-lib-link.
31100         * tests/havelib/rpathz/configure.ac: New file, from
31101         gettext/autoconf-lib-link with modifications.
31102         * tests/havelib/rpathlx/usex.c: New file, from
31103         gettext/autoconf-lib-link.
31104         * tests/havelib/rpathlx/Makefile.am: New file, from
31105         gettext/autoconf-lib-link.
31106         * tests/havelib/rpathlx/configure.ac: New file, from
31107         gettext/autoconf-lib-link with modifications.
31108         * tests/havelib/rpathly/usey.c: New file, from
31109         gettext/autoconf-lib-link.
31110         * tests/havelib/rpathly/Makefile.am: New file, from
31111         gettext/autoconf-lib-link.
31112         * tests/havelib/rpathly/configure.ac: New file, from
31113         gettext/autoconf-lib-link with modifications.
31114         * tests/havelib/rpathlz/usez.c: New file, from
31115         gettext/autoconf-lib-link.
31116         * tests/havelib/rpathlz/Makefile.am: New file, from
31117         gettext/autoconf-lib-link.
31118         * tests/havelib/rpathlz/configure.ac: New file, from
31119         gettext/autoconf-lib-link with modifications.
31120         * tests/havelib/rpathlyx/usey.c: New file, from
31121         gettext/autoconf-lib-link.
31122         * tests/havelib/rpathlyx/Makefile.am: New file, from
31123         gettext/autoconf-lib-link.
31124         * tests/havelib/rpathlyx/configure.ac: New file, from
31125         gettext/autoconf-lib-link with modifications.
31126         * tests/havelib/rpathlzyx/usez.c: New file, from
31127         gettext/autoconf-lib-link.
31128         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31129         gettext/autoconf-lib-link.
31130         * tests/havelib/rpathlzyx/configure.ac: New file, from
31131         gettext/autoconf-lib-link with modifications.
31132         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31133         with modifications.
31134
31135 2010-04-02  Bruno Haible  <bruno@clisp.org>
31136
31137         gnulib-tool: Create distributed built sources also for the tests.
31138         * gnulib-tool (func_create_testdir): Also generate distributed built
31139         sources in the tests directory.
31140
31141 2010-04-02  Bruno Haible  <bruno@clisp.org>
31142
31143         gnulib-tool: Obey user's environment variables.
31144         * gnulib-tool (func_create_testdir): When creating built sources,
31145         respect the environment variables for autoconf, automake, etc. given by
31146         the user.
31147
31148 2010-04-02  Bruno Haible  <bruno@clisp.org>
31149
31150         gnulib-tool: Provide the value of --m4-base to modules.
31151         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31152         of gl_m4_base.
31153
31154 2010-04-02  Eric Blake  <eblake@redhat.com>
31155
31156         maint.mk: fix some fallout
31157         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31158         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31159
31160 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31161
31162         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31163         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31164         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31165         (sc_cast_of_x_alloc_return_value): Likewise.
31166         (sc_cast_of_alloca_return_value): Likewise.
31167         (sc_space_tab): Likewise.
31168         (sc_prohibit_atoi_atof): Likewise.
31169         (sc_prohibit_magic_number_exit): Likewise.
31170         (sc_error_exit_success): Likewise.
31171         (sc_file_system): Likewise.
31172         (sc_prohibit_have_config_h): Likewise.
31173         (sc_require_config_h): Likewise.
31174         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31175         (sc_obsolete_symbols): Likewise.
31176         (sc_changelog): Likewise.
31177         (sc_program_name): Likewise.
31178         (sc_the_the): Likewise.
31179         (sc_trailing_blank): Likewise.
31180         (sc_two_space_separator_in_usage): Likewise.
31181         (sc_useless_cpp_parens): Likewise.
31182         (sc_GPL_version): Likewise.
31183         (sc_GFDL_version): Likewise.
31184         (sc_texinfo_acronym): Likewise.
31185         (sc_prohibit_cvs_keyword): Likewise.
31186         (sc_prohibit_stat_st_blocks): Likewise.
31187         (sc_prohibit_S_IS_definition): Likewise.
31188         (sc_redundant_const): Likewise.
31189         (sc_makefile_TAB_only_indentation): Likewise.
31190         (sc_m4_quote_check): Likewise.
31191         (sc_makefile_path_separator_check): Likewise.
31192         (sc_copyright_check): Likewise.
31193         (sc_Wundef_boolean): Likewise.
31194         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31195
31196         maint.mk: match 0 or more whitespace-before-function-call '('
31197         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31198         that have zero or two-and-more spaces between the function name
31199         and the open parenthesis.
31200         (sc_error_message_warn_fatal): Likewise.
31201         (sc_error_message_uppercase): Likewise.
31202         (sc_error_message_period): Likewise.
31203
31204 2010-03-31  Eric Blake  <eblake@redhat.com>
31205
31206         maint.mk: check for [ as well as test
31207         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31208         Based on a libvirt report by Matthias Bolte.
31209
31210         gnumakefile: don't squelch _version output
31211         * top/GNUmakefile (_version): Create one-shot dependency rather
31212         than using $(shell) when version must be regenerated.
31213         (_autoreconf): Run verbosely, by default.
31214
31215         sys_time: avoid compiler warnings
31216         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31217         unconditional, fixing regression from 2010-03-29.
31218         Reported by Simon Josefsson.
31219
31220 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31221
31222         maint.mk: s/_header_without_use/_sc_header_without_use/
31223         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31224         (sc_prohibit_assert_without_use): Use the new name.
31225         (sc_prohibit_close_stream_without_use): Likewise.
31226         (sc_prohibit_getopt_without_use): Likewise.
31227         (sc_prohibit_quotearg_without_use): Likewise.
31228         (sc_prohibit_quote_without_use): Likewise.
31229         (sc_prohibit_long_options_without_use): Likewise.
31230         (sc_prohibit_inttostr_without_use): Likewise.
31231         (sc_prohibit_ignore_value_without_use): Likewise.
31232         (sc_prohibit_error_without_use): Likewise.
31233         (sc_prohibit_xalloc_without_use): Likewise.
31234         (sc_prohibit_hash_without_use): Likewise.
31235         (sc_prohibit_hash_pjw_without_use): Likewise.
31236         (sc_prohibit_safe_read_without_use): Likewise.
31237         (sc_prohibit_argmatch_without_use): Likewise.
31238         (sc_prohibit_canonicalize_without_use): Likewise.
31239         (sc_prohibit_root_dev_ino_without_use): Likewise.
31240         (sc_prohibit_openat_without_use): Likewise.
31241         (sc_prohibit_c_ctype_without_use): Likewise.
31242         (sc_prohibit_signal_without_use): Likewise.
31243         (sc_prohibit_intprops_without_use): Likewise.
31244
31245 2010-03-30  Eric Blake  <eblake@redhat.com>
31246
31247         maint: improve module indicators
31248         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31249         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31250         columns, and avoid extra macro expansion.
31251
31252         fdopendir: work around FreeBSD bug
31253         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31254         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31255         * modules/dirent (Makefile.am): Substitute it.
31256         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31257         declaration.
31258         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31259         fix.
31260         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31261
31262 2010-03-29  Bruno Haible  <bruno@clisp.org>
31263
31264         Emit #pragma system_header after the inclusion guard, not before.
31265         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31266         guard that spans the entire file, not before. This enables an
31267         optimization in GCC's preprocessor.
31268         * lib/ctype.in.h: Likewise.
31269         * lib/dirent.in.h: Likewise.
31270         * lib/errno.in.h: Likewise.
31271         * lib/float.in.h: Likewise.
31272         * lib/getopt.in.h: Likewise.
31273         * lib/iconv.in.h: Likewise.
31274         * lib/langinfo.in.h: Likewise.
31275         * lib/locale.in.h: Likewise.
31276         * lib/math.in.h: Likewise.
31277         * lib/netdb.in.h: Likewise.
31278         * lib/netinet_in.in.h: Likewise.
31279         * lib/pty.in.h: Likewise.
31280         * lib/sched.in.h: Likewise.
31281         * lib/se-selinux.in.h: Likewise.
31282         * lib/search.in.h: Likewise.
31283         * lib/spawn.in.h: Likewise.
31284         * lib/stdarg.in.h: Likewise.
31285         * lib/stdint.in.h: Likewise.
31286         * lib/string.in.h: Likewise.
31287         * lib/strings.in.h: Likewise.
31288         * lib/sys_file.in.h: Likewise.
31289         * lib/sys_ioctl.in.h: Likewise.
31290         * lib/sys_time.in.h: Likewise.
31291         * lib/sys_times.in.h: Likewise.
31292         * lib/sys_utsname.in.h: Likewise.
31293         * lib/sys_wait.in.h: Likewise.
31294         * lib/sysexits.in.h: Likewise.
31295         * lib/wctype.in.h: Likewise.
31296
31297 2010-03-28  James Youngman  <jay@gnu.org>
31298
31299         save-cwd: don't leak a file descriptor when the caller execs.
31300         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31301         saved file descriptor.
31302         * modules/save-cwd (Depends-on): Depend on cloexec.
31303
31304 2010-03-29  Bruno Haible  <bruno@clisp.org>
31305
31306         Remove vestiges of fts-lgpl module.
31307         * lib/fts_.h: Assume GNULIB_FTS is 1.
31308         * lib/fts.c: Likewise.
31309         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31310
31311 2010-03-28  Bruno Haible  <bruno@clisp.org>
31312
31313         Fix definition of tests witness macro.
31314         * gnulib-tool (func_import): Fix definition of witness macro.
31315
31316 2010-03-28  Bruno Haible  <bruno@clisp.org>
31317
31318         Fix ioctl's protoype on glibc systems.
31319         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31320         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31321         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31322         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31323         signature. If not, arrange to replace the ioctl function.
31324         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31325         REPLACE_IOCTL.
31326         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31327         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31328         Reported by Ludovic Courtès <ludo@gnu.org>.
31329
31330 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31331
31332         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31333         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31334         made it so grep -r --include=GLOB* ... did not work.
31335
31336 2010-03-26  Jim Meyering  <meyering@redhat.com>
31337             Eric Blake  <eblake@redhat.com>
31338
31339         maint.mk: prohibit use of test's -o and -a operators
31340         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31341
31342 2010-03-28  Bruno Haible  <bruno@clisp.org>
31343
31344         Remove unused GNULIB_XYZ macro definitions.
31345         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31346         invocation.
31347
31348 2010-03-28  Bruno Haible  <bruno@clisp.org>
31349
31350         Mark privileged tests modules.
31351         * modules/idpriv-drop-tests (Status): New section.
31352         * modules/idpriv-droptemp-tests (Status): New section.
31353
31354 2010-03-28  Bruno Haible  <bruno@clisp.org>
31355
31356         Split C++ tests into separate tests modules.
31357         * modules/dirent-c++-tests: New file, extracted from
31358         modules/dirent-tests.
31359         * modules/dirent-tests: Depend on it.
31360         * modules/fcntl-h-c++-tests: New file, extracted from
31361         modules/fcntl-h-tests.
31362         * modules/fcntl-h-tests: Depend on it.
31363         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31364         * modules/glob-tests: Depend on it.
31365         * modules/iconv-h-c++-tests: New file, extracted from
31366         modules/iconv-h-tests.
31367         * modules/iconv-h-tests: Depend on it.
31368         * modules/langinfo-c++-tests: New file, extracted from
31369         modules/langinfo-tests.
31370         * modules/langinfo-tests: Depend on it.
31371         * modules/locale-c++-tests: New file, extracted from
31372         modules/locale-tests.
31373         * modules/locale-tests: Depend on it.
31374         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31375         * modules/math-tests: Depend on it.
31376         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31377         * modules/pty-tests: Depend on it.
31378         * modules/search-c++-tests: New file, extracted from
31379         modules/search-tests.
31380         * modules/search-tests: Depend on it.
31381         * modules/signal-c++-tests: New file, extracted from
31382         modules/signal-tests.
31383         * modules/signal-tests: Depend on it.
31384         * modules/spawn-c++-tests: New file, extracted from
31385         modules/spawn-tests.
31386         * modules/spawn-tests: Depend on it.
31387         * modules/stdio-c++-tests: New file, extracted from
31388         modules/stdio-tests.
31389         * modules/stdio-tests: Depend on it.
31390         * modules/stdlib-c++-tests: New file, extracted from
31391         modules/stdlib-tests.
31392         * modules/stdlib-tests: Depend on it.
31393         * modules/string-c++-tests: New file, extracted from
31394         modules/string-tests.
31395         * modules/string-tests: Depend on it.
31396         * modules/sys_ioctl-c++-tests: New file, extracted from
31397         modules/sys_ioctl-tests.
31398         * modules/sys_ioctl-tests: Depend on it.
31399         * modules/sys_select-c++-tests: New file, extracted from
31400         modules/sys_select-tests.
31401         * modules/sys_select-tests: Depend on it.
31402         * modules/sys_socket-c++-tests: New file, extracted from
31403         modules/sys_socket-tests.
31404         * modules/sys_socket-tests: Depend on it.
31405         * modules/sys_stat-c++-tests: New file, extracted from
31406         modules/sys_stat-tests.
31407         * modules/sys_stat-tests: Depend on it.
31408         * modules/sys_time-c++-tests: New file, extracted from
31409         modules/sys_time-tests.
31410         * modules/sys_time-tests: Depend on it.
31411         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31412         * modules/time-tests: Depend on it.
31413         * modules/unistd-c++-tests: New file, extracted from
31414         modules/unistd-tests.
31415         * modules/unistd-tests: Depend on it.
31416         * modules/wchar-c++-tests: New file, extracted from
31417         modules/wchar-tests.
31418         * modules/wchar-tests: Depend on it.
31419         * modules/wctype-c++-tests: New file, extracted from
31420         modules/wctype-tests.
31421         * modules/wctype-tests: Depend on it.
31422         Reported by Simon Josefsson.
31423
31424 2010-03-28  Bruno Haible  <bruno@clisp.org>
31425
31426         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31427         * gnulib-tool (func_exists_module): New function, extracted from
31428         func_verify_module.
31429         (func_verify_module): Use it.
31430         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31431         'foo' only if 'foo' exists.
31432         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31433         module.
31434
31435 2010-03-28  Bruno Haible  <bruno@clisp.org>
31436
31437         gnulib-tool: Add support for special categories of tests.
31438         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31439         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31440         (func_usage): Document them.
31441         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31442         inc_unportable_tests, inc_all_tests): New variables.
31443         (func_acceptable): Consider these variables.
31444         (func_modules_transitive_closure): Make it work when the 'Status' field
31445         consists of multiple words.
31446         (func_import): Store and restore the values of inc_cxx_tests,
31447         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31448         inc_all_tests in gnulib-comp.m4.
31449         (func_create_testdir): Set inc_all_tests to true.
31450         * doc/gnulib.texi (Extra tests modules): New section.
31451         Suggested by Jim Meyering.
31452
31453 2010-03-28  Bruno Haible  <bruno@clisp.org>
31454
31455         ansi-c++-opt: Allow turning off the C++ build by default.
31456         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31457         gl_CXX_CHOICE_DEFAULT_NO is defined.
31458         Requested by Eric Blake.
31459
31460 2010-03-28  Bruno Haible  <bruno@clisp.org>
31461
31462         unistd: Avoid #define replacements in C++ mode.
31463         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31464         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31465         setsockopt, shutdown, select): In C++, attach a warning to the function
31466         if possible, rather than #defining the symbol to a dysfunctional alias.
31467         Reported by John W. Eaton <jwe@gnu.org>.
31468
31469 2010-03-28  Bruno Haible  <bruno@clisp.org>
31470
31471         Fix link errors on mingw.
31472         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31473         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31474         $(LIBSOCKET).
31475         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31476         $(LIBSOCKET).
31477
31478 2010-03-28  Bruno Haible  <bruno@clisp.org>
31479             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31480
31481         lib-ignore: Determine different options for different compilers.
31482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31483         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31484         Add comments.
31485         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31486         * NEWS: Mention the change.
31487
31488 2010-03-27  Bruno Haible  <bruno@clisp.org>
31489
31490         Remove unused GNULIB_XYZ macro definitions.
31491         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31492         * modules/fseek (configure.ac): Likewise.
31493         * modules/ioctl (configure.ac): Likewise.
31494         * modules/open (configure.ac): Likewise.
31495         * modules/stdlib-safer (configure.ac): Likewise.
31496
31497 2010-03-27  Bruno Haible  <bruno@clisp.org>
31498
31499         Add a remark about certain modules.
31500         * modules/malloc (Comment): New section.
31501         * modules/realloc (Comment): Likewise.
31502         * modules/sigpipe (Comment): Likewise.
31503
31504 2010-03-27  Bruno Haible  <bruno@clisp.org>
31505
31506         Resolve conflict between the two kinds of module indicators.
31507         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31508         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31509         * modules/canonicalize (configure.ac): Invoke
31510         gl_MODULE_INDICATOR_FOR_TESTS.
31511         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31512         GNULIB_XYZ.
31513         * tests/test-dirent-c++.cc: Likewise.
31514         * tests/test-dirent-safer.c: Likewise.
31515         * tests/test-dup2.c: Likewise.
31516         * tests/test-fchdir.c: Likewise.
31517         * tests/test-fcntl-h-c++.cc: Likewise.
31518         * tests/test-getopt.c: Likewise.
31519         * tests/test-getopt.h: Likewise.
31520         * tests/test-langinfo-c++.cc: Likewise.
31521         * tests/test-locale-c++.cc: Likewise.
31522         * tests/test-math-c++.cc: Likewise.
31523         * tests/test-pty-c++.cc: Likewise.
31524         * tests/test-search-c++.cc: Likewise.
31525         * tests/test-signal-c++.cc: Likewise.
31526         * tests/test-spawn-c++.cc: Likewise.
31527         * tests/test-stdio-c++.cc: Likewise.
31528         * tests/test-stdlib-c++.cc: Likewise.
31529         * tests/test-string-c++.cc: Likewise.
31530         * tests/test-sys_ioctl-c++.cc: Likewise.
31531         * tests/test-sys_select-c++.cc: Likewise.
31532         * tests/test-sys_socket-c++.cc: Likewise.
31533         * tests/test-sys_stat-c++.cc: Likewise.
31534         * tests/test-sys_time-c++.cc: Likewise.
31535         * tests/test-time-c++.cc: Likewise.
31536         * tests/test-unistd-c++.cc: Likewise.
31537         * tests/test-wchar-c++.cc: Likewise.
31538         * tests/uninorm/test-u8-nfc.c: Likewise.
31539         * tests/uninorm/test-u8-nfd.c: Likewise.
31540         * tests/uninorm/test-u8-nfkc.c: Likewise.
31541         * tests/uninorm/test-u8-nfkd.c: Likewise.
31542         * tests/uninorm/test-u16-nfc.c: Likewise.
31543         * tests/uninorm/test-u16-nfd.c: Likewise.
31544         * tests/uninorm/test-u16-nfkc.c: Likewise.
31545         * tests/uninorm/test-u16-nfkd.c: Likewise.
31546         * tests/uninorm/test-u32-nfc.c: Likewise.
31547         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31548         * tests/uninorm/test-u32-nfd.c: Likewise.
31549         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31550         * tests/uninorm/test-u32-nfkc.c: Likewise.
31551         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31552         * tests/uninorm/test-u32-nfkd.c: Likewise.
31553         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31554         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31555
31556 2010-03-27  Bruno Haible  <bruno@clisp.org>
31557
31558         Distinguish two kinds of module indicators.
31559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31560         gl_MODULE_INDICATOR.
31561         (gl_MODULE_INDICATOR): New macro.
31562         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31563         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31564         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31565         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31566         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31567         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31568         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31569         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31570         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31571         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31572         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31573         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31575         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31576         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31578         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31579         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31580         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31581         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31582         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31583         * modules/cloexec (configure.ac): Likewise.
31584         * modules/getopt-gnu (configure.ac): Likewise.
31585         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31586         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31587         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31588         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31589
31590 2010-03-27  Bruno Haible  <bruno@clisp.org>
31591
31592         New module description field 'Comment'.
31593         * gnulib-tool: New option --extract-comment.
31594         (func_usage): Document it.
31595         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31596         (func_get_comment): New function.
31597         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31598
31599 2010-03-27  Bruno Haible  <bruno@clisp.org>
31600
31601         Addendum to 2010-02-07 commit.
31602         * gnulib-tool (func_usage): Document --extract-applicability option.
31603
31604 2010-03-27  Bruno Haible  <bruno@clisp.org>
31605
31606         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31607         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31608         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31609         rather than link errors.
31610
31611 2010-03-27  Bruno Haible  <bruno@clisp.org>
31612
31613         Avoid side effects from tests-related modules on the compilation of lib.
31614         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31615         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31616         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31617         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31618         macro.
31619         (func_import): Define a witness macro. Assign it a value that depends
31620         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31621         tests-related modules.
31622         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31623         Reported by Jim Meyering.
31624
31625 2010-03-27  Bruno Haible  <bruno@clisp.org>
31626
31627         Factorize common .m4 code.
31628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31629         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31630         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31631         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31632         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31633         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31634         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31635         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31636         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31637         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31638         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31639         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31640         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31641         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31642         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31643         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31644         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31645         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31647         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31648         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31650         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31651         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31652         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31653         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31654         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31655         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31656         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31657         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31658         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31659         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31660
31661 2010-03-27  Bruno Haible  <bruno@clisp.org>
31662
31663         Fix a compilation error on Cygwin with g++ >= 4.3.
31664         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31665         if it is undefined or if we alias it to chmod.
31666         (lstat): Don't warn about the use of this function if it is undefined
31667         or if we alias it to stat.
31668         Reported by Simon Josefsson.
31669
31670 2010-03-27  Bruno Haible  <bruno@clisp.org>
31671
31672         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31673         * modules/getlogin (configure.ac): Update.
31674
31675         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31676         * modules/getlogin_r (configure.ac): Update.
31677
31678         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31680         * modules/inet_ntop (configure.ac): Update.
31681
31682         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31683         * modules/inet_pton (configure.ac): Update.
31684
31685         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31686         * modules/mbslen (configure.ac): Update.
31687
31688         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31689         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31690         * modules/forkpty (configure.ac): Update.
31691         * modules/openpty (configure.ac): Update.
31692
31693 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31694
31695         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31696         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31697
31698 2010-03-25  Eric Blake  <eblake@redhat.com>
31699
31700         maint: use pragma consistently across replacement headers
31701         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31702         * lib/dirent.in.h (system_header): Likewise.
31703         * lib/errno.in.h (system_header): Likewise.
31704         * lib/float.in.h (system_header): Likewise.
31705         * lib/getopt.in.h (system_header): Likewise.
31706         * lib/iconv.in.h (system_header): Likewise.
31707         * lib/inttypes.in.h (system_header): Likewise.
31708         * lib/langinfo.in.h (system_header): Likewise.
31709         * lib/locale.in.h (system_header): Likewise.
31710         * lib/math.in.h (system_header): Likewise.
31711         * lib/netdb.in.h (system_header): Likewise.
31712         * lib/netinet_in.in.h (system_header): Likewise.
31713         * lib/pty.in.h (system_header): Likewise.
31714         * lib/sched.in.h (system_header): Likewise.
31715         * lib/se-selinux.in.h (system_header): Likewise.
31716         * lib/search.in.h (system_header): Likewise.
31717         * lib/spawn.in.h (system_header): Likewise.
31718         * lib/stdarg.in.h (system_header): Likewise.
31719         * lib/stdint.in.h (system_header): Likewise.
31720         * lib/string.in.h (system_header): Likewise.
31721         * lib/strings.in.h (system_header): Likewise.
31722         * lib/sys_file.in.h (system_header): Likewise.
31723         * lib/sys_ioctl.in.h (system_header): Likewise.
31724         * lib/sys_socket.in.h (system_header): Likewise.
31725         * lib/sys_times.in.h (system_header): Likewise.
31726         * lib/sys_utsname.in.h (system_header): Likewise.
31727         * lib/sys_wait.in.h (system_header): Likewise.
31728         * lib/sysexits.in.h (system_header): Likewise.
31729         * lib/unistd.in.h (system_header): Likewise.
31730         * lib/wctype.in.h (system_header): Likewise.
31731
31732         arpa/inet: fix mingw compilation warning
31733         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31734         Reported by Matthew Bolte.
31735
31736 2010-03-25  Bruno Haible  <bruno@clisp.org>
31737
31738         Avoid collision between gnulib wrapper and libintl wrapper.
31739         * lib/printf.c (printf): Don't define if a printf wrapper is already
31740         defined in intl/printf.c.
31741         Reported by Michel Boaventura <michel@michelboaventura.com>.
31742
31743 2010-03-25  Bruno Haible  <bruno@clisp.org>
31744
31745         Use ANSI C.
31746         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31747
31748 2010-03-25  Bruno Haible  <bruno@clisp.org>
31749
31750         Minor formatting changes.
31751         * lib/acosl.c: Insert space before function argument list.
31752         * lib/argz.c: Likewise.
31753         * lib/asinl.c: Likewise.
31754         * lib/expl.c: Likewise.
31755         * lib/gen-uni-tables.c: Likewise.
31756         * lib/gettext.h: Likewise.
31757         * lib/glthread/lock.h: Likewise.
31758         * lib/tanl.c: Likewise.
31759         * lib/uniname/uniname.c: Likewise.
31760         * tests/test-idpriv-drop.c: Likewise.
31761         * tests/test-idpriv-droptemp.c: Likewise.
31762         * tests/test-lock.c: Likewise.
31763         * tests/test-tls.c: Likewise.
31764         * lib/argp-help.c: Insert space before function-like macro argument
31765         list.
31766         * lib/memcmp.c: Likewise.
31767         * tests/test-base64.c: Likewise.
31768         * lib/localename.c: Insert space before sizeof's argument list.
31769         * lib/safe-alloc.h: Likewise.
31770         * lib/file-set.h: Insert space before macro argument list.
31771         * tests/test-argp.c: Likewise.
31772         * lib/argp-namefrob.h: Insert space before function parameter list.
31773         * lib/getaddrinfo.c: Likewise.
31774         * lib/netdb.in.h: Likewise.
31775         * lib/parse-duration.h: Likewise.
31776         * lib/parse-duration.c: Likewise.
31777         * lib/poll.c: Likewise.
31778         * lib/select.c: Likewise.
31779         * lib/trim.h: Likewise.
31780         * tests/test-usleep.c: Likewise.
31781         * lib/ldexpl.c: Insert space before function parameter list and before
31782         function argument list.
31783         * lib/logl.c: Likewise.
31784         * lib/sqrtl.c: Likewise.
31785         * lib/trim.c: Likewise.
31786         * lib/cosl.c: Use GNU style indentation. Insert space before function
31787         argument list.
31788         * lib/sinl.c: Likewise.
31789         * lib/tsearch.c: Insert space after 'for'.
31790         Reported by Jim Meyering.
31791
31792 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31793
31794         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31795         config header before grepping, as it's not present before
31796         autoreconf/configure are run.  Reported by Simon Josefsson.
31797
31798 2010-03-23  Bruno Haible  <bruno@clisp.org>
31799
31800         pt_chown: Make it work with automake < 1.11.
31801         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31802         Reported by Simon Josefsson.
31803
31804 2010-03-23  Bruno Haible  <bruno@clisp.org>
31805
31806         pt_chown: Don't depend on GPLed modules.
31807         * lib/pt_chown.c: Don't include idpriv.h.
31808         (main): Don't drop privileges.
31809         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31810         Reported by Simon Josefsson.
31811
31812 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31813
31814         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31815         suggestions from karl@freefriends.org (Karl Berry).
31816
31817 2010-03-22  Eric Blake  <eblake@redhat.com>
31818
31819         gethostname: further tweaks
31820         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31821         are overriding gethostname.
31822         Suggested by Bruno Haible.
31823
31824 2010-03-21  Bruno Haible  <bruno@clisp.org>
31825
31826         Fix comments.
31827         * lib/forkpty.c (rpl_forkpty): Fix comment.
31828         * lib/openpty.c (rpl_openpty): Likewise.
31829         Reported by Eric Blake.
31830
31831 2010-03-22  Eric Blake  <eblake@redhat.com>
31832
31833         gethostname: fix build on mingw
31834         * lib/unistd.in.h (includes): Work around fact that mingw
31835         <winsock2.h> re-includes <unistd.h>, by avoiding any
31836         redeclarations if we are being included by <winsock2.h>.
31837         Reported by Matthias Bolte.
31838
31839 2010-03-21  Bruno Haible  <bruno@clisp.org>
31840
31841         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31842         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31843         modifications.
31844         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31845         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31846         provide the replacement.
31847         * modules/forkpty (Depends-on): Add openpty, login_tty.
31848         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31849         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31850         * doc/glibc-functions/forkpty.texi: More supported platforms.
31851         * config/srclist.txt: Add forkpty.c (commented).
31852
31853 2010-03-21  Bruno Haible  <bruno@clisp.org>
31854
31855         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31856         (Makefile.am): Verify that PTY_LIB is defined.
31857
31858         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31859
31860 2010-03-21  Bruno Haible  <bruno@clisp.org>
31861
31862         Tests for module 'login_tty'.
31863         * modules/login_tty-tests: New file.
31864         * tests/test-login_tty.c: New file.
31865
31866         New module 'login_tty'.
31867         * lib/login_tty.c: New file.
31868         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31869         * modules/login_tty: New file.
31870         * doc/glibc-functions/login_tty.texi: Mention the new module.
31871
31872 2010-03-21  Bruno Haible  <bruno@clisp.org>
31873
31874         login_tty: Documentation.
31875         * doc/glibc-functions/login_tty.texi: New file.
31876         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31877
31878 2010-03-21  Bruno Haible  <bruno@clisp.org>
31879
31880         pty: Consistent macro naming.
31881         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31882         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31883         * modules/pty (configure.ac): Update.
31884
31885 2010-03-21  Bruno Haible  <bruno@clisp.org>
31886
31887         Tests for openpty: Make stricter.
31888         * tests/test-openpty.c (main): Add test of canonical processing and
31889         erase.
31890         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31891
31892         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31893         * lib/openpty.c (openpty): New replacement function.
31894         * lib/pty.in.h: Include <termios.h>.
31895         (openpty): Update declaration. Add comments.
31896         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31897         is not declared, arrange to provide the replacement. Check for _getpty
31898         and posix_openpt.
31899         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31900         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31901         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31902         * modules/pty-tests (test_pty_c___LDADD): New variable.
31903         * doc/glibc-functions/openpty.texi: More supported platforms.
31904
31905 2010-03-21  Bruno Haible  <bruno@clisp.org>
31906
31907         setenv: Tweaks.
31908         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31909         the test program.
31910         * doc/posix-functions/setenv.texi: Update platforms list.
31911
31912 2010-03-21  Bruno Haible  <bruno@clisp.org>
31913
31914         New module 'unlockpt'.
31915         * lib/unlockpt.c: New file, from glibc with modifications.
31916         * m4/unlockpt.m4: New file.
31917         * modules/unlockpt: New file.
31918         * lib/stdlib.in.h (unlockpt): New declaration.
31919         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31920         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31921         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31922         HAVE_UNLOCKPT.
31923         * doc/posix-functions/unlockpt.texi: Mention the new module.
31924         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31925         * config/srclist.txt: Add unlockpt.c (commented).
31926
31927 2010-03-21  Jim Meyering  <meyering@redhat.com>
31928
31929         maint.mk: prohibit inclusion of "intprops.h" without use
31930         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31931
31932 2010-03-21  Bruno Haible  <bruno@clisp.org>
31933
31934         New module 'grantpt'.
31935         * lib/grantpt.c: New file, from glibc with modifications.
31936         * m4/grantpt.m4: New file.
31937         * modules/grantpt: New file.
31938         * lib/stdlib.in.h (grantpt): New declaration.
31939         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31940         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31941         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31942         HAVE_GRANTPT.
31943         * doc/posix-functions/grantpt.texi: Mention the new module.
31944         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31945         * config/srclist.txt: Add grantpt.c (commented).
31946
31947 2010-03-21  Bruno Haible  <bruno@clisp.org>
31948
31949         New module 'pt_chown'.
31950         * lib/pt_chown.c: New file, from glibc with modifications.
31951         * lib/pty-private.h: New file, from glibc with modifications.
31952         * modules/pt_chown: New file.
31953         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31954
31955 2010-03-21  Bruno Haible  <bruno@clisp.org>
31956
31957         Tests for module 'ptsname'.
31958         * modules/ptsname-tests: New file.
31959         * tests/test-ptsname.c: New file.
31960
31961         New module 'ptsname'.
31962         * lib/ptsname.c: New file, from glibc with modifications.
31963         * m4/ptsname.m4: New file.
31964         * modules/ptsname: New file.
31965         * lib/stdlib.in.h (ptsname): New declaration.
31966         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31967         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31968         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31969         HAVE_PTSNAME.
31970         * doc/posix-functions/ptsname.texi: Mention the new module.
31971         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31972         * config/srclist.txt: Add ptsname.c (commented).
31973
31974 2010-03-21  Bruno Haible  <bruno@clisp.org>
31975
31976         Tests for module 'ttyname_r'.
31977         * modules/ttyname_r-tests: New file.
31978         * tests/test-ttyname_r.c: New file.
31979
31980         New module 'ttyname_r'.
31981         * lib/ttyname_r.c: New file.
31982         * m4/ttyname_r.m4: New file.
31983         * modules/ttyname_r: New file.
31984         * lib/unistd.in.h (ttyname_r): New declaration.
31985         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31986         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31987         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31988         HAVE_TTYNAME_R.
31989         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31990         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31991
31992 2010-03-20  Bruno Haible  <bruno@clisp.org>
31993
31994         signal: Undefine macro definitions in C++ mode.
31995         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31996         sigfillset): Undefine macro definitions from the system header in C++
31997         mode.
31998         Reported by John W. Eaton <jwe@gnu.org>.
31999
32000 2010-03-20  Bruno Haible  <bruno@clisp.org>
32001
32002         Ensure no #include statements inside extern "C" { ... }.
32003         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32004         contain #include statements.
32005         * lib/time.in.h: Likewise.
32006
32007 2010-03-20  Bruno Haible  <bruno@clisp.org>
32008
32009         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32010         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32011         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32012         Reported by John W. Eaton <jwe@gnu.org>.
32013
32014 2010-03-20  Bruno Haible  <bruno@clisp.org>
32015
32016         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32017         Reported by Jim Meyering.
32018
32019 2010-03-20  Bruno Haible  <bruno@clisp.org>
32020
32021         pipe: Set errno upon failure.
32022         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32023         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32024         errno value in error message.
32025
32026 2010-03-20  Bruno Haible  <bruno@clisp.org>
32027             Jim Meyering  <meyering@redhat.com>
32028
32029         lchown: Avoid "unused variable" warning.
32030         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32031
32032 2010-03-20  Bruno Haible  <bruno@clisp.org>
32033
32034         Work around unlink() bug on MacOS X 10.5.6.
32035         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32036         attempting to unlink a parent directory.
32037         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32038         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32039         activate for the replacement function.
32040         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32041
32042 2010-03-20  Bruno Haible  <bruno@clisp.org>
32043
32044         Fix link errors on Solaris 8.
32045         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32046         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32047
32048 2010-03-19  Jim Meyering  <meyering@redhat.com>
32049
32050         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32051         The _LIBC implementation of build_range_exp correctly honors the
32052         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32053         However, the non-_LIBC implementation would ignore that syntax-bit
32054         flag and return REG_ERANGE unconditionally.
32055         This change makes it honor that flag.
32056         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32057         Make two pointer parameters "const".
32058         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32059         (parse_bracket_exp): Update caller.
32060
32061         regex.m4: correct the reversed range endpoint ([b-a]) test
32062         * m4/regex.m4: When requiring that [b-a] evoke failure,
32063         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32064         test pass once again for x86-based systems.
32065
32066 2010-03-19  Bruno Haible  <bruno@clisp.org>
32067
32068         scandir: Fix link error on Solaris 8.
32069         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32070         macros.
32071
32072 2010-03-19  Bruno Haible  <bruno@clisp.org>
32073
32074         getusershell: Fix documentation.
32075         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32076         module.
32077         * doc/glibc-functions/setusershell.texi: Likewise.
32078
32079         getusershell: Provide declaration, missing on Solaris 9.
32080         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32081         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32082         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32083         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32085         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32086         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32087         HAVE_GETUSERSHELL.
32088         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32089
32090 2010-03-19  Bruno Haible  <bruno@clisp.org>
32091
32092         wctype: Provide iswblank function.
32093         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32094         exists and is fine.
32095         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32096         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32097         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32098         * doc/posix-functions/iswblank.texi: Update.
32099
32100 2010-03-19  Bruno Haible  <bruno@clisp.org>
32101
32102         Tests of module 'pty' in C++ mode.
32103         * modules/pty-tests: New file.
32104         * tests/test-pty-c++.cc: New file.
32105         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32106
32107 2010-03-19  Eric Blake  <eblake@redhat.com>
32108
32109         logb: fix documentation
32110         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32111         1.5 declaration bug.
32112
32113         forkpty, openpty: prefer glibc's const-safe prototype
32114         * lib/forkpty.c (rpl_forkpty): New file.
32115         * lib/openpty.c (rpl_openpty): Likewise.
32116         * modules/forkpty (Files): Distribute it.
32117         * modules/openpty (Files): Likewise.
32118         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32119         check...
32120         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32121         replacement for for non-const BSD signature.
32122         * modules/pty (Makefile.am): Substitute witnesses.
32123         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32124         * tests/test-forkpty.c: Update signature check.
32125         * tests/test-openpty.c: Likewise.
32126         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32127         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32128
32129         forkpty, openpty: split functions into new modules
32130         * modules/pty (Makefile.am): Substitute new witnesses.
32131         (Libraries): Move library detection...
32132         * modules/forkpty: ...into new module.
32133         * modules/openpty: Another new module.
32134         * modules/pty-tests: Rename and split...
32135         * modules/forkpty-tests: ...to this...
32136         * modules/openpty-tests: ...and this.
32137         * tests/test-pty.c: Rename and split...
32138         * tests/test-forkpty.c: ...to this...
32139         * tests/test-openpty.c: ...and this.
32140         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32141         (gl_PTY): Split library searching...
32142         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32143         (gl_FORKPTY, gl_OPENPTY): New macros.
32144         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32145         * NEWS: Mention the split.
32146         * MODULES.html.sh (Misc): Document the modules.
32147         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32148         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32149
32150         pty: improve replacement header
32151         * lib/pty.in.h: New file.
32152         * modules/pty (Files): Ship it.
32153         (Makefile.am): Always build replacement.
32154         * m4/pty.m4: Rename...
32155         * m4/pty_h.m4: ...to this.
32156         (gl_PTY): Modernize setting of witness macros; update check of
32157         forkpty to take proper advantage of cache.
32158         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32159
32160         getopt: avoid compiler warning
32161         * lib/getopt.c (attribute_hidden): Remove unused macro.
32162
32163 2010-03-18  Bruno Haible  <bruno@clisp.org>
32164
32165         Fix link errors on Solaris 8.
32166         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32167         * modules/search-tests (test_search_c___LDADD): Likewise.
32168         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32169         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32170         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32171         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32172         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32173         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32174         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32175
32176 2010-03-18  Bruno Haible  <bruno@clisp.org>
32177
32178         Fix bug introduced on 2010-03-14.
32179         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32180         (gl_SPAWN_H): Require it.
32181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32182         Reported by Simon Josefsson.
32183
32184 2010-03-18  Bruno Haible  <bruno@clisp.org>
32185
32186         Fix typo introduced on 2009-12-31.
32187         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32188         posix_spawn_file_actions_adddup2.
32189
32190 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32191         and Eric Blake  <eblake@redhat.com>
32192
32193         test-vc-list-files-git: make more robust
32194         * tests/test-vc-list-files-git.sh: Unset problematic environment
32195         variables.  Chain commands together.
32196
32197 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32198
32199         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32200         `AC_CHECK_DECL' invocation.
32201
32202 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32203
32204         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32205         appears before executable statements. Suggested by Petr Sumbera
32206         <Petr.Sumbera@Sun.COM>.
32207
32208 2010-03-14  Bruno Haible  <bruno@clisp.org>
32209
32210         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32211         portability problems. Instead use a simpler test.
32212         (main): Check that invalid arguments are rejected only on Linux.
32213
32214 2010-03-14  Bruno Haible  <bruno@clisp.org>
32215
32216         Fix bug introduced on 2009-12-31.
32217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32218         gl_PREREQ_SYS_H_WINSOCK2 always.
32219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32220         SYS_SOCKET_H variable.
32221         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32222         Update comments.
32223         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32224         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32225         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32226         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32227         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32228
32229 2010-03-14  Bruno Haible  <bruno@clisp.org>
32230
32231         Fix values returned by sinl, cosl.
32232         * lib/trigl.h: Add specification comments.
32233         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32234         that combines the values from the precomputed table with the values of
32235         the Chebyshev polynomials.
32236
32237 2010-03-14  Bruno Haible  <bruno@clisp.org>
32238
32239         Fix compilation error when modules 'posix_spawn[p]' are not used.
32240         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32242
32243 2010-03-14  Bruno Haible  <bruno@clisp.org>
32244
32245         Fix compilation error on mingw when module 'time_r' is not used.
32246         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32247         is 1.
32248         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32249         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32250         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32251         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32252
32253 2010-03-14  Bruno Haible  <bruno@clisp.org>
32254
32255         Fix compilation error with Sun C.
32256         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32257         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32258         instead of GCC specific ULONG_LONG_MAX.
32259         * lib/xstrtoll.c: Likewise.
32260         * lib/xstrtoull.c: Likewise.
32261
32262 2010-03-13  Bruno Haible  <bruno@clisp.org>
32263
32264         Allow the user to disable C++ code and tests.
32265         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32266         (gl_PROG_ANSI_CXX): Require it.
32267
32268 2010-03-13  Bruno Haible  <bruno@clisp.org>
32269
32270         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32271         cases.
32272
32273 2010-03-13  Bruno Haible  <bruno@clisp.org>
32274
32275         Test that gnulib does not break the standard C++ headers.
32276         * tests/test-locale-c++2.cc: New file.
32277         * modules/locale-tests (Files): Add it.
32278         (Makefile.am): Compile it for test-locale-c++.
32279         * tests/test-math-c++2.cc: New file.
32280         * modules/math-tests (Files): Add it.
32281         (Makefile.am): Compile it for test-math-c++.
32282         * tests/test-signal-c++2.cc: New file.
32283         * modules/signal-tests (Files): Add it.
32284         (Makefile.am): Compile it for test-signal-c++.
32285         * tests/test-stdio-c++2.cc: New file.
32286         * modules/stdio-tests (Files): Add it.
32287         (Makefile.am): Compile it for test-stdio-c++.
32288         * tests/test-stdlib-c++2.cc: New file.
32289         * modules/stdlib-tests (Files): Add it.
32290         (Makefile.am): Compile it for test-stdlib-c++.
32291         * tests/test-string-c++2.cc: New file.
32292         * modules/string-tests (Files): Add it.
32293         (Makefile.am): Compile it for test-string-c++.
32294         * tests/test-time-c++2.cc: New file.
32295         * modules/time-tests (Files): Add it.
32296         (Makefile.am): Compile it for test-time-c++.
32297         Reported by John W. Eaton <jwe@gnu.org>.
32298
32299 2010-03-13  Bruno Haible  <bruno@clisp.org>
32300
32301         * gnulib-tool (func_usage): Clarify which options are available for
32302         --create-testdir and --create-megatestdir.
32303
32304 2010-03-13  Bruno Haible  <bruno@clisp.org>
32305
32306         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32307         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32308         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32309         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32310         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32311         when appropriate.
32312         Reported by Jim Meyering.
32313
32314 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32315
32316         * gnulib-tool (func_import): Explain origin of code.
32317
32318 2010-03-12  Bruno Haible  <bruno@clisp.org>
32319
32320         Fix problem with automake's definition of CXXLINK.
32321         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32322         Reported by Simon Josefsson and Ludovic Courtès.
32323
32324 2010-03-12  Bruno Haible  <bruno@clisp.org>
32325
32326         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32327         stable releases.
32328
32329 2010-03-11  Bruno Haible  <bruno@clisp.org>
32330
32331         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32332         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32333         whether the system provides one variant or multiple variants of the
32334         function.
32335         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32336         C++ compilers.
32337         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32338         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32339         Reported by Jim Meyering.
32340
32341 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32342
32343         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32344
32345 2010-03-08  Bruno Haible  <bruno@clisp.org>
32346
32347         gnulib-tool: Add support for --libtool in --create-testdir.
32348         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32349         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32350
32351 2010-03-08  Eric Blake  <eblake@redhat.com>
32352
32353         gnulib-tool.texi: mention possibility of git submodule
32354         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32355         submodules.
32356         * doc/.gitignore: Ignore another generated file.
32357
32358 2010-03-08  Karl Berry  <karl@gnu.org>
32359
32360         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32361         of committing gnulib files while skipping others.
32362
32363 2010-03-07  Bruno Haible  <bruno@clisp.org>
32364
32365         Tests of module 'wctype' in C++ mode.
32366         * tests/test-wctype-c++.cc: New file.
32367         * modules/wctype-tests (Files): Add it and tests/signature.h.
32368         (Depends-on): Add ansi-c++-opt.
32369         (Makefile.am): Arrange to compile and run test-wctype-c++.
32370
32371         Tests of module 'wchar' in C++ mode.
32372         * tests/test-wchar-c++.cc: New file.
32373         * modules/wchar-tests (Files): Add it and tests/signature.h.
32374         (Depends-on): Add ansi-c++-opt.
32375         (Makefile.am): Arrange to compile and run test-wchar-c++.
32376         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32377         gl_MODULE_INDICATOR.
32378
32379         Tests of module 'unistd' in C++ mode.
32380         * tests/test-unistd-c++.cc: New file.
32381         * modules/unistd-tests (Files): Add it and tests/signature.h.
32382         (Depends-on): Add ansi-c++-opt.
32383         (Makefile.am): Arrange to compile and run test-unistd-c++.
32384         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32385         gl_MODULE_INDICATOR.
32386
32387         Tests of module 'time' in C++ mode.
32388         * tests/test-time-c++.cc: New file.
32389         * modules/time-tests (Files): Add it and tests/signature.h.
32390         (Depends-on): Add ansi-c++-opt.
32391         (Makefile.am): Arrange to compile and run test-time-c++.
32392         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32393
32394         Tests of module 'sys_time' in C++ mode.
32395         * tests/test-sys_time-c++.cc: New file.
32396         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32397         (Depends-on): Add ansi-c++-opt.
32398         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32399         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32400         gl_MODULE_INDICATOR.
32401
32402         Tests of module 'sys_stat' in C++ mode.
32403         * tests/test-sys_stat-c++.cc: New file.
32404         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32405         (Depends-on): Add ansi-c++-opt.
32406         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32407         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32408         gl_MODULE_INDICATOR.
32409
32410         Tests of module 'sys_socket' in C++ mode.
32411         * tests/test-sys_socket-c++.cc: New file.
32412         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32413         (Depends-on): Add ansi-c++-opt.
32414         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32416         gl_MODULE_INDICATOR.
32417
32418         Tests of module 'sys_select' in C++ mode.
32419         * tests/test-sys_select-c++.cc: New file.
32420         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32421         (Depends-on): Add ansi-c++-opt.
32422         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32423         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32424         gl_MODULE_INDICATOR.
32425
32426         Tests of module 'sys_ioctl' in C++ mode.
32427         * tests/test-sys_ioctl-c++.cc: New file.
32428         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32429         (Depends-on): Add ansi-c++-opt.
32430         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32431         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32432         gl_MODULE_INDICATOR.
32433
32434         Tests of module 'string' in C++ mode.
32435         * tests/test-string-c++.cc: New file.
32436         * modules/string-tests (Files): Add it and tests/signature.h.
32437         (Depends-on): Add ansi-c++-opt.
32438         (Makefile.am): Arrange to compile and run test-string-c++.
32439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32440         gl_MODULE_INDICATOR.
32441
32442         Tests of module 'stdlib' in C++ mode.
32443         * tests/test-stdlib-c++.cc: New file.
32444         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32445         (Depends-on): Add ansi-c++-opt.
32446         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32447         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32448         gl_MODULE_INDICATOR.
32449
32450         Tests of module 'stdio' in C++ mode.
32451         * tests/test-stdio-c++.cc: New file.
32452         * modules/stdio-tests (Files): Add it and tests/signature.h.
32453         (Depends-on): Add ansi-c++-opt.
32454         (Makefile.am): Arrange to compile and run test-stdio-c++.
32455         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32456         gl_MODULE_INDICATOR.
32457
32458         Tests of module 'spawn' in C++ mode.
32459         * tests/test-spawn-c++.cc: New file.
32460         * modules/spawn-tests (Files): Add it and tests/signature.h.
32461         (Depends-on): Add ansi-c++-opt.
32462         (Makefile.am): Arrange to compile and run test-spawn-c++.
32463         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32464         gl_MODULE_INDICATOR.
32465
32466         Tests of module 'signal' in C++ mode.
32467         * tests/test-signal-c++.cc: New file.
32468         * modules/signal-tests (Files): Add it and tests/signature.h.
32469         (Depends-on): Add ansi-c++-opt.
32470         (Makefile.am): Arrange to compile and run test-signal-c++.
32471         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32472         gl_MODULE_INDICATOR.
32473
32474         Tests of module 'search' in C++ mode.
32475         * tests/test-search-c++.cc: New file.
32476         * modules/search-tests (Files): Add it and tests/signature.h.
32477         (Depends-on): Add ansi-c++-opt.
32478         (Makefile.am): Arrange to compile and run test-search-c++.
32479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32480         gl_MODULE_INDICATOR.
32481
32482         Tests of module 'math' in C++ mode.
32483         * tests/test-math-c++.cc: New file.
32484         * modules/math-tests (Files): Add it and tests/signature.h.
32485         (Depends-on): Add ansi-c++-opt.
32486         (Makefile.am): Arrange to compile and run test-math-c++.
32487         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32488
32489         Tests of module 'locale' in C++ mode.
32490         * tests/test-locale-c++.cc: New file.
32491         * modules/locale-tests (Files): Add it and tests/signature.h.
32492         (Depends-on): Add ansi-c++-opt.
32493         (Makefile.am): Arrange to compile and run test-locale-c++.
32494         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32495         gl_MODULE_INDICATOR.
32496
32497         Tests of module 'langinfo' in C++ mode.
32498         * tests/test-langinfo-c++.cc: New file.
32499         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32500         (Depends-on): Add ansi-c++-opt.
32501         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32502         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32503         gl_MODULE_INDICATOR.
32504
32505         Tests of module 'iconv-h' in C++ mode.
32506         * tests/test-iconv-h-c++.cc: New file.
32507         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32508         (Depends-on): Add ansi-c++-opt.
32509         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32510
32511         Tests of module 'glob' in C++ mode.
32512         * tests/test-glob-c++.cc: New file.
32513         * modules/glob-tests (Files): Add it.
32514         (Depends-on): Add ansi-c++-opt.
32515         (Makefile.am): Arrange to compile and run test-glob-c++.
32516
32517         Tests of module 'fcntl-h' in C++ mode.
32518         * tests/test-fcntl-h-c++.cc: New file.
32519         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32520         (Depends-on): Add ansi-c++-opt.
32521         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32522         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32523         gl_MODULE_INDICATOR.
32524
32525         Tests of module 'dirent' in C++ mode.
32526         * tests/test-dirent-c++.cc: New file.
32527         * modules/dirent-tests (Files): Add it and tests/signature.h.
32528         (Depends-on): Add ansi-c++-opt.
32529         (Makefile.am): Arrange to compile and run test-dirent-c++.
32530         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32531         gl_MODULE_INDICATOR.
32532
32533         New module 'ansi-c++-opt'.
32534         * modules/ansi-c++-opt: New file.
32535         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32536
32537         Document C++ namespace mode.
32538         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32539
32540         wctype: Avoid #define replacements in C++ mode.
32541         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32542         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32543         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32544         In C++, define a namespaced alias symbol.
32545         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32546         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32547         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32548         rule.
32549
32550         wchar: Avoid #define replacements in C++ mode.
32551         * lib/wchar.in.h: Include c++defs.h.
32552         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32553         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32554         symbol.
32555         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32556         * modules/wchar (Depends-on): Add c++defs.
32557         (Makefile.am): Update wchar.h rule.
32558
32559         unistd: Avoid #define replacements in C++ mode.
32560         * lib/unistd.in.h: Include c++defs.h.
32561         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32562         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32563         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32564         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32565         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32566         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32567         symbol.
32568         (environ): Update.
32569         * modules/unistd (Depends-on): Add c++defs.
32570         (Makefile.am): Update unistd.h rule.
32571
32572         time: Avoid #define replacements in C++ mode.
32573         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32574         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32575         define a namespaced alias symbol.
32576         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32577         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32578         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32579         * modules/time (Depends-on): Add c++defs, warn-on-use.
32580         (Makefile.am): Update time.h rule.
32581         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32582         * modules/nanosleep (configure.ac): Likewise.
32583         * modules/strptime (configure.ac): Likewise.
32584         * modules/timegm (configure.ac): Likewise.
32585
32586         sys_time: Avoid #define replacements in C++ mode.
32587         * lib/sys_time.in.h: Include c++defs.h.
32588         (gettimeofday): In C++, define a namespaced alias symbol.
32589         * modules/sys_time (Depends-on): Add c++defs.
32590         (Makefile.am): Update sys/time.h rule.
32591
32592         sys_stat: Avoid #define replacements in C++ mode.
32593         * lib/sys_stat.in.h: Include c++defs.h.
32594         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32595         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32596         namespaced alias symbol.
32597         In C++, define a namespaced alias symbol.
32598         * modules/sys_stat (Depends-on): Add c++defs.
32599         (Makefile.am): Update sys/stat.h rule.
32600
32601         sys_socket: Avoid #define replacements in C++ mode.
32602         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32603         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32604         definitions also when the system has a <sys/socket.h>.
32605         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32606         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32607         In C++, define a namespaced alias symbol.
32608         * modules/sys_socket (Depends-on): Add c++defs.
32609         (Makefile.am): Update sys/socket.h rule.
32610
32611         sys_select: Avoid #define replacements in C++ mode.
32612         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32613         definitions also when the system has a <sys/select.h>.
32614         (select): In C++, define a namespaced alias symbol.
32615         * modules/sys_select (Depends-on): Add c++defs.
32616         (Makefile.am): Update sys/select.h rule.
32617
32618         sys_ioctl: Avoid #define replacements in C++ mode.
32619         * lib/sys_ioctl.in.h: Include c++defs.h.
32620         (ioctl): In C++, define a namespaced alias symbol.
32621         * modules/sys_ioctl (Depends-on): Add c++defs.
32622         (Makefile.am): Update sys/ioctl.h rule.
32623
32624         string: Avoid #define replacements in C++ mode.
32625         * lib/string.in.h: Include c++defs.h.
32626         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32627         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32628         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32629         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32630         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32631         * modules/string (Depends-on): Add c++defs.
32632         (Makefile.am): Update string.h rule.
32633
32634         stdlib: Avoid #define replacements in C++ mode.
32635         * lib/stdlib.in.h: Include c++defs.h.
32636         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32637         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32638         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32639         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32640         symbol.
32641         * modules/stdlib (Depends-on): Add c++defs.
32642         (Makefile.am): Update stdlib.h rule.
32643
32644         stdio: Avoid #define replacements in C++ mode.
32645         * lib/stdio.in.h: Include c++defs.h.
32646         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32647         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32648         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32649         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32650         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32651         namespaced alias symbol.
32652         * modules/stdio (Depends-on): Add c++defs.
32653         (Makefile.am): Update stdio.h rule.
32654
32655         spawn: Avoid #define replacements in C++ mode.
32656         * lib/spawn.in.h: Include c++defs.h.
32657         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32658         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32659         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32660         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32661         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32662         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32663         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32664         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32665         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32666         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32667         In C++, define a namespaced alias symbol.
32668         * modules/spawn (Depends-on): Add c++defs.
32669         (Makefile.am): Update spawn.h rule.
32670
32671         signal: Avoid #define replacements in C++ mode.
32672         * lib/signal.in.h: Include c++defs.h.
32673         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32674         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32675         namespaced alias symbol.
32676         * modules/signal (Depends-on): Add c++defs.
32677         (Makefile.am): Update signal.h rule.
32678
32679         search: Avoid #define replacements in C++ mode.
32680         * lib/search.in.h: Include c++defs.h.
32681         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32682         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32683         symbol.
32684         * modules/search (Depends-on): Add c++defs.
32685         (Makefile.am): Update search.h rule.
32686
32687         math: Avoid #define replacements in C++ mode.
32688         * lib/math.in.h: Include c++defs.h.
32689         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32690         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32691         trunc, truncl): In C++, define a namespaced alias symbol.
32692         * modules/math (Depends-on): Add c++defs.
32693         (Makefile.am): Update math.h rule.
32694
32695         locale: Avoid #define replacements in C++ mode.
32696         * lib/locale.in.h: Include c++defs.h.
32697         (duplocale): In C++, define a namespaced alias symbol.
32698         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32699         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32700         * modules/locale (Depends-on): Add c++defs.
32701         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32702
32703         langinfo: Avoid #define replacements in C++ mode.
32704         * lib/langinfo.in.h: Include c++defs.h.
32705         (nl_langinfo): In C++, define a namespaced alias symbol.
32706         * modules/langinfo (Depends-on): Add c++defs.
32707         (Makefile.am): Update langinfo.h rule.
32708
32709         iconv-h: Avoid #define replacements in C++ mode.
32710         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32711         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32712         symbol.
32713         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32714         whenever iconv is present.
32715         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32716         (Makefile.am): Update iconv.h rule.
32717
32718         glob: Avoid #define replacements in C++ mode.
32719         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32720         (_gl_glob_errfunc_fn): New type.
32721         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32722         symbol.
32723         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32724         (Makefile.am): Update glob.h rule.
32725
32726         fcntl-h: Avoid #define replacements in C++ mode.
32727         * lib/fcntl.in.h: Include c++defs.h.
32728         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32729         * modules/fcntl-h (Depends-on): Add c++defs.
32730         (Makefile.am): Update fcntl.h rule.
32731
32732         dirent: Avoid #define replacements in C++ mode.
32733         * lib/dirent.in.h: Include c++defs.h.
32734         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32735         namespaced alias symbol.
32736         (dirfd): Update declaration.
32737         * modules/dirent (Depends-on): Add c++defs.
32738         (Makefile.am): Update dirent.h rule.
32739
32740         ctype: Make it usable in C++ code.
32741         * lib/ctype.in.h: Include c++defs.h.
32742         (isblank): Declare as extern "C".
32743         * modules/ctype (Depends-on): Add c++defs.
32744         (Makefile.am): Update ctype.h rule.
32745
32746         New module 'c++defs'.
32747         * modules/c++defs: New file.
32748         * build-aux/c++defs.h: New file.
32749         Reported by John W. Eaton <jwe@gnu.org>.
32750
32751 2010-03-07  Bruno Haible  <bruno@clisp.org>
32752
32753         logb: Provide missing declaration for Cygwin.
32754         * lib/math.in.h (logb): New declaration.
32755         * m4/logb.m4: New file.
32756         * modules/logb (Files): Add m4/logb.m4.
32757         (Depends-on): Add math.
32758         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32759         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32761         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32762         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32763
32764 2010-03-07  Bruno Haible  <bruno@clisp.org>
32765
32766         Fix test-cond link error.
32767         * tests/test-cond.c: Include <stdio.h>.
32768
32769 2010-03-07  Bruno Haible  <bruno@clisp.org>
32770
32771         Fix test-dirent-safer link error.
32772         * modules/dirent-safer-tests (Makefile.am): Define
32773         test_dirent_safer_LDADD.
32774
32775 2010-03-07  Bruno Haible  <bruno@clisp.org>
32776
32777         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32778         among default module list.
32779
32780 2010-03-07  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix link error on platforms with GNU libiconv.
32783         * modules/unistr/u8-strcoll-tests (Makefile): Define
32784         test_u8_strcoll_LDADD.
32785         * modules/unistr/u16-strcoll-tests (Makefile): Define
32786         test_u16_strcoll_LDADD.
32787         * modules/unistr/u32-strcoll-tests (Makefile): Define
32788         test_u32_strcoll_LDADD.
32789
32790 2010-03-07  Bruno Haible  <bruno@clisp.org>
32791
32792         Use POSIX declarations for socket functions.
32793         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32794         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32795         rpl_sendto): Change declaration to match POSIX.
32796         * lib/connect.c (rpl_connect): Likewise.
32797         * lib/accept.c (rpl_accept): Likewise.
32798         * lib/bind.c (rpl_bind): Likewise.
32799         * lib/getpeername.c (rpl_getpeername): Likewise.
32800         * lib/getsockname.c (rpl_getsockname): Likewise.
32801         * lib/recv.c (rpl_recv): Likewise.
32802         * lib/send.c (rpl_send): Likewise.
32803         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32804         * lib/sendto.c (rpl_sendto): Likewise.
32805
32806 2010-03-06  Bruno Haible  <bruno@clisp.org>
32807
32808         Clarify access, euidaccess, faccessat.
32809         * doc/posix-functions/faccessat.texi: Mention security problem under
32810         "Other problems", not "Portability problems".
32811         * doc/posix-functions/access.texi: Likewise. Mention a related security
32812         problem.
32813         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32814         * lib/euidaccess.c: Add comments about platforms.
32815         * lib/unistd.in.h (access, euidaccess): Add warnings.
32816
32817 2010-03-07  Bruno Haible  <bruno@clisp.org>
32818
32819         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32820         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32821         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32822         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32823         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32824         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32825         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32826         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32827         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32829         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32830         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32831         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32832         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32833         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32834         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32835         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32836         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32837         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32838         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32839         Likewise.
32840         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32841         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32842         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32843         Likewise.
32844         * tests/test-spawn.c (main): Make it work when
32845         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32846
32847 2010-03-07  Bruno Haible  <bruno@clisp.org>
32848
32849         Fix incorrect Makefile.am generation in German locale.
32850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32851         Execute sed command with character range in C locale.
32852
32853 2010-03-06  Bruno Haible  <bruno@clisp.org>
32854
32855         Tests for module 'iconv-h'.
32856         * modules/iconv-h-tests: New file.
32857         * tests/test-iconv-h.c: New file.
32858
32859         New module 'iconv-h'.
32860         * modules/iconv-h: New file.
32861         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32862         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32863         (configure.ac): Remove gl_ICONV_H.
32864         (Makefile.am): Remove rule for iconv.h.
32865
32866 2010-03-06  Bruno Haible  <bruno@clisp.org>
32867
32868         More consistent naming of *.m4 files.
32869         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32870         * modules/wctype (Files): Update.
32871
32872         More consistent naming of *.m4 files.
32873         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32874         * modules/wchar (Files): Update.
32875
32876 2010-03-06  Jim Meyering  <meyering@redhat.com>
32877
32878         euidaccess: relax license to LGPLv2+
32879         * modules/euidaccess (License): Relax to LGPLv2+.
32880
32881 2010-03-06  Bruno Haible  <bruno@clisp.org>
32882
32883         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32884         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32885         (Makefile.am): Augment lib_SOURCES instead.
32886
32887 2010-03-04  Jim Meyering  <meyering@redhat.com>
32888
32889         utime: remove obsolete module
32890         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32891         unnecessary for years, and has been marked as obsolete for 10 months.
32892         * modules/utime: Remove file.
32893         * lib/utime.c: Remove file.
32894         * m4/utime.m4: Remove file.
32895         * m4/utimes-null.m4: Remove file.
32896         * doc/posix-functions/utime.texi (utime): Remove reference to
32897         the module.  Move the sole "fixed by gnulib" item into the
32898         "problems not fixed by Gnulib" list.
32899         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32900
32901 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32902
32903         * modules/exit (License): Relax license to LGPLv2+.
32904         (Status): Mark as obsolete.
32905         * NEWS: Mention deprecated 'exit' module.
32906         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32907         of now obsolete 'exit'.
32908
32909 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32910
32911         fts-lgpl: remove unused module
32912         * modules/fts-lgpl: Remove.
32913         * MODULES.html.sh (func_all_modules): Adjust.
32914         * check-module (find_included_lib_files): Adjust.
32915         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32916
32917 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32918
32919         copy-acl: enhance Solaris ACL error handling
32920         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32921         * lib/set-mode-acl.c (qset_acl): Likewise.
32922
32923 2010-03-02  Bruno Haible  <bruno@clisp.org>
32924
32925         spawn: Don't override the system defined values on FreeBSD 8.
32926         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32927         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32928         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32929         if HAVE_POSIX_SPAWN is 1.
32930         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32931
32932 2010-03-01  Bruno Haible  <bruno@clisp.org>
32933
32934         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32935         regarding Automake.
32936
32937 2010-02-25  Bruno Haible  <bruno@clisp.org>
32938
32939         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32940         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32941         setting, not afterwards.
32942         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32943
32944 2010-02-24  Eric Blake  <eblake@redhat.com>
32945
32946         bootstrap, git-version-gen: use timestamp
32947         * build-aux/git-version-gen (scriptversion): Force UTC.
32948         * build-aux/bootstrap (scriptversion): New variable.
32949
32950         bootstrap: allow older git
32951         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32952         older than 1.6.4.  Requested by the libvirt project.
32953
32954 2010-02-23  Eric Blake  <eblake@redhat.com>
32955
32956         warn-on-use: work with old autoconf
32957         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32958         AS_VAR semantics of autoconf 2.60.
32959         Reported by Bruno Haible.
32960
32961         bootstrap: improve some comments
32962         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32963         clarification comments.
32964
32965         gettimeofday: provide correct function
32966         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32967         when replacement is declared, otherwise provide gettimeofday.
32968         Reported by Michael Goffioul.
32969
32970 2010-02-23  Jim Meyering  <meyering@redhat.com>
32971
32972         lib-ignore: relax license to "unlimited", not LGPLv2+
32973         * modules/lib-ignore (License): Relax to "unlimited".
32974
32975 2010-02-23  Jim Meyering  <meyering@redhat.com>
32976
32977         lib-ignore: relax license to LGPLv2+
32978         * modules/lib-ignore (License): Relax to LGPLv2+.
32979
32980 2010-02-22  Eric Blake  <eblake@redhat.com>
32981
32982         lseek: avoid bash 3.2 broken pipe bug
32983         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32984         warning from bash 3.2.
32985         Reported by Ben Pfaff, with analysis from Bruno Haible.
32986
32987         bootstrap: support non-FSF copyright holder
32988         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32989         bootstrap.conf override of COPYRIGHT_HOLDER.
32990         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32991
32992         bootstrap: interoperate with gettext 0.14.1
32993         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32994
32995         bootstrap: allow for alternate submodule location
32996         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32997         hardcoding submodule location.
32998         (gnulib_mk): Allow direct use of Makefile.am.
32999
33000         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33001         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33002         rather than reconfiguring where the submodule points.
33003
33004         gettimeofday: restore support for platforms that lack function
33005         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33006         replacement if function is missing.
33007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33008         * modules/sys_time (Makefile.am): Substitute it.
33009         * lib/sys_time.in.h (gettimeofday): Check it.
33010         Reported by Michael Goffioul.
33011
33012 2010-02-21  Bruno Haible  <bruno@clisp.org>
33013
33014         * lib/stdio.in.h (obstack_printf): Fix typo.
33015
33016 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33017
33018         vc-list-files: use bzr ls's -R option
33019         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33020         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33021
33022 2010-02-21  Jim Meyering  <meyering@redhat.com>
33023
33024         init.sh: fix EXEEXT shims to work also for names like test-prog
33025         * tests/init.sh: Re-exec a better shell, when needed.
33026         If the current shell lacks support for posix $(...), an init.sh-using
33027         test will now try to find a shell that supports that.  If EXEEXT is
33028         nonempty, we also require support for hyphen-in-alias-name and shell
33029         substitutions like ${var#glob}.  Failure to find such a shell results
33030         in a skipped test.
33031
33032 2010-02-21  Bruno Haible  <bruno@clisp.org>
33033
33034         Really work around around "broken pipe" error message from bash 3.2.
33035         * gnulib-tool (func_reset_sigpipe): Remove function.
33036         (echo): In bash 3.2, define to a function that uses printf.
33037         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33038
33039 2010-02-20  Bruno Haible  <bruno@clisp.org>
33040
33041         Restore support for automake 1.9.6 with autoconf 2.61.
33042         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33043         Reported by James Youngman <jay@gnu.org>.
33044
33045 2010-02-20  Bruno Haible  <bruno@clisp.org>
33046
33047         Improve *printf warning condition.
33048         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33049         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33050         and the function is overridden due to SIGPIPE emulation.
33051
33052 2010-02-20  Bruno Haible  <bruno@clisp.org>
33053
33054         * lib/stdio.in.h: Tweak comments.
33055
33056 2010-02-19  Bruno Haible  <bruno@clisp.org>
33057
33058         Make it easier to find modules. New gnulib-tool option '--find'.
33059         * gnulib-tool: New option --find.
33060         (func_usage): Document it.
33061         (func_sanitize_modulelist): New function, extracted from
33062         func_all_modules.
33063         (func_all_modules): Invoke it.
33064         * doc/gnulib-tool.texi (Which modules?): New node.
33065
33066 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33067
33068         * lib/sys_select.in.h: Provide select replacement even if
33069         sys/select.h exists on a system, for Interix.
33070
33071 2010-02-18  Jim Meyering  <meyering@redhat.com>
33072
33073         init.sh: don't use $(...) just yet
33074         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33075         to accommodate e.g., Solaris' /bin/sh.
33076
33077 2010-02-17  Bruno Haible  <bruno@clisp.org>
33078
33079         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33080         Reported by Ludovic Courtès <ludo@gnu.org>.
33081
33082 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33083
33084         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33085         linking with -lintl.
33086
33087 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33088
33089         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33090         if not provided by the system's netdb.h.  Reported by
33091         ludo@gnu.org (Ludovic Courtès).
33092
33093 2010-02-15  Jim Meyering  <meyering@redhat.com>
33094
33095         init.sh: improve portability and efficiency
33096         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33097         "dummy" in a for loop.
33098         Use '!', not '^' to select the complement of a character set used
33099         in a "case" statement.
33100         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33101         Suggestions from Eric Blake.
33102
33103         init.sh: automatically accommodate programs with the .exe suffix
33104         Automatically arrange for an invocation of "prog" to execute the
33105         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33106         may use the simpler "prog", yet still work when built on a system
33107         that requires specifying the added suffix.
33108         Do this by constructing a function named "prog" that invokes
33109         "prog.exe" for each .exe file in selected directories.
33110         * tests/init.sh (find_exe_basenames_): New function.
33111         (create_exe_shim_functions_): New function.
33112         (path_prepend_): Use it.
33113
33114         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33115         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33116         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33117
33118 2010-02-14  Jim Meyering  <meyering@redhat.com>
33119
33120         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33121         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33122         (sc_prohibit_hash_pjw_without_use): New rule.
33123
33124         maint.mk: allow the default upload destination dir to be overridden
33125         * top/maint.mk (upload_dest_dir_): Define with a default that
33126         preserves the status quo.
33127         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33128         Reported by Peter Simons.
33129
33130         maint.mk: prohibit inclusion of "hash.h" without_use
33131         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33132
33133 2010-02-10  Jim Meyering  <meyering@redhat.com>
33134
33135         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33136         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33137
33138 2010-02-09  Eric Blake  <ebb9@byu.net>
33139         and Bruno Haible  <bruno@clisp.org>
33140
33141         obstack-printf-posix: ensure declaration
33142         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33143         extracted from gl_FUNC_OBSTACK_PRINTF.
33144         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33145         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33146         Likewise.
33147         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33148         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33149         0.
33150
33151 2010-02-08  Bruno Haible  <bruno@clisp.org>
33152
33153         gnulib-tool: Fix typo in 2010-02-07 commit.
33154         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33155         Reported by Eric Blake.
33156
33157 2010-02-07  Bruno Haible  <bruno@clisp.org>
33158
33159         gnulib-tool: Fix up caching patches.
33160         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33161         option --no-cache. Use associative arrays when supported by the shell.
33162         (sed_comments): New variable.
33163         (modcache): Renamed from do_cache.
33164         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33165         abbreviate unnecessarily.
33166         (have_associative): New variable.
33167         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33168         way also for ksh and zsh.
33169         (func_init_sed_convert_to_cache_statements): New function, extracted
33170         from func_cache_lookup_module. Add support for associative arrays.
33171         Don't set the c_MODULE_cached variable here. Ignore all lines before
33172         the first field header. Remove only the final newline, not all trailing
33173         newlines. Support empty fields correctly. Limit the use of 'eval' to
33174         assignments.
33175         (func_get_description, func_get_status, func_get_notice,
33176         func_get_applicability, func_get_filelist, func_get_dependencies,
33177         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33178         func_get_automake_snippet, func_get_include_directive,
33179         func_get_link_directive, func_get_license, func_get_maintainer):
33180         Update documentation. List the unoptimized code first. Add support for
33181         associative arrays. Limit the use of 'eval' to assignments.
33182         (func_get_applicability): Undo stylistic pessimisations.
33183         (func_get_automake_snippet, func_get_include_directive): Reduce code
33184         duplication.
33185         (func_modules_transitive_closure, func_modules_add_dummy,
33186         func_modules_notice, func_modules_to_filelist, func_add_file,
33187         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33188         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33189         func_create_testdir, func_create_megatestdir): Update documentation.
33190
33191 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33192
33193         * gnulib-tool (func_cache_lookup_module): Store the module name
33194         belonging to the cache variable; error out if two different
33195         module names map to the same cache variable name.
33196
33197 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33198
33199         gnulib-tool: Make caching optional.
33200         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33201         Update matching short versions of --no-changelog.
33202         (func_usage): Update.
33203         (sed_extract_cache_prog): Renamed from ...
33204         (sed_extract_prog): ... this; revert to old extraction script.
33205         (func_get_description, func_get_status)
33206         (func_get_notice, func_get_applicability, func_get_filelist)
33207         (func_get_dependencies, func_get_autoconf_early_snippet)
33208         (func_get_autoconf_snippet, func_get_automake_snippet)
33209         (func_get_include_directive, func_get_link_directive)
33210         (func_get_license, func_get_maintainer): If $do_cache is false,
33211         use old, non-caching extraction scripts.
33212         Suggestion by Bruno Haible.
33213
33214 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33215
33216         gnulib-tool: cache module metainformation.
33217         * gnulib-tool (sed_extract_prog): Match newline before each
33218         header, and rewrite header to a shell variable suffix.
33219         (func_cache_var, func_cache_lookup_module): New functions,
33220         to turn a module name into a cache variable prefix, and to
33221         look up and cache module metainformation.
33222         (func_get_description, func_get_status)
33223         (func_get_notice, func_get_applicability, func_get_filelist)
33224         (func_get_dependencies, func_get_autoconf_early_snippet)
33225         (func_get_autoconf_snippet, func_get_automake_snippet)
33226         (func_get_include_directive, func_get_link_directive)
33227         (func_get_license, func_get_maintainer): Use
33228         func_cache_lookup_module.
33229
33230 2010-02-07  Bruno Haible  <bruno@clisp.org>
33231
33232         fnctl: Fix missing dependency.
33233         * modules/fcntl (Depends-on): Add getdtablesize.
33234         Reported by John W. Eaton <jwe@gnu.org>.
33235
33236 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33237
33238         Argp: fix recognition of short alias options.
33239
33240         * lib/argp-parse.c (convert_options): Fix improper use of
33241         `|' between character values.
33242         * tests/test-argp.c (group1_option): New alias option
33243         --read (-r).
33244         (group1_parser): Special handling for 'r'.
33245         (test15): New test case.
33246         (test_fun): Add test15.
33247         * tests/test-argp-2.sh: Update expected --help and --usage
33248         outputs.
33249
33250 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33251
33252         * tests/test-argp.c: Fix indentation.
33253
33254 2010-02-04  Eric Blake  <ebb9@byu.net>
33255
33256         gettimeofday: expose type of second argument
33257         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33258         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33259         * tests/test-gettimeofday.c: Use it to silence warning.
33260         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33261         the issue.
33262
33263 2010-02-03  Jim Meyering  <meyering@redhat.com>
33264
33265         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33266         * lib/regcomp.c (TYPE_SIGNED): Define.
33267         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33268
33269         regcomp.c: avoid a new -Wshadow warning
33270         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33271
33272 2010-02-01  Jim Meyering  <meyering@redhat.com>
33273
33274         removing useless parentheses in cpp #define directives
33275         For motivation, see commit c0221df4, "define STREQ(a,b)
33276         consistently, removing useless parentheses"
33277         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33278         * lib/mountlist.c (MNT_IGNORE): Likewise.
33279         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33280
33281 2010-02-01  Eric Blake  <ebb9@byu.net>
33282
33283         sys_time: use link-warning
33284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33285         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33286         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33287         * modules/sys_time (Depends-on): Add warn-on-use.
33288         (Makefile.am): Always build replacement.
33289         (configure.ac): Update substitutions.
33290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33291         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33292         bother with SYS_TIME_H.
33293         * modules/gettimeofday (configure.ac): Declare indicator.
33294         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33295         in use.
33296
33297         closein-tests: silence compiler warning
33298         * tests/test-closein.c (main): Ignore fread result.
33299         * modules/closein-tests (Depends-on): Add ignore-value.
33300
33301         tests: silence warning about system return
33302         * tests/test-areadlink-with-size.c (main): Ignore system result.
33303         * tests/test-areadlink.c (main): Likewise.
33304         * tests/test-areadlinkat-with-size.c (main): Likewise.
33305         * tests/test-areadlinkat.c (main): Likewise.
33306         * tests/test-canonicalize-lgpl.c (main): Likewise.
33307         * tests/test-canonicalize.c (main): Likewise.
33308         * tests/test-chown.c (main): Likewise.
33309         * tests/test-fchownat.c (main): Likewise.
33310         * tests/test-fdutimensat.c (main): Likewise.
33311         * tests/test-fstatat.c (main): Likewise.
33312         * tests/test-futimens.c (main): Likewise.
33313         * tests/test-lchown.c (main): Likewise.
33314         * tests/test-link.c (main): Likewise.
33315         * tests/test-linkat.c (main): Likewise.
33316         * tests/test-lstat.c (main): Likewise.
33317         * tests/test-mkdir.c (main): Likewise.
33318         * tests/test-mkdirat.c (main): Likewise.
33319         * tests/test-mkfifo.c (main): Likewise.
33320         * tests/test-mkfifoat.c (main): Likewise.
33321         * tests/test-mknod.c (main): Likewise.
33322         * tests/test-readlink.c (main): Likewise.
33323         * tests/test-remove.c (main): Likewise.
33324         * tests/test-rename.c (main): Likewise.
33325         * tests/test-renameat.c (main): Likewise.
33326         * tests/test-rmdir.c (main): Likewise.
33327         * tests/test-symlink.c (main): Likewise.
33328         * tests/test-symlinkat.c (main): Likewise.
33329         * tests/test-unlink.c (main): Likewise.
33330         * tests/test-unlinkat.c (main): Likewise.
33331         * tests/test-utimens.c (main): Likewise.
33332         * tests/test-utimensat.c (main): Likewise.
33333         * modules/areadlink-tests (Depends-on): Add ignore-value.
33334         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33335         * modules/areadlinkat-tests (Depends-on): Likewise.
33336         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33337         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33338         * modules/canonicalize-tests (Depends-on): Likewise.
33339         * modules/chown-tests (Depends-on): Likewise.
33340         * modules/fdutimensat-tests (Depends-on): Likewise.
33341         * modules/futimens-tests (Depends-on): Likewise.
33342         * modules/lchown-tests (Depends-on): Likewise.
33343         * modules/link-tests (Depends-on): Likewise.
33344         * modules/linkat-tests (Depends-on): Likewise.
33345         * modules/lstat-tests (Depends-on): Likewise.
33346         * modules/mkdir-tests (Depends-on): Likewise.
33347         * modules/mkfifo-tests (Depends-on): Likewise.
33348         * modules/mkfifoat-tests (Depends-on): Likewise.
33349         * modules/mknod-tests (Depends-on): Likewise.
33350         * modules/openat-tests (Depends-on): Likewise.
33351         * modules/readlink-tests (Depends-on): Likewise.
33352         * modules/remove-tests (Depends-on): Likewise.
33353         * modules/rename-tests (Depends-on): Likewise.
33354         * modules/renameat-tests (Depends-on): Likewise.
33355         * modules/rmdir-tests (Depends-on): Likewise.
33356         * modules/symlink-tests (Depends-on): Likewise.
33357         * modules/symlinkat-tests (Depends-on): Likewise.
33358         * modules/unlink-tests (Depends-on): Likewise.
33359         * modules/utimens-tests (Depends-on): Likewise.
33360         * modules/utimensat-tests (Depends-on): Likewise.
33361
33362 2010-01-31  Bruno Haible  <bruno@clisp.org>
33363
33364         Perform the same test for many <math.h> functions.
33365         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33366         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33367         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33368         of gl_MATHFUNC.
33369         * modules/acos (configure.ac): Likewise.
33370         * modules/asin (configure.ac): Likewise.
33371         * modules/atan (configure.ac): Likewise.
33372         * modules/atan2 (configure.ac): Likewise.
33373         * modules/cbrt (configure.ac): Likewise.
33374         * modules/copysign (configure.ac): Likewise.
33375         * modules/cos (configure.ac): Likewise.
33376         * modules/cosh (configure.ac): Likewise.
33377         * modules/erf (configure.ac): Likewise.
33378         * modules/erfc (configure.ac): Likewise.
33379         * modules/exp (configure.ac): Likewise.
33380         * modules/fmod (configure.ac): Likewise.
33381         * modules/hypot (configure.ac): Likewise.
33382         * modules/j0 (configure.ac): Likewise.
33383         * modules/j1 (configure.ac): Likewise.
33384         * modules/jn (configure.ac): Likewise.
33385         * modules/lgamma (configure.ac): Likewise.
33386         * modules/log (configure.ac): Likewise.
33387         * modules/log10 (configure.ac): Likewise.
33388         * modules/log1p (configure.ac): Likewise.
33389         * modules/pow (configure.ac): Likewise.
33390         * modules/remainder (configure.ac): Likewise.
33391         * modules/sin (configure.ac): Likewise.
33392         * modules/sinh (configure.ac): Likewise.
33393         * modules/tan (configure.ac): Likewise.
33394         * modules/tanh (configure.ac): Likewise.
33395         * modules/y0 (configure.ac): Likewise.
33396         * modules/y1 (configure.ac): Likewise.
33397         * modules/yn (configure.ac): Likewise.
33398         Suggested by Paolo Bonzini.
33399
33400 2010-01-31  Bruno Haible  <bruno@clisp.org>
33401
33402         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33403
33404 2010-01-31  Bruno Haible  <bruno@clisp.org>
33405
33406         Work around getdelim() bug on FreeBSD 8.0.
33407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33408         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33409         not work.
33410         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33411         is 1.
33412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33413         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33414         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33415         a non-zero size.
33416         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33417
33418 2010-01-31  Bruno Haible  <bruno@clisp.org>
33419
33420         Work around getline() bug on FreeBSD 8.0.
33421         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33422         and a non-zero size.
33423         * tests/test-getline.c (main): Likewise.
33424         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33425         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33426
33427 2010-01-28  Eric Blake  <ebb9@byu.net>
33428
33429         regex: fix build failure
33430         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33431         platforms.
33432
33433 2010-01-28  Jim Meyering  <meyering@redhat.com>
33434
33435         regex: do not ignore memory allocation failure
33436         * lib/regex_internal.c (create_cd_newstate): Detect
33437         re_node_set_init_copy failure.   Extracted from glibc commit
33438         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33439
33440         regex: sync more white-space changes from libc
33441         * lib/regex_internal.c: White-space only changes.
33442         * lib/regexec.c: Likewise.
33443
33444         regex: add many uses of __attribute_warn_unused_result__
33445         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33446         * lib/regexec.c: Likewise.
33447         Extracted from a messy glibc commit.
33448
33449         regcomp.c: spelling and merge-artifact from glibc
33450         * lib/regcomp.c: Merge remainder of glibc's
33451         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33452
33453         regcomp.c: sync white-space changes from glibc
33454         * lib/regcomp.c: Merge to accommodate white space
33455         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33456
33457         regcomp.c: do not ignore internal return values
33458         * lib/regcomp.c: Do not ignore internal return values.
33459         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33460         but without its white-space changes and spelling fixes.
33461
33462         regex_internal.h: define __attribute_warn_unused_result__
33463         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33464
33465         maint: add a syntax-check rule to check for vulnerable Makefile.in
33466         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33467
33468 2010-01-27  Jim Meyering  <meyering@redhat.com>
33469
33470         ncftpput-ftp: clean up spaces
33471         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33472         Remove trailing blanks.
33473
33474 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33475
33476         * build-aux/git-version-gen: Fix copyright statement.
33477         * build-aux/gnupload: Likewise.
33478         * tests/test-arcfour.c: Likewise.
33479         * tests/test-arctwo.c: Likewise.
33480         * tests/test-count-one-bits.c: Likewise.
33481         * tests/test-crc.c: Likewise.
33482         * tests/test-des.c: Likewise.
33483         * tests/test-gc-arcfour.c: Likewise.
33484         * tests/test-gc-arctwo.c: Likewise.
33485         * tests/test-gc-des.c: Likewise.
33486         * tests/test-gc-hmac-md5.c: Likewise.
33487         * tests/test-gc-hmac-sha1.c: Likewise.
33488         * tests/test-gc-md2.c: Likewise.
33489         * tests/test-gc-md4.c: Likewise.
33490         * tests/test-gc-md5.c: Likewise.
33491         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33492         * tests/test-gc-rijndael.c: Likewise.
33493         * tests/test-gc-sha1.c: Likewise.
33494         * tests/test-gc.c: Likewise.
33495         * tests/test-gethostname.c: Likewise.
33496         * tests/test-gettimeofday.c: Likewise.
33497         * tests/test-hash.c: Likewise.
33498         * tests/test-hmac-md5.c: Likewise.
33499         * tests/test-hmac-sha1.c: Likewise.
33500         * tests/test-md2.c: Likewise.
33501         * tests/test-md4.c: Likewise.
33502         * tests/test-md5.c: Likewise.
33503         * tests/test-memchr.c: Likewise.
33504         * tests/test-memchr2.c: Likewise.
33505         * tests/test-memcmp.c: Likewise.
33506         * tests/test-memmem.c: Likewise.
33507         * tests/test-memrchr.c: Likewise.
33508         * tests/test-rawmemchr.c: Likewise.
33509         * tests/test-read-file.c: Likewise.
33510         * tests/test-rijndael.c: Likewise.
33511         * tests/test-sockets.c: Likewise.
33512         * tests/test-strchrnul.c: Likewise.
33513         * tests/test-strstr.c: Likewise.
33514         * tests/test-strtod.c: Likewise.
33515         * build-aux/ncftpput-ftp: Likewise.
33516
33517 2010-01-26  Eric Blake  <ebb9@byu.net>
33518
33519         ignore-value: update recommended header name
33520         * modules/ignore-value (Include): Only use <> for headers that
33521         exist in glibc.
33522
33523 2010-01-26  Jim Meyering  <meyering@redhat.com>
33524
33525         test-userspec.c: avoid compiler warnings
33526         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33527         and "initialization discards qualifiers..." warnings.
33528         Put the first "uid" in its own scope, and make char* members "const".
33529
33530 2010-01-25  Bruno Haible  <bruno@clisp.org>
33531
33532         gnulib-tool: Make warning diagnostics consistent.
33533         * gnulib-tool (func_warning): New function.
33534         Use it everywhere where gnulib-tool produces output to stderr and it is
33535         not a fatal error.
33536
33537 2010-01-25  Bruno Haible  <bruno@clisp.org>
33538
33539         Fix test dependencies.
33540         * modules/xstrtol-tests (Depends-on): Add inttypes.
33541         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33542
33543 2010-01-25 Pádraig Brady <P@draigBrady.com>
33544
33545         syntax-check: detect incorrect boolean macro values in config.h
33546         * modules/maintainer-makefile (configure.ac): Parameterize the location
33547         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33548         The logic is from Eric Blake and the location indicated by Jim Meyering.
33549         Note the more natural CONFIG_HEADER name is prohibited by automake
33550         for backwards compatibility reasons.
33551         * top/maint.mk (sc_Wundef_boolean): New rule.
33552
33553 2010-01-25  Jim Meyering  <meyering@redhat.com>
33554
33555         bootstrap: detect MacOS 10.6's shasum, too
33556         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33557         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33558
33559 2010-01-23  Jim Meyering  <meyering@redhat.com>
33560
33561         xstrtoll: new module
33562         * modules/xstrtoll: New file.
33563         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33564         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33565         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33566         ./configure fails if you use this module and lack "long long".
33567         * modules/xstrtoll-tests: New module.
33568         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33569         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33570         new init.sh-based test framework.
33571
33572 2010-01-24  Bruno Haible  <bruno@clisp.org>
33573
33574         Tests for module 'yn'.
33575         * modules/yn-tests: New file.
33576         * tests/test-yn.c: New file.
33577
33578         Tests for module 'y1'.
33579         * modules/y1-tests: New file.
33580         * tests/test-y1.c: New file.
33581
33582         Tests for module 'y0'.
33583         * modules/y0-tests: New file.
33584         * tests/test-y0.c: New file.
33585
33586         Tests for module 'tanh'.
33587         * modules/tanh-tests: New file.
33588         * tests/test-tanh.c: New file.
33589
33590         Tests for module 'tan'.
33591         * modules/tan-tests: New file.
33592         * tests/test-tan.c: New file.
33593
33594         Tests for module 'sqrt'.
33595         * modules/sqrt-tests: New file.
33596         * tests/test-sqrt.c: New file.
33597
33598         Tests for module 'sinh'.
33599         * modules/sinh-tests: New file.
33600         * tests/test-sinh.c: New file.
33601
33602         Tests for module 'sin'.
33603         * modules/sin-tests: New file.
33604         * tests/test-sin.c: New file.
33605
33606         Tests for module 'rint'.
33607         * modules/rint-tests: New file.
33608         * tests/test-rint.c: New file.
33609
33610         Tests for module 'remainder'.
33611         * modules/remainder-tests: New file.
33612         * tests/test-remainder.c: New file.
33613
33614         Tests for module 'pow'.
33615         * modules/pow-tests: New file.
33616         * tests/test-pow.c: New file.
33617
33618         Tests for module 'nextafter'.
33619         * modules/nextafter-tests: New file.
33620         * tests/test-nextafter.c: New file.
33621
33622         Tests for module 'modf'.
33623         * modules/modf-tests: New file.
33624         * tests/test-modf.c: New file.
33625
33626         Tests for module 'logb'.
33627         * modules/logb-tests: New file.
33628         * tests/test-logb.c: New file.
33629
33630         Tests for module 'log1p'.
33631         * modules/log1p-tests: New file.
33632         * tests/test-log1p.c: New file.
33633
33634         Tests for module 'log10'.
33635         * modules/log10-tests: New file.
33636         * tests/test-log10.c: New file.
33637
33638         Tests for module 'log'.
33639         * modules/log-tests: New file.
33640         * tests/test-log.c: New file.
33641
33642         Tests for module 'lgamma'.
33643         * modules/lgamma-tests: New file.
33644         * tests/test-lgamma.c: New file.
33645
33646         Tests for module 'ldexp'.
33647         * modules/ldexp-tests: New file.
33648         * tests/test-ldexp.c: New file.
33649
33650         Tests for module 'jn'.
33651         * modules/jn-tests: New file.
33652         * tests/test-jn.c: New file.
33653
33654         Tests for module 'j1'.
33655         * modules/j1-tests: New file.
33656         * tests/test-j1.c: New file.
33657
33658         Tests for module 'j0'.
33659         * modules/j0-tests: New file.
33660         * tests/test-j0.c: New file.
33661
33662         Tests for module 'hypot'.
33663         * modules/hypot-tests: New file.
33664         * tests/test-hypot.c: New file.
33665
33666         Tests for module 'fmod'.
33667         * modules/fmod-tests: New file.
33668         * tests/test-fmod.c: New file.
33669
33670         Tests for module 'fabs'.
33671         * modules/fabs-tests: New file.
33672         * tests/test-fabs.c: New file.
33673
33674         Tests for module 'exp'.
33675         * modules/exp-tests: New file.
33676         * tests/test-exp.c: New file.
33677
33678         Tests for module 'erfc'.
33679         * modules/erfc-tests: New file.
33680         * tests/test-erfc.c: New file.
33681
33682         Tests for module 'erf'.
33683         * modules/erf-tests: New file.
33684         * tests/test-erf.c: New file.
33685
33686         Tests for module 'cosh'.
33687         * modules/cosh-tests: New file.
33688         * tests/test-cosh.c: New file.
33689
33690         Tests for module 'cos'.
33691         * modules/cos-tests: New file.
33692         * tests/test-cos.c: New file.
33693
33694         Tests for module 'copysign'.
33695         * modules/copysign-tests: New file.
33696         * tests/test-copysign.c: New file.
33697
33698         Tests for module 'cbrt'.
33699         * modules/cbrt-tests: New file.
33700         * tests/test-cbrt.c: New file.
33701
33702         Tests for module 'atan2'.
33703         * modules/atan2-tests: New file.
33704         * tests/test-atan2.c: New file.
33705
33706         Tests for module 'atan'.
33707         * modules/atan-tests: New file.
33708         * tests/test-atan.c: New file.
33709
33710         Tests for module 'asin'.
33711         * modules/asin-tests: New file.
33712         * tests/test-asin.c: New file.
33713
33714         Tests for module 'acos'.
33715         * modules/acos-tests: New file.
33716         * tests/test-acos.c: New file.
33717
33718 2010-01-24  Bruno Haible  <bruno@clisp.org>
33719
33720         Fix tests for common <math.h> functions.
33721         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33722         code snippet that references the function pointer, rather than merely
33723         calling the function. Substitute the FUNC_LIBM variable.
33724         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33725         * modules/acos (configure.ac): Likewise.
33726         * modules/asin (configure.ac): Likewise.
33727         * modules/atan (configure.ac): Likewise.
33728         * modules/atan2 (configure.ac): Likewise.
33729         * modules/cbrt (configure.ac): Likewise.
33730         * modules/copysign (configure.ac): Likewise.
33731         * modules/cos (configure.ac): Likewise.
33732         * modules/cosh (configure.ac): Likewise.
33733         * modules/erf (configure.ac): Likewise.
33734         * modules/erfc (configure.ac): Likewise.
33735         * modules/exp (configure.ac): Likewise.
33736         * modules/fabs (configure.ac): Likewise.
33737         * modules/fmod (configure.ac): Likewise.
33738         * modules/hypot (configure.ac): Likewise.
33739         * modules/j0 (configure.ac): Likewise.
33740         * modules/j1 (configure.ac): Likewise.
33741         * modules/jn (configure.ac): Likewise.
33742         * modules/ldexp (configure.ac): Likewise.
33743         * modules/lgamma (configure.ac): Likewise.
33744         * modules/log (configure.ac): Likewise.
33745         * modules/log10 (configure.ac): Likewise.
33746         * modules/log1p (configure.ac): Likewise.
33747         * modules/logb (configure.ac): Likewise.
33748         * modules/modf (configure.ac): Likewise.
33749         * modules/nextafter (configure.ac): Likewise.
33750         * modules/pow (configure.ac): Likewise.
33751         * modules/remainder (configure.ac): Likewise.
33752         * modules/rint (configure.ac): Likewise.
33753         * modules/sin (configure.ac): Likewise.
33754         * modules/sinh (configure.ac): Likewise.
33755         * modules/tan (configure.ac): Likewise.
33756         * modules/tanh (configure.ac): Likewise.
33757         * modules/y0 (configure.ac): Likewise.
33758         * modules/y1 (configure.ac): Likewise.
33759         * modules/yn (configure.ac): Likewise.
33760
33761 2010-01-24  Bruno Haible  <bruno@clisp.org>
33762
33763         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33764         * tests/test-acosl.c (x): New variable.
33765         (main): Store argument in x and fetch it from x.
33766         * tests/test-asinl.c (x): New variable.
33767         (main): Store argument in x and fetch it from x.
33768         * tests/test-atanl.c (x): New variable.
33769         (main): Store argument in x and fetch it from x.
33770         * tests/test-cosl.c (x): New variable.
33771         (main): Store argument in x and fetch it from x.
33772         * tests/test-expl.c (x): New variable.
33773         (main): Store argument in x and fetch it from x.
33774         * tests/test-logl.c (x): New variable.
33775         (main): Store argument in x and fetch it from x.
33776         * tests/test-sinl.c (x): New variable.
33777         (main): Store argument in x and fetch it from x.
33778         * tests/test-sqrtl.c (x): New variable.
33779         (main): Store argument in x and fetch it from x.
33780         * tests/test-tanl.c (x): New variable.
33781         (main): Store argument in x and fetch it from x.
33782
33783 2010-01-24  Bruno Haible  <bruno@clisp.org>
33784
33785         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33786         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33787         assignments to the initial TESTS_ENVIRONMENT.
33788         * doc/gnulib.texi (Unit test modules): Document it.
33789         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33790         TESTS_ENVIRONMENT.
33791         * modules/btowc-tests (Makefile.am): Likewise.
33792         * modules/c-stack-tests (Makefile.am): Likewise.
33793         * modules/c-strcase-tests (Makefile.am): Likewise.
33794         * modules/copy-file-tests (Makefile.am): Likewise.
33795         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33796         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33797         * modules/mbrtowc-tests (Makefile.am): Likewise.
33798         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33799         * modules/mbscasestr-tests (Makefile.am): Likewise.
33800         * modules/mbschr-tests (Makefile.am): Likewise.
33801         * modules/mbscspn-tests (Makefile.am): Likewise.
33802         * modules/mbsinit-tests (Makefile.am): Likewise.
33803         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33804         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33805         * modules/mbspbrk-tests (Makefile.am): Likewise.
33806         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33807         * modules/mbsrchr-tests (Makefile.am): Likewise.
33808         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33809         * modules/mbsspn-tests (Makefile.am): Likewise.
33810         * modules/mbsstr-tests (Makefile.am): Likewise.
33811         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33812         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33813         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33814         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33815         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33816         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33817         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33818         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33819         * modules/wcrtomb-tests (Makefile.am): Likewise.
33820         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33821         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33822         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33823         assignments from TESTS_ENVIRONMENT.
33824         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33825         augmentation.
33826         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33827         * modules/atexit-tests (Makefile.am): Likewise.
33828         * modules/binary-io-tests (Makefile.am): Likewise.
33829         * modules/closein-tests (Makefile.am): Likewise.
33830         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33831         * modules/exclude-tests (Makefile.am): Likewise.
33832         * modules/fflush-tests (Makefile.am): Likewise.
33833         * modules/fpending-tests (Makefile.am): Likewise.
33834         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33835         * modules/freadahead-tests (Makefile.am): Likewise.
33836         * modules/freadptr-tests (Makefile.am): Likewise.
33837         * modules/freadseek-tests (Makefile.am): Likewise.
33838         * modules/fseek-tests (Makefile.am): Likewise.
33839         * modules/fseeko-tests (Makefile.am): Likewise.
33840         * modules/ftell-tests (Makefile.am): Likewise.
33841         * modules/ftello-tests (Makefile.am): Likewise.
33842         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33843         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33844         * modules/lseek-tests (Makefile.am): Likewise.
33845         * modules/parse-duration-tests (Makefile.am): Likewise.
33846         * modules/perror-tests (Makefile.am): Likewise.
33847         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33848         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33849         * modules/pipe-tests (Makefile.am): Likewise.
33850         * modules/pread-tests (Makefile.am): Likewise.
33851         * modules/printf-posix-tests (Makefile.am): Likewise.
33852         * modules/select-tests (Makefile.am): Likewise.
33853         * modules/sigpipe-tests (Makefile.am): Likewise.
33854         * modules/tsearch-tests (Makefile.am): Likewise.
33855         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33856         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33857         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33858         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33859         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33860         * modules/version-etc-tests (Makefile.am): Likewise.
33861         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33862         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33863         * modules/xalloc-die-tests (Makefile.am): Likewise.
33864         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33865         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33866         * modules/xstrtol-tests (Makefile.am): Likewise.
33867         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33868         * modules/yesno-tests (Makefile.am): Likewise.
33869         Suggested by Jim Meyering.
33870
33871 2010-01-24  Bruno Haible  <bruno@clisp.org>
33872
33873         More documentation.
33874         * doc/gnulib.texi (Writing modules): New chapter.
33875         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33876         the new chapter.
33877
33878 2010-01-24  Jim Meyering  <meyering@redhat.com>
33879
33880         maint.mk: do not prepend "./" after filtering
33881         * top/maint.mk (_prepend_srcdir_prefix): New variable
33882         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33883         "./" when $(srcdir) is ".".
33884
33885         define STREQ(a,b) consistently, removing useless parentheses
33886         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33887         since the only risk is that "a" or "b" contains an unparenthesized
33888         comma, but if either did that, STREQ would have 3 or more arguments.
33889         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33890         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33891         * lib/hash-triple.c (STREQ): Likewise.
33892         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33893         * lib/getugroups.c (STREQ): Likewise.
33894
33895 2010-01-23  Jim Meyering  <meyering@redhat.com>
33896
33897         maint.mk: fix syntax-check in a non-srcdir build directory
33898         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33899         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33900
33901 2010-01-22  Jim Meyering  <meyering@redhat.com>
33902
33903         userspec: add unit tests
33904         * tests/test-userspec.c: New file.
33905         * modules/userspec-tests: Likewise.
33906
33907 2010-01-21  Jim Meyering  <meyering@redhat.com>
33908
33909         maint.mk: handle source file names containing "." robustly
33910         * top/maint.mk (_dot_escaped_srcdir): Define.
33911         (VC_LIST): Use it in LHS of sed substitution.
33912
33913 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33914
33915         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33916         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33917         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33918         from a non-srcdir build.
33919
33920 2010-01-20  Eric Blake  <ebb9@byu.net>
33921
33922         warn-on-use: use instead of link-warning
33923         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33924         * modules/unistd (Depends-on, Makefile.am): Likewise.
33925         * modules/arpa_inet (Depends-on): Replace link-warning with
33926         warn-on-use.
33927         (Makefile.am): Update rules accordingly.
33928         * modules/ctype (Depends-on, Makefile.am): Likewise.
33929         * modules/dirent (Depends-on, Makefile.am): Likewise.
33930         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33931         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33932         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33933         * modules/locale (Depends-on, Makefile.am): Likewise.
33934         * modules/math (Depends-on, Makefile.am): Likewise.
33935         * modules/search (Depends-on, Makefile.am): Likewise.
33936         * modules/signal (Depends-on, Makefile.am): Likewise.
33937         * modules/spawn (Depends-on, Makefile.am): Likewise.
33938         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33939         * modules/string (Depends-on, Makefile.am): Likewise.
33940         * modules/strings (Depends-on, Makefile.am): Likewise.
33941         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33942         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33943         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33944         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33945         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33946         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33947         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33948         * modules/wchar (Depends-on, Makefile.am): Likewise.
33949         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33950         should be poisoned.
33951         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33952         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33953         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33954         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33955         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33956         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33957         * m4/math_h.m4 (gl_MATH_H): Likewise.
33958         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33959         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33960         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33961         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33962         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33963         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33964         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33965         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33966         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33969         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33970         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33971         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33972         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33973         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33974         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33975         GL_LINK_WARNING.
33976         * lib/ctype.in.h: Likewise.
33977         * lib/dirent.in.h: Likewise.
33978         * lib/fcntl.in.h: Likewise.
33979         * lib/inttypes.in.h: Likewise.
33980         * lib/langinfo.in.h: Likewise.
33981         * lib/locale.in.h: Likewise.
33982         * lib/math.in.h: Likewise.
33983         * lib/search.in.h: Likewise.
33984         * lib/signal.in.h: Likewise.
33985         * lib/spawn.in.h: Likewise.
33986         * lib/stdio.in.h: Likewise.
33987         * lib/stdlib.in.h: Likewise.
33988         * lib/string.in.h: Likewise.
33989         * lib/strings.in.h: Likewise.
33990         * lib/sys_file.in.h: Likewise.
33991         * lib/sys_ioctl.in.h: Likewise.
33992         * lib/sys_select.in.h: Likewise.
33993         * lib/sys_socket.in.h: Likewise.
33994         * lib/sys_stat.in.h: Likewise.
33995         * lib/sys_times.in.h: Likewise.
33996         * lib/sys_utsname.in.h: Likewise.
33997         * lib/unistd.in.h: Likewise.
33998         * lib/wchar.in.h: Likewise.
33999
34000 2010-01-20  Bruno Haible  <bruno@clisp.org>
34001
34002         Avoid duplicate -lm.
34003         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34004         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34006         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34007         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34008         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34009         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34010         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34011         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34012         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34013         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34014         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34015         Reported by Paolo Bonzini.
34016
34017 2010-01-19  Bruno Haible  <bruno@clisp.org>
34018
34019         langinfo, nl_langinfo: Relicense under LGPLv2+.
34020         * modules/langinfo (License): Change to LGPLv2+.
34021         * modules/nl_langinfo (License): Likewise.
34022         Patch by David Lutterkort <lutter@redhat.com>.
34023
34024 2010-01-19  Bruno Haible  <bruno@clisp.org>
34025
34026         Avoid compilation error with cc on OSF/1 5.1.
34027         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34028         statement, not before.
34029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34030
34031 2010-01-18  Bruno Haible  <bruno@clisp.org>
34032
34033         Avoid a link error due to the __printf__ symbol.
34034         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34035         and 2.6.x.
34036         (__format__, __printf__): Remove definitions.
34037         * lib/argp-fmtstream.h: Likewise.
34038         * lib/argp.h: Likewise.
34039         * lib/error.h: Likewise.
34040         * lib/vasnprintf.h: Likewise.
34041         * lib/xprintf.h: Likewise.
34042         * lib/xvasprintf.h: Likewise.
34043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34044
34045 2010-01-18  Bruno Haible  <bruno@clisp.org>
34046
34047         Tests for module 'tanl'.
34048         * modules/tanl-tests: New file.
34049         * tests/test-tanl.c: New file.
34050
34051         Tests for module 'sqrtl'.
34052         * modules/sqrtl-tests: New file.
34053         * tests/test-sqrtl.c: New file.
34054
34055         Tests for module 'sinl'.
34056         * modules/sinl-tests: New file.
34057         * tests/test-sinl.c: New file.
34058
34059         Tests for module 'logl'.
34060         * modules/logl-tests: New file.
34061         * tests/test-logl.c: New file.
34062
34063         Tests for module 'expl'.
34064         * modules/expl-tests: New file.
34065         * tests/test-expl.c: New file.
34066
34067         Tests for module 'cosl'.
34068         * modules/cosl-tests: New file.
34069         * tests/test-cosl.c: New file.
34070
34071         Tests for module 'atanl'.
34072         * modules/atanl-tests: New file.
34073         * tests/test-atanl.c: New file.
34074
34075         Tests for module 'asinl'.
34076         * modules/asinl-tests: New file.
34077         * tests/test-asinl.c: New file.
34078
34079         Tests for module 'acosl'.
34080         * modules/acosl-tests: New file.
34081         * tests/test-acosl.c: New file.
34082
34083         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34084         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34085         tanl): Use the standard gnulib idiom.
34086         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34087         * lib/sinl.c: Likewise.
34088         * lib/tanl.c: Don't include trigl.c.
34089         (kernel_tanl): Make static.
34090         * lib/sincosl.c: Include trigl.h first.
34091         * lib/trigl.c: Likewise.
34092         * m4/acosl.m4: New file.
34093         * m4/asinl.m4: New file.
34094         * m4/atanl.m4: New file.
34095         * m4/cosl.m4: New file.
34096         * m4/expl.m4: New file.
34097         * m4/logl.m4: New file.
34098         * m4/sinl.m4: New file.
34099         * m4/sqrtl.m4: New file.
34100         * m4/tanl.m4: New file.
34101         * m4/mathl.m4: Remove file.
34102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34103         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34104         Don't initialize GNULIB_MATHL.
34105         * modules/acosl: New file.
34106         * modules/asinl: New file.
34107         * modules/atanl: New file.
34108         * modules/cosl: New file.
34109         * modules/expl: New file.
34110         * modules/logl: New file.
34111         * modules/sinl: New file.
34112         * modules/sqrtl: New file.
34113         * modules/tanl: New file.
34114         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34115         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34116         substitute GNULIB_MATHL.
34117         * modules/mathl: Rewritten.
34118         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34119         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34120         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34121         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34122         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34123         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34124         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34125         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34126         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34127
34128 2010-01-18  Bruno Haible  <bruno@clisp.org>
34129
34130         sqrt: Make gl_FUNC_SQRT requirable.
34131         * m4/sqrt.m4: New file.
34132         * modules/sqrt (Files): Add it.
34133         (configure.ac): Invoke gl_FUNC_SQRT.
34134
34135 2010-01-18  Bruno Haible  <bruno@clisp.org>
34136
34137         New modules for common <math.h> functions.
34138         * m4/mathfunc.m4: New file.
34139         * modules/acos: New file.
34140         * modules/asin: New file.
34141         * modules/atan: New file.
34142         * modules/atan2: New file.
34143         * modules/cbrt: New file.
34144         * modules/copysign: New file.
34145         * modules/cos: New file.
34146         * modules/cosh: New file.
34147         * modules/erf: New file.
34148         * modules/erfc: New file.
34149         * modules/exp: New file.
34150         * modules/fabs: New file.
34151         * modules/fmod: New file.
34152         * modules/hypot: New file.
34153         * modules/j0: New file.
34154         * modules/j1: New file.
34155         * modules/jn: New file.
34156         * modules/ldexp: New file.
34157         * modules/lgamma: New file.
34158         * modules/log: New file.
34159         * modules/log10: New file.
34160         * modules/log1p: New file.
34161         * modules/logb: New file.
34162         * modules/modf: New file.
34163         * modules/nextafter: New file.
34164         * modules/pow: New file.
34165         * modules/remainder: New file.
34166         * modules/rint: New file.
34167         * modules/sin: New file.
34168         * modules/sinh: New file.
34169         * modules/sqrt: New file.
34170         * modules/tan: New file.
34171         * modules/tanh: New file.
34172         * modules/y0: New file.
34173         * modules/y1: New file.
34174         * modules/yn: New file.
34175         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34176         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34177         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34178         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34179         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34180         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34181         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34182         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34183         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34184         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34185         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34186         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34187         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34188         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34189         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34190         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34191         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34192         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34193         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34194         * doc/posix-functions/log.texi: Mention the 'log' module.
34195         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34196         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34197         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34198         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34199         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34200         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34201         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34202         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34203         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34204         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34205         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34206         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34207         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34208         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34209         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34210         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34211
34212 2010-01-18  Jim Meyering  <meyering@redhat.com>
34213
34214         ignore-value: relax license to LGPLv2+
34215         * modules/ignore-value (License): Relax to LGPLv2+.
34216
34217         getdate: don't leak when TZ contains two or more '"'s
34218         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34219         double quote in TZ after the first one.
34220
34221         readtokens: do not leak internal token_lengths buffer
34222         * lib/readtokens.c (readtokens): Free the local, lengths,
34223         when the supplied "token_lengths" parameter is NULL.
34224
34225 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34226
34227         Fix a couple of missing LIBTHREAD link failures on AIX.
34228         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34229         $(LIBTHREAD).
34230         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34231
34232         Link test-poll against INET_PTON_LIB.
34233         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34234         for inet_pton on Solaris 10.
34235
34236 2010-01-17  Bruno Haible  <bruno@clisp.org>
34237
34238         unistdio/*-sprintf: Fix typo in module description.
34239         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34240         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34241         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34242         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34243         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34244         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34245         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34247
34248 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34249
34250         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34251         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34252         variables in shell case patterns, for AIX and HP-UX ksh.
34253
34254         Split large sed scripts, for HP-UX sed.
34255         * modules/stdio: Split sed scripts around 50 sed commands,
34256         to avoid HP-UX limit of 99 commands, in the near future.
34257         * modules/string: Likewise.
34258         * modules/unistd: Likewise.
34259
34260         gnulib-tool: avoid writing in the current directory.
34261         * gnulib-tool (func_emit_lib_Makefile_am)
34262         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34263         not in the current directory, so concurrent gnulib-tool
34264         instances do not interfere.
34265
34266 2010-01-16  Jim Meyering  <meyering@redhat.com>
34267
34268         doc: update users.txt
34269         * users.txt: Add grep.
34270         (diffutils, gzip): Update URLs.
34271
34272 2010-01-12  Bruno Haible  <bruno@clisp.org>
34273
34274         posix_spawn: Avoid test failure on Cygwin.
34275         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34276         characters.
34277         Reported by Simon Josefsson.
34278
34279 2010-01-12  Bruno Haible  <bruno@clisp.org>
34280
34281         * tests/test-cond.c (main): When skipping the test, show the reason.
34282
34283 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34284
34285         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34286
34287 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34288
34289         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34290         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34291
34292 2010-01-12  Eric Blake  <ebb9@byu.net>
34293
34294         build: guarantee AS_VAR_IF
34295         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34296         (gl_AS_VAR_IF): Move...
34297         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34298         Reported by Simon Josefsson.
34299
34300 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34301
34302         * lib/stdio.in.h: Fix typo.
34303
34304 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34305
34306         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34307         libgpg-error.
34308
34309 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34310
34311         * tests/test-xalloc-die.sh: Use $EXEEXT.
34312
34313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34314             Bruno Haible  <bruno@clisp.org>
34315
34316         getlogin, getlogin_r: Avoid test failure.
34317         * tests/test-getlogin.c: Include <stdio.h>.
34318         (main): Skip the test when the function fails because stdin is not a
34319         tty.
34320         * tests/test-getlogin_r.c: Include <stdio.h>.
34321         (main): Skip the test when the function fails because stdin is not a
34322         tty.
34323
34324 2010-01-11  Eric Blake  <ebb9@byu.net>
34325
34326         tests: avoid more large file warnings
34327         * tests/test-fflush.c: Avoid warning about ftell use.
34328         * tests/test-fseek.c: Avoid warning about fseek use.
34329
34330 2010-01-10  Bruno Haible  <bruno@clisp.org>
34331
34332         nproc: Work better on Linux when /proc and /sys are not mounted.
34333         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34334         as lower bound when, on glibc/Linux systems,
34335         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34336         Suggested by Pádraig Brady <P@draigbrady.com>.
34337         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34338
34339         nproc: Refactor.
34340         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34341         extracted from num_processors.
34342         (num_processors): Call it.
34343
34344 2010-01-11  Jim Meyering  <meyering@redhat.com>
34345
34346         utimecmp: avoid new warning from upcoming gcc-4.5.0
34347         * lib/utimecmp.c (BILLION): Define using #define rather than an
34348         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34349
34350 2010-01-11  Eric Blake  <ebb9@byu.net>
34351
34352         math: add portability warnings for classification macros
34353         * modules/math (Depends-on): Add warn-on-use.
34354         (Makefile.am): Provide new substitutions.
34355         * m4/math_h.m4 (gl_MATH_H): Require inline.
34356         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34357         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34358         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34359         implement warnings.
34360
34361         unistd: warn on use of environ without module
34362         * modules/unistd (Depends-on): Add warn-on-use.
34363         (Makefile.am): Provide new substitutions.
34364         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34365         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34366
34367         stdio: warn on suspicious uses
34368         * modules/stdio (Depends-on): Add warn-on-use.
34369         (Makefile.am): Provide new substitutions.
34370         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34371         fseeko.
34372         * lib/stdio.in.h (gets): Always warn on use.
34373         (fseek, ftell): Adjust when warnings are issued, and honor
34374         _GL_NO_LARGE_FILES as a way to silence the warning.
34375         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34376         any warning about large file offsets.
34377         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34378         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34379         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34380         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34381         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34382         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34383         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34384         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34385
34386         warn-on-use: new module
34387         * modules/warn-on-use: New file.
34388         * build-aux/warn-on-use.h: Likewise.
34389         * m4/warn-on-use.m4: Likewise.
34390         * MODULES.html.sh (Support for building): Mention it.
34391
34392 2010-01-10  Bruno Haible  <bruno@clisp.org>
34393
34394         Tests for module 'unistr/u32-strdup'.
34395         * modules/unistr/u32-strdup-tests: New file.
34396         * tests/unistr/test-u32-strdup.c: New file.
34397
34398         Tests for module 'unistr/u16-strdup'.
34399         * modules/unistr/u16-strdup-tests: New file.
34400         * tests/unistr/test-u16-strdup.c: New file.
34401
34402         Tests for module 'unistr/u8-strdup'.
34403         * modules/unistr/u8-strdup-tests: New file.
34404         * tests/unistr/test-u8-strdup.c: New file.
34405         * tests/unistr/test-strdup.h: New file.
34406
34407         Tests for module 'unistr/u32-strncmp'.
34408         * modules/unistr/u32-strncmp-tests: New file.
34409         * tests/unistr/test-u32-strncmp.c: New file.
34410
34411         Tests for module 'unistr/u16-strncmp'.
34412         * modules/unistr/u16-strncmp-tests: New file.
34413         * tests/unistr/test-u16-strncmp.c: New file.
34414
34415         Tests for module 'unistr/u8-strncmp'.
34416         * modules/unistr/u8-strncmp-tests: New file.
34417         * tests/unistr/test-u8-strncmp.c: New file.
34418         * tests/unistr/test-strncmp.h: New file.
34419
34420         Tests for module 'unistr/u32-strcoll'.
34421         * modules/unistr/u32-strcoll-tests: New file.
34422         * tests/unistr/test-u32-strcoll.c: New file.
34423
34424         Tests for module 'unistr/u16-strcoll'.
34425         * modules/unistr/u16-strcoll-tests: New file.
34426         * tests/unistr/test-u16-strcoll.c: New file.
34427
34428         Tests for module 'unistr/u8-strcoll'.
34429         * modules/unistr/u8-strcoll-tests: New file.
34430         * tests/unistr/test-u8-strcoll.c: New file.
34431
34432         Tests for module 'unistr/u32-strcmp'.
34433         * modules/unistr/u32-strcmp-tests: New file.
34434         * tests/unistr/test-u32-strcmp.c: New file.
34435         * tests/unistr/test-u32-strcmp.h: New file.
34436
34437         Tests for module 'unistr/u16-strcmp'.
34438         * modules/unistr/u16-strcmp-tests: New file.
34439         * tests/unistr/test-u16-strcmp.c: New file.
34440         * tests/unistr/test-u16-strcmp.h: New file.
34441
34442         Tests for module 'unistr/u8-strcmp'.
34443         * modules/unistr/u8-strcmp-tests: New file.
34444         * tests/unistr/test-u8-strcmp.c: New file.
34445         * tests/unistr/test-u8-strcmp.h: New file.
34446         * tests/unistr/test-strcmp.h: New file.
34447
34448         Tests for module 'unistr/u32-strncat'.
34449         * modules/unistr/u32-strncat-tests: New file.
34450         * tests/unistr/test-u32-strncat.c: New file.
34451
34452         Tests for module 'unistr/u16-strncat'.
34453         * modules/unistr/u16-strncat-tests: New file.
34454         * tests/unistr/test-u16-strncat.c: New file.
34455
34456         Tests for module 'unistr/u8-strncat'.
34457         * modules/unistr/u8-strncat-tests: New file.
34458         * tests/unistr/test-u8-strncat.c: New file.
34459         * tests/unistr/test-strncat.h: New file.
34460
34461         Tests for module 'unistr/u32-strcat'.
34462         * modules/unistr/u32-strcat-tests: New file.
34463         * tests/unistr/test-u32-strcat.c: New file.
34464
34465         Tests for module 'unistr/u16-strcat'.
34466         * modules/unistr/u16-strcat-tests: New file.
34467         * tests/unistr/test-u16-strcat.c: New file.
34468
34469         Tests for module 'unistr/u8-strcat'.
34470         * modules/unistr/u8-strcat-tests: New file.
34471         * tests/unistr/test-u8-strcat.c: New file.
34472         * tests/unistr/test-strcat.h: New file.
34473
34474         Tests for module 'unistr/u32-stpncpy'.
34475         * modules/unistr/u32-stpncpy-tests: New file.
34476         * tests/unistr/test-u32-stpncpy.c: New file.
34477
34478         Tests for module 'unistr/u16-stpncpy'.
34479         * modules/unistr/u16-stpncpy-tests: New file.
34480         * tests/unistr/test-u16-stpncpy.c: New file.
34481
34482         Tests for module 'unistr/u8-stpncpy'.
34483         * modules/unistr/u8-stpncpy-tests: New file.
34484         * tests/unistr/test-u8-stpncpy.c: New file.
34485         * tests/unistr/test-stpncpy.h: New file.
34486
34487         Tests for module 'unistr/u32-strncpy'.
34488         * modules/unistr/u32-strncpy-tests: New file.
34489         * tests/unistr/test-u32-strncpy.c: New file.
34490
34491         Tests for module 'unistr/u16-strncpy'.
34492         * modules/unistr/u16-strncpy-tests: New file.
34493         * tests/unistr/test-u16-strncpy.c: New file.
34494
34495         Tests for module 'unistr/u8-strncpy'.
34496         * modules/unistr/u8-strncpy-tests: New file.
34497         * tests/unistr/test-u8-strncpy.c: New file.
34498         * tests/unistr/test-strncpy.h: New file.
34499
34500         Tests for module 'unistr/u32-stpcpy'.
34501         * modules/unistr/u32-stpcpy-tests: New file.
34502         * tests/unistr/test-u32-stpcpy.c: New file.
34503
34504         Tests for module 'unistr/u16-stpcpy'.
34505         * modules/unistr/u16-stpcpy-tests: New file.
34506         * tests/unistr/test-u16-stpcpy.c: New file.
34507
34508         Tests for module 'unistr/u8-stpcpy'.
34509         * modules/unistr/u8-stpcpy-tests: New file.
34510         * tests/unistr/test-u8-stpcpy.c: New file.
34511         * tests/unistr/test-stpcpy.h: New file.
34512
34513         Tests for module 'unistr/u32-strcpy'.
34514         * modules/unistr/u32-strcpy-tests: New file.
34515         * tests/unistr/test-u32-strcpy.c: New file.
34516
34517         Tests for module 'unistr/u16-strcpy'.
34518         * modules/unistr/u16-strcpy-tests: New file.
34519         * tests/unistr/test-u16-strcpy.c: New file.
34520
34521         Tests for module 'unistr/u8-strcpy'.
34522         * modules/unistr/u8-strcpy-tests: New file.
34523         * tests/unistr/test-u8-strcpy.c: New file.
34524         * tests/unistr/test-strcpy.h: New file.
34525
34526         Tests for module 'unistr/u32-strnlen'.
34527         * modules/unistr/u32-strnlen-tests: New file.
34528         * tests/unistr/test-u32-strnlen.c: New file.
34529
34530         Tests for module 'unistr/u16-strnlen'.
34531         * modules/unistr/u16-strnlen-tests: New file.
34532         * tests/unistr/test-u16-strnlen.c: New file.
34533
34534         Tests for module 'unistr/u8-strnlen'.
34535         * modules/unistr/u8-strnlen-tests: New file.
34536         * tests/unistr/test-u8-strnlen.c: New file.
34537         * tests/unistr/test-strnlen.h: New file.
34538
34539         Tests for module 'unistr/u32-strlen'.
34540         * modules/unistr/u32-strlen-tests: New file.
34541         * tests/unistr/test-u32-strlen.c: New file.
34542
34543         Tests for module 'unistr/u16-strlen'.
34544         * modules/unistr/u16-strlen-tests: New file.
34545         * tests/unistr/test-u16-strlen.c: New file.
34546
34547         Tests for module 'unistr/u8-strlen'.
34548         * modules/unistr/u8-strlen-tests: New file.
34549         * tests/unistr/test-u8-strlen.c: New file.
34550
34551         Tests for module 'unistr/u32-prev'.
34552         * modules/unistr/u32-prev-tests: New file.
34553         * tests/unistr/test-u32-prev.c: New file.
34554
34555         Tests for module 'unistr/u16-prev'.
34556         * modules/unistr/u16-prev-tests: New file.
34557         * tests/unistr/test-u16-prev.c: New file.
34558
34559         Tests for module 'unistr/u8-prev'.
34560         * modules/unistr/u8-prev-tests: New file.
34561         * tests/unistr/test-u8-prev.c: New file.
34562
34563         Tests for module 'unistr/u32-next'.
34564         * modules/unistr/u32-next-tests: New file.
34565         * tests/unistr/test-u32-next.c: New file.
34566
34567         Tests for module 'unistr/u16-next'.
34568         * modules/unistr/u16-next-tests: New file.
34569         * tests/unistr/test-u16-next.c: New file.
34570
34571         Tests for module 'unistr/u8-next'.
34572         * modules/unistr/u8-next-tests: New file.
34573         * tests/unistr/test-u8-next.c: New file.
34574
34575         Tests for module 'unistr/u32-strmbtouc'.
34576         * modules/unistr/u32-strmbtouc-tests: New file.
34577         * tests/unistr/test-u32-strmbtouc.c: New file.
34578
34579         Tests for module 'unistr/u16-strmbtouc'.
34580         * modules/unistr/u16-strmbtouc-tests: New file.
34581         * tests/unistr/test-u16-strmbtouc.c: New file.
34582
34583         Tests for module 'unistr/u8-strmbtouc'.
34584         * modules/unistr/u8-strmbtouc-tests: New file.
34585         * tests/unistr/test-u8-strmbtouc.c: New file.
34586
34587         Tests for module 'unistr/u32-strmblen'.
34588         * modules/unistr/u32-strmblen-tests: New file.
34589         * tests/unistr/test-u32-strmblen.c: New file.
34590
34591         Tests for module 'unistr/u16-strmblen'.
34592         * modules/unistr/u16-strmblen-tests: New file.
34593         * tests/unistr/test-u16-strmblen.c: New file.
34594
34595         Tests for module 'unistr/u8-strmblen'.
34596         * modules/unistr/u8-strmblen-tests: New file.
34597         * tests/unistr/test-u8-strmblen.c: New file.
34598
34599         Tests for module 'unistr/u32-cpy-alloc'.
34600         * modules/unistr/u32-cpy-alloc-tests: New file.
34601         * tests/unistr/test-u32-cpy-alloc.c: New file.
34602
34603         Tests for module 'unistr/u16-cpy-alloc'.
34604         * modules/unistr/u16-cpy-alloc-tests: New file.
34605         * tests/unistr/test-u16-cpy-alloc.c: New file.
34606
34607         Tests for module 'unistr/u8-cpy-alloc'.
34608         * modules/unistr/u8-cpy-alloc-tests: New file.
34609         * tests/unistr/test-u8-cpy-alloc.c: New file.
34610         * tests/unistr/test-cpy-alloc.h: New file.
34611
34612         Tests for module 'unistr/u32-mbsnlen'.
34613         * modules/unistr/u32-mbsnlen-tests: New file.
34614         * tests/unistr/test-u32-mbsnlen.c: New file.
34615
34616         Tests for module 'unistr/u16-mbsnlen'.
34617         * modules/unistr/u16-mbsnlen-tests: New file.
34618         * tests/unistr/test-u16-mbsnlen.c: New file.
34619
34620         Tests for module 'unistr/u8-mbsnlen'.
34621         * modules/unistr/u8-mbsnlen-tests: New file.
34622         * tests/unistr/test-u8-mbsnlen.c: New file.
34623
34624         Tests for module 'unistr/u32-chr'.
34625         * modules/unistr/u32-chr-tests: New file.
34626         * tests/unistr/test-u32-chr.c: New file.
34627
34628         Tests for module 'unistr/u16-chr'.
34629         * modules/unistr/u16-chr-tests: New file.
34630         * tests/unistr/test-u16-chr.c: New file.
34631
34632         Tests for module 'unistr/u8-chr'.
34633         * modules/unistr/u8-chr-tests: New file.
34634         * tests/unistr/test-u8-chr.c: New file.
34635         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34636
34637         Tests for module 'unistr/u32-cmp2'.
34638         * modules/unistr/u32-cmp2-tests: New file.
34639         * tests/unistr/test-u32-cmp2.c: New file.
34640
34641         Tests for module 'unistr/u16-cmp2'.
34642         * modules/unistr/u16-cmp2-tests: New file.
34643         * tests/unistr/test-u16-cmp2.c: New file.
34644
34645         Tests for module 'unistr/u8-cmp2'.
34646         * modules/unistr/u8-cmp2-tests: New file.
34647         * tests/unistr/test-u8-cmp2.c: New file.
34648         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34649
34650         Tests for module 'unistr/u32-cmp'.
34651         * modules/unistr/u32-cmp-tests: New file.
34652         * tests/unistr/test-u32-cmp.c: New file.
34653
34654         Tests for module 'unistr/u16-cmp'.
34655         * modules/unistr/u16-cmp-tests: New file.
34656         * tests/unistr/test-u16-cmp.c: New file.
34657
34658         Tests for module 'unistr/u8-cmp'.
34659         * modules/unistr/u8-cmp-tests: New file.
34660         * tests/unistr/test-u8-cmp.c: New file.
34661         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34662
34663         Tests for module 'unistr/u32-set'.
34664         * modules/unistr/u32-set-tests: New file.
34665         * tests/unistr/test-u32-set.c: New file.
34666
34667         Tests for module 'unistr/u16-set'.
34668         * modules/unistr/u16-set-tests: New file.
34669         * tests/unistr/test-u16-set.c: New file.
34670
34671         Tests for module 'unistr/u8-set'.
34672         * modules/unistr/u8-set-tests: New file.
34673         * tests/unistr/test-u8-set.c: New file.
34674         * tests/unistr/test-set.h: New file.
34675
34676         Tests for module 'unistr/u32-move'.
34677         * modules/unistr/u32-move-tests: New file.
34678         * tests/unistr/test-u32-move.c: New file.
34679
34680         Tests for module 'unistr/u16-move'.
34681         * modules/unistr/u16-move-tests: New file.
34682         * tests/unistr/test-u16-move.c: New file.
34683
34684         Tests for module 'unistr/u8-move'.
34685         * modules/unistr/u8-move-tests: New file.
34686         * tests/unistr/test-u8-move.c: New file.
34687         * tests/unistr/test-move.h: New file.
34688
34689         Tests for module 'unistr/u32-cpy'.
34690         * modules/unistr/u32-cpy-tests: New file.
34691         * tests/unistr/test-u32-cpy.c: New file.
34692
34693         Tests for module 'unistr/u16-cpy'.
34694         * modules/unistr/u16-cpy-tests: New file.
34695         * tests/unistr/test-u16-cpy.c: New file.
34696
34697         Tests for module 'unistr/u8-cpy'.
34698         * modules/unistr/u8-cpy-tests: New file.
34699         * tests/unistr/test-u8-cpy.c: New file.
34700         * tests/unistr/test-cpy.h: New file.
34701
34702 2010-01-09  Bruno Haible  <bruno@clisp.org>
34703
34704         Tests for module 'unistr/u32-uctomb'.
34705         * modules/unistr/u32-uctomb-tests: New file.
34706         * tests/unistr/test-u32-uctomb.c: New file.
34707
34708         Tests for module 'unistr/u16-uctomb'.
34709         * modules/unistr/u16-uctomb-tests: New file.
34710         * tests/unistr/test-u16-uctomb.c: New file.
34711
34712         Tests for module 'unistr/u8-uctomb'.
34713         * modules/unistr/u8-uctomb-tests: New file.
34714         * tests/unistr/test-u8-uctomb.c: New file.
34715
34716         Tests for module 'unistr/u32-mbtoucr'.
34717         * modules/unistr/u32-mbtoucr-tests: New file.
34718         * tests/unistr/test-u32-mbtoucr.c: New file.
34719
34720         Tests for module 'unistr/u16-mbtoucr'.
34721         * modules/unistr/u16-mbtoucr-tests: New file.
34722         * tests/unistr/test-u16-mbtoucr.c: New file.
34723
34724         Tests for module 'unistr/u8-mbtoucr'.
34725         * modules/unistr/u8-mbtoucr-tests: New file.
34726         * tests/unistr/test-u8-mbtoucr.c: New file.
34727
34728         Tests for module 'unistr/u32-mbtouc'.
34729         * modules/unistr/u32-mbtouc-tests: New file.
34730         * tests/unistr/test-u32-mbtouc.c: New file.
34731
34732         Tests for module 'unistr/u16-mbtouc'.
34733         * modules/unistr/u16-mbtouc-tests: New file.
34734         * tests/unistr/test-u16-mbtouc.c: New file.
34735
34736         Tests for module 'unistr/u8-mbtouc'.
34737         * modules/unistr/u8-mbtouc-tests: New file.
34738         * tests/unistr/test-u8-mbtouc.c: New file.
34739
34740         Tests for module 'unistr/u32-mbtouc-unsafe'.
34741         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34742         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34743         * tests/unistr/test-u32-mbtouc.h: New file.
34744
34745         Tests for module 'unistr/u16-mbtouc-unsafe'.
34746         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34747         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34748         * tests/unistr/test-u16-mbtouc.h: New file.
34749
34750         Tests for module 'unistr/u8-mbtouc-unsafe'.
34751         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34752         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34753         * tests/unistr/test-u8-mbtouc.h: New file.
34754
34755         Tests for module 'unistr/u32-mblen'.
34756         * modules/unistr/u32-mblen-tests: New file.
34757         * tests/unistr/test-u32-mblen.c: New file.
34758
34759         Tests for module 'unistr/u16-mblen'.
34760         * modules/unistr/u16-mblen-tests: New file.
34761         * tests/unistr/test-u16-mblen.c: New file.
34762
34763         Tests for module 'unistr/u8-mblen'.
34764         * modules/unistr/u8-mblen-tests: New file.
34765         * tests/unistr/test-u8-mblen.c: New file.
34766
34767         Tests for module 'unistr/u32-to-u16'.
34768         * modules/unistr/u32-to-u16-tests: New file.
34769         * tests/unistr/test-u32-to-u16.c: New file.
34770
34771         Tests for module 'unistr/u32-to-u8'.
34772         * modules/unistr/u32-to-u8-tests: New file.
34773         * tests/unistr/test-u32-to-u8.c: New file.
34774
34775         Tests for module 'unistr/u16-to-u32'.
34776         * modules/unistr/u16-to-u32-tests: New file.
34777         * tests/unistr/test-u16-to-u32.c: New file.
34778
34779         Tests for module 'unistr/u16-to-u8'.
34780         * modules/unistr/u16-to-u8-tests: New file.
34781         * tests/unistr/test-u16-to-u8.c: New file.
34782
34783         Tests for module 'unistr/u8-to-u32'.
34784         * modules/unistr/u8-to-u32-tests: New file.
34785         * tests/unistr/test-u8-to-u32.c: New file.
34786
34787         Tests for module 'unistr/u8-to-u16'.
34788         * modules/unistr/u8-to-u16-tests: New file.
34789         * tests/unistr/test-u8-to-u16.c: New file.
34790
34791         Tests for module 'unistr/u32-check'.
34792         * modules/unistr/u32-check-tests: New file.
34793         * tests/unistr/test-u32-check.c: New file.
34794
34795         Tests for module 'unistr/u16-check'.
34796         * modules/unistr/u16-check-tests: New file.
34797         * tests/unistr/test-u16-check.c: New file.
34798
34799         Tests for module 'unistr/u8-check'.
34800         * modules/unistr/u8-check-tests: New file.
34801         * tests/unistr/test-u8-check.c: New file.
34802
34803         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34804         (category_equals): New function.
34805         (main): Add more tests.
34806         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34807
34808         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34809
34810 2010-01-10  Bruno Haible  <bruno@clisp.org>
34811
34812         unistr/u*-strcoll: Try harder to distinguish different strings.
34813         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34814         compare s1 and s2 to see if they are different.
34815
34816 2010-01-10  Bruno Haible  <bruno@clisp.org>
34817
34818         unistr/u*-stpncpy: Fix the return value.
34819         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34820         description of the return value consistent with stpncpy in glibc.
34821         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34822         written non-NUL unit.
34823
34824 2010-01-10  Bruno Haible  <bruno@clisp.org>
34825
34826         unistr/u*-next: Add missing dependencies.
34827         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34828         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34829         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34830
34831 2010-01-10  Bruno Haible  <bruno@clisp.org>
34832
34833         unistr/u8-mbsnlen: Fix return value for incomplete character.
34834         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34835         u8_mblen.
34836         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34837         Remove unistr/u8-mblen.
34838         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34839         u16_mblen.
34840         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34841         Remove unistr/u16-mblen.
34842
34843 2010-01-10  Bruno Haible  <bruno@clisp.org>
34844
34845         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34846         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34847         Reported by Brian Gough <bjg@gnu.org> and
34848         Chris Clayton <chris2553@googlemail.com> via
34849         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34850
34851 2010-01-09  Bruno Haible  <bruno@clisp.org>
34852
34853         unistr/u16-to-u32: Reject invalid input.
34854         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34855         u16_mbtouc.
34856         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34857         Remove unistr/u16-mbtouc.
34858
34859         unistr/u16-to-u8: Reject invalid input.
34860         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34861         u16_mbtouc.
34862         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34863         Remove unistr/u16-mbtouc.
34864
34865         unistr/u8-to-u32: Reject invalid input.
34866         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34867         u8_mbtouc.
34868         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34869         Remove unistr/u8-mbtouc.
34870
34871         unistr/u8-to-u16: Reject invalid input.
34872         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34873         u8_mbtouc.
34874         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34875         Remove unistr/u8-mbtouc.
34876
34877 2010-01-09  Bruno Haible  <bruno@clisp.org>
34878
34879         Tests for module 'getlogin'.
34880         * modules/getlogin-tests: New file.
34881         * tests/test-getlogin.c: New file.
34882
34883         New module 'getlogin'.
34884         * lib/unistd.in.h (getlogin): New declaration.
34885         * lib/getlogin.c: New file.
34886         * m4/getlogin.m4: New file.
34887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34888         HAVE_GETLOGIN.
34889         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34890         HAVE_GETLOGIN.
34891         * modules/getlogin: New file.
34892         * doc/posix-functions/getlogin.texi: Mention the new module.
34893         Reported by John W. Eaton <jwe@gnu.org>.
34894
34895 2010-01-09  Bruno Haible  <bruno@clisp.org>
34896
34897         getlogin_r: Support for native Windows.
34898         * lib/getlogin_r.c: Include <windows.h>
34899         (getlogin_r): Implement for native Windows.
34900         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34901         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34902         via John W. Eaton <jwe@gnu.org>.
34903
34904 2010-01-09  Bruno Haible  <bruno@clisp.org>
34905
34906         getlogin_r: Small fixes.
34907         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34908         succeeds.
34909         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34910         before testing whether getlogin_r is declared. No need to set
34911         HAVE_DECL_GETLOGIN_R to 1.
34912         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34913
34914 2010-01-09  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/unistd.in.h (getlogin_r): Add comment.
34917
34918 2010-01-09  Bruno Haible  <bruno@clisp.org>
34919
34920         Tests for module 'getlogin_r'.
34921         * modules/getlogin_r-tests: New file.
34922         * tests/test-getlogin_r.c: New file.
34923
34924 2010-01-09  Jim Meyering  <meyering@redhat.com>
34925
34926         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34927         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34928         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34929
34930 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34931
34932         * lib/dup2.c (rpl_dup2): Improve comment.
34933
34934 2010-01-08  Eric Blake  <ebb9@byu.net>
34935
34936         maint.mk: allow packages to add makefile @@ exceptions
34937         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34938         (sc_makefile_check): Rename...
34939         (sc_makefile_at_at_check): ...to this, and use hook.
34940
34941         dup2: work around mingw bug
34942         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34943         Reported by Simon Josefsson.
34944
34945 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34946
34947         glob: Fix C++ compilation.
34948         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34949         C++.
34950
34951 2010-01-07  Bruno Haible  <bruno@clisp.org>
34952
34953         Fix indentation of wctype.in.h, broken since 2007-01-06.
34954         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34955
34956 2010-01-07  Bruno Haible  <bruno@clisp.org>
34957
34958         mbslen: Avoid collision with system function.
34959         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34960         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34961         * m4/mbslen.m4: New file.
34962         * modules/mbslen (Files): Add it.
34963         (configure.ac): Invoke gl_MBSLEN.
34964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34965         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34966         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34967         via Ian Beckwith <ianb@erislabs.net>.
34968
34969 2010-01-07  Bruno Haible  <bruno@clisp.org>
34970
34971         dirent: Document the last fix.
34972         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34973
34974 2010-01-07  Bruno Haible  <bruno@clisp.org>
34975
34976         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34977         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34978         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34979         va_list are defined.
34980         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34981         Reported by Eric Blake.
34982
34983 2010-01-07  Bruno Haible  <bruno@clisp.org>
34984
34985         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34986         * modules/xlist (Depends-on): Add 'list',
34987         * modules/xoset (Depends-on): Add 'oset'.
34988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34989
34990 2010-01-07  Bruno Haible  <bruno@clisp.org>
34991
34992         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34993         * doc/posix-functions/strncasecmp.texi: Likewise.
34994
34995 2010-01-07  Bruno Haible  <bruno@clisp.org>
34996
34997         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34998
34999 2010-01-07  John W. Eaton  <jwe@octave.org>
35000
35001         wctype: allow C++ use
35002         * lib/wctype.in.h: Add extern "C" block for C++.
35003
35004 2010-01-06  Eric Blake  <ebb9@byu.net>
35005
35006         maint.mk: detect incorrect GFDL usage
35007         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35008
35009 2010-01-06  Jim Meyering  <meyering@redhat.com>
35010         and Eric Blake  <ebb9@byu.net>
35011
35012         maint.mk: ignore multi-line copyright in NEWS
35013         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35014
35015 2010-01-06  Eric Blake  <ebb9@byu.net>
35016
35017         select: add missing dependency
35018         * modules/select-tests (Depends-on): Move sockets dependency...
35019         * modules/select (Depends-on): ...here.
35020         Reported by Ian Beckwith.
35021
35022         doc: regenerate INSTALL
35023         * doc/INSTALL: Reflect recent autoconf update.
35024         * doc/INSTALL.ISO: Likewise.
35025         * doc/INSTALL.UTF-8: Likewise.
35026
35027         pread: fix compilation on glibc
35028         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35029         Reported by Ralf Wildenhues.
35030
35031         dirent: fix test failure
35032         * lib/dirent.in.h (includes): Guarantee ino_t.
35033         Reported by Ralf Wildenhues.
35034
35035 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35036
35037         linkat, renameat: avoid bad free
35038         * lib/at-func2.c (at_func2): Fix typo.
35039         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35040
35041 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35042
35043         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35044         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35045         to avoid failure of symlink test later.
35046
35047 2010-01-06  Eric Blake  <ebb9@byu.net>
35048
35049         stdio, unistd: guarantee ssize_t
35050         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35051         2008 are exposed when needed.
35052         * lib/stdio.in.h (includes): Likewise.
35053         Reported by Ralf Wildenhues.
35054
35055 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35056
35057         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35058         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35059         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35060
35061 2010-01-06  Jim Meyering  <meyering@redhat.com>
35062
35063         readtokens: this module *does* require xalloc.h
35064         It uses only functions that were omitted by the old syntax-check rule.
35065         * lib/readtokens.c: Include "xalloc.h" once again.
35066         * modules/readtokens (Depends-on): Add xalloc.
35067         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35068
35069 2010-01-05  Eric Blake  <ebb9@byu.net>
35070
35071         maint: support 'make announcement' from a VPATH build
35072         * top/maint.mk (announcement): Look for correct NEWS file.
35073
35074 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35075
35076         utimens (fdutimens): ignore a negative FD, per contract
35077         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35078         when we have a valid file descriptor.  Otherwise, using a brand
35079         new glibc (with just-patched futimens that now fails with EBADF)
35080         would cause this function to fail with ENOSYS.
35081         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35082         See also http://bugzilla.redhat.com/552320.
35083
35084 2010-01-05  Eric Blake  <ebb9@byu.net>
35085
35086         strcase: document what it provides
35087         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35088         gnulib module.
35089         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35090         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35091
35092 2010-01-05  Jim Meyering  <meyering@redhat.com>
35093
35094         maint: remove useless inclusions of "xalloc.h"
35095         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35096         * lib/readtokens.c: Likewise.
35097         * lib/same.c: Likewise.
35098         * modules/getloadavg (Depends-on): Remove xalloc.
35099         * modules/readtokens: Likewise.
35100         * modules/same: Likewise.
35101
35102         maint.mk: include 4 more function names in alloca.h-checking regexp
35103         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35104         regexp.  Before, we would give a false-positive (saying alloca.h
35105         is included unnecessarily) when the only uses involved omitted symbols.
35106
35107         xalloc.h: use consistent formatting
35108         * lib/xalloc.h: Move declarations to start in the first column.
35109
35110 2010-01-05  Eric Blake  <ebb9@byu.net>
35111
35112         mkdir: avoid xalloc
35113         * lib/mkdir.c (includes): Drop unused header.
35114         Reported by John W. Eaton.
35115
35116 2010-01-04  Jim Meyering  <meyering@redhat.com>
35117
35118         nl_langinfo: avoid configure-time syntax error
35119         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35120         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35121         the empty string.  Don't let that provoke a shell syntax error.
35122
35123         regcomp, regexec, fnmatch: avoid array bounds read error
35124         * lib/regcomp.c (build_equiv_class): From glibc:
35125         Use only the low 24 bits of a findidx return value as an index
35126         into the weights array.  Patch by Ulrich Drepper:
35127         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35128         * lib/regexec.c (check_node_accept_bytes): Likewise.
35129         * lib/fnmatch_loop.c (FCT): Likewise.
35130
35131         regcomp: skip collseq lookup when there are no rules
35132         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35133         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35134
35135         regcomp: recognize ill-formed { } expressions
35136         * lib/regcomp.c (parse_dup_op): From glibc:
35137         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35138
35139         regcomp: fix typo in comment
35140         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35141         s/satisfy/satisfies/.
35142
35143         regcomp: sync from glibc: remove dead store
35144         * lib/regcomp.c (duplicate_node_closure): Remove useless
35145         search_duplicated_node call and dead store.
35146
35147         regcomp: sync from glibc; always use nl_langinfo
35148         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35149         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35150         * modules/regex (Depends-on): Add nl_langinfo.
35151
35152 2010-01-04  Eric Blake  <ebb9@byu.net>
35153
35154         fdopendir: fix configure test
35155         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35156
35157 2010-01-01  Bruno Haible  <bruno@clisp.org>
35158
35159         wchar: Remove unused configure check.
35160         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35161
35162 2010-01-01  Eric Blake  <ebb9@byu.net>
35163
35164         headers: make check of system header explicit
35165         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35166         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35167         ourselves.
35168         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35170         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35171         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35172         internals.
35173         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35174         missing.
35175         Suggested by Bruno Haible.
35176
35177 2010-01-01  Jim Meyering  <meyering@redhat.com>
35178
35179         ChangeLog: tweak to eliminate unnecessary copyright line
35180         * ChangeLog: Remove a copyright line that was mistakenly updated
35181         by today's update-copyright run.  Reported by Eric Blake.
35182
35183         test-update-copyright: don't let envvar setting cause test failure
35184         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35185
35186 2010-01-01  Bruno Haible  <bruno@clisp.org>
35187
35188         localename: Avoid gcc warning.
35189         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35190         function if it is not used.
35191
35192 2010-01-01  Jim Meyering  <meyering@redhat.com>
35193
35194         update nearly all FSF copyright year lists to include 2010
35195         Use the same procedure as for 2009, outlined in
35196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35197
35198         version-etc: set COPYRIGHT_YEAR to 2010
35199         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35200
35201 2009-12-31  Eric Blake  <ebb9@byu.net>
35202
35203         doc: correct availability of cygwin 1.5.x getopt
35204         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35205         variables.
35206         * doc/posix-functions/opterr.texi (opterr): Likewise.
35207         * doc/posix-functions/optind.texi (optind): Likewise.
35208         * doc/posix-functions/optopt.texi (optopt): Likewise.
35209         * doc/posix-functions/tzname.texi (tzname): Likewise.
35210
35211         openat: update maintainer
35212         * modules/openat (Maintainer): Add myself.
35213
35214         utimens: avoid shadowing warning
35215         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35216         buffers into one, to avoid shadowing, as well as avoiding a
35217         redundant stat.
35218         Reported by Jim Meyering.
35219
35220         test-dup2: avoid compiler warning
35221         * tests/test-dup2.c (is_inheritable): Only define if used.
35222
35223 2010-01-01  Bruno Haible  <bruno@clisp.org>
35224
35225         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35226         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35227         defined, use wctomb instead of wcrtomb.
35228
35229 2010-01-01  Bruno Haible  <bruno@clisp.org>
35230
35231         iconv: Reject native Solaris iconv.
35232         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35233         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35234
35235 2009-12-31  Bruno Haible  <bruno@clisp.org>
35236
35237         * tests/test-signal.c (main): Remove test of 'SIG'.
35238
35239 2009-12-31  Bruno Haible  <bruno@clisp.org>
35240
35241         spawn: Fix incomplete fix.
35242         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35243         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35244         warnings for GNULIB_POSIXCHECK again.
35245         Reported by Eric Blake.
35246
35247 2009-12-31  Bruno Haible  <bruno@clisp.org>
35248
35249         Avoid namespace pollution on glibc systems.
35250         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35251         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35252         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35253         glibc systems.
35254
35255 2009-12-31  Bruno Haible  <bruno@clisp.org>
35256
35257         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35258         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35259         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35260         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35261         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35262         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35263         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35264
35265 2009-12-31  Bruno Haible  <bruno@clisp.org>
35266
35267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35268         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35269         afterwards.
35270
35271 2009-12-31  Bruno Haible  <bruno@clisp.org>
35272
35273         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35274         SYS_UTSNAME_H.
35275
35276 2009-12-31  Bruno Haible  <bruno@clisp.org>
35277
35278         spawn: Fix misapplied patch.
35279         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35280         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35281         warnings for GNULIB_POSIXCHECK.
35282
35283 2009-12-31  Bruno Haible  <bruno@clisp.org>
35284
35285         times: Update after sys_times changed.
35286         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35287         * modules/times (Files): Add it.
35288         (configure.ac): Invoke gl_FUNC_TIMES.
35289
35290 2009-12-31  Bruno Haible  <bruno@clisp.org>
35291
35292         Use AC_C_INLINE where necessary.
35293         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35294         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35295         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35296         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35297         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35298         * m4/mbiter.m4 (gl_MBITER): Likewise.
35299         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35300         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35301         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35302         * modules/u64 (configure.ac): Likewise.
35303
35304 2009-12-31  Bruno Haible  <bruno@clisp.org>
35305
35306         Use AC_C_INLINE instead of module 'inline' where possible.
35307         * modules/inline (Description): Clarify purpose.
35308         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35309         * modules/count-one-bits (Depends-on): Remove inline.
35310         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35311         * modules/openat (Depends-on): Remove inline.
35312         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35313         instead of depending on module 'inline'.
35314         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35315         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35316         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35317         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35318         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35319         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35320         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35321         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35322         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35323         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35324         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35325         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35326         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35327         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35328         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35329         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35330         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35331         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35332         Likewise.
35333         * modules/unictype/property-ascii-hex-digit (Depends-on,
35334         configure.ac): Likewise.
35335         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35336         configure.ac): Likewise.
35337         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35338         configure.ac): Likewise.
35339         * modules/unictype/property-bidi-block-separator (Depends-on,
35340         configure.ac): Likewise.
35341         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35342         configure.ac): Likewise.
35343         * modules/unictype/property-bidi-common-separator (Depends-on,
35344         configure.ac): Likewise.
35345         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35346         Likewise.
35347         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35348         configure.ac): Likewise.
35349         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35350         configure.ac): Likewise.
35351         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35352         configure.ac): Likewise.
35353         * modules/unictype/property-bidi-european-digit (Depends-on,
35354         configure.ac): Likewise.
35355         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35356         configure.ac): Likewise.
35357         * modules/unictype/property-bidi-left-to-right (Depends-on,
35358         configure.ac): Likewise.
35359         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35360         configure.ac): Likewise.
35361         * modules/unictype/property-bidi-other-neutral (Depends-on,
35362         configure.ac): Likewise.
35363         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35364         Likewise.
35365         * modules/unictype/property-bidi-segment-separator (Depends-on,
35366         configure.ac): Likewise.
35367         * modules/unictype/property-bidi-whitespace (Depends-on,
35368         configure.ac): Likewise.
35369         * modules/unictype/property-combining (Depends-on, configure.ac):
35370         Likewise.
35371         * modules/unictype/property-composite (Depends-on, configure.ac):
35372         Likewise.
35373         * modules/unictype/property-currency-symbol (Depends-on,
35374         configure.ac): Likewise.
35375         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35376         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35377         Likewise.
35378         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35379         configure.ac): Likewise.
35380         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35381         Likewise.
35382         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35383         Likewise.
35384         * modules/unictype/property-extender (Depends-on, configure.ac):
35385         Likewise.
35386         * modules/unictype/property-format-control (Depends-on, configure.ac):
35387         Likewise.
35388         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35389         Likewise.
35390         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35391         Likewise.
35392         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35393         Likewise.
35394         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35395         Likewise.
35396         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35397         Likewise.
35398         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35399         Likewise.
35400         * modules/unictype/property-id-start (Depends-on, configure.ac):
35401         Likewise.
35402         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35403         Likewise.
35404         * modules/unictype/property-ids-binary-operator (Depends-on,
35405         configure.ac): Likewise.
35406         * modules/unictype/property-ids-trinary-operator (Depends-on,
35407         configure.ac): Likewise.
35408         * modules/unictype/property-ignorable-control (Depends-on,
35409         configure.ac): Likewise.
35410         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35411         Likewise.
35412         * modules/unictype/property-join-control (Depends-on, configure.ac):
35413         Likewise.
35414         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35415         Likewise.
35416         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35417         Likewise.
35418         * modules/unictype/property-logical-order-exception (Depends-on,
35419         configure.ac): Likewise.
35420         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35421         Likewise.
35422         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35423         * modules/unictype/property-non-break (Depends-on, configure.ac):
35424         Likewise.
35425         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35426         Likewise.
35427         * modules/unictype/property-numeric (Depends-on, configure.ac):
35428         Likewise.
35429         * modules/unictype/property-other-alphabetic (Depends-on,
35430         configure.ac): Likewise.
35431         * modules/unictype/property-other-default-ignorable-code-point
35432         (Depends-on, configure.ac): Likewise.
35433         * modules/unictype/property-other-grapheme-extend (Depends-on,
35434         configure.ac): Likewise.
35435         * modules/unictype/property-other-id-continue (Depends-on,
35436         configure.ac): Likewise.
35437         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35438         Likewise.
35439         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35440         Likewise.
35441         * modules/unictype/property-other-math (Depends-on, configure.ac):
35442         Likewise.
35443         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35444         Likewise.
35445         * modules/unictype/property-paired-punctuation (Depends-on,
35446         configure.ac): Likewise.
35447         * modules/unictype/property-paragraph-separator (Depends-on,
35448         configure.ac): Likewise.
35449         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35450         Likewise.
35451         * modules/unictype/property-pattern-white-space (Depends-on,
35452         configure.ac): Likewise.
35453         * modules/unictype/property-private-use (Depends-on, configure.ac):
35454         Likewise.
35455         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35456         Likewise.
35457         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35458         Likewise.
35459         * modules/unictype/property-radical (Depends-on, configure.ac):
35460         Likewise.
35461         * modules/unictype/property-sentence-terminal (Depends-on,
35462         configure.ac): Likewise.
35463         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35464         Likewise.
35465         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35466         * modules/unictype/property-terminal-punctuation (Depends-on,
35467         configure.ac): Likewise.
35468         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35469         Likewise.
35470         * modules/unictype/property-unassigned-code-value (Depends-on,
35471         configure.ac): Likewise.
35472         * modules/unictype/property-unified-ideograph (Depends-on,
35473         configure.ac): Likewise.
35474         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35475         Likewise.
35476         * modules/unictype/property-variation-selector (Depends-on,
35477         configure.ac): Likewise.
35478         * modules/unictype/property-white-space (Depends-on, configure.ac):
35479         Likewise.
35480         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35481         Likewise.
35482         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35483         Likewise.
35484         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35485         Likewise.
35486         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35487         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35488         Likewise.
35489
35490 2009-12-31  Bruno Haible  <bruno@clisp.org>
35491
35492         Remove unnecessary AC_C_INLINE invocation.
35493         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35494         since 2009-08-21.
35495
35496 2009-12-31  Jim Meyering  <meyering@redhat.com>
35497
35498         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35499         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35500         With this change, we can all remove the gpg_key_ID = ... definition
35501         from our respective cfg.mk files.
35502
35503         maint.mk: create announcement template in ~/, not in /tmp
35504         * top/maint.mk (emit_upload_commands): Adjust.
35505         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35506         Remove temporary file, .ci-msg.
35507
35508 2009-12-31  Eric Blake  <ebb9@byu.net>
35509
35510         link-warning: always build headers with link warnings
35511         * modules/arpa_inet (Makefile.am): Always build replacement
35512         header.
35513         * modules/ctype (Makefile.am): Likewise.
35514         * modules/dirent (Makefile.am): Likewise.
35515         * modules/inttypes (Makefile.am): Likewise.
35516         * modules/langinfo (Makefile.am): Likewise.
35517         * modules/locale (Makefile.am): Likewise.
35518         * modules/spawn (Makefile.am): Likewise.
35519         * modules/sys_file (Makefile.am): Likewise.
35520         * modules/sys_ioctl (Makefile.am): Likewise.
35521         * modules/sys_select (Makefile.am): Likewise.
35522         * modules/sys_socket (Makefile.am): Likewise.
35523         * modules/sys_times (Makefile.am): Likewise.
35524         * modules/sys_utsname (Makefile.am): Likewise.
35525         * modules/sys_wait (Makefile.am): Likewise.
35526         * modules/wchar (Makefile.am): Likewise.
35527         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35528         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35529         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35530         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35531         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35532         Likewise.
35533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35534         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35535         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35536         Likewise.
35537         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35538         Likewise.
35539         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35541         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35543         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35544         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35545         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35546         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35547         (gl_WCHAR_H_DEFAULTS): Likewise.
35548
35549 2009-12-31  Eric Blake  <ebb9@byu.net>
35550
35551         signal, spawn: use link warnings
35552         * lib/signal.in.h (sigset_t): Make unconditional.
35553         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35554         (sigpending, sigprocmask, sigaction): Add link warnings.
35555         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35556         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35557         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35558         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35559         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35560         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35561         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35562         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35563         (posix_spawn_file_actions_destroy)
35564         (posix_spawn_file_actions_addopen)
35565         (posix_spawn_file_actions_addclose)
35566         (posix_spawn_file_actions_adddup2): Likewise.
35567         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35568         * tests/test-signal.c (main): Enhance test.
35569
35570         spawn: improve wrapper support
35571         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35572         (gl_SPAWN_H_DEFAULTS): New defaults.
35573         * modules/spawn (Makefile.am): Substitute them.
35574         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35575         Only declare if missing or broken.
35576
35577         sys_times, sys_utsname: use include_next
35578         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35579         header.
35580         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35581         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35582         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35583         * modules/sys_times (Depends-on): Add include_next.
35584         (Makefile.am): Substitute additional values.
35585         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35586         * lib/sys_times.in.h (includes): Include native header, if
35587         available.
35588         * lib/sys_utsname.in.h (includes): Likewise.
35589         * tests/test-sys_times.c (main): Enhance test.
35590
35591         fdutimensat: revert prior patch
35592         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35593         utimens.h.
35594         Reported by Bruno Haible.
35595
35596 2009-12-30  Eric Blake  <ebb9@byu.net>
35597
35598         sys_wait: drop link-warning dependency
35599         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35600         link-warning efforts.
35601         * lib/sys_wait.in.h: Likewise.
35602
35603         fdutimensat: remove bogus dependency
35604         * modules/fdutimensat (Depends-on): Drop inline.
35605
35606         unistd: fix typo
35607         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35608
35609 2009-12-30  Bruno Haible  <bruno@clisp.org>
35610
35611         Fix compilation error with Solaris cc.
35612         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35613         * lib/unicase/u16-is-invariant.c: Likewise.
35614         * lib/unicase/u32-is-invariant.c: Likewise.
35615         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35616
35617 2009-12-30  Bruno Haible  <bruno@clisp.org>
35618
35619         Fix test crash.
35620         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35621         locales.
35622         Reported by Simon Josefsson <simon@josefsson.org>.
35623
35624 2009-12-30  Bruno Haible  <bruno@clisp.org>
35625
35626         Fix compilation error on most platforms.
35627         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35628         Reported by Simon Josefsson <simon@josefsson.org>
35629         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35630
35631 2009-12-30  Eric Blake  <ebb9@byu.net>
35632
35633         futimens, utimensat: work around ntfs-3g bug
35634         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35635         a ctime bug is present, and expand workaround to cover ntfs-3g.
35636         * lib/utimens.c (fdutimens, lutimens): Likewise.
35637         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35638         (validate_timespec): Adjust return value.
35639         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35640         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35641         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35642
35643 2009-12-29  Eric Blake  <ebb9@byu.net>
35644
35645         link-warning: make usage consistent
35646         * modules/ctype (Depends-on): Add link-warning.
35647         (Makefile.am): Update rules accordingly.
35648         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35649         * modules/locale (Depends-on, Makefile.am): Likewise.
35650         * modules/sys_file (Makefile.am): Likewise.
35651         * modules/getopt-posix (Makefile.am): Delete unused link warning
35652         efforts.
35653         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35654         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35655         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35656         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35657
35658         stdio: remove unused variables
35659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35661         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35662
35663         tests: test more substitute headers
35664         * modules/ctype-tests: New file.
35665         * modules/dirent-tests: Likewise.
35666         * modules/spawn-tests: Likewise.
35667         * modules/sys_file-tests: Likewise.
35668         * modules/sys_ioctl-tests: Likewise.
35669         * modules/sys_wait-tests: Likewise.
35670         * tests/test-ctype.c: Likewise.
35671         * tests/test-dirent.c: Likewise.
35672         * tests/test-spawn.c: Likewise.
35673         * tests/test-sys_file.c: Likewise.
35674         * tests/test-sys_ioctl.c: Likewise.
35675         * tests/test-sys_wait.c: Likewise.
35676         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35677         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35678         whether or not flock is in use.
35679
35680         tests: remove License section from module
35681         * modules/arpa_inet-tests: Remove unneeded section.
35682         * modules/byteswap-tests: Likewise.
35683         * modules/ceilf-tests: Likewise.
35684         * modules/ceill-tests: Likewise.
35685         * modules/crypto/des-tests: Likewise.
35686         * modules/crypto/gc-arcfour-tests: Likewise.
35687         * modules/crypto/gc-arctwo-tests: Likewise.
35688         * modules/crypto/gc-des-tests: Likewise.
35689         * modules/crypto/gc-hmac-md5-tests: Likewise.
35690         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35691         * modules/crypto/gc-md2-tests: Likewise.
35692         * modules/crypto/gc-md4-tests: Likewise.
35693         * modules/crypto/gc-md5-tests: Likewise.
35694         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35695         * modules/crypto/gc-rijndael-tests: Likewise.
35696         * modules/crypto/gc-sha1-tests: Likewise.
35697         * modules/crypto/gc-tests: Likewise.
35698         * modules/crypto/md2-tests: Likewise.
35699         * modules/crypto/md4-tests: Likewise.
35700         * modules/fcntl-h-tests: Likewise.
35701         * modules/floorf-tests: Likewise.
35702         * modules/floorl-tests: Likewise.
35703         * modules/frexp-nolibm-tests: Likewise.
35704         * modules/frexp-tests: Likewise.
35705         * modules/frexpl-nolibm-tests: Likewise.
35706         * modules/frexpl-tests: Likewise.
35707         * modules/getaddrinfo-tests: Likewise.
35708         * modules/inttypes-tests: Likewise.
35709         * modules/isfinite-tests: Likewise.
35710         * modules/isinf-tests: Likewise.
35711         * modules/ldexpl-tests: Likewise.
35712         * modules/locale-tests: Likewise.
35713         * modules/math-tests: Likewise.
35714         * modules/netdb-tests: Likewise.
35715         * modules/netinet_in-tests: Likewise.
35716         * modules/printf-frexp-tests: Likewise.
35717         * modules/printf-frexpl-tests: Likewise.
35718         * modules/priv-set-tests: Likewise.
35719         * modules/random_r-tests: Likewise.
35720         * modules/round-tests: Likewise.
35721         * modules/roundf-tests: Likewise.
35722         * modules/roundl-tests: Likewise.
35723         * modules/search-tests: Likewise.
35724         * modules/select-tests: Likewise.
35725         * modules/signal-tests: Likewise.
35726         * modules/stdbool-tests: Likewise.
35727         * modules/stddef-tests: Likewise.
35728         * modules/stdint-tests: Likewise.
35729         * modules/stdio-tests: Likewise.
35730         * modules/stdlib-tests: Likewise.
35731         * modules/string-tests: Likewise.
35732         * modules/strings-tests: Likewise.
35733         * modules/sys_select-tests: Likewise.
35734         * modules/sys_socket-tests: Likewise.
35735         * modules/sys_stat-tests: Likewise.
35736         * modules/sys_time-tests: Likewise.
35737         * modules/sys_utsname-tests: Likewise.
35738         * modules/sysexits-tests: Likewise.
35739         * modules/time-tests: Likewise.
35740         * modules/trunc-tests: Likewise.
35741         * modules/truncf-tests: Likewise.
35742         * modules/truncl-tests: Likewise.
35743         * modules/tsearch-tests: Likewise.
35744         * modules/unistd-tests: Likewise.
35745         * modules/wchar-tests: Likewise.
35746         * modules/wctype-tests: Likewise.
35747
35748         tests: fix license on several tests
35749         * tests/test-des.c: Update to GPLv3+.
35750         * tests/test-flock.c: Likewise.
35751         * tests/test-fsync.c: Likewise.
35752         * tests/test-futimens.h: Likewise.
35753         * tests/test-gc-arcfour.c: Likewise.
35754         * tests/test-gc-arctwo.c: Likewise.
35755         * tests/test-gc-des.c: Likewise.
35756         * tests/test-gc-hmac-md5.c: Likewise.
35757         * tests/test-gc-hmac-sha1.c: Likewise.
35758         * tests/test-gc-md2.c: Likewise.
35759         * tests/test-gc-md4.c: Likewise.
35760         * tests/test-gc-md5.c: Likewise.
35761         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35762         * tests/test-gc-rijndael.c: Likewise.
35763         * tests/test-gc-sha1.c: Likewise.
35764         * tests/test-gc.c: Likewise.
35765         * tests/test-getcwd.c: Likewise.
35766         * tests/test-link.c: Likewise.
35767         * tests/test-link.h: Likewise.
35768         * tests/test-lutimens.h: Likewise.
35769         * tests/test-md2.c: Likewise.
35770         * tests/test-md4.c: Likewise.
35771         * tests/test-mkdir.h: Likewise.
35772         * tests/test-rename.c: Likewise.
35773         * tests/test-rename.h: Likewise.
35774         * tests/test-safe-alloc.c: Likewise.
35775         * tests/test-utimens-common.h: Likewise.
35776         * tests/test-utimens.h: Likewise.
35777
35778         maint: sync license texts
35779         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35780         * doc/gpl-3.0.texi: Revert copyright year update.
35781         * doc/lgpl-3.0.texi: Likewise.
35782
35783 2009-12-29  Jim Meyering  <meyering@redhat.com>
35784
35785         update nearly all FSF copyright year lists to include 2009
35786         The files named by the following are exempted:
35787             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35788               test -f "$dst" && { echo "$dst"; continue; }
35789               test -d "$dst" || continue
35790               echo "$dst"/$(basename "$src")
35791             done > exempt
35792             git ls-files tests/unictype >> exempt
35793         In the remaining files, convert to all-interval notation if
35794         - there is already at least one year interval like 2000-2003
35795         - the file is maintained by me
35796         - the file is in lib/uni*/, where that style already prevails
35797         Otherwise, use update-copyright's default.
35798
35799 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35800         and Eric Blake  <ebb9@byu.net>
35801
35802         tests: don't require debug system() to pass
35803         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35804         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35805         * tests/test-unlink.h (test_unlink_func): Likewise.
35806         * tests/test-fstatat.c (main): ...into callers.
35807         * tests/test-lstat.c (main): Likewise.
35808         * tests/test-rmdir.c (main): Likewise.
35809         * tests/test-unlink.c (main): Likewise.
35810         * tests/test-unlinkat.c (main): Likewise.
35811         * tests/test-areadlink-with-size.c (main): Don't require a
35812         debug-only system call to pass, aiding cross-testing to mingw.
35813         * tests/test-areadlink.c (main): Likewise.
35814         * tests/test-areadlinkat-with-size.c (main): Likewise.
35815         * tests/test-areadlinkat.c (main): Likewise.
35816         * tests/test-canonicalize-lgpl.c (main): Likewise.
35817         * tests/test-canonicalize.c (main): Likewise.
35818         * tests/test-chown.c (main): Likewise.
35819         * tests/test-fchownat.c (main): Likewise.
35820         * tests/test-lchown.c (main): Likewise.
35821         * tests/test-fdutimensat.c (main): Likewise.
35822         * tests/test-futimens.c (main): Likewise.
35823         * tests/test-link.c (main): Likewise.
35824         * tests/test-linkat.c (main): Likewise.
35825         * tests/test-mkdir.c (main): Likewise.
35826         * tests/test-mkdirat.c (main): Likewise.
35827         * tests/test-mkfifo.c (main): Likewise.
35828         * tests/test-mkfifoat.c (main): Likewise.
35829         * tests/test-mknod.c (main): Likewise.
35830         * tests/test-readlink.c (main): Likewise.
35831         * tests/test-remove.c (main): Likewise.
35832         * tests/test-rename.c (main): Likewise.
35833         * tests/test-renameat.c (main): Likewise.
35834         * tests/test-symlink.c (main): Likewise.
35835         * tests/test-symlinkat.c (main): Likewise.
35836         * tests/test-utimens.c (main): Likewise.
35837         * tests/test-utimensat.c (main): Likewise.
35838
35839 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35840
35841         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35842         on $(UNUSED_PARAMETER_H) to avoid build failure.
35843
35844 2009-12-28  Jim Meyering  <meyering@redhat.com>
35845
35846         update-copyright: you may specify a max. line length other than 72
35847         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35848
35849         maint: use consistent FSF copyright line syntax
35850         * lib/posixtm.c: Add missing comma in FSF copyright line.
35851         * lib/posixtm.h: Likewise.
35852         * lib/getugroups.c: Add missing ", Inc.".
35853
35854         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35855         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35856         FSF copyright line.  Remove trailing blanks.
35857
35858 2009-12-28  Eric Blake  <ebb9@byu.net>
35859
35860         test-dup2: reduce dependencies
35861         * modules/cloexec (Configure.ac): Set witness.
35862         * modules/dup2-tests (Depends-on): Drop cloexec.
35863         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35864         not present.
35865         Suggested by Bruno Haible.
35866
35867 2009-12-26  Bruno Haible  <bruno@clisp.org>
35868
35869         Remove an unneeded dependency.
35870         * modules/fseterr (Depends-on): Remove dup2.
35871
35872 2009-12-26  Eric Blake  <ebb9@byu.net>
35873
35874         tests: use macros.h in more places
35875         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35876         (ASSERT_STREAM): Provide default of stderr.
35877         * tests/test-dirent-safer.c: Include macros.h, using alternate
35878         stream for assertions.
35879         * tests/test-dup-safer.c: Likewise.
35880         * tests/test-freopen-safer.c: Likewise.
35881         * tests/test-getopt.c: Likewise.
35882         * tests/test-openat-safer.c: Likewise.
35883         * tests/test-pipe.c: Likewise.
35884         * tests/test-popen-safer.c: Likewise.
35885         * modules/dirent-safer-tests (Files): Include macros.h.
35886         * modules/unistd-safer-tests (Files): Likewise.
35887         * modules/freopen-safer-tests (Files): Likewise.
35888         * modules/getopt-posix-tests (Files): Likewise.
35889         * modules/openat-safer-tests (Files): Likewise.
35890         * modules/pipe-tests (Files): Likewise.
35891
35892 2009-12-26  Bruno Haible  <bruno@clisp.org>
35893
35894         javacomp: Portability fix.
35895         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35896         that it also works on Solaris.
35897
35898 2009-12-26  Bruno Haible  <bruno@clisp.org>
35899
35900         localename: Fix storage allocation of gl_locale_name_thread's result.
35901         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35902         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35903         all platforms that have 'uselocale'.
35904         (gl_locale_name_thread_unsafe): New function, extracted from
35905         gl_locale_name_thread.
35906         (gl_locale_name_thread): Call struniq on all platforms that have
35907         'uselocale'.
35908         * tests/test-localename.c (test_locale_name_thread): Check that the
35909         resulting strings are permanently allocated.
35910         * modules/localename-tests (Depends-on): Add strdup.
35911
35912 2009-12-26  Bruno Haible  <bruno@clisp.org>
35913
35914         * tests/test-localename.c (categories): Fill in the strings.
35915
35916 2009-12-26  Jim Meyering  <meyering@redhat.com>
35917
35918         isdir: complete the removal of m4/isdir.m4
35919         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35920
35921         isdir: clean up, since at least grep still uses it
35922         * lib/isdir.c: Include "isdir.h".
35923         (S_ISDIR): Remove now-unneeded definition.
35924         * modules/isdir (Files): Add lib/isdir.h.
35925         * lib/isdir.h: New file, with declaration.
35926         * m4/isdir.m4: Remove file -- unneeded.
35927
35928 2009-12-25  Bruno Haible  <bruno@clisp.org>
35929
35930         selinux-h: Make generated .h files standalone.
35931         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35932         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35933         * lib/se-selinux.in.h: Likewise.
35934         * modules/selinux-h (Depends-on): Add unused-parameter.
35935         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35936         selinux/selinux.h and selinux/context.h.
35937         Suggested by Eric Blake.
35938
35939 2009-12-25  Bruno Haible  <bruno@clisp.org>
35940
35941         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35942         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35943         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35944         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35945         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35946
35947 2009-12-24  Bruno Haible  <bruno@clisp.org>
35948
35949         openat: Fix warning.
35950         * lib/openat-proc.c: Include <unistd.h>.
35951
35952 2009-12-24  Bruno Haible  <bruno@clisp.org>
35953
35954         New module 'unused-parameter'.
35955         * build-aux/unused-parameter.h: New file, extracted from earlier
35956         gnulib-common.m4.
35957         * modules/unused-parameter: New file.
35958         * lib/unistr.h: Include unused-parameter.h.
35959         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35960         _GL_UNUSED.
35961         * modules/unistr/base (Depends-on): Add unused-parameter.
35962
35963 2009-12-24  Bruno Haible  <bruno@clisp.org>
35964
35965         Add missing dependencies to 'extensions' module.
35966         * m4/extensions.m4: Add comment.
35967         * modules/accept4 (Depends-on): Add extensions.
35968         * modules/dup3 (Depends-on): Likewise.
35969         * modules/fcntl (Depends-on): Likewise.
35970         * modules/futimens (Depends-on): Likewise.
35971         * modules/mknod (Depends-on): Likewise.
35972         * modules/pipe2 (Depends-on): Likewise.
35973         * modules/stat-time (Depends-on): Likewise.
35974         * modules/strcasestr-simple (Depends-on): Likewise.
35975         * modules/strsignal (Depends-on): Likewise.
35976         * modules/utimensat (Depends-on): Likewise.
35977         * modules/localcharset (Depends-on): Likewise. Needed because of
35978         gl_FCNTL_O_FLAGS.
35979         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35980         AC_TYPE_MBSTATE_T.
35981         * modules/wcsnrtombs (Depends-on): Likewise.
35982         * modules/wcsrtombs (Depends-on): Likewise.
35983
35984 2009-12-24  Bruno Haible  <bruno@clisp.org>
35985
35986         binary-io: Avoid gcc warning due to SET_BINARY.
35987         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35988         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35989
35990 2009-12-24  Bruno Haible  <bruno@clisp.org>
35991
35992         Avoid future namespace pollution on glibc systems.
35993         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35994         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35995         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35996         glibc systems.
35997
35998 2009-12-24  Bruno Haible  <bruno@clisp.org>
35999
36000         Refactor common macros used in tests.
36001         * tests/macros.h: New file.
36002         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36003         and/or <stdlib.h>, if appropriate.
36004         (ASSERT, SIZEOF): Remove macros.
36005         * tests/test-areadlink-with-size.c: Likewise.
36006         * tests/test-areadlinkat.c: Likewise.
36007         * tests/test-areadlinkat-with-size.c: Likewise.
36008         * tests/test-argmatch.c: Likewise.
36009         * tests/test-argv-iter.c: Likewise.
36010         * tests/test-array-mergesort.c: Likewise.
36011         * tests/test-array_list.c: Likewise.
36012         * tests/test-array_oset.c: Likewise.
36013         * tests/test-avltree_list.c: Likewise.
36014         * tests/test-avltree_oset.c: Likewise.
36015         * tests/test-avltreehash_list.c: Likewise.
36016         * tests/test-base64.c: Likewise.
36017         * tests/test-binary-io.c: Likewise.
36018         * tests/test-bitrotate.c: Likewise.
36019         * tests/test-btowc.c: Likewise.
36020         * tests/test-byteswap.c: Likewise.
36021         * tests/test-c-ctype.c: Likewise.
36022         * tests/test-c-stack.c: Likewise.
36023         * tests/test-c-strcasecmp.c: Likewise.
36024         * tests/test-c-strcasestr.c: Likewise.
36025         * tests/test-c-strncasecmp.c: Likewise.
36026         * tests/test-c-strstr.c: Likewise.
36027         * tests/test-canonicalize-lgpl.c: Likewise.
36028         * tests/test-canonicalize.c: Likewise.
36029         * tests/test-carray_list.c: Likewise.
36030         * tests/test-ceilf1.c: Likewise.
36031         * tests/test-ceilf2.c: Likewise.
36032         * tests/test-ceill.c: Likewise.
36033         * tests/test-chown.c: Likewise.
36034         * tests/test-cloexec.c: Likewise.
36035         * tests/test-copy-acl.c: Likewise.
36036         * tests/test-copy-file.c: Likewise.
36037         * tests/test-count-one-bits.c: Likewise.
36038         * tests/test-dprintf-posix.c: Likewise.
36039         * tests/test-dup2.c: Likewise.
36040         * tests/test-dup3.c: Likewise.
36041         * tests/test-duplocale.c: Likewise.
36042         * tests/test-fbufmode.c: Likewise.
36043         * tests/test-fchdir.c: Likewise.
36044         * tests/test-fchownat.c: Likewise.
36045         * tests/test-fcntl-safer.c: Likewise.
36046         * tests/test-fcntl.c: Likewise.
36047         * tests/test-fdopendir.c: Likewise.
36048         * tests/test-fdutimensat.c: Likewise.
36049         * tests/test-fflush2.c: Likewise.
36050         * tests/test-file-has-acl.c: Likewise.
36051         * tests/test-filevercmp.c: Likewise.
36052         * tests/test-flock.c: Likewise.
36053         * tests/test-floorf1.c: Likewise.
36054         * tests/test-floorf2.c: Likewise.
36055         * tests/test-floorl.c: Likewise.
36056         * tests/test-fnmatch.c: Likewise.
36057         * tests/test-fopen.h: Likewise.
36058         * tests/test-fpending.c: Likewise.
36059         * tests/test-fprintf-posix.c: Likewise.
36060         * tests/test-fpurge.c: Likewise.
36061         * tests/test-freadable.c: Likewise.
36062         * tests/test-freadahead.c: Likewise.
36063         * tests/test-freading.c: Likewise.
36064         * tests/test-freadptr.c: Likewise.
36065         * tests/test-freadptr2.c: Likewise.
36066         * tests/test-freadseek.c: Likewise.
36067         * tests/test-freopen.c: Likewise.
36068         * tests/test-frexp.c: Likewise.
36069         * tests/test-frexpl.c: Likewise.
36070         * tests/test-fseek.c: Likewise.
36071         * tests/test-fseeko.c: Likewise.
36072         * tests/test-fstatat.c: Likewise.
36073         * tests/test-fstrcmp.c: Likewise.
36074         * tests/test-fsync.c: Likewise.
36075         * tests/test-ftell.c: Likewise.
36076         * tests/test-ftello.c: Likewise.
36077         * tests/test-func.c: Likewise.
36078         * tests/test-futimens.c: Likewise.
36079         * tests/test-fwritable.c: Likewise.
36080         * tests/test-fwriting.c: Likewise.
36081         * tests/test-getcwd.c: Likewise.
36082         * tests/test-getdate.c: Likewise.
36083         * tests/test-getdelim.c: Likewise.
36084         * tests/test-getdtablesize.c: Likewise.
36085         * tests/test-getgroups.c: Likewise.
36086         * tests/test-getline.c: Likewise.
36087         * tests/test-getndelim2.c: Likewise.
36088         * tests/test-glob.c: Likewise.
36089         * tests/test-hash.c: Likewise.
36090         * tests/test-i-ring.c: Likewise.
36091         * tests/test-iconv-utf.c: Likewise.
36092         * tests/test-iconv.c: Likewise.
36093         * tests/test-idpriv-drop.c: Likewise.
36094         * tests/test-idpriv-droptemp.c: Likewise.
36095         * tests/test-inet_ntop.c: Likewise.
36096         * tests/test-inet_pton.c: Likewise.
36097         * tests/test-isblank.c: Likewise.
36098         * tests/test-isfinite.c: Likewise.
36099         * tests/test-isinf.c: Likewise.
36100         * tests/test-isnan.c: Likewise.
36101         * tests/test-isnand.h: Likewise.
36102         * tests/test-isnanf.h: Likewise.
36103         * tests/test-isnanl.h: Likewise.
36104         * tests/test-lchown.c: Likewise.
36105         * tests/test-ldexpl.c: Likewise.
36106         * tests/test-link.c: Likewise.
36107         * tests/test-linkat.c: Likewise.
36108         * tests/test-linked_list.c: Likewise.
36109         * tests/test-linkedhash_list.c: Likewise.
36110         * tests/test-localename.c: Likewise.
36111         * tests/test-lseek.c: Likewise.
36112         * tests/test-lstat.c: Likewise.
36113         * tests/test-mbmemcasecmp.c: Likewise.
36114         * tests/test-mbmemcasecoll.c: Likewise.
36115         * tests/test-mbrtowc.c: Likewise.
36116         * tests/test-mbscasecmp.c: Likewise.
36117         * tests/test-mbscasestr1.c: Likewise.
36118         * tests/test-mbscasestr2.c: Likewise.
36119         * tests/test-mbscasestr3.c: Likewise.
36120         * tests/test-mbscasestr4.c: Likewise.
36121         * tests/test-mbschr.c: Likewise.
36122         * tests/test-mbscspn.c: Likewise.
36123         * tests/test-mbsinit.c: Likewise.
36124         * tests/test-mbsncasecmp.c: Likewise.
36125         * tests/test-mbsnrtowcs.c: Likewise.
36126         * tests/test-mbspbrk.c: Likewise.
36127         * tests/test-mbspcasecmp.c: Likewise.
36128         * tests/test-mbsrchr.c: Likewise.
36129         * tests/test-mbsrtowcs.c: Likewise.
36130         * tests/test-mbsspn.c: Likewise.
36131         * tests/test-mbsstr1.c: Likewise.
36132         * tests/test-mbsstr2.c: Likewise.
36133         * tests/test-mbsstr3.c: Likewise.
36134         * tests/test-memchr.c: Likewise.
36135         * tests/test-memchr2.c: Likewise.
36136         * tests/test-memcmp.c: Likewise.
36137         * tests/test-memmem.c: Likewise.
36138         * tests/test-memrchr.c: Likewise.
36139         * tests/test-mkdir.c: Likewise.
36140         * tests/test-mkdirat.c: Likewise.
36141         * tests/test-mkfifo.c: Likewise.
36142         * tests/test-mkfifoat.c: Likewise.
36143         * tests/test-mknod.c: Likewise.
36144         * tests/test-nanosleep.c: Likewise.
36145         * tests/test-nl_langinfo.c: Likewise.
36146         * tests/test-obstack-printf.c: Likewise.
36147         * tests/test-open.c: Likewise.
36148         * tests/test-openat.c: Likewise.
36149         * tests/test-pipe-filter-gi1.c: Likewise.
36150         * tests/test-pipe-filter-gi2-main.c: Likewise.
36151         * tests/test-pipe-filter-ii1.c: Likewise.
36152         * tests/test-pipe-filter-ii2-main.c: Likewise.
36153         * tests/test-pipe2.c: Likewise.
36154         * tests/test-popen.h: Likewise.
36155         * tests/test-posixtm.c: Likewise.
36156         * tests/test-pread.c: Likewise.
36157         * tests/test-printf-frexp.c: Likewise.
36158         * tests/test-printf-frexpl.c: Likewise.
36159         * tests/test-printf-posix.c: Likewise.
36160         * tests/test-priv-set.c: Likewise.
36161         * tests/test-quotearg.c: Likewise.
36162         * tests/test-random_r.c: Likewise.
36163         * tests/test-rawmemchr.c: Likewise.
36164         * tests/test-rbtree_list.c: Likewise.
36165         * tests/test-rbtree_oset.c: Likewise.
36166         * tests/test-rbtreehash_list.c: Likewise.
36167         * tests/test-readlink.c: Likewise.
36168         * tests/test-remove.c: Likewise.
36169         * tests/test-rename.c: Likewise.
36170         * tests/test-renameat.c: Likewise.
36171         * tests/test-rmdir.c: Likewise.
36172         * tests/test-round1.c: Likewise.
36173         * tests/test-roundf1.c: Likewise.
36174         * tests/test-roundl.c: Likewise.
36175         * tests/test-safe-alloc.c: Likewise.
36176         * tests/test-sameacls.c: Likewise.
36177         * tests/test-set-mode-acl.c: Likewise.
36178         * tests/test-setenv.c: Likewise.
36179         * tests/test-sigaction.c: Likewise.
36180         * tests/test-signbit.c: Likewise.
36181         * tests/test-sleep.c: Likewise.
36182         * tests/test-snprintf-posix.c: Likewise.
36183         * tests/test-snprintf.c: Likewise.
36184         * tests/test-sprintf-posix.c: Likewise.
36185         * tests/test-stat-time.c: Likewise.
36186         * tests/test-stat.c: Likewise.
36187         * tests/test-strcasestr.c: Likewise.
36188         * tests/test-strchrnul.c: Likewise.
36189         * tests/test-strerror.c: Likewise.
36190         * tests/test-striconv.c: Likewise.
36191         * tests/test-striconveh.c: Likewise.
36192         * tests/test-striconveha.c: Likewise.
36193         * tests/test-strsignal.c: Likewise.
36194         * tests/test-strstr.c: Likewise.
36195         * tests/test-strtod.c: Likewise.
36196         * tests/test-strverscmp.c: Likewise.
36197         * tests/test-symlink.c: Likewise.
36198         * tests/test-symlinkat.c: Likewise.
36199         * tests/test-trunc1.c: Likewise.
36200         * tests/test-trunc2.c: Likewise.
36201         * tests/test-truncf1.c: Likewise.
36202         * tests/test-truncf2.c: Likewise.
36203         * tests/test-truncl.c: Likewise.
36204         * tests/test-uname.c: Likewise.
36205         * tests/test-unlink.c: Likewise.
36206         * tests/test-unlinkat.c: Likewise.
36207         * tests/test-unsetenv.c: Likewise.
36208         * tests/test-usleep.c: Likewise.
36209         * tests/test-utimens.c: Likewise.
36210         * tests/test-utimensat.c: Likewise.
36211         * tests/test-vasnprintf-posix.c: Likewise.
36212         * tests/test-vasnprintf-posix2.c: Likewise.
36213         * tests/test-vasnprintf.c: Likewise.
36214         * tests/test-vasprintf-posix.c: Likewise.
36215         * tests/test-vasprintf.c: Likewise.
36216         * tests/test-vdprintf-posix.c: Likewise.
36217         * tests/test-vfprintf-posix.c: Likewise.
36218         * tests/test-vprintf-posix.c: Likewise.
36219         * tests/test-vsnprintf-posix.c: Likewise.
36220         * tests/test-vsnprintf.c: Likewise.
36221         * tests/test-vsprintf-posix.c: Likewise.
36222         * tests/test-wcrtomb.c: Likewise.
36223         * tests/test-wcsnrtombs.c: Likewise.
36224         * tests/test-wcsrtombs.c: Likewise.
36225         * tests/test-wctype.c: Likewise.
36226         * tests/test-wcwidth.c: Likewise.
36227         * tests/test-xfprintf-posix.c: Likewise.
36228         * tests/test-xmemdup0.c: Likewise.
36229         * tests/test-xprintf-posix.c: Likewise.
36230         * tests/test-xvasprintf.c: Likewise.
36231         * tests/unicase/test-locale-language.c: Likewise.
36232         * tests/unicase/test-mapping-part1.h: Likewise.
36233         * tests/unicase/test-predicate-part1.h: Likewise.
36234         * tests/unicase/test-u8-casecmp.c: Likewise.
36235         * tests/unicase/test-u8-casecoll.c: Likewise.
36236         * tests/unicase/test-u8-casefold.c: Likewise.
36237         * tests/unicase/test-u8-is-cased.c: Likewise.
36238         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36239         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36240         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36241         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36242         * tests/unicase/test-u8-tolower.c: Likewise.
36243         * tests/unicase/test-u8-totitle.c: Likewise.
36244         * tests/unicase/test-u8-toupper.c: Likewise.
36245         * tests/unicase/test-u16-casecmp.c: Likewise.
36246         * tests/unicase/test-u16-casecoll.c: Likewise.
36247         * tests/unicase/test-u16-casefold.c: Likewise.
36248         * tests/unicase/test-u16-is-cased.c: Likewise.
36249         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36250         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36251         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36252         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36253         * tests/unicase/test-u16-tolower.c: Likewise.
36254         * tests/unicase/test-u16-totitle.c: Likewise.
36255         * tests/unicase/test-u16-toupper.c: Likewise.
36256         * tests/unicase/test-u32-casecmp.c: Likewise.
36257         * tests/unicase/test-u32-casecoll.c: Likewise.
36258         * tests/unicase/test-u32-casefold.c: Likewise.
36259         * tests/unicase/test-u32-is-cased.c: Likewise.
36260         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36261         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36262         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36263         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36264         * tests/unicase/test-u32-tolower.c: Likewise.
36265         * tests/unicase/test-u32-totitle.c: Likewise.
36266         * tests/unicase/test-u32-toupper.c: Likewise.
36267         * tests/unicase/test-ulc-casecmp.c: Likewise.
36268         * tests/unicase/test-ulc-casecoll.c: Likewise.
36269         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36270         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36271         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36272         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36273         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36274         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36275         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36276         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36277         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36278         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36279         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36280         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36281         * tests/unictype/test-bidi_byname.c: Likewise.
36282         * tests/unictype/test-bidi_name.c: Likewise.
36283         * tests/unictype/test-bidi_of.c: Likewise.
36284         * tests/unictype/test-bidi_test.c: Likewise.
36285         * tests/unictype/test-block_list.c: Likewise.
36286         * tests/unictype/test-block_of.c: Likewise.
36287         * tests/unictype/test-block_test.c: Likewise.
36288         * tests/unictype/test-categ_and.c: Likewise.
36289         * tests/unictype/test-categ_and_not.c: Likewise.
36290         * tests/unictype/test-categ_byname.c: Likewise.
36291         * tests/unictype/test-categ_name.c: Likewise.
36292         * tests/unictype/test-categ_none.c: Likewise.
36293         * tests/unictype/test-categ_of.c: Likewise.
36294         * tests/unictype/test-categ_or.c: Likewise.
36295         * tests/unictype/test-categ_test_withtable.c: Likewise.
36296         * tests/unictype/test-combining.c: Likewise.
36297         * tests/unictype/test-decdigit.c: Likewise.
36298         * tests/unictype/test-digit.c: Likewise.
36299         * tests/unictype/test-mirror.c: Likewise.
36300         * tests/unictype/test-numeric.c: Likewise.
36301         * tests/unictype/test-pr_byname.c: Likewise.
36302         * tests/unictype/test-pr_test.c: Likewise.
36303         * tests/unictype/test-predicate-part1.h: Likewise.
36304         * tests/unictype/test-scripts.c: Likewise.
36305         * tests/unictype/test-sy_c_ident.c: Likewise.
36306         * tests/unictype/test-sy_java_ident.c: Likewise.
36307         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36308         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36309         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36310         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36311         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36312         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36313         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36314         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36315         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36316         * tests/uninorm/test-compat-decomposition.c: Likewise.
36317         * tests/uninorm/test-composition.c: Likewise.
36318         * tests/uninorm/test-decomposing-form.c: Likewise.
36319         * tests/uninorm/test-decomposition.c: Likewise.
36320         * tests/uninorm/test-u8-nfc.c: Likewise.
36321         * tests/uninorm/test-u8-nfd.c: Likewise.
36322         * tests/uninorm/test-u8-nfkc.c: Likewise.
36323         * tests/uninorm/test-u8-nfkd.c: Likewise.
36324         * tests/uninorm/test-u8-normcmp.c: Likewise.
36325         * tests/uninorm/test-u8-normcoll.c: Likewise.
36326         * tests/uninorm/test-u16-nfc.c: Likewise.
36327         * tests/uninorm/test-u16-nfd.c: Likewise.
36328         * tests/uninorm/test-u16-nfkc.c: Likewise.
36329         * tests/uninorm/test-u16-nfkd.c: Likewise.
36330         * tests/uninorm/test-u16-normcmp.c: Likewise.
36331         * tests/uninorm/test-u16-normcoll.c: Likewise.
36332         * tests/uninorm/test-u32-nfc.c: Likewise.
36333         * tests/uninorm/test-u32-nfd.c: Likewise.
36334         * tests/uninorm/test-u32-nfkc.c: Likewise.
36335         * tests/uninorm/test-u32-nfkd.c: Likewise.
36336         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36337         * tests/uninorm/test-u32-normcmp.c: Likewise.
36338         * tests/uninorm/test-u32-normcoll.c: Likewise.
36339         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36340         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36341         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36342         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36343         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36344         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36345         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36346         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36347         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36348         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36349         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36350         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36351         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36352         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36353         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36354         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36355         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36356         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36357         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36358         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36359         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36360         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36361         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36362         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36363         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36364         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36365         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36366         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36367         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36368         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36369         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36370         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36371         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36372         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36373         * tests/uniwidth/test-u8-width.c: Likewise.
36374         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36375         * tests/uniwidth/test-u16-width.c: Likewise.
36376         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36377         * tests/uniwidth/test-u32-width.c: Likewise.
36378         * tests/uniwidth/test-uc_width.c: Likewise.
36379         * tests/uniwidth/test-uc_width2.c: Likewise.
36380         * modules/acl-tests (Files): Add tests/macros.h.
36381         * modules/areadlink-tests (Files): Likewise.
36382         * modules/areadlink-with-size-tests (Files): Likewise.
36383         * modules/areadlinkat-tests (Files): Likewise.
36384         * modules/areadlinkat-with-size-tests (Files): Likewise.
36385         * modules/argmatch-tests (Files): Likewise.
36386         * modules/argv-iter-tests (Files): Likewise.
36387         * modules/array-list-tests (Files): Likewise.
36388         * modules/array-mergesort-tests (Files): Likewise.
36389         * modules/array-oset-tests (Files): Likewise.
36390         * modules/avltree-list-tests (Files): Likewise.
36391         * modules/avltree-oset-tests (Files): Likewise.
36392         * modules/avltreehash-list-tests (Files): Likewise.
36393         * modules/base64-tests (Files): Likewise.
36394         * modules/binary-io-tests (Files): Likewise.
36395         * modules/bitrotate-tests (Files): Likewise.
36396         * modules/btowc-tests (Files): Likewise.
36397         * modules/byteswap-tests (Files): Likewise.
36398         * modules/c-ctype-tests (Files): Likewise.
36399         * modules/c-stack-tests (Files): Likewise.
36400         * modules/c-strcase-tests (Files): Likewise.
36401         * modules/c-strcasestr-tests (Files): Likewise.
36402         * modules/c-strstr-tests (Files): Likewise.
36403         * modules/canonicalize-lgpl-tests (Files): Likewise.
36404         * modules/canonicalize-tests (Files): Likewise.
36405         * modules/carray-list-tests (Files): Likewise.
36406         * modules/ceilf-tests (Files): Likewise.
36407         * modules/ceill-tests (Files): Likewise.
36408         * modules/chown-tests (Files): Likewise.
36409         * modules/cloexec-tests (Files): Likewise.
36410         * modules/copy-file-tests (Files): Likewise.
36411         * modules/count-one-bits-tests (Files): Likewise.
36412         * modules/dprintf-posix-tests (Files): Likewise.
36413         * modules/dup2-tests (Files): Likewise.
36414         * modules/dup3-tests (Files): Likewise.
36415         * modules/duplocale-tests (Files): Likewise.
36416         * modules/fbufmode-tests (Files): Likewise.
36417         * modules/fchdir-tests (Files): Likewise.
36418         * modules/fcntl-safer-tests (Files): Likewise.
36419         * modules/fcntl-tests (Files): Likewise.
36420         * modules/fdopendir-tests (Files): Likewise.
36421         * modules/fdutimensat-tests (Files): Likewise.
36422         * modules/fflush-tests (Files): Likewise.
36423         * modules/filevercmp-tests (Files): Likewise.
36424         * modules/flock-tests (Files): Likewise.
36425         * modules/floorf-tests (Files): Likewise.
36426         * modules/floorl-tests (Files): Likewise.
36427         * modules/fnmatch-tests (Files): Likewise.
36428         * modules/fopen-safer-tests (Files): Likewise.
36429         * modules/fopen-tests (Files): Likewise.
36430         * modules/fpending-tests (Files): Likewise.
36431         * modules/fprintf-posix-tests (Files): Likewise.
36432         * modules/fpurge-tests (Files): Likewise.
36433         * modules/freadable-tests (Files): Likewise.
36434         * modules/freadahead-tests (Files): Likewise.
36435         * modules/freading-tests (Files): Likewise.
36436         * modules/freadptr-tests (Files): Likewise.
36437         * modules/freadseek-tests (Files): Likewise.
36438         * modules/freopen-tests (Files): Likewise.
36439         * modules/frexp-nolibm-tests (Files): Likewise.
36440         * modules/frexp-tests (Files): Likewise.
36441         * modules/frexpl-nolibm-tests (Files): Likewise.
36442         * modules/frexpl-tests (Files): Likewise.
36443         * modules/fseek-tests (Files): Likewise.
36444         * modules/fseeko-tests (Files): Likewise.
36445         * modules/fstrcmp-tests (Files): Likewise.
36446         * modules/fsync-tests (Files): Likewise.
36447         * modules/ftell-tests (Files): Likewise.
36448         * modules/ftello-tests (Files): Likewise.
36449         * modules/func-tests (Files): Likewise.
36450         * modules/futimens-tests (Files): Likewise.
36451         * modules/fwritable-tests (Files): Likewise.
36452         * modules/fwriting-tests (Files): Likewise.
36453         * modules/getcwd-tests (Files): Likewise.
36454         * modules/getdate-tests (Files): Likewise.
36455         * modules/getdelim-tests (Files): Likewise.
36456         * modules/getdtablesize-tests (Files): Likewise.
36457         * modules/getgroups-tests (Files): Likewise.
36458         * modules/getline-tests (Files): Likewise.
36459         * modules/getndelim2-tests (Files): Likewise.
36460         * modules/glob-tests (Files): Likewise.
36461         * modules/hash-tests (Files): Likewise.
36462         * modules/i-ring-tests (Files): Likewise.
36463         * modules/iconv-tests (Files): Likewise.
36464         * modules/iconv_open-utf-tests (Files): Likewise.
36465         * modules/idpriv-drop-tests (Files): Likewise.
36466         * modules/idpriv-droptemp-tests (Files): Likewise.
36467         * modules/inet_ntop-tests (Files): Likewise.
36468         * modules/inet_pton-tests (Files): Likewise.
36469         * modules/isblank-tests (Files): Likewise.
36470         * modules/isfinite-tests (Files): Likewise.
36471         * modules/isinf-tests (Files): Likewise.
36472         * modules/isnan-tests (Files): Likewise.
36473         * modules/isnand-nolibm-tests (Files): Likewise.
36474         * modules/isnand-tests (Files): Likewise.
36475         * modules/isnanf-nolibm-tests (Files): Likewise.
36476         * modules/isnanf-tests (Files): Likewise.
36477         * modules/isnanl-nolibm-tests (Files): Likewise.
36478         * modules/isnanl-tests (Files): Likewise.
36479         * modules/lchown-tests (Files): Likewise.
36480         * modules/ldexpl-tests (Files): Likewise.
36481         * modules/link-tests (Files): Likewise.
36482         * modules/linkat-tests (Files): Likewise.
36483         * modules/linked-list-tests (Files): Likewise.
36484         * modules/linkedhash-list-tests (Files): Likewise.
36485         * modules/localename-tests (Files): Likewise.
36486         * modules/lseek-tests (Files): Likewise.
36487         * modules/lstat-tests (Files): Likewise.
36488         * modules/mbmemcasecmp-tests (Files): Likewise.
36489         * modules/mbmemcasecoll-tests (Files): Likewise.
36490         * modules/mbrtowc-tests (Files): Likewise.
36491         * modules/mbscasecmp-tests (Files): Likewise.
36492         * modules/mbscasestr-tests (Files): Likewise.
36493         * modules/mbschr-tests (Files): Likewise.
36494         * modules/mbscspn-tests (Files): Likewise.
36495         * modules/mbsinit-tests (Files): Likewise.
36496         * modules/mbsncasecmp-tests (Files): Likewise.
36497         * modules/mbsnrtowcs-tests (Files): Likewise.
36498         * modules/mbspbrk-tests (Files): Likewise.
36499         * modules/mbspcasecmp-tests (Files): Likewise.
36500         * modules/mbsrchr-tests (Files): Likewise.
36501         * modules/mbsrtowcs-tests (Files): Likewise.
36502         * modules/mbsspn-tests (Files): Likewise.
36503         * modules/mbsstr-tests (Files): Likewise.
36504         * modules/memchr-tests (Files): Likewise.
36505         * modules/memchr2-tests (Files): Likewise.
36506         * modules/memcmp-tests (Files): Likewise.
36507         * modules/memmem-tests (Files): Likewise.
36508         * modules/memrchr-tests (Files): Likewise.
36509         * modules/mkdir-tests (Files): Likewise.
36510         * modules/mkfifo-tests (Files): Likewise.
36511         * modules/mkfifoat-tests (Files): Likewise.
36512         * modules/mknod-tests (Files): Likewise.
36513         * modules/nanosleep-tests (Files): Likewise.
36514         * modules/nl_langinfo-tests (Files): Likewise.
36515         * modules/obstack-printf-tests (Files): Likewise.
36516         * modules/open-tests (Files): Likewise.
36517         * modules/openat-tests (Files): Likewise.
36518         * modules/pipe-filter-gi-tests (Files): Likewise.
36519         * modules/pipe-filter-ii-tests (Files): Likewise.
36520         * modules/pipe2-tests (Files): Likewise.
36521         * modules/popen-safer-tests (Files): Likewise.
36522         * modules/popen-tests (Files): Likewise.
36523         * modules/posixtm-tests (Files): Likewise.
36524         * modules/pread-tests (Files): Likewise.
36525         * modules/printf-frexp-tests (Files): Likewise.
36526         * modules/printf-frexpl-tests (Files): Likewise.
36527         * modules/printf-posix-tests (Files): Likewise.
36528         * modules/priv-set-tests (Files): Likewise.
36529         * modules/quotearg-tests (Files): Likewise.
36530         * modules/random_r-tests (Files): Likewise.
36531         * modules/rawmemchr-tests (Files): Likewise.
36532         * modules/rbtree-list-tests (Files): Likewise.
36533         * modules/rbtree-oset-tests (Files): Likewise.
36534         * modules/rbtreehash-list-tests (Files): Likewise.
36535         * modules/readlink-tests (Files): Likewise.
36536         * modules/remove-tests (Files): Likewise.
36537         * modules/rename-tests (Files): Likewise.
36538         * modules/renameat-tests (Files): Likewise.
36539         * modules/rmdir-tests (Files): Likewise.
36540         * modules/round-tests (Files): Likewise.
36541         * modules/roundf-tests (Files): Likewise.
36542         * modules/roundl-tests (Files): Likewise.
36543         * modules/safe-alloc-tests (Files): Likewise.
36544         * modules/setenv-tests (Files): Likewise.
36545         * modules/sigaction-tests (Files): Likewise.
36546         * modules/signbit-tests (Files): Likewise.
36547         * modules/sleep-tests (Files): Likewise.
36548         * modules/snprintf-posix-tests (Files): Likewise.
36549         * modules/snprintf-tests (Files): Likewise.
36550         * modules/sprintf-posix-tests (Files): Likewise.
36551         * modules/stat-tests (Files): Likewise.
36552         * modules/stat-time-tests (Files): Likewise.
36553         * modules/strcasestr-tests (Files): Likewise.
36554         * modules/strchrnul-tests (Files): Likewise.
36555         * modules/strerror-tests (Files): Likewise.
36556         * modules/striconv-tests (Files): Likewise.
36557         * modules/striconveh-tests (Files): Likewise.
36558         * modules/striconveha-tests (Files): Likewise.
36559         * modules/strsignal-tests (Files): Likewise.
36560         * modules/strstr-tests (Files): Likewise.
36561         * modules/strtod-tests (Files): Likewise.
36562         * modules/strverscmp-tests (Files): Likewise.
36563         * modules/symlink-tests (Files): Likewise.
36564         * modules/symlinkat-tests (Files): Likewise.
36565         * modules/trunc-tests (Files): Likewise.
36566         * modules/truncf-tests (Files): Likewise.
36567         * modules/truncl-tests (Files): Likewise.
36568         * modules/uname-tests (Files): Likewise.
36569         * modules/unicase/cased-tests (Files): Likewise.
36570         * modules/unicase/ignorable-tests (Files): Likewise.
36571         * modules/unicase/locale-language-tests (Files): Likewise.
36572         * modules/unicase/tolower-tests (Files): Likewise.
36573         * modules/unicase/totitle-tests (Files): Likewise.
36574         * modules/unicase/toupper-tests (Files): Likewise.
36575         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36576         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36577         * modules/unicase/u8-casefold-tests (Files): Likewise.
36578         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36579         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36580         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36581         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36582         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36583         * modules/unicase/u8-tolower-tests (Files): Likewise.
36584         * modules/unicase/u8-totitle-tests (Files): Likewise.
36585         * modules/unicase/u8-toupper-tests (Files): Likewise.
36586         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36587         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36588         * modules/unicase/u16-casefold-tests (Files): Likewise.
36589         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36590         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36591         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36592         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36593         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36594         * modules/unicase/u16-tolower-tests (Files): Likewise.
36595         * modules/unicase/u16-totitle-tests (Files): Likewise.
36596         * modules/unicase/u16-toupper-tests (Files): Likewise.
36597         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36598         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36599         * modules/unicase/u32-casefold-tests (Files): Likewise.
36600         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36601         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36602         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36603         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36604         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36605         * modules/unicase/u32-tolower-tests (Files): Likewise.
36606         * modules/unicase/u32-totitle-tests (Files): Likewise.
36607         * modules/unicase/u32-toupper-tests (Files): Likewise.
36608         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36609         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36610         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36611         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36612         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36613         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36614         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36615         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36616         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36617         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36618         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36619         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36620         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36621         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36622         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36623         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36624         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36625         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36626         * modules/unictype/block-list-tests (Files): Likewise.
36627         * modules/unictype/block-of-tests (Files): Likewise.
36628         * modules/unictype/block-test-tests (Files): Likewise.
36629         * modules/unictype/category-C-tests (Files): Likewise.
36630         * modules/unictype/category-Cc-tests (Files): Likewise.
36631         * modules/unictype/category-Cf-tests (Files): Likewise.
36632         * modules/unictype/category-Cn-tests (Files): Likewise.
36633         * modules/unictype/category-Co-tests (Files): Likewise.
36634         * modules/unictype/category-Cs-tests (Files): Likewise.
36635         * modules/unictype/category-L-tests (Files): Likewise.
36636         * modules/unictype/category-Ll-tests (Files): Likewise.
36637         * modules/unictype/category-Lm-tests (Files): Likewise.
36638         * modules/unictype/category-Lo-tests (Files): Likewise.
36639         * modules/unictype/category-Lt-tests (Files): Likewise.
36640         * modules/unictype/category-Lu-tests (Files): Likewise.
36641         * modules/unictype/category-M-tests (Files): Likewise.
36642         * modules/unictype/category-Mc-tests (Files): Likewise.
36643         * modules/unictype/category-Me-tests (Files): Likewise.
36644         * modules/unictype/category-Mn-tests (Files): Likewise.
36645         * modules/unictype/category-N-tests (Files): Likewise.
36646         * modules/unictype/category-Nd-tests (Files): Likewise.
36647         * modules/unictype/category-Nl-tests (Files): Likewise.
36648         * modules/unictype/category-No-tests (Files): Likewise.
36649         * modules/unictype/category-P-tests (Files): Likewise.
36650         * modules/unictype/category-Pc-tests (Files): Likewise.
36651         * modules/unictype/category-Pd-tests (Files): Likewise.
36652         * modules/unictype/category-Pe-tests (Files): Likewise.
36653         * modules/unictype/category-Pf-tests (Files): Likewise.
36654         * modules/unictype/category-Pi-tests (Files): Likewise.
36655         * modules/unictype/category-Po-tests (Files): Likewise.
36656         * modules/unictype/category-Ps-tests (Files): Likewise.
36657         * modules/unictype/category-S-tests (Files): Likewise.
36658         * modules/unictype/category-Sc-tests (Files): Likewise.
36659         * modules/unictype/category-Sk-tests (Files): Likewise.
36660         * modules/unictype/category-Sm-tests (Files): Likewise.
36661         * modules/unictype/category-So-tests (Files): Likewise.
36662         * modules/unictype/category-Z-tests (Files): Likewise.
36663         * modules/unictype/category-Zl-tests (Files): Likewise.
36664         * modules/unictype/category-Zp-tests (Files): Likewise.
36665         * modules/unictype/category-Zs-tests (Files): Likewise.
36666         * modules/unictype/category-and-not-tests (Files): Likewise.
36667         * modules/unictype/category-and-tests (Files): Likewise.
36668         * modules/unictype/category-byname-tests (Files): Likewise.
36669         * modules/unictype/category-name-tests (Files): Likewise.
36670         * modules/unictype/category-none-tests (Files): Likewise.
36671         * modules/unictype/category-of-tests (Files): Likewise.
36672         * modules/unictype/category-or-tests (Files): Likewise.
36673         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36674         * modules/unictype/combining-class-tests (Files): Likewise.
36675         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36676         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36677         * modules/unictype/ctype-blank-tests (Files): Likewise.
36678         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36679         * modules/unictype/ctype-digit-tests (Files): Likewise.
36680         * modules/unictype/ctype-graph-tests (Files): Likewise.
36681         * modules/unictype/ctype-lower-tests (Files): Likewise.
36682         * modules/unictype/ctype-print-tests (Files): Likewise.
36683         * modules/unictype/ctype-punct-tests (Files): Likewise.
36684         * modules/unictype/ctype-space-tests (Files): Likewise.
36685         * modules/unictype/ctype-upper-tests (Files): Likewise.
36686         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36687         * modules/unictype/decimal-digit-tests (Files): Likewise.
36688         * modules/unictype/digit-tests (Files): Likewise.
36689         * modules/unictype/mirror-tests (Files): Likewise.
36690         * modules/unictype/numeric-tests (Files): Likewise.
36691         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36692         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36693         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36694         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36695         Likewise.
36696         * modules/unictype/property-bidi-block-separator-tests (Files):
36697         Likewise.
36698         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36699         Likewise.
36700         * modules/unictype/property-bidi-common-separator-tests (Files):
36701         Likewise.
36702         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36703         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36704         Likewise.
36705         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36706         Likewise.
36707         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36708         Likewise.
36709         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36710         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36711         Likewise.
36712         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36713         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36714         Likewise.
36715         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36716         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36717         * modules/unictype/property-bidi-segment-separator-tests (Files):
36718         Likewise.
36719         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36720         * modules/unictype/property-byname-tests (Files): Likewise.
36721         * modules/unictype/property-combining-tests (Files): Likewise.
36722         * modules/unictype/property-composite-tests (Files): Likewise.
36723         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36724         * modules/unictype/property-dash-tests (Files): Likewise.
36725         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36726         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36727         Likewise.
36728         * modules/unictype/property-deprecated-tests (Files): Likewise.
36729         * modules/unictype/property-diacritic-tests (Files): Likewise.
36730         * modules/unictype/property-extender-tests (Files): Likewise.
36731         * modules/unictype/property-format-control-tests (Files): Likewise.
36732         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36733         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36734         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36735         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36736         * modules/unictype/property-hyphen-tests (Files): Likewise.
36737         * modules/unictype/property-id-continue-tests (Files): Likewise.
36738         * modules/unictype/property-id-start-tests (Files): Likewise.
36739         * modules/unictype/property-ideographic-tests (Files): Likewise.
36740         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36741         * modules/unictype/property-ids-trinary-operator-tests (Files):
36742         Likewise.
36743         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36744         * modules/unictype/property-iso-control-tests (Files): Likewise.
36745         * modules/unictype/property-join-control-tests (Files): Likewise.
36746         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36747         * modules/unictype/property-line-separator-tests (Files): Likewise.
36748         * modules/unictype/property-logical-order-exception-tests (Files):
36749         Likewise.
36750         * modules/unictype/property-lowercase-tests (Files): Likewise.
36751         * modules/unictype/property-math-tests (Files): Likewise.
36752         * modules/unictype/property-non-break-tests (Files): Likewise.
36753         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36754         * modules/unictype/property-numeric-tests (Files): Likewise.
36755         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36756         * modules/unictype/property-other-default-ignorable-code-point-tests
36757         (Files): Likewise.
36758         * modules/unictype/property-other-grapheme-extend-tests (Files):
36759         Likewise.
36760         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36761         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36762         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36763         * modules/unictype/property-other-math-tests (Files): Likewise.
36764         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36765         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36766         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36767         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36768         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36769         * modules/unictype/property-private-use-tests (Files): Likewise.
36770         * modules/unictype/property-punctuation-tests (Files): Likewise.
36771         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36772         * modules/unictype/property-radical-tests (Files): Likewise.
36773         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36774         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36775         * modules/unictype/property-space-tests (Files): Likewise.
36776         * modules/unictype/property-terminal-punctuation-tests (Files):
36777         Likewise.
36778         * modules/unictype/property-test-tests (Files): Likewise.
36779         * modules/unictype/property-titlecase-tests (Files): Likewise.
36780         * modules/unictype/property-unassigned-code-value-tests (Files):
36781         Likewise.
36782         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36783         * modules/unictype/property-uppercase-tests (Files): Likewise.
36784         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36785         * modules/unictype/property-white-space-tests (Files): Likewise.
36786         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36787         * modules/unictype/property-xid-start-tests (Files): Likewise.
36788         * modules/unictype/property-zero-width-tests (Files): Likewise.
36789         * modules/unictype/scripts-tests (Files): Likewise.
36790         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36791         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36792         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36793         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36794         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36795         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36796         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36797         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36798         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36799         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36800         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36801         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36802         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36803         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36804         * modules/uninorm/composition-tests (Files): Likewise.
36805         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36806         * modules/uninorm/decomposition-tests (Files): Likewise.
36807         * modules/uninorm/filter-tests (Files): Likewise.
36808         * modules/uninorm/nfc-tests (Files): Likewise.
36809         * modules/uninorm/nfd-tests (Files): Likewise.
36810         * modules/uninorm/nfkc-tests (Files): Likewise.
36811         * modules/uninorm/nfkd-tests (Files): Likewise.
36812         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36813         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36814         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36815         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36816         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36817         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36818         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36819         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36820         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36821         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36822         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36823         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36824         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36825         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36826         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36827         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36828         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36829         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36830         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36831         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36832         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36833         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36834         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36835         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36836         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36837         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36838         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36839         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36840         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36841         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36842         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36843         * modules/uniwidth/u8-width-tests (Files): Likewise.
36844         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36845         * modules/uniwidth/u16-width-tests (Files): Likewise.
36846         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36847         * modules/uniwidth/u32-width-tests (Files): Likewise.
36848         * modules/uniwidth/width-tests (Files): Likewise.
36849         * modules/unlink-tests (Files): Likewise.
36850         * modules/unsetenv-tests (Files): Likewise.
36851         * modules/usleep-tests (Files): Likewise.
36852         * modules/utimens-tests (Files): Likewise.
36853         * modules/utimensat-tests (Files): Likewise.
36854         * modules/vasnprintf-posix-tests (Files): Likewise.
36855         * modules/vasnprintf-tests (Files): Likewise.
36856         * modules/vasprintf-posix-tests (Files): Likewise.
36857         * modules/vasprintf-tests (Files): Likewise.
36858         * modules/vdprintf-posix-tests (Files): Likewise.
36859         * modules/vfprintf-posix-tests (Files): Likewise.
36860         * modules/vprintf-posix-tests (Files): Likewise.
36861         * modules/vsnprintf-posix-tests (Files): Likewise.
36862         * modules/vsnprintf-tests (Files): Likewise.
36863         * modules/vsprintf-posix-tests (Files): Likewise.
36864         * modules/wcrtomb-tests (Files): Likewise.
36865         * modules/wcsnrtombs-tests (Files): Likewise.
36866         * modules/wcsrtombs-tests (Files): Likewise.
36867         * modules/wctype-tests (Files): Likewise.
36868         * modules/wcwidth-tests (Files): Likewise.
36869         * modules/xmemdup0-tests (Files): Likewise.
36870         * modules/xprintf-posix-tests (Files): Likewise.
36871         * modules/xvasprintf-tests (Files): Likewise.
36872
36873 2009-12-24  Eric Blake  <ebb9@byu.net>
36874
36875         test-nanosleep: fix typo
36876         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36877         patch.
36878         Reported by Bruno Haible.
36879
36880 2009-12-24  Bruno Haible  <bruno@clisp.org>
36881
36882         Reduce namespace pollution on glibc systems.
36883         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36884         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36885         systems.
36886         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36887         <getopt.h> on glibc systems.
36888         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36889         systems.
36890         * lib/fcntl.c: Include <unistd.h> here instead.
36891
36892 2009-12-24  Bruno Haible  <bruno@clisp.org>
36893
36894         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36895
36896 2009-12-24  Eric Blake  <ebb9@byu.net>
36897
36898         tests: add signature checks
36899         * tests/signature.h (SIGNATURE_CHECK): New file.
36900         * modules/atexit-tests (Files): Use it.
36901         * modules/btowc-tests (Files): Likewise.
36902         * modules/canonicalize-lgpl-tests (Files): Likewise.
36903         * modules/ceilf-tests (Files): Likewise.
36904         * modules/ceill-tests (Files): Likewise.
36905         * modules/chown-tests (Files): Likewise.
36906         * modules/dprintf-posix-tests (Files): Likewise.
36907         * modules/dup2-tests (Files): Likewise.
36908         * modules/dup3-tests (Files): Likewise.
36909         * modules/duplocale-tests (Files): Likewise.
36910         * modules/fchdir-tests (Files): Likewise.
36911         * modules/fcntl-tests (Files): Likewise.
36912         * modules/fdopendir-tests (Files): Likewise.
36913         * modules/fflush-tests (Files): Likewise.
36914         * modules/flock-tests (Files): Likewise.
36915         * modules/floorf-tests (Files): Likewise.
36916         * modules/floorl-tests (Files): Likewise.
36917         * modules/fnmatch-tests (Files): Likewise.
36918         * modules/fopen-tests (Files): Likewise.
36919         * modules/fprintf-posix-tests (Files): Likewise.
36920         * modules/freopen-tests (Files): Likewise.
36921         * modules/frexp-nolibm-tests (Files): Likewise.
36922         * modules/frexp-tests (Files): Likewise.
36923         * modules/frexpl-nolibm-tests (Files): Likewise.
36924         * modules/frexpl-tests (Files): Likewise.
36925         * modules/fseek-tests (Files): Likewise.
36926         * modules/fseeko-tests (Files): Likewise.
36927         * modules/fsync-tests (Files): Likewise.
36928         * modules/ftell-tests (Files): Likewise.
36929         * modules/ftello-tests (Files): Likewise.
36930         * modules/futimens-tests (Files): Likewise.
36931         * modules/getaddrinfo-tests (Files): Likewise.
36932         * modules/getcwd-tests (Files): Likewise.
36933         * modules/getdelim-tests (Files): Likewise.
36934         * modules/getdtablesize-tests (Files): Likewise.
36935         * modules/getgroups-tests (Files): Likewise.
36936         * modules/gethostname-tests (Files): Likewise.
36937         * modules/getline-tests (Files): Likewise.
36938         * modules/getopt-posix-tests (Files): Likewise.
36939         * modules/gettimeofday-tests (Files): Likewise.
36940         * modules/glob-tests (Files): Likewise.
36941         * modules/iconv-tests (Files): Likewise.
36942         * modules/inet_ntop-tests (Files): Likewise.
36943         * modules/inet_pton-tests (Files): Likewise.
36944         * modules/isblank-tests (Files): Likewise.
36945         * modules/lchown-tests (Files): Likewise.
36946         * modules/ldexpl-tests (Files): Likewise.
36947         * modules/link-tests (Files): Likewise.
36948         * modules/linkat-tests (Files): Likewise.
36949         * modules/lseek-tests (Files): Likewise.
36950         * modules/lstat-tests (Files): Likewise.
36951         * modules/mbrtowc-tests (Files): Likewise.
36952         * modules/mbsinit-tests (Files): Likewise.
36953         * modules/mbsnrtowcs-tests (Files): Likewise.
36954         * modules/mbsrtowcs-tests (Files): Likewise.
36955         * modules/memchr-tests (Files): Likewise.
36956         * modules/memcmp-tests (Files): Likewise.
36957         * modules/memmem-tests (Files): Likewise.
36958         * modules/memrchr-tests (Files): Likewise.
36959         * modules/mkdir-tests (Files): Likewise.
36960         * modules/mkfifo-tests (Files): Likewise.
36961         * modules/mkfifoat-tests (Files): Likewise.
36962         * modules/mknod-tests (Files): Likewise.
36963         * modules/nanosleep-tests (Files): Likewise.
36964         * modules/nl_langinfo-tests (Files): Likewise.
36965         * modules/obstack-printf-tests (Files): Likewise.
36966         * modules/open-tests (Files): Likewise.
36967         * modules/openat-tests (Files): Likewise.
36968         * modules/perror-tests (Files): Likewise.
36969         * modules/pipe2-tests (Files): Likewise.
36970         * modules/poll-tests (Files): Likewise.
36971         * modules/popen-tests (Files): Likewise.
36972         * modules/posix_spawn-tests (Files): Likewise.
36973         * modules/posix_spawnp-tests (Files): Likewise.
36974         * modules/pread-tests (Files): Likewise.
36975         * modules/printf-posix-tests (Files): Likewise.
36976         * modules/pty-tests (Files): Likewise.
36977         * modules/random_r-tests (Files): Likewise.
36978         * modules/rawmemchr-tests (Files): Likewise.
36979         * modules/readlink-tests (Files): Likewise.
36980         * modules/remove-tests (Files): Likewise.
36981         * modules/rename-tests (Files): Likewise.
36982         * modules/renameat-tests (Files): Likewise.
36983         * modules/rmdir-tests (Files): Likewise.
36984         * modules/round-tests (Files): Likewise.
36985         * modules/roundf-tests (Files): Likewise.
36986         * modules/roundl-tests (Files): Likewise.
36987         * modules/select-tests (Files): Likewise.
36988         * modules/setenv-tests (Files): Likewise.
36989         * modules/sigaction-tests (Files): Likewise.
36990         * modules/sleep-tests (Files): Likewise.
36991         * modules/snprintf-posix-tests (Files): Likewise.
36992         * modules/snprintf-tests (Files): Likewise.
36993         * modules/sprintf-posix-tests (Files): Likewise.
36994         * modules/stat-tests (Files): Likewise.
36995         * modules/strcasestr-tests (Files): Likewise.
36996         * modules/strchrnul-tests (Files): Likewise.
36997         * modules/strerror-tests (Files): Likewise.
36998         * modules/strsignal-tests (Files): Likewise.
36999         * modules/strstr-tests (Files): Likewise.
37000         * modules/strtod-tests (Files): Likewise.
37001         * modules/strverscmp-tests (Files): Likewise.
37002         * modules/symlink-tests (Files): Likewise.
37003         * modules/symlinkat-tests (Files): Likewise.
37004         * modules/times-tests (Files): Likewise.
37005         * modules/trunc-tests (Files): Likewise.
37006         * modules/truncf-tests (Files): Likewise.
37007         * modules/truncl-tests (Files): Likewise.
37008         * modules/tsearch-tests (Files): Likewise.
37009         * modules/uname-tests (Files): Likewise.
37010         * modules/unlink-tests (Files): Likewise.
37011         * modules/unsetenv-tests (Files): Likewise.
37012         * modules/usleep-tests (Files): Likewise.
37013         * modules/utimensat-tests (Files): Likewise.
37014         * modules/vasprintf-tests (Files): Likewise.
37015         * modules/vdprintf-posix-tests (Files): Likewise.
37016         * modules/vfprintf-posix-tests (Files): Likewise.
37017         * modules/vprintf-posix-tests (Files): Likewise.
37018         * modules/vsnprintf-posix-tests (Files): Likewise.
37019         * modules/vsnprintf-tests (Files): Likewise.
37020         * modules/vsprintf-posix-tests (Files): Likewise.
37021         * modules/wcrtomb-tests (Files): Likewise.
37022         * modules/wcsnrtombs-tests (Files): Likewise.
37023         * modules/wcsrtombs-tests (Files): Likewise.
37024         * modules/wcwidth-tests (Files): Likewise.
37025         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37026         * tests/test-isinf.c (isinf): Likewise.
37027         * tests/test-isnan.c (isnan): Likewise.
37028         * tests/test-signbit.c (signbit): Likewise.
37029         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37030         declaration, either as macro or with correct signature.
37031         (select): Ensure function under test is declared with correct
37032         signature in correct header.
37033         * tests/test-atexit.c (atexit): Likewise.
37034         * tests/test-btowc.c (btowc): Likewise.
37035         * tests/test-canonicalize-lgpl.c (realpath)
37036         (canonicalize_file_name): Likewise.
37037         * tests/test-ceilf1.c (ceilf): Likewise.
37038         * tests/test-ceill.c (ceill): Likewise.
37039         * tests/test-chown.c (chown): Likewise.
37040         * tests/test-dprintf-posix.c (dprintf): Likewise.
37041         * tests/test-dup2.c (dup2): Likewise.
37042         * tests/test-dup3.c (dup3): Likewise.
37043         * tests/test-duplocale.c (duplocale): Likewise.
37044         * tests/test-fchdir.c (fchdir): Likewise.
37045         * tests/test-fchownat.c (fchownat): Likewise.
37046         * tests/test-fcntl.c (fcntl): Likewise.
37047         * tests/test-fdopendir.c (fdopendir): Likewise.
37048         * tests/test-fflush.c (fflush): Likewise.
37049         * tests/test-flock.c (flock): Likewise.
37050         * tests/test-floorf1.c (floorf): Likewise.
37051         * tests/test-floorl.c (floorl): Likewise.
37052         * tests/test-fnmatch.c (fnmatch): Likewise.
37053         * tests/test-fopen.c (fopen): Likewise.
37054         * tests/test-fprintf-posix.c (fprintf): Likewise.
37055         * tests/test-freopen.c (freopen): Likewise.
37056         * tests/test-frexp.c (frexp): Likewise.
37057         * tests/test-frexpl.c (frexpl): Likewise.
37058         * tests/test-fseek.c (fseek): Likewise.
37059         * tests/test-fseeko.c (fseeko): Likewise.
37060         * tests/test-fstatat.c (fstatat): Likewise.
37061         * tests/test-fsync.c (fsync): Likewise.
37062         * tests/test-ftell.c (ftell): Likewise.
37063         * tests/test-ftello.c (ftello): Likewise.
37064         * tests/test-futimens.c (futimens): Likewise.
37065         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37066         (gai_strerror): Likewise.
37067         * tests/test-getcwd.c (getcwd): Likewise.
37068         * tests/test-getdelim.c (getdelim): Likewise.
37069         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37070         * tests/test-getgroups.c (getgroups): Likewise.
37071         * tests/test-gethostname.c (gethostname): Likewise.
37072         * tests/test-getline.c (getline): Likewise.
37073         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37074         Likewise.
37075         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37076         * tests/test-glob.c (glob, globfree): Likewise.
37077         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37078         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37079         * tests/test-inet_pton.c (inet_pton): Likewise.
37080         * tests/test-isblank.c (isblank): Likewise.
37081         * tests/test-lchown.c (lchown): Likewise.
37082         * tests/test-ldexpl.c (ldexpl): Likewise.
37083         * tests/test-link.c (link): Likewise.
37084         * tests/test-linkat.c (linkat): Likewise.
37085         * tests/test-lseek.c (lseek): Likewise.
37086         * tests/test-lstat.c (lstat): Likewise.
37087         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37088         * tests/test-mbsinit.c (mbsinit): Likewise.
37089         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37090         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37091         * tests/test-memchr.c (memchr): Likewise.
37092         * tests/test-memcmp.c (memcmp): Likewise.
37093         * tests/test-memmem.c (memmem): Likewise.
37094         * tests/test-memrchr.c (memrchr): Likewise.
37095         * tests/test-mkdir.c (mkdir): Likewise.
37096         * tests/test-mkdirat.c (mkdirat): Likewise.
37097         * tests/test-mkfifo.c (mkfifo): Likewise.
37098         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37099         * tests/test-mknod.c (mknod): Likewise.
37100         * tests/test-nanosleep.c (nanosleep): Likewise.
37101         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37102         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37103         Likewise.
37104         * tests/test-open.c (open): Likewise.
37105         * tests/test-openat.c (openat): Likewise.
37106         * tests/test-perror.c (perror): Likewise.
37107         * tests/test-pipe2.c (pipe2): Likewise.
37108         * tests/test-poll.c (poll): Likewise.
37109         * tests/test-popen.c (popen, pclose): Likewise.
37110         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37111         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37112         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37113         (posix_spawn_file_actions_destroy)
37114         (posix_spawn_file_actions_addclose)
37115         (posix_spawn_file_actions_addopen)
37116         (posix_spawn_file_actions_adddup2): Likewise.
37117         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37118         * tests/test-pread.c (pread): Likewise.
37119         * tests/test-printf-posix.c (printf): Likewise.
37120         * tests/test-pty.c (openpty, forkpty): Likewise.
37121         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37122         (random_r): Likewise.
37123         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37124         * tests/test-readlink.c (readlink): Likewise.
37125         * tests/test-remove.c (remove): Likewise.
37126         * tests/test-rename.c (rename): Likewise.
37127         * tests/test-renameat.c (renameat): Likewise.
37128         * tests/test-rmdir.c (rmdir): Likewise.
37129         * tests/test-round1.c (round): Likewise.
37130         * tests/test-roundf1.c (roundf): Likewise.
37131         * tests/test-roundl.c (roundl): Likewise.
37132         * tests/test-setenv.c (setenv): Likewise.
37133         * tests/test-sigaction.c (sigaction): Likewise.
37134         * tests/test-sleep.c (sleep): Likewise.
37135         * tests/test-snprintf.c (snprintf): Likewise.
37136         * tests/test-sprintf-posix.c (sprintf): Likewise.
37137         * tests/test-stat.c (stat): Likewise.
37138         * tests/test-stpncpy.c (stpncpy): Likewise.
37139         * tests/test-strcasestr.c (strcasestr): Likewise.
37140         * tests/test-strchrnul.c (strchrnul): Likewise.
37141         * tests/test-strerror.c (strerror): Likewise.
37142         * tests/test-strsignal.c (strsignal): Likewise.
37143         * tests/test-strstr.c (strstr): Likewise.
37144         * tests/test-strtod.c (strtod): Likewise.
37145         * tests/test-strverscmp.c (strverscmp): Likewise.
37146         * tests/test-symlink.c (symlink): Likewise.
37147         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37148         * tests/test-times.c (times): Likewise.
37149         * tests/test-trunc1.c (trunc): Likewise.
37150         * tests/test-truncf1.c (truncf): Likewise.
37151         * tests/test-truncl.c (truncl): Likewise.
37152         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37153         Likewise.
37154         * tests/test-uname.c (uname): Likewise.
37155         * tests/test-unlink.c (unlink): Likewise.
37156         * tests/test-unlinkat.c (unlinkat): Likewise.
37157         * tests/test-unsetenv.c (unsetenv): Likewise.
37158         * tests/test-usleep.c (usleep): Likewise.
37159         * tests/test-utimensat.c (utimensat): Likewise.
37160         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37161         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37162         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37163         * tests/test-vprintf-posix.c (vprintf): Likewise.
37164         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37165         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37166         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37167         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37168         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37169         * tests/test-wcwidth.c (wcwidth): Likewise.
37170
37171         build: pull in conditional headers during GNULIB_POSIXCHECK
37172         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37173         definitions from any conditionally-included headers.
37174         * lib/stdlib.in.h (includes): Likewise.
37175         * lib/unistd.in.h (includes): Likewise.
37176
37177 2009-12-24  Bruno Haible  <bruno@clisp.org>
37178
37179         * tests/test-argv-iter.c: Include header file being tested immediately
37180         after config.h.
37181         * tests/test-base64.c: Likewise.
37182         * tests/test-flock.c: Likewise.
37183         * tests/test-fsync.c: Likewise.
37184         * tests/test-getdate.c: Likewise.
37185         * tests/test-getndelim2.c: Likewise.
37186         * tests/test-isfinite.c: Likewise.
37187         * tests/test-isinf.c: Likewise.
37188         * tests/test-strerror.c: Likewise.
37189         * tests/test-strsignal.c: Likewise.
37190
37191 2009-12-23  Eric Blake  <ebb9@byu.net>
37192
37193         unistd: work around cygwin bug
37194         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37195         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37196         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37197
37198 2009-12-23  Bruno Haible  <bruno@clisp.org>
37199
37200         localename: More tests.
37201         * tests/test-localename.c (SIZEOF): New macro.
37202         (categories): New variable.
37203         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37204         test_locale_name_default): Add test w.r.t. thread locale.
37205         (test_locale_name_thread): New function.
37206         (main): Invoke it.
37207
37208         localename: Make aware of thread locale.
37209         * lib/localename.h (gl_locale_name_thread): New declaration.
37210         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37211         behaviour with respect to thread locale.
37212         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37213         <langinfo.h>, glthread/lock.h.
37214         (SIZE_BITS): New macro.
37215         (string_hash): New function.
37216         (struct hash_node): New type.
37217         (HASH_TABLE_SIZE): New macro.
37218         (struniq_hash_table, struniq_lock): New variables.
37219         (struniq): New function.
37220         (gl_locale_name_thread): New function.
37221         (gl_locale_name): Invoke it.
37222         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37223         * modules/localename (Depends-on): Add lock.
37224         Reported by Mike Gran <spk121@yahoo.com>.
37225
37226 2009-12-23  Eric Blake  <ebb9@byu.net>
37227
37228         va-args: new module
37229         * modules/va-args: New file.
37230         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37231         * MODULES.html.sh (Core language properties): Mention it.
37232
37233         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37234         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37235         named alias for __attribute__((__unused__)).
37236         * lib/chown.c: Update client.
37237         * lib/fchmodat.c: Likewise.
37238         * lib/fts.c: Likewise.
37239         * lib/getdate.y: Likewise.
37240         * lib/getgroups.c: Likewise.
37241         * lib/getopt.c: Likewise.
37242         * lib/getugroups.c: Likewise.
37243         * lib/mkdir.c: Likewise.
37244         * lib/mkfifo.c: Likewise.
37245         * lib/mkfifoat.c: Likewise.
37246         * lib/mknod.c: Likewise.
37247         * lib/mknodat.c: Likewise.
37248         * lib/readlink.c: Likewise.
37249         * lib/se-context.in.h: Likewise.
37250         * lib/se-selinux.in.h: Likewise.
37251         * lib/sockets.c: Likewise.
37252         * lib/symlink.c: Likewise.
37253         * lib/symlinkat.c: Likewise.
37254         * lib/unicodeio.c: Likewise.
37255         * lib/unistr.h: Likewise.
37256         * tests/test-areadlink.c: Likewise.
37257         * tests/test-areadlinkat.c: Likewise.
37258         * tests/test-filenamecat.c: Likewise.
37259         * tests/test-fseeko.c: Likewise.
37260         * tests/test-ftello.c: Likewise.
37261         * tests/test-getdate.c: Likewise.
37262         * tests/test-getgroups.c: Likewise.
37263         * tests/test-gethostname.c: Likewise.
37264         * tests/test-quotearg.c: Likewise.
37265         * tests/test-version-etc.c: Likewise.
37266         * tests/test-xalloc-die.c: Likewise.
37267         * tests/test-xfprintf-posix.c: Likewise.
37268         * tests/test-xprintf-posix.c: Likewise.
37269         * tests/test-xvasprintf.c: Likewise.
37270
37271         tests: avoid compiler warnings
37272         * tests/test-fcntl.c (main): Delete unused parameters.
37273         * tests/test-freopen-safer.c (main): Likewise.
37274         * tests/test-xalloc-die.c (main): Mark unused parameters.
37275         * tests/test-fseeko.c (main): Likewise.
37276         * tests/test-ftello.c (main): Likewise.
37277         * tests/test-nanosleep.c (main): Avoid declaration warning.
37278         * tests/test-sleep.c (main): Likewise.
37279         * tests/test-unsetenv.c (main): Silence warning about string
37280         literal.
37281         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37282
37283 2009-12-23  Bruno Haible  <bruno@clisp.org>
37284
37285         * tests/test-localename.c (test_locale_name): New function, extracted
37286         from main. Also test mixed situations.
37287         (test_locale_name_posix, test_locale_name_environ,
37288         test_locale_name_default): New functions.
37289         (main): Invoke them all.
37290         * modules/localename-tests (configure.ac): Test for newlocale.
37291
37292 2009-12-23  Bruno Haible  <bruno@clisp.org>
37293
37294         unistd: Ensure getcwd gets declared before being overridden.
37295         * lib/unistd.in.h: Conditionally include <io.h>.
37296
37297 2009-12-22  Bruno Haible  <bruno@clisp.org>
37298
37299         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37300         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37301         (gl_WCHAR_H): Invoke it.
37302         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37303         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37304         Reported by Karl Berry <karl@freefriends.org>.
37305
37306 2009-12-22  Eric Blake  <ebb9@byu.net>
37307
37308         math, unistd: avoid redundant includes
37309         * lib/math.in.h (isnan): No need to re-include <math.h>.
37310         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37311
37312         getsubopt: work around cygwin bug
37313         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37314         avoid conflicting with system getsubopt.
37315         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37316         bug.
37317
37318         getopt: synchronize from glibc
37319         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37320         parameter order.  Adjust all callers.
37321         (_getopt_internal_r, main): Adjust quoting in error messages.
37322         Drop considerations for outdated POSIX 1003.2 error message.
37323         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37324         callers.
37325         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37326
37327         test-getopt: test stderr behavior
37328         * modules/getopt-posix-tests (Depends-on): Add dup2.
37329         * tests/test-getopt.c (ASSERT): Avoid stderr.
37330         (main): Move stderr to a temporary file.
37331         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37332         Instead, add parameter to inform caller if output occurred.
37333         (test_getopt): Adjust all existing tests to expect silence, and
37334         add new tests of leading ":".
37335         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37336         glibc shortcomings with leading "-:" or "+:" in optstring.
37337         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37338         Likewise.
37339         * doc/posix-functions/getopt.texi (getopt): Likewise.
37340
37341         test-getopt: enhance test
37342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37343         supports optind=0.
37344         * tests/test-getopt.c (OPTIND_MIN): Move...
37345         * tests/test-getopt.h (OPTIND_MIN): ...here.
37346         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37347         Require that optind=0 works, since modern BSD supports it in
37348         addition to optreset, and since coreutils expects it.
37349         (test_getopt_long_only): New test.
37350         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37351         glibc shortcomings with 'W;', and enforcement of optind=0.
37352         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37353         Likewise.
37354
37355 2009-12-21  Bruno Haible  <bruno@clisp.org>
37356
37357         localename: Improvements for MacOS X and Cygwin.
37358         * lib/localename.h (gl_locale_name_environ): New declaration.
37359         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37360         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37361         (gl_locale_name_posix): Invoke it.
37362         (gl_locale_name_default): Add comments. Use Windows native API also on
37363         Cygwin.
37364
37365 2009-12-21  Bruno Haible  <bruno@clisp.org>
37366
37367         Update list of Win32 locale ids.
37368         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37369         (LANG_SAMI): Renamed from LANG_SAAMI.
37370         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37371         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37372         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37373         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37374         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37375         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37376         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37377         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37378         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37379         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37380         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37381         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37382         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37383         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37384         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37385         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37386         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37387         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37388         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37389         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37390         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37391         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37392         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37393         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37394         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37395         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37396         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37397         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37398         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37399         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37400         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37401         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37402         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37403         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37404         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37405         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37406         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37407         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37408         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37409         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37410         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37411         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37412         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37413         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37414         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37415         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37416         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37417         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37418         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37419         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37420         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37421         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37422         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37423         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37424         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37425         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37426         Add more languages and countries for Sami, Sorbian. Add more countries
37427         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37428         for Pashto. Change country for Syriac, Tswana.
37429
37430 2009-12-21  Eric Blake  <ebb9@byu.net>
37431
37432         test-utimens: avoid spurious failure
37433         * tests/test-chown.h (nap): Factor...
37434         * tests/nap.h: ...into new file.
37435         * tests/test-lchown.h (nap): Avoid duplication.
37436         * tests/test-utimens-common.h (nap): Use shared implementation,
37437         necessary on file systems with 1-second resolution.
37438         * modules/chown-tests (Files): Include new file.
37439         * modules/fdutimensat-tests (Files): Likewise.
37440         * modules/futimens-tests (Files): Likewise.
37441         * modules/lchown-tests (Files): Likewise.
37442         * modules/openat-tests (Files): Likewise.
37443         * modules/utimens-tests (Files): Likewise.
37444         * modules/utimensat-tests (Files): Likewise.
37445
37446 2009-12-19  Eric Blake  <ebb9@byu.net>
37447
37448         futimens, utimensat: work around Linux bug
37449         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37450         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37451         * lib/utimensat.c (rpl_utimensat): Work around it.
37452         * lib/futimens.c (rpl_futimens): Adjust comment.
37453
37454         utimens: work around Linux ctime bug
37455         * lib/utimens.c (detect_ctime_bug): New helper function.
37456         (update_timespec): Differentiate between workaround needed for
37457         this bug vs. what is needed for systems that lack utimensat.
37458         (fdutimens, lutimens): Work around bug.
37459
37460         utimens: check for ctime update
37461         * tests/test-utimens-common.h (check_ctime): Define.
37462         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37463         * tests/test-futimens.h (test_futimens): Likewise.
37464         * tests/test-lutimens.h (test_lutimens): Likewise.
37465         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37466         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37467
37468 2009-12-19  Bruno Haible  <bruno@clisp.org>
37469
37470         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37471         * tests/test-dprintf-posix2.sh: New file.
37472         * tests/test-dprintf-posix2.c: New file.
37473         * modules/dprintf-posix-tests (Files): Add them.
37474         (configure.ac): Check for getrlimit and setrlimit.
37475         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37476
37477 2009-12-19  Bruno Haible  <bruno@clisp.org>
37478
37479         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37480         * tests/test-fprintf-posix3.sh: New file.
37481         * tests/test-fprintf-posix3.c: New file.
37482         * modules/fprintf-posix-tests (Files): Add them.
37483         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37484
37485 2009-12-19  Eric Blake  <ebb9@byu.net>
37486
37487         dirfd: fix prototype
37488         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37489         * lib/dirfd.c (dirfd): Likewise.
37490
37491         canonicalize: reduce memory usage
37492         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37493         allocation to size.
37494         Reported by Solar Designer <solar@openwall.com>.
37495
37496 2009-12-19  Bruno Haible  <bruno@clisp.org>
37497
37498         New module attribute 'Applicability'.
37499         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37500         * gnulib-tool: New option --extract-applicability.
37501         (func_usage): Document it.
37502         (sed_extract_prog): Recognize it.
37503         (func_get_applicability): New function.
37504         (func_import): Generalize handling of 'link-warning' module.
37505         * modules/link-warning (Applicability): New section.
37506         * modules/arg-nonnull (Applicability): New section.
37507         Repoted by Simon Josefsson <simon@josefsson.org>.
37508
37509 2009-12-19  Bruno Haible  <bruno@clisp.org>
37510
37511         fflush: tweak
37512         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37513         * lib/fseeko.c (rpl_fseeko): Likewise.
37514
37515 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37516
37517         * lib/gl_list.h: Fix typo in comment.
37518
37519 2009-12-16  Eric Blake  <ebb9@byu.net>
37520
37521         fcntl: use to simplify other modules
37522         * modules/cloexec (Depends-on): Add fcntl.
37523         * modules/fchdir (Depends-on): Likewise.
37524         * modules/fd-safer-flag (Depends-on): Likewise.
37525         * modules/unistd-safer (Depends-on): Likewise.
37526         * modules/dup3 (configure.ac): Set module indicator.
37527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37528         missing.
37529         * lib/fchdir.c (_gl_register_dup): Fix comment.
37530         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37531         * lib/dup-safer.c (dup_safer): Likewise.
37532         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37533         * lib/dup3.c (dup3): Likewise.
37534         * tests/test-fchdir.c (main): Enhance test.
37535         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37536
37537         fcntl: port portions of fcntl to mingw
37538         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37539         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37540         replacement for mingw.
37541         * modules/fcntl (Description): Update.
37542         (Depends-on): Add dup2.
37543         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37544         * modules/fcntl-h (Makefile.am): Substitute it.
37545         * lib/fcntl.in.h (fcntl): Update declaration.
37546         (F_DUPFD, F_GETFD): New macros, when needed.
37547         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37548         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37549         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37550         we now guarantee.
37551
37552         fcntl: work around cygwin bug in F_DUPFD
37553         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37554         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37555         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37556         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37557         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37558
37559         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37560         * modules/fcntl (Files): List new files.
37561         (configure.ac): Run a test.
37562         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37563         * lib/fcntl.c (rpl_fcntl): Likewise.
37564         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37565         (gl_FCNTL_H): Always replace fcntl.h.
37566         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37567         * lib/fcntl.in.h (fcntl): Declare replacement.
37568         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37569         needed, plus a witness.
37570         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37571         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37572         * tests/test-fcntl.c: New file.
37573         * modules/fcntl-tests: Likewise.
37574
37575         binary-io: avoid potential compilation warning
37576         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37577         directives.
37578
37579         fflush: avoid compilation error on NetBSD
37580         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37581         between off_t and fpos_t, since the latter is sometimes a struct.
37582         * lib/fseeko.c (rpl_fseeko): Likewise.
37583         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37584
37585 2009-12-15  Eric Blake  <ebb9@byu.net>
37586
37587         fcntl-h, stdio, sys_ioctl: fix declarations
37588         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37589         function must not take arguments.
37590         * lib/sys_ioctl.in.h (ioctl): Likewise.
37591         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37592         (open): Add a link warning.
37593
37594 2009-12-15  Jim Meyering  <meyering@redhat.com>
37595
37596         areadlink, areadlink-with-size: relax license to LGPLv2+
37597         * modules/areadlink (License): Relax to LGPLv2+.
37598         * modules/areadlink-with-size (License): Likewise.
37599
37600 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37601             Bruno Haible  <bruno@clisp.org>
37602
37603         *printf: Fix memory leak.
37604         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37605         * lib/vfprintf.c (vfprintf): Likewise.
37606         * lib/dprintf.c (dprintf): Likewise.
37607         * lib/vdprintf.c (vdprintf): Likewise.
37608
37609 2009-12-14  Eric Blake  <ebb9@byu.net>
37610
37611         accept4: adjust module dependencies
37612         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37613
37614         utimens: one more try at avoiding compiler warning
37615         * lib/utimens.c (lutimens): Lower scope of result.
37616
37617 2009-12-13  Bruno Haible  <bruno@clisp.org>
37618
37619         Move the malloc checking from module 'list' to new module 'xlist'.
37620         * modules/xlist: New file.
37621         * lib/gl_xlist.h: New file.
37622         * lib/gl_xlist.c: New file.
37623         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37624         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37625         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37626         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37627         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37628         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37629         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37630         gl_sortedlist_nx_add): New declarations.
37631         (struct gl_list_implementation): Rename and change methods accordingly.
37632         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37633         (gl_list_nx_create): Renamed from gl_list_create.
37634         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37635         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37636         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37637         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37638         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37639         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37640         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37641         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37642         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37643         gl_list_create_empty.
37644         (gl_list_nx_create): Renamed from gl_list_create.
37645         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37646         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37647         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37648         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37649         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37650         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37651         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37652         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37653         * lib/gl_array_list.c: Don't include xalloc.h.
37654         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37655         NULL upon out-of-memory.
37656         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37657         out-of-memory.
37658         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37659         Change return type to 'int'.
37660         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37661         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37662         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37663         upon out-of-memory.
37664         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37665         upon out-of-memory.
37666         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37667         upon out-of-memory.
37668         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37669         upon out-of-memory.
37670         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37671         out-of-memory.
37672         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37673         Update.
37674         (gl_array_list_implementation): Update.
37675         * lib/gl_carray_list.c: Don't include xalloc.h.
37676         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37677         Return NULL upon out-of-memory.
37678         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37679         out-of-memory.
37680         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37681         Change return type to 'int'.
37682         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37683         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37684         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37685         upon out-of-memory.
37686         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37687         upon out-of-memory.
37688         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37689         out-of-memory.
37690         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37691         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37692         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37693         Update.
37694         (gl_carray_list_implementation): Update.
37695         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37696         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37697         gl_linked_create_empty. Return NULL upon out-of-memory.
37698         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37699         out-of-memory.
37700         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37701         Change return type to 'int'. Return -1 upon out-of-memory.
37702         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37703         out-of-memory.
37704         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37705         upon out-of-memory.
37706         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37707         upon out-of-memory.
37708         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37709         NULL upon out-of-memory.
37710         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37711         upon out-of-memory.
37712         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37713         out-of-memory.
37714         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37715         Update.
37716         * lib/gl_linked_list.c: Don't include xalloc.h.
37717         (gl_linked_list_implementation): Update.
37718         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37719         (add_to_bucket): Change return type to 'int'.
37720         (gl_linkedhash_list_implementation): Update.
37721         * lib/gl_anytree_list1.h (free_subtree): New function.
37722         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37723         gl_tree_create_empty. Return NULL upon out-of-memory.
37724         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37725         Change return type to 'int'. Return -1 upon out-of-memory.
37726         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37727         out-of-memory.
37728         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37729         (gl_tree_remove_node): New function, moved here from
37730         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37731         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37732         Update.
37733         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37734         malloc, not xmalloc. Return NULL upon out-of-memory.
37735         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37736         out-of-memory.
37737         (gl_tree_remove_node_from_tree): New function, extracted from
37738         gl_tree_remove_node.
37739         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37740         upon out-of-memory.
37741         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37742         out-of-memory.
37743         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37744         upon out-of-memory.
37745         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37746         upon out-of-memory.
37747         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37748         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37749         not xmalloc. Return NULL upon out-of-memory.
37750         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37751         out-of-memory.
37752         (gl_tree_remove_node_from_tree): New function, extracted from
37753         gl_tree_remove_node.
37754         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37755         upon out-of-memory.
37756         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37757         out-of-memory.
37758         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37759         upon out-of-memory.
37760         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37761         upon out-of-memory.
37762         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37763         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37764         gl_anytree_list1.h before gl_anyavltree_list2.h.
37765         (gl_avltree_list_implementation): Update.
37766         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37767         gl_anytree_list1.h before gl_anyavltree_list2.h.
37768         (gl_rbtree_list_implementation): Update.
37769         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37770         Change return type to 'int'. Return -1 upon out-of-memory. Use
37771         __builtin_expect.
37772         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37773         (gl_avltreehash_list_implementation): Update.
37774         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37775         (gl_rbtreehash_list_implementation): Update.
37776         * modules/array-list (Depends-on): Remove xalloc.
37777         * modules/carray-list (Depends-on): Likewise.
37778         * modules/linked-list (Depends-on): Likewise.
37779         * modules/linkedhash-list (Depends-on): Likewise.
37780         * modules/avltree-list (Depends-on): Likewise.
37781         * modules/rbtree-list (Depends-on): Likewise.
37782         * modules/avltreehash-list (Depends-on): Likewise.
37783         * modules/rbtreehash-list (Depends-on): Likewise.
37784
37785         * modules/xsublist: New file.
37786         * lib/gl_xsublist.h: New file.
37787         * lib/gl_xsublist.c: New file.
37788         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37789         (gl_sublist_nx_create): New declaration.
37790         * lib/gl_sublist.c: Don't include xalloc.h.
37791         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37792         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37793         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37794         Change return type to 'int'. Return -1 upon out-of-memory.
37795         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37796         upon out-of-memory.
37797         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37798         NULL upon out-of-memory.
37799         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37800         upon out-of-memory.
37801         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37802         NULL upon out-of-memory.
37803         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37804         NULL upon out-of-memory.
37805         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37806         upon out-of-memory.
37807         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37808         (gl_sublist_list_implementation): Update.
37809         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37810         upon out-of-memory.
37811         * modules/sublist (Depends-on): Remove xalloc.
37812
37813         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37814         * tests/test-carray_list.c: Likewise.
37815         * tests/test-linked_list.c: Likewise.
37816         * tests/test-linkedhash_list.c: Likewise.
37817         * tests/test-avltree_list.c: Likewise.
37818         * tests/test-rbtree_list.c: Likewise.
37819         * tests/test-avltreehash_list.c: Likewise.
37820         * tests/test-rbtreehash_list.c: Likewise.
37821         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37822         * modules/carray-list-tests (Makefile.am): Likewise.
37823         * modules/linked-list-tests (Makefile.am): Likewise.
37824         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37825         * modules/avltree-list-tests (Makefile.am): Likewise.
37826         * modules/rbtree-list-tests (Makefile.am): Likewise.
37827         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37828         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37829
37830         * NEWS: Mention the changes.
37831
37832         * lib/clean-temp.c: Include gl_xlist.h.
37833         * modules/clean-temp (Depends-on): Add xlist.
37834
37835         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37836         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37837
37838         * tests/test-array_oset.c: Include gl_xlist.h.
37839         * modules/array-oset-tests (Depends-on): Add xlist.
37840
37841         Reported by José E. Marchesi <jemarch@gnu.org>.
37842
37843 2009-12-13  Bruno Haible  <bruno@clisp.org>
37844
37845         Move the malloc checking from module 'oset' to new module 'xoset'.
37846         * modules/xoset: New file.
37847         * lib/gl_xoset.h: New file.
37848         * lib/gl_xoset.c: New file.
37849         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37850         declarations.
37851         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37852         (struct gl_oset_implementation): Rename and change methods accordingly.
37853         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37854         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37855         'int'. Mark as __warn_unused_result__.
37856         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37857         gl_oset_create_empty.
37858         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37859         'int'.
37860         * lib/gl_array_oset.c: Don't include xalloc.h.
37861         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37862         malloc, not xmalloc.
37863         (grow): Change return type to 'int'. Don't call xalloc_die.
37864         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37865         to 'int'.
37866         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37867         'int'.
37868         (gl_array_oset_implementation): Update.
37869         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37870         gl_tree_create_empty.
37871         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37872         'int'.
37873         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37874         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37875         xmalloc.
37876         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37877         not xmalloc.
37878         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37879         xmalloc.
37880         (gl_avltree_oset_implementation): Update.
37881         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37882         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37883         xmalloc.
37884         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37885         not xmalloc.
37886         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37887         xmalloc.
37888         (gl_rbtree_oset_implementation): Update.
37889         * modules/array-oset (Depends-on): Remove xalloc.
37890         * modules/avltree-oset (Depends-on): Likewise.
37891         * modules/rbtree-oset (Depends-on): Likewise.
37892         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37893         * tests/test-avltree_oset.c: Likewise.
37894         * tests/test-rbtree_oset.c: Likewise.
37895         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37896         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37897         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37898         * NEWS: Mention the change.
37899
37900 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37901
37902         maint.mk: allow a project to override release-prep commands
37903         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37904         commands into a new rule.
37905         (release-prep): New rule.
37906         (release-prep-hook): New overridable variable.
37907
37908 2009-12-13  Bruno Haible  <bruno@clisp.org>
37909
37910         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37911
37912 2009-12-13  Jim Meyering  <meyering@redhat.com>
37913
37914         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37915         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37916
37917 2009-12-12  Bruno Haible  <bruno@clisp.org>
37918
37919         duplocale: Tweak.
37920         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37921
37922 2009-12-12  Karl Berry  <karl@gnu.org>
37923
37924         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37925
37926 2009-12-12  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/po.m4: Undo incorrect untabification.
37929
37930 2009-12-12  Bruno Haible  <bruno@clisp.org>
37931
37932         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37933         * modules/c-strtod (Depends-on): Add locale.
37934         * modules/c-strtold (Depends-on): Likewise.
37935
37936 2009-12-12  Bruno Haible  <bruno@clisp.org>
37937
37938         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37939
37940 2009-12-11  Eric Blake  <ebb9@byu.net>
37941
37942         setenv: relax requirement in light of POSIX ruling
37943         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37944         not NULL.
37945         * tests/test-setenv.c (main): Relax test.
37946         * tests/test-unsetenv.c (main): Likewise.
37947         * doc/posix-functions/setenv.texi (setenv): Document this.
37948         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37949
37950 2009-12-11  Bruno Haible  <bruno@clisp.org>
37951
37952         New module 'fd-safer-flag'.
37953         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37954         * lib/dup-safer.c (dup_safer_flag): Remove function.
37955         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37956         * lib/fd-safer.c (fd_safer_flag): Remove function.
37957         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37958         * modules/cloexec (configure.ac): Drop indicator macro.
37959         * modules/fd-safer-flag: New file.
37960         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37961         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37962         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37963
37964 2009-12-11  Bruno Haible  <bruno@clisp.org>
37965
37966         Tests for module 'nl_langinfo'.
37967         * modules/nl_langinfo-tests: New file.
37968         * tests/test-nl_langinfo.sh: New file.
37969         * tests/test-nl_langinfo.c: New file.
37970
37971         New module 'nl_langinfo'.
37972         * lib/nl_langinfo.c: New file.
37973         * m4/nl_langinfo.m4: New file.
37974         * modules/nl_langinfo: New file.
37975         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37976
37977 2009-12-11  Bruno Haible  <bruno@clisp.org>
37978
37979         Tests for module 'langinfo'.
37980         * modules/langinfo-tests: New file.
37981         * tests/test-langinfo.c: New file.
37982
37983         New module 'langinfo'.
37984         * lib/langinfo.in.h: New file.
37985         * m4/langinfo_h.m4: New file.
37986         * modules/langinfo: New file.
37987         * doc/posix-headers/langinfo.texi: Mention the new module.
37988
37989 2009-12-11  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/config.charset: Untabify.
37992
37993 2009-12-11  Bruno Haible  <bruno@clisp.org>
37994
37995         * modules/unistd-safer (configure.ac): Drop indicator macro.
37996
37997 2009-12-11  Bruno Haible  <bruno@clisp.org>
37998
37999         Move pipe2-safer code to its own file.
38000         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38001         * lib/pipe-safer.c (pipe2_safer): Remove function.
38002         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38003         (Makefile.am): Add it to lib_SOURCES.
38004
38005 2009-12-10  Bruno Haible  <bruno@clisp.org>
38006
38007         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38008
38009 2009-12-10  Bruno Haible  <bruno@clisp.org>
38010
38011         Declare which arguments expect non-NULL values, for GCC and clang.
38012         * build-aux/arg-nonnull.h: New file.
38013         * modules/arg-nonnull: New file.
38014         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38015         (inet_ntop, inet_pton): Use it.
38016         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38017         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38018         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38019         (open, openat): Use it.
38020         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38021         (fnmatch): Use it.
38022         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38023         (getopt, getopt_long, getopt_long_only): Use it.
38024         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38025         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38026         Use it.
38027         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38028         (iconv_open): Use it.
38029         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38030         (strtoimax, strtoumax): Use it.
38031         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38032         (duplocale): Use it.
38033         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38034         (frexp, frexpl): Use it.
38035         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38036         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38037         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38038         (tsearch, tfind, tdelete, twalk): Use it.
38039         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38040         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38041         sigpending): Use it.
38042         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38043         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38044         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38045         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38046         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38047         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38048         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38049         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38050         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38051         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38052         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38053         Use it.
38054         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38055         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38056         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38057         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38058         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38059         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38060         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38061         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38062         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38063         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38064         strtoull, unsetenv): Use it.
38065         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38066         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38067         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38068         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38069         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38070         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38071         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38072         (strcasecmp, strncasecmp): Use it.
38073         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38074         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38075         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38076         rpl_setsockopt): Use it.
38077         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38078         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38079         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38080         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38081         (gettimeofday): Use it.
38082         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38083         (times): Use it.
38084         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38085         (uname): Use it.
38086         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38087         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38088         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38089         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38090         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38091         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38092         unlinkat, write): Use it.
38093         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38094         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38095         * lib/argv-iter.h: Include arg-nonnull.h.
38096         (_ATTRIBUTE_NONNULL_): Remove macro.
38097         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38098         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38099         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38100         optimization.
38101         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38102         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38103         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38104         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38105         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38106         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38107         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38108         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38109         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38110         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38111         * modules/dirent (Depends-on): Add arg-nonnull.
38112         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38113         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38114         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38115         * modules/fnmatch (Depends-on): Add arg-nonnull.
38116         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38117         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38118         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38119         * modules/glob (Depends-on): Add arg-nonnull.
38120         (Makefile.am): Insert arg-nonnull.h into glob.h.
38121         * modules/iconv_open (Depends-on): Add arg-nonnull.
38122         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38123         * modules/inttypes (Depends-on): Add arg-nonnull.
38124         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38125         * modules/locale (Depends-on): Add arg-nonnull.
38126         (Makefile.am): Insert arg-nonnull.h into locale.h.
38127         * modules/math (Depends-on): Add arg-nonnull.
38128         (Makefile.am): Insert arg-nonnull.h into math.h.
38129         * modules/netdb (Depends-on): Add arg-nonnull.
38130         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38131         * modules/search (Depends-on): Add arg-nonnull.
38132         (Makefile.am): Insert arg-nonnull.h into search.h.
38133         * modules/signal (Depends-on): Add arg-nonnull.
38134         (Makefile.am): Insert arg-nonnull.h into signal.h.
38135         * modules/spawn (Depends-on): Add arg-nonnull.
38136         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38137         * modules/stdio (Depends-on): Add arg-nonnull.
38138         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38139         * modules/stdlib (Depends-on): Add arg-nonnull.
38140         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38141         * modules/string (Depends-on): Add arg-nonnull.
38142         (Makefile.am): Insert arg-nonnull.h into string.h.
38143         * modules/strings (Depends-on): Add arg-nonnull.
38144         (Makefile.am): Insert arg-nonnull.h into strings.h.
38145         * modules/sys_socket (Depends-on): Add arg-nonnull.
38146         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38147         * modules/sys_stat (Depends-on): Add arg-nonnull.
38148         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38149         * modules/sys_time (Depends-on): Add arg-nonnull.
38150         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38151         * modules/sys_times (Depends-on): Add arg-nonnull.
38152         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38153         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38154         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38155         * modules/time (Depends-on): Add arg-nonnull.
38156         (Makefile.am): Insert arg-nonnull.h into time.h.
38157         * modules/unistd (Depends-on): Add arg-nonnull.
38158         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38159         * modules/wchar (Depends-on): Add arg-nonnull.
38160         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38161         * modules/argv-iter (Depends-on): Add arg-nonnull.
38162         * tests/test-canonicalize.c (null_ptr): New function.
38163         (main): Use it.
38164         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38165         (main): Use it.
38166         * tests/test-memmem.c (null_ptr): New function.
38167         (main): Use it.
38168         Reported by Jim Meyering.
38169
38170 2009-12-10  Bruno Haible  <bruno@clisp.org>
38171
38172         Use spaces for indentation, not tabs.
38173         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38174         * m4/*.m4: Untabify.
38175         * build-aux/*.h: Untabify.
38176         * tests/**/*.[hc]: Untabify.
38177         * README: New section "Indent with spaces, not TABs", based on
38178         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38179         * NEWS: Mention the change.
38180
38181 2009-12-10  Bruno Haible  <bruno@clisp.org>
38182
38183         pty test: Fix link error.
38184         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38185         test_pty_LDADD.
38186
38187 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38188
38189         * modules/pty: New file.
38190         * modules/pty-tests: New file.
38191         * m4/pty.m4: New file.
38192         * tests/test-pty.c: New file.
38193         * doc/glibc-headers/pty.texi: Modified.
38194         * doc/glibc-functions/forkpty.texi: Modified.
38195         * doc/glibc-functions/openpty.texi: Modified.
38196
38197 2009-12-10  Bruno Haible  <bruno@clisp.org>
38198
38199         Avoid syntax error in C++ mode.
38200         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38201
38202 2009-12-10  Bruno Haible  <bruno@clisp.org>
38203
38204         Use sed with option -e.
38205         * gnulib-tool (func_version, func_emit_copyright_notice,
38206         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38207         option -e to sed.
38208         * modules/link-warning (Makefile.am): Likewise.
38209
38210 2009-12-10  Jim Meyering  <meyering@redhat.com>
38211
38212         mgetgroups: do not write bytes beyond end of malloc'd buffer
38213         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38214         username, we call getgroups with a one-element-shorter buffer,
38215         but still told it the length was original, max_n_groups.
38216
38217 2009-12-09  Eric Blake  <ebb9@byu.net>
38218
38219         cloexec: relax license
38220         * modules/cloexec (Maintainer): Add myself.
38221         (License): Use LGPL, not GPL.
38222
38223         link-warning: optimize generation
38224         * modules/link-warning (Makefile.am): Reduce process usage.
38225
38226 2009-12-09  Bruno Haible  <bruno@clisp.org>
38227
38228         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38229         workaround was added on 2009-11-17.
38230
38231 2009-12-09  Jim Meyering  <meyering@redhat.com>
38232             Bruno Haible  <bruno@clisp.org>
38233
38234         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38235         * modules/link-warning (Makefile.am): Make the comment-removing sed
38236         command more robust in the face of bootstrap-prepended comment lines.
38237
38238 2009-12-09  Bruno Haible  <bruno@clisp.org>
38239
38240         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38241         most one group.
38242
38243 2009-12-09  Simon Josefsson <simon@josefsson.org>
38244             Bruno Haible  <bruno@clisp.org>
38245
38246         * build-aux/link-warning.h: Add copyright notice.
38247         * modules/link-warning (Makefile.am): Generate link-warning.h from
38248         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38249         * NEWS: Mention change in link-warning module.
38250         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38251         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38252         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38253         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38254         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38255         * modules/math (Makefile.am): Add dependency to math.h.
38256         * modules/search (Makefile.am): Add dependency to search.h.
38257         * modules/signal (Makefile.am): Add dependency to signal.h.
38258         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38259         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38260         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38261         * modules/string (Makefile.am): Add dependency to string.h.
38262         * modules/strings (Makefile.am): Add dependency to strings.h.
38263         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38264         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38265         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38266         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38267         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38268         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38269         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38270         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38271         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38272
38273 2009-12-09  Bruno Haible  <bruno@clisp.org>
38274
38275         fchdir: Optimize away rpl_fstat when possible.
38276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38277         REPLACE_OPEN_DIRECTORY.
38278         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38279
38280 2009-12-09  Bruno Haible  <bruno@clisp.org>
38281
38282         * lib/fchdir.c: Update comment.
38283
38284 2009-12-09  Bruno Haible  <bruno@clisp.org>
38285
38286         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38287
38288 2009-12-08  Eric Blake  <ebb9@byu.net>
38289
38290         fchdir: avoid memory leak on re-registration.
38291         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38292
38293 2009-12-08  Jim Meyering  <meyering@redhat.com>
38294
38295         init.sh: avoid Solaris 10 /bin/sh portability problem
38296         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38297         sourced script:
38298           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38299           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38300           bar
38301         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38302         and two tests used that idiom.
38303         * tests/init.sh: Update suggested usage comments.
38304         (path_prepend_): New function, to be used in place
38305         of the --src-path=DIR option.
38306         (setup_): Move PATH-prepending code into path_prepend_.
38307         * tests/test-pread.sh: Adapt to new usage.
38308         * tests/test-xalloc-die.sh: Likewise.
38309
38310 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38311
38312         * doc/gnulib.texi (Glibc pty.h): Add.
38313         * doc/glibc-functions/forkpty.texi: Add.
38314         * doc/glibc-functions/openpty.texi: Add.
38315         Suggested by Bruno Haible.
38316
38317 2009-12-08  Eric Blake  <ebb9@byu.net>
38318
38319         fchdir: fix logic bugs
38320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38321         * tests/test-fchdir.c (main): Enhance test.
38322         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38323         is in use.
38324
38325         dup2: fix logic bugs
38326         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38327         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38328         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38329         exists.
38330         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38331
38332 2009-12-07  Eric Blake  <ebb9@byu.net>
38333
38334         unlink: fix m4 detection
38335         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38336
38337         unistd-safer: add unit test
38338         * modules/unistd-safer-tests: New file.
38339         * tests/test-dup-safer.c: Likewise.
38340         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38341         * tests/test-dup2.c (setmode): Likewise.
38342         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38343
38344         cloexec: preserve text vs. binary across dup_cloexec
38345         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38346         mode.
38347         * modules/dup2-tests (Depends-on): Add binary-io.
38348         * modules/cloexec-tests (Depends-on): Likewise.
38349         * tests/test-dup2.c (setmode, is_mode): New helpers.
38350         (main): Add tests that translation mode is preserved.
38351         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38352         Reported by Bruno Haible.
38353
38354         mgetgroups: reduce duplicate listings
38355         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38356         resulting array.
38357         * tests/test-chown.h (test_chown): Simplify client.
38358         * tests/test-lchown.h (test_lchown): Likewise.
38359
38360 2009-12-06  Bruno Haible  <bruno@clisp.org>
38361
38362         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38363         value.
38364
38365 2009-12-06  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/progname.c: Include stdio.h, stdlib.h.
38368         (set_program_name): Reject a NULL argument.
38369
38370 2009-12-05  Eric Blake  <ebb9@byu.net>
38371
38372         pipe2-safer: new module
38373         * modules/pipe2-safer: New file.
38374         * lib/unistd-safer.h (pipe2_safer): New prototype.
38375         * lib/unistd--.h (pipe2): New wrapper.
38376         * lib/pipe-safer.c (pipe2_safer): New function.
38377         * modules/pipe (Depends-on): Add pipe2-safer.
38378         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38379
38380         stdlib-safer: preserve cloexec flag for mkostemp[s]
38381         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38382         fd_safer_flag.
38383
38384         unistd-safer: allow preservation of cloexec status via flag
38385         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38386         prototypes.
38387         * lib/dup-safer.c (dup_safer_flag): New function.
38388         * lib/fd-safer.c (fd_safer_flag): Likewise.
38389         * modules/cloexec (configure.ac): Set witness.
38390
38391         test-dup2: enhance test
38392         * modules/dup2-tests (Depends-on): Add cloexec.
38393         * tests/test-dup2.c (main): Enhance test.
38394
38395         cloexec: add dup_cloexec
38396         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38397         header and comments.
38398         * lib/cloexec.c (set_cloexec_flag): Add comments.
38399         (dup_cloexec): New function, with mingw implementation borrowed
38400         from...
38401         * lib/w32spawn.h (dup_noinherit): ...here.
38402         * modules/execute (Depends-on): Add cloexec.
38403         * modules/pipe (Depends-on): Likewise.
38404         * modules/cloexec (Depends-on): Add dup2.
38405         * modules/cloexec-tests (Files): New file.
38406         * tests/test-cloexec.c: Likewise.
38407
38408         test-xalloc-die: fix test for mingw
38409         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38410         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38411         directory and .exe suffix off argv[0] output.
38412
38413         test-fseeko: fix test for mingw
38414         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38415         than undefining fseek, so test will pass on mingw.
38416
38417 2009-12-05  Bruno Haible  <bruno@clisp.org>
38418
38419         * lib/progname.h (set_program_name): Clarify specification.
38420         * lib/progname.c (set_program_name): Likewise.
38421         Reported by Jim Meyering.
38422
38423 2009-12-05  Jim Meyering  <meyering@redhat.com>
38424
38425         maint.mk: backslash-escape parens in default regexp
38426         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38427         backslash-escape the literal parentheses.
38428
38429         maint.mk: news-date-check: use grep -E
38430         * top/maint.mk (today): Define a Make variable, not a...
38431         (news-date-check): ...shell variable.
38432         (news-date-regexp): Use the Make variable.
38433         Use grep's -E option.  Change the failing diagnostic to mention
38434         the variable, $(news-date-regexp).
38435
38436 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38437
38438         maintainer-makefile: allow customization of NEWS entry format
38439         * top/maint.mk (news-date-regexp): New overridable variable.
38440         (news-date-check): Use it.
38441
38442 2009-12-04  Eric Blake  <ebb9@byu.net>
38443
38444         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38445         * lib/mgetgroups.h (xgetgroups): New prototype.
38446         * lib/mgetgroups.c (xgetgroups): New wrapper.
38447         (mgetgroups): Handle ENOSYS.
38448         * modules/mgetgroups (Depends-on): Add realloc.
38449         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38450
38451         mgetgroups: avoid argument promotion issues with -1
38452         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38453         for invalid gid_t.
38454         * tests/test-chown.h (getegid, test_chown): Likewise.
38455         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38456
38457 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38458
38459         exclude: Fix header file problems.
38460         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38461
38462 2009-12-01  Jim Meyering  <meyering@redhat.com>
38463
38464         fts: fts_open: do not let an empty string cause immediate failure
38465         This is required in support of GNU rm, for which the command
38466         "rm A '' B" must process and remove both A and B, in spite of
38467         the empty string argument.
38468         * lib/fts.c (fts_open): Do not let the presence of an empty string
38469         cause fts_open to fail immediately.  Most fts-using tools must be
38470         able to process all arguments, in order, and can be expected to
38471         diagnose such arguments themselves.
38472
38473 2009-11-30  Eric Blake  <ebb9@byu.net>
38474
38475         utimens: fix compilation error
38476         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38477         Declare variable at right scope.
38478
38479 2009-11-29  Jim Meyering  <meyering@redhat.com>
38480
38481         bootstrap: handle perl-5.11's changed --version output
38482         * build-aux/bootstrap (get_version): Handle perl separately,
38483         since perl-5.11's --version output is different.
38484
38485 2009-11-28  Jim Meyering  <meyering@redhat.com>
38486
38487         userspec: depend on the inttostr module, too
38488         * modules/userspec (Depends-on): Add inttostr.
38489
38490         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38491         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38492         number of MAXUID when it evaluates to (uid_t) -1.
38493         Likewise for group ID.  Reported by Matt McCutchen in
38494         <http://savannah.gnu.org/bugs/?28113>
38495
38496         userspec: reformat to use spaces, not TABs
38497         * lib/userspec.c: Expand TABs to spaces.
38498         Add Emacs' "indent-tabs-mode: nil" hint.
38499
38500 2009-11-27  Eric Blake  <ebb9@byu.net>
38501
38502         getopt-gnu: flush out another BSD bug
38503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38504         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38505         flush out BSD bug.
38506         * tests/test-getopt.h (test_getopt): End lists with NULL.
38507         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38508         (test_getopt_long_posix): Enhance test.
38509         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38510         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38511         getopt-gnu.
38512         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38513         Likewise.
38514
38515 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38516
38517         * modules/idpriv-droptemp-tests (Notice): Fix text.
38518
38519 2009-11-27  Jim Meyering  <meyering@redhat.com>
38520
38521         test-xalloc-die: avoid spurious failure due to libtool argv difference
38522         In a libtool-enabled project, this test would fail due to a difference
38523         in the emitted program name, e.g.,
38524         -test-xalloc-die: memory exhausted
38525         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38526         Use program to avoid that.
38527         * modules/xalloc-die-tests (Depends-on): Add progname.
38528         * tests/test-xalloc-die.c: Include progname.h".
38529         (program_name): Remove decl.
38530         (main): Call set_program_name.
38531         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38532
38533 2009-11-26  Richard Jones  <rjones@redhat.com>
38534
38535         w32sock: leave win32 error in place.
38536         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38537
38538 2009-11-26  Eric Blake  <ebb9@byu.net>
38539
38540         init.sh: suggest to use skip_ and fail_ functions in comments
38541         * tests/init.sh: Add a sentence.
38542
38543 2009-11-25  Bruno Haible  <bruno@clisp.org>
38544
38545         init.sh: add documentation in comments
38546         * tests/init.sh: Add some developer and user documentation.
38547
38548 2009-11-26  Jim Meyering  <meyering@redhat.com>
38549
38550         init.sh: accommodate even those who specify bogus srcdir manually
38551         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38552         configure-time tests to be sanitized, so that there is no need to
38553         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38554         (with no double quotes) suffices.  However, since tests may be
38555         invoked manually, and since you may explicitly set srcdir to the
38556         name of a directory containing spaces, do quote its uses here.
38557         * tests/test-pread.sh: Likewise.
38558         Suggested by Bruno Haible.
38559
38560         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38561         * tests/test-pread.sh: Write no data into the pipe, because
38562         test-pread actually reads none.  This avoids a diagnostic,
38563         "bash: echo: write error: Broken pipe", that arises in the unusual
38564         event something is ignoring SIGPIPE, and might be interpreted
38565         as some sort of failure.  Reported by Bruno Haible.
38566
38567 2009-11-25  Jim Meyering  <meyering@redhat.com>
38568
38569         test-pread: cover failure with ESPIPE and EINVAL
38570         * tests/test-pread.c (main): Test for failure, too.
38571         * tests/test-pread.sh: Invoke with stdin on a pipe.
38572         Suggested by Eric Blake.
38573
38574         pread: improvement and fix
38575         * modules/pread (Depends-on): Depend on lseek, for portability to
38576         e.g., mingw.  Suggested by Eric Blake.
38577         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38578
38579         unistd.in.h: correct declaration of pread
38580         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38581         Reported by Richard W.M. Jones.
38582
38583         test-pread.sh: distribute the test script
38584         * modules/pread-tests (Files): Include test-pread.sh.
38585
38586         test-pread.sh: clean up
38587         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38588         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38589         That is unnecessary, since it's always ".".
38590         Suggestion from Eric Blake.
38591
38592         test-pread.sh: make executable
38593         * tests/test-pread.sh: Set executable bit.
38594         Reported by Eric Blake.
38595
38596         correct typo in test-pread.sh
38597         * tests/test-pread.sh: Add #! line.
38598
38599         test pread
38600         * tests/test-pread.c: New file.
38601         * tests/test-pread.sh: Likewise.
38602         * modules/pread-tests: Likewise.
38603
38604         pread: new module
38605         * modules/pread: New file.
38606         * lib/unistd.in.h (pread): Define/declare.
38607         * lib/pread.c (pread): New file.
38608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38609         * modules/unistd (Makefile.am): Substitute witnesses.
38610         * doc/posix-functions/pread.texi (pread): Update.
38611         * MODULES.html.sh: Add pread.
38612
38613 2009-11-25  Jim Meyering  <meyering@redhat.com>
38614
38615         tests/init.sh: new file to be used via most *.sh tests
38616         * tests/init.sh: New file.
38617
38618 2009-11-25  Eric Blake  <ebb9@byu.net>
38619
38620         utimens: work around older Linux failure with symlinks
38621         * lib/utimens.c (lutimensat_works_really): New variable.
38622         (fdutimens, lutimens): Use it to manage kernels that support
38623         nanosecond times on files, but not on symlinks.
38624         Reported by Ondřej Vašík.
38625
38626         utimes: fix configure grammar
38627         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38628
38629 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38630
38631         regex: Fix fastmap for multibyte character ranges.
38632         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38633         characters when a multibyte character range is included.
38634
38635 2009-11-22  Andy Wingo  <wingo@pobox.com>
38636
38637         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38638         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38639
38640 2009-11-24  Bruno Haible  <bruno@clisp.org>
38641
38642         doc: Most *_l functions exist in MacOS X 10.5.
38643         * doc/posix-functions/duplocale.texi: Update platforms list.
38644         * doc/posix-functions/freelocale.texi: Likewise.
38645         * doc/posix-functions/newlocale.texi: Likewise.
38646         * doc/posix-functions/uselocale.texi: Likewise.
38647         * doc/posix-functions/isalnum_l.texi: Likewise.
38648         * doc/posix-functions/isalpha_l.texi: Likewise.
38649         * doc/posix-functions/isblank_l.texi: Likewise.
38650         * doc/posix-functions/iscntrl_l.texi: Likewise.
38651         * doc/posix-functions/isdigit_l.texi: Likewise.
38652         * doc/posix-functions/isgraph_l.texi: Likewise.
38653         * doc/posix-functions/islower_l.texi: Likewise.
38654         * doc/posix-functions/isprint_l.texi: Likewise.
38655         * doc/posix-functions/ispunct_l.texi: Likewise.
38656         * doc/posix-functions/isspace_l.texi: Likewise.
38657         * doc/posix-functions/isupper_l.texi: Likewise.
38658         * doc/posix-functions/iswalnum_l.texi: Likewise.
38659         * doc/posix-functions/iswalpha_l.texi: Likewise.
38660         * doc/posix-functions/iswblank_l.texi: Likewise.
38661         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38662         * doc/posix-functions/iswctype_l.texi: Likewise.
38663         * doc/posix-functions/iswdigit_l.texi: Likewise.
38664         * doc/posix-functions/iswgraph_l.texi: Likewise.
38665         * doc/posix-functions/iswlower_l.texi: Likewise.
38666         * doc/posix-functions/iswprint_l.texi: Likewise.
38667         * doc/posix-functions/iswpunct_l.texi: Likewise.
38668         * doc/posix-functions/iswspace_l.texi: Likewise.
38669         * doc/posix-functions/iswupper_l.texi: Likewise.
38670         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38671         * doc/posix-functions/isxdigit_l.texi: Likewise.
38672         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38673         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38674         * doc/posix-functions/strcoll_l.texi: Likewise.
38675         * doc/posix-functions/strfmon_l.texi: Likewise.
38676         * doc/posix-functions/strftime_l.texi: Likewise.
38677         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38678         * doc/posix-functions/strxfrm_l.texi: Likewise.
38679         * doc/posix-functions/tolower_l.texi: Likewise.
38680         * doc/posix-functions/toupper_l.texi: Likewise.
38681         * doc/posix-functions/towctrans_l.texi: Likewise.
38682         * doc/posix-functions/towlower_l.texi: Likewise.
38683         * doc/posix-functions/towupper_l.texi: Likewise.
38684         * doc/posix-functions/wcscoll_l.texi: Likewise.
38685         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38686         * doc/posix-functions/wctrans_l.texi: Likewise.
38687         * doc/posix-functions/wctype_l.texi: Likewise.
38688         * doc/glibc-functions/strptime_l.texi: Likewise.
38689         * doc/glibc-functions/strtod_l.texi: Likewise.
38690         * doc/glibc-functions/strtof_l.texi: Likewise.
38691         * doc/glibc-functions/strtol_l.texi: Likewise.
38692         * doc/glibc-functions/strtold_l.texi: Likewise.
38693         * doc/glibc-functions/strtoll_l.texi: Likewise.
38694         * doc/glibc-functions/strtoul_l.texi: Likewise.
38695         * doc/glibc-functions/strtoull_l.texi: Likewise.
38696         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38697         * doc/glibc-functions/wcstod_l.texi: Likewise.
38698         * doc/glibc-functions/wcstof_l.texi: Likewise.
38699         * doc/glibc-functions/wcstol_l.texi: Likewise.
38700         * doc/glibc-functions/wcstold_l.texi: Likewise.
38701         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38702         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38703         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38704
38705 2009-11-24  Bruno Haible  <bruno@clisp.org>
38706
38707         duplocale: Fix logic bug.
38708         * lib/duplocale.c: Don't include <langinfo.h>.
38709         (_NL_LOCALE_NAME): Remove macro.
38710         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38711         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38712
38713 2009-11-23  Jim Meyering  <meyering@redhat.com>
38714
38715         test-update-copyright: don't hard-code /usr/bin/perl
38716         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38717         perl to print the current year.  Gilles Espinasse reported that
38718         the replaced use of perl was hard-coded as /usr/bin/perl.
38719
38720 2009-11-23  Bruno Haible  <bruno@clisp.org>
38721
38722         duplocale: Add support for glibc 2.3.x.
38723         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38724
38725 2009-11-22  Bruno Haible  <bruno@clisp.org>
38726
38727         vasnprintf: Tiny optimization.
38728         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38729         MacOS X.
38730
38731 2009-11-22  Bruno Haible  <bruno@clisp.org>
38732
38733         Tests for module 'duplocale'.
38734         * modules/duplocale-tests: New file.
38735         * tests/test-duplocale.c: New file.
38736
38737         New module 'duplocale'.
38738         * m4/duplocale.m4: New file.
38739         * lib/locale.in.h (duplocale): New declaration.
38740         * lib/duplocale.c: New file.
38741         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38742         gl_LOCALE_H_DEFAULTS): New macros.
38743         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38744         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38745         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38746         REPLACE_DUPLOCALE.
38747         * modules/duplocale: New file.
38748         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38749
38750 2009-11-22  Bruno Haible  <bruno@clisp.org>
38751
38752         * modules/locale-tests (configure.ac): Test for newlocale function.
38753         * tests/test-locale.c: When the system has extended locale functions,
38754         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38755
38756         locale: Make locale_t available when possible.
38757         * lib/locale.in.h: Include <xlocale.h> when it exists.
38758         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38759         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38760         * modules/locale (Depends-on): Add extensions.
38761         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38762         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38763
38764 2009-11-22  Bruno Haible  <bruno@clisp.org>
38765
38766         Add comments.
38767         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38768         invocation.
38769         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38770         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38771         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38772
38773 2009-11-22  Bruno Haible  <bruno@clisp.org>
38774
38775         error: account for the possibility of freopen (stdout).
38776         * lib/error.c: Include <unistd.h>.
38777         (flush_stdout): New function, extracted from error and error_at_line.
38778         Determine stdout's fd dynamically.
38779         (error, error_at_line): Invoke flush_stdout.
38780         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38781         * modules/error (Depends-on): Add unistd.
38782
38783 2009-11-22  Bruno Haible  <bruno@clisp.org>
38784
38785         diffseq: Add comment.
38786         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38787
38788 2009-11-22  Jim Meyering  <meyering@redhat.com>
38789
38790         c-stack: avoid defining an unused static function
38791         * lib/c-stack.c (find_stack_direction): Do not define this function
38792         when it will not be used.
38793
38794         diffseq: avoid spurious gcc warnings
38795         * lib/diffseq.h (IF_LINT2): Define.
38796         (compareseq): Use it to initialize two members of "part".
38797         This avoids two used-uninitialized warnings.
38798
38799 2009-11-21  Jim Meyering  <meyering@redhat.com>
38800
38801         c-stack: avoid "ignoring return value of `write'" warning
38802         * lib/c-stack.c: Include "ignore-value.h".
38803         (die): Explicitly ignore each write return value.
38804         * modules/c-stack (Depends-on): Add ignore-value.
38805
38806 2009-11-21  Bruno Haible  <bruno@clisp.org>
38807
38808         diffseq: reduce scope of variable 'best'.
38809         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38810         variable, earlier used for two different purposes.
38811
38812 2009-11-21  Jim Meyering  <meyering@redhat.com>
38813
38814         diffseq: remove useless assignment to "best"
38815         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38816         assignment.  At that point "best" is already guaranteed to be zero.
38817
38818 2009-11-20  Eric Blake  <ebb9@byu.net>
38819
38820         build: mention ftp redirector in release announcements
38821         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38822         values that used to come from cfg.mk; mention FTP redirect URL.
38823         * build-aux/announce-gen: Mention the mirror list.
38824         Suggested by Karl Berry.
38825
38826         nanosleep: improve port to mingw
38827         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38829         LIB_NANOSLEEP, but only when needed.
38830         * modules/select (Link): Document LIBSOCKET.
38831         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38832         enough.
38833
38834         nanosleep: work around cygwin bug
38835         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38836         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38837         bug.
38838         (getnow): Delete, not needed.
38839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38840         LIB_CLOCK_GETTIME.
38841         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38842         clock-time, gettime.
38843         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38844         bug.
38845         * modules/nanosleep-tests: New test.
38846         * tests/test-nanosleep.c: New file.
38847
38848         sleep: work around cygwin bug
38849         * lib/sleep.c (rpl_sleep): Work around the bug.
38850         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38851         (gl_PREREQ_SLEEP): Delete unused macro.
38852         * modules/sleep (Depends-on): Add verify.
38853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38854         * modules/unistd (Makefile.am): Substitute witness.
38855         * lib/unistd.in.h (sleep): Update prototype.
38856         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38857         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38858         * modules/sleep-tests (Depends-on): Check for alarm.
38859
38860 2009-11-20  Jim Meyering  <meyering@redhat.com>
38861
38862         maint.mk: improve sc_prohibit_magic_number_exit
38863         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38864         so it does not match uses like System.exit(1).
38865         Add comments showing how to correct all offenders.
38866
38867 2009-11-19  Eric Blake  <ebb9@byu.net>
38868
38869         xalloc-die-tests: add missing library
38870         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38871
38872         test-xvasprintf: silence compiler warnings
38873         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38874         empty string from gcc.
38875
38876 2009-11-19  Jim Meyering  <meyering@redhat.com>
38877
38878         xfreopen: new module, from coreutils
38879         * modules/xfreopen: New module.
38880         * lib/xfreopen.c: New file.
38881         * lib/xfreopen.h: New file.
38882         * MODULES.html.sh (File stream based Input/Output"): Add it.
38883
38884 2009-11-19  Eric Blake  <ebb9@byu.net>
38885
38886         manywarnings: depend on warnings
38887         * modules/manywarnings (Depends-on): Add warnings.
38888
38889         build: avoid compiler warnings
38890         * lib/select.c (rpl_select): Delete unused variable.
38891         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38892
38893 2009-11-18  Eric Blake  <ebb9@byu.net>
38894
38895         tests: avoid false negative with --with-packager
38896         * tests/test-version-etc.sh: Discard packager information.
38897         * tests/test-argp-version-etc-1.sh: Likewise.
38898         Reported by Mike Frysinger.
38899
38900         utimens: fix regression on Solaris
38901         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38902         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38903         can only change fd timestamps via futimesat.  Instead, use an
38904         additional witness macro to avoid BSD bug.
38905         Reported by Jim Meyering.
38906
38907 2009-11-17  Eric Blake  <ebb9@byu.net>
38908
38909         usleep: use it to simplify tests
38910         * modules/stat-time-tests (Depends-on): Add usleep.
38911         (configure.ac): Drop usleep check.
38912         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38913         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38914         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38915         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38916         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38917         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38918         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38919         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38920         Likewise.
38921         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38922         * tests/test-lchown.h (nap): Likewise.
38923         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38924         * tests/test-stat-time.c (nap): Likewise.
38925         * tests/test-utimens-common.h (nap): Update comments.
38926
38927         usleep: new module
38928         * modules/usleep: New file.
38929         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38930         * lib/usleep.c (usleep): Likewise.
38931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38932         * modules/unistd (Makefile.am): Substitute witnesses.
38933         * lib/unistd.in.h (usleep): Add declaration.
38934         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38935         * MODULES.html.sh (Date and time): Likewise.
38936         * modules/usleep-tests (Depends-on): New test.
38937         * tests/test-usleep.c: New file.
38938
38939         chown: work around OpenBSD bug
38940         * lib/chown.c (rpl_chown): Work around the bug.
38941         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38942         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38943         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38944         * modules/chown (Depends-on): Add stdbool.
38945         * modules/lchown (Depends-on): Likewise.
38946         * doc/posix-functions/chown.texi (chown): Document the bug.
38947         * doc/posix-functions/lchown.texi (lchown): Likewise.
38948         * tests/test-lchown.h (test_chown): Relax test.
38949
38950         mkstemp: avoid conflict with C++ keyword template
38951         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38952         * lib/mkostemp.c (mkostemp): Likewise.
38953         * lib/mkostemps.c (mkostemps): Likewise.
38954         * lib/mkstemp.c (mkstemp): Likewise.
38955         * lib/mkstemps.c (mkstemps): Likewise.
38956
38957         xalloc-die-tests: optimize
38958         * tests/test-xalloc-die.sh: Reduce number of processes.
38959
38960 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38961
38962         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38963         patch from ludo@gnu.org (Ludovic Courtès).
38964
38965 2009-11-17  Jim Meyering  <meyering@redhat.com>
38966
38967         version-etc: use proper license string
38968         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38969         * modules/version-etc-fsf: Likewise.
38970
38971 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38972
38973         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38974         printed to stdout.  Deal with EOL differences.
38975
38976 2009-11-17  Eric Blake  <ebb9@byu.net>
38977
38978         unsetenv: work around Solaris bug
38979         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38980         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38981         Reported by Jim Meyering.
38982
38983         vasnprintf: avoid compiler warnings
38984         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38985         variables.
38986         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38987
38988 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38989
38990         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38991         settings since xalloc-die is no longer the self test,
38992         xalloc-die.sh is.
38993
38994 2009-11-17  Jim Meyering  <meyering@redhat.com>
38995
38996         test-xalloc-die.sh: make the code agree with the commit log
38997         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38998         at the end, just in case you happen to have a test-xalloc-die
38999         program in some other PATH directory.
39000
39001         test-xalloc-die.sh: fix a portability bug
39002         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39003         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39004         Otherwise, argv[0] (as often seen in diagnostics) would be too
39005         system-dependent, sometimes with, and sometimes without the leading "./".
39006
39007         version-etc-fsf: relax license to LGPLv3+
39008         * modules/version-etc-fsf (License): Relax license.
39009
39010 2009-11-16  Eric Blake  <ebb9@byu.net>
39011
39012         xalloc-die-tests: avoid printing null pointer
39013         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39014         shell script.
39015         * tests/test-xalloc-die.c (program_name): Declare.
39016         * tests/test-xalloc-die.sh (tmpfiles): New file.
39017
39018         setenv, unsetenv: work around various bugs
39019         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39020         (setenv) [HAVE_SETENV]: Work around bugs.
39021         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39023         for bugs.
39024         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39025         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39027         * modules/stdlib (Makefile.am): Update substitutions.
39028         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39029         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39030         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39031         * modules/setenv-tests: New test.
39032         * modules/unsetenv-tests: Likewise.
39033         * tests/test-setenv.c: New file.
39034         * tests/test-unsetenv.c: Likewise.
39035
39036 2009-11-16  Jim Meyering  <meyering@redhat.com>
39037
39038         version-etc: relax license to LGPLv3+
39039         * modules/version-etc (License): Relax license.
39040
39041         better AC_REQUIRE expanded-before-required-warning avoidance
39042         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39043         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39044         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39045         which is no longer needed.
39046
39047 2009-11-16  Eric Blake  <ebb9@byu.net>
39048
39049         test-freading: clean up temporary file
39050         * tests/test-freading.c (main): Remove file on success, and use
39051         ASSERT more liberally.
39052         Reported by Jim Meyering.
39053
39054 2009-11-16  Jim Meyering  <meyering@redhat.com>
39055
39056         avoid new AC_REQUIRE expanded-before-required warnings
39057         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39058         merely using it.
39059         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39060         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39061
39062 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39063
39064         * tests/test-xalloc-die.c: New file.
39065         * modules/xalloc-die-tests: New file.
39066         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39067         XFAIL_TESTS so it can be appended by modules.
39068
39069 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39070
39071         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39072         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39073
39074 2009-11-14  Eric Blake  <ebb9@byu.net>
39075
39076         fnmatch: avoid compiler warning
39077         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39078         to silence compiler warning about mismatch signedness in ?:.
39079         Reported by Robert Millan.
39080
39081         intprops: add double-inclusion guard
39082         * lib/intprops.h: Allow idempotent includes.
39083         Suggested by Bruce Korb.
39084
39085         openat: detect Solaris fchownat bug
39086         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39087         penalizing glibc chownat when only lchownat is broken.
39088         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39089         trailing slash bugs.
39090         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39091         * modules/openat-tests (Files): Include more files.
39092         (Depends-on): Add mgetgroups, sleep, stat-time.
39093         (configure.ac): Add additional checks.
39094         (Makefile.am): Build new test.
39095         * tests/test-fchownat.c: New file.
39096
39097         lchown: detect Solaris and FreeBSD bug
39098         * lib/lchown.c (rpl_lchown): Work around bug.
39099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39101         * modules/unistd (Makefile.am): Populate it.
39102         * lib/unistd.in.h (lchown): Update declaration.
39103         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39104         * modules/lchown-tests: New file.
39105         * tests/test-lchown.h (test_lchown): Likewise.
39106         * tests/test-lchown.c (main): Likewise.
39107
39108         chown: detect Solaris and FreeBSD bug
39109         * lib/chown.c (rpl_chown): Work around bug.
39110         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39111         (gl_PREREQ_CHOWN): Delete.
39112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39113         * modules/unistd (Makefile.am): Populate it.
39114         * lib/unistd.in.h (chown): Update declaration.
39115         * lib/lchown.c (chown): Update client.
39116         * modules/lchown (Depends-on): Add lstat.
39117         * doc/posix-functions/chown.texi (chown): Document the bug.
39118         * doc/posix-functions/getgroups.texi (getgroups): Document
39119         getgroups pitfall.
39120         * modules/chown-tests: New file.
39121         * tests/test-chown.h (test_chown): Likewise.
39122         * tests/test-chown.c (main): Likewise.
39123
39124 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39125
39126         gnulib-tool: correctly detect absence of m4 directories
39127         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39128
39129 2009-11-14  Jim Meyering  <meyering@redhat.com>
39130
39131         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39132         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39133
39134 2009-11-14  John W. Eaton  <jwe@gnu.org>
39135
39136         strftime.h: wrap funtion declaration in extern "C" block
39137         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39138
39139 2009-11-13  Eric Blake  <ebb9@byu.net>
39140
39141         getgroups: avoid compiler warning
39142         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39143
39144         getgroups: work around FreeBSD bug
39145         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39146         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39147         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39148         * tests/test-getgroups.c (main): Fix buffer overrun.
39149
39150         getgroups: avoid compilation failure
39151         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39152         * modules/getgroups (Depends-on): Add stdint.
39153
39154 2009-11-13  Jim Meyering  <meyering@redhat.com>
39155
39156         test-getgroups: avoid compilation failure
39157         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39158
39159 2009-11-13  Eric Blake  <ebb9@byu.net>
39160
39161         mgetgroups: new module, taken from coreutils
39162         * modules/mgetgroups: New file.
39163         * lib/mgetgroups.h: Likewise.
39164         * lib/mgetgroups.c (mgetgroups): Likewise.
39165         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39166         * MODULES.html.sh (Users and groups): Mention it.
39167
39168         getgroups: don't expose GETGROUPS_T to user
39169         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39170         an element at a time if GETGROUPS_T is wrong size.
39171         * lib/getugroups.h (getugroups): Change signature.
39172         * lib/unistd.in.h (getgroups): Likewise.
39173         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39174         signature needs fixing.
39175         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39176         AC_TYPE_GETGROUPS.
39177         * modules/group-member (Depends-on): Add getgroups.
39178         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39179         (group_member): Rely on getgroups replacement.
39180         * lib/getugroups.c (getugroups): Use gid_t.
39181         * tests/test-getgroups.c (main): Likewise.
39182         * NEWS: Mention the signature change.
39183         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39184         problem with signature.
39185         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39186         GETGROUPS_T is still useful for setgroups.
39187
39188         getgroups, getugroups: provide stubs for mingw
39189         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39190         * lib/getugroups.c (getugroups): Likewise.
39191         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39192         function.  Modernize replacement scheme.
39193         (gl_PREREQ_GETGROUPS): Delete.
39194         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39195         * modules/getgroups (configure.ac): Declare witness.
39196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39197         * modules/unistd (Depends-on): Substitute witness.
39198         * lib/unistd.in.h (getgroups): Declare replacement.
39199
39200         getgroups: avoid calling exit
39201         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39202         drop xalloc.
39203         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39204         dependencies.
39205         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39206         exiting, in the rare case of malloc failure.
39207
39208         getgroups: fix logic error
39209         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39210         has more than 20 groups.
39211         * modules/getgroups-tests: New test.
39212         * tests/test-getgroups.c: New file.
39213
39214 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39215
39216         * tests/test-base64.c: Improve.
39217
39218 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39219
39220         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39221         Blake <ebb9@byu.net>.
39222
39223 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39224
39225         * tests/test-xvasprintf.c: Add %s%s related checks.
39226
39227 2009-11-12  Eric Blake  <ebb9@byu.net>
39228
39229         version-etc: match standards.texi style
39230         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39231         and use <> only for URLs.
39232
39233 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39234
39235         fts: do not fail on a submount during traversal
39236         * lib/fts.c (fts_build): Read the stat info again after opening
39237         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39238         Original report at http://bugzilla.redhat.com/501848.
39239
39240 2009-11-12  Jim Meyering  <meyering@redhat.com>
39241
39242         bootstrap: sync from coreutils
39243         * build-aux/bootstrap (bootstrap_epilogue): New function.
39244         Use git_modules_config in one more place.  This make bootstrap's
39245         --gnulib-srcdir option more useful for testing.
39246
39247         bootstrap: generalize autoheader check
39248         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39249         AC_CONFIG_HEADERS.
39250
39251 2009-11-11  Eric Blake  <ebb9@byu.net>
39252
39253         mkfifoat: use new modules for Solaris and BSD bugs
39254         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39255         * lib/mkfifoat.c (mknodat): Split...
39256         * lib/mknodat.c (mknodat): ...into new file.
39257         * modules/mkfifoat (Files): Ship new file.
39258         (Depends-on): Add mkfifo, mknod.
39259         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39260         (Depends-on): Add symlink.
39261         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39262         redundant with test_mkfifo.h.
39263         (do_mkfifoat, do_mknodat): New helpers.
39264
39265         mknod: new module
39266         * modules/mknod: New file.
39267         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39268         * lib/mknod.c (mknod): Likewise.
39269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39270         defaults.
39271         * modules/sys_stat (Makefile.am): Substitute them.
39272         * lib/sys_stat.in.h (mknod): Declare replacement.
39273         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39274         Document it.
39275         * doc/posix-functions/mknod.texi (mknod): Likewise.
39276         * modules/mknod-tests: New test.
39277         * tests/test-mknod.c: Likewise.
39278
39279         mkfifo: new module
39280         * modules/mkfifo: New file.
39281         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39282         * lib/mkfifo.c (mkfifo): 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 (mkfifo): Declare replacement.
39287         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39288         Document it.
39289         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39290         * modules/mkfifo-tests: New test.
39291         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39292         from test-mkfifoat.c.
39293         * tests/test-mkfifo.c: New file.
39294
39295         readlink: detect FreeBSD bug
39296         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39297         slash on symlink.
39298         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39299         * tests/test-readlink.h (test_readlink): Enhance test.
39300
39301         symlink: detect FreeBSD bug
39302         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39303         slash on symlink.
39304         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39305         * tests/test-symlink.h (test_symlink): Enhance test.
39306
39307 2009-11-10  Eric Blake  <ebb9@byu.net>
39308
39309         link: detect FreeBSD bug
39310         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39311         symlink.
39312         * doc/posix-functions/link.texi (link): Document the bug.
39313         * tests/test-link.h (test_link): Enhance test.
39314         * tests/test-linkat.c (main): Update caller.
39315
39316         unlink, remove: detect FreeBSD bug
39317         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39318         slash on symlink.
39319         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39320         * doc/posix-functions/remove.texi (remove): Likewise.
39321         * tests/test-unlink.h (test_unlink): Enhance test.
39322         * tests/test-remove.c (main): Likewise.
39323
39324 2009-11-09  Eric Blake  <ebb9@byu.net>
39325
39326         rename: detect FreeBSD bug
39327         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39328         slash on symlink.
39329         * modules/renameat-tests (Depends-on): Add filenamecat.
39330         * tests/test-rename.h (test_rename): Allow one more errno.
39331         * tests/test-renameat.c (main): Likewise.
39332         * doc/posix-functions/rename.texi (rename): Document the bug.
39333
39334         open: detect FreeBSD bug
39335         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39336         symlink.
39337         * doc/posix-functions/open.texi (open): Document the bug.
39338         * doc/posix-functions/utimes.texi (utimes): Likewise.
39339         * tests/test-open.h (test_open): Add parameters, and test symlink
39340         handling.
39341         * tests/test-open.c (main): Adjust caller.
39342         * tests/test-fcntl-safer.c (main): Likewise.
39343         * modules/open-tests (Depends-on): Add stdbool, symlink.
39344         * modules/fcntl-safer-tests (Depends-on): Likewise.
39345         * tests/test-openat.c (main): Add test-open tests.
39346
39347         stat: detect FreeBSD bug
39348         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39349         symlink.
39350         * doc/posix-functions/stat.texi (stat): Document the bug.
39351         * tests/test-stat.h (test_stat_func): Add argument.
39352         * tests/test-stat.c (main): Adjust caller.
39353         * tests/test-fstatat.c (main): Likewise.
39354         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39355         Reported by Jim Meyering.
39356
39357 2009-11-09  James Youngman  <jay@gnu.org>
39358
39359         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39360         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39361
39362 2009-11-08  Jim Meyering  <meyering@redhat.com>
39363
39364         utimens: remove invalid futimesat call
39365         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39366         It used the file descriptor of the target file as the DIR_FD
39367         parameter and NULL as the file name.  That caused failure with
39368         errno == EFAULT on FreeBSD-8.0-rc2
39369
39370 2009-11-07  Eric Blake  <ebb9@byu.net>
39371
39372         fflush, freadseek: use fseeko, not fseek
39373         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39374         (clear_ungetc_buffer): Avoid potential problems on large files.
39375         * lib/freadseek.c (freadseek): Likewise.
39376         * modules/freadseek (Depends-on): Add fseeko.
39377         * modules/fseek (configure.ac): Set a witness.
39378         * tests/test-fflush.c (main): Use fseeko.
39379         * tests/test-fpurge.c (fseek): Disable link warning.
39380         * tests/test-freadable.c (fseek): Likewise.
39381         * tests/test-freading.c (fseek): Likewise.
39382         * tests/test-fseeko.c (fseek): Likewise.
39383         * tests/test-ftell.c (fseek): Likewise.
39384         * tests/test-ftello.c (fseek): Likewise.
39385         * tests/test-fwritable.c (fseek): Likewise.
39386         * tests/test-fwriting.c (fseek): Likewise.
39387
39388 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39389
39390         * modules/memchr (Depends-on): Drop getpagesize dependency.
39391
39392 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39393
39394         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39395         Reported by Ludovic Courtès.
39396         * build-aux/pmccabe2html: Improve example usage.
39397         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39398
39399 2009-11-06  Jim Meyering  <meyering@redhat.com>
39400
39401         do-release-commit-and-tag: New module.
39402         Automate the release-commit and tag process.
39403         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39404         * modules/do-release-commit-and-tag: New file.
39405         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39406
39407 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39408
39409         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39410         because test-select.c uses inet_pton.
39411
39412 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39413
39414         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39415         GETADDRINFO_LIB.  Bump serial number.
39416         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39417         Suggested by Eric Blake <ebb9@byu.net>.
39418
39419 2009-11-05  Eric Blake  <ebb9@byu.net>
39420
39421         strtod: detect darwin bug
39422         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39423         Reported by Leo Davis.
39424
39425         freopen-safer: new module
39426         * modules/freopen-safer: New module.
39427         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39428         * lib/freopen-safer.c (freopen_safer): New file.
39429         * lib/stdio-safer.h (freopen_safer): New declaration.
39430         * lib/stdio--.h (freopen): New override.
39431         * MODULES.html.sh (File stream based Input/Output): Mention it.
39432         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39433         freopen-safer module.
39434         * doc/posix-functions/stderr.texi (stderr): Likewise.
39435         * doc/posix-functions/stdin.texi (stdin): Likewise.
39436         * doc/posix-functions/stdout.texi (stdout): Likewise.
39437         * modules/freopen-safer-tests: New test.
39438         * tests/test-reopen-safer.c: New file.
39439
39440 2009-11-05  Jim Meyering  <meyering@redhat.com>
39441
39442         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39443         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39444
39445 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39446
39447         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39448
39449 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39450
39451         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39452
39453 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39454
39455         Fix link error.
39456         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39457         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39458
39459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39460
39461         * tests/test-func.c: Also test value of __func__.
39462
39463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39464
39465         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39466         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39467
39468 2009-11-05  Bruno Haible  <bruno@clisp.org>
39469
39470         Fix link error.
39471         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39472         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39473         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39474
39475 2009-11-05  Bruno Haible  <bruno@clisp.org>
39476
39477         Tests for module 'inet_pton'.
39478         * modules/inet_pton-tests: New file.
39479         * tests/test-inet_pton.c: New file.
39480
39481 2009-11-05  Bruno Haible  <bruno@clisp.org>
39482
39483         Tests for module 'inet_ntop'.
39484         * modules/inet_ntop-tests: New file.
39485         * tests/test-inet_ntop.c: New file.
39486
39487 2009-11-04  Eric Blake  <ebb9@byu.net>
39488
39489         stdlib-safer: wrap all mkstemp variants
39490         * modules/mkostemp (configure.ac): Set witness.
39491         * modules/mkostemps (configure.ac): Likewise.
39492         * modules/mkstemps (configure.ac): Likewise.
39493         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39494         (mkstemps_safer): Wrap more functions.
39495         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39496         wrapping.
39497         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39498         (mkstemps_safer): Implement the wrappers.
39499
39500         mkstemps, mkostemps: new modules
39501         * modules/mkostemps: New module.
39502         * modules/mkstemps: Likewise.
39503         * lib/mkostemps.c (mkostemps): New file.
39504         * lib/mkstemps.c (mkstemps): Likewise.
39505         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39506         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39508         * modules/stdlib (Makefile.am): Substitute them.
39509         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39510         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39511         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39512         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39513         * MODULES.html.sh (File system functions): Mention them.
39514
39515         tempname: resync from glibc
39516         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39517         same values for __GT_FILE as glibc.  Abort even when assertions
39518         are disabled.
39519         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39520         match its value otherwise.  Allow idempotent inclusion.
39521         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39522         * lib/mkostemp.c (mkostemp): Likewise.
39523         * lib/mkstemp.c (mkstemp): Likewise.
39524         * lib/tmpfile.c (tmpfile): Likewise.
39525         * NEWS: Document this.
39526
39527         utimens: fix use of futimens on older Linux
39528         * lib/utimens.c (fdutimens): Use updated, rather than original,
39529         timespec to avoid bug in older Linux kernel.
39530         Reported by Simon Josefsson.
39531
39532 2009-11-04  Bruno Haible  <bruno@clisp.org>
39533
39534         Make num_processors more flexible and consistent.
39535         * lib/nproc.h (enum nproc_query): New type.
39536         (num_processors): Add a 'query' argument.
39537         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39538         (num_processors): Add a 'query' argument. Test the value of the
39539         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39540         mingw, count the number of CPUs available for the current process.
39541         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39542         Check for sched_getaffinity and sched_getaffinity_np.
39543         * modules/nproc (Depends-on): Add c-ctype, extensions.
39544         * NEWS: Mention the change.
39545
39546 2009-11-03  Bruno Haible  <bruno@clisp.org>
39547
39548         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39549
39550 2009-11-03  Jim Meyering  <meyering@redhat.com>
39551
39552         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39553         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39554         if it is defined.
39555
39556 2009-11-02  Eric Blake  <ebb9@byu.net>
39557
39558         mktime, timegm: share common declaration
39559         * lib/mktime-internal.h: New file.
39560         * lib/mktime.c: Use it rather than open-coding a declaration.
39561         * lib/timegm.c: Likewise.
39562         * modules/mktime (Files): Ship it.
39563         * modules/timegm (Files): Likewise.
39564         Suggested by Bruno Haible.
39565
39566         test-update-copyright: update test to match script changes
39567         * tests/test-update-copyright.sh: Avoid hard-coding perl
39568         location.  Don't update *.bak created by earlier runs.
39569
39570 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39571             Simon Josefsson  <simon@josefsson.org>
39572             Bruno Haible  <bruno@clisp.org>
39573
39574         Fix link error on Solaris 8.
39575         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39576         also in libnsl. Define also INET_PTON_LIB.
39577         * modules/inet_pton (Link): New section.
39578
39579 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39580             Bruno Haible  <bruno@clisp.org>
39581
39582         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39583         * modules/inet_ntop (Link): New section.
39584         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39585
39586 2009-11-02  Eric Blake  <ebb9@byu.net>
39587
39588         maint: avoid compiler warnings in m4 macros
39589         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39591
39592 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39593
39594         * m4/pmccabe2html.m4: Remove file.
39595         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39596         function.  Change maintainer.
39597         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39598         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39599         Courtès).
39600
39601 2009-10-31  Eric Blake  <ebb9@byu.net>
39602
39603         fseeko: fix m4 regression
39604         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39605         regression from 2009-10-27.
39606         Reported by Ralf Wildenhues.
39607
39608 2009-10-31  Jim Meyering  <meyering@redhat.com>
39609
39610         inttostr: aesthetics and improved (compile-time) safety
39611         Define inttype_is_signed rather than inttype_is_unsigned,
39612         since the sole use is via "#if inttype_is_signed".
39613         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39614         inttype_is_unsigned.
39615         * lib/offtostr.c (inttype_is_signed): Likewise.
39616         * lib/uinttostr.c (inttype_is_signed): Likewise.
39617         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39618         * lib/inttostr.c (inttostr): Use verify to cross-check the
39619         inttype_is_signed value and the signedness of the actual type.
39620         * modules/inttostr (Depends-on): Add verify.
39621
39622 2009-10-30  Eric Blake  <ebb9@byu.net>
39623
39624         build: avoid compiler warnings
39625         * lib/fchmodat.c (lchmod): Mark unused variables.
39626         * lib/getopt.c (_getopt_initialize): Likewise.
39627         * lib/mktime.c (__mktime_internal): Provide prototype.
39628         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39629         older gcc that do not understand #pragma GCC diagnostic.
39630         * lib/uinttostr.c (inttype_is_unsigned): Define.
39631         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39632
39633 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39634
39635         stat: fix compilation on AIX
39636         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39637         only see struct stat64.
39638
39639 2009-10-30  Eric Blake  <ebb9@byu.net>
39640
39641         exclude: make more robust
39642         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39643         rather than masking a coding bug.
39644         Suggested by Bruno Haible.
39645
39646 2009-10-30  Jim Meyering  <meyering@redhat.com>
39647
39648         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39649         Rather than putting #!/usr/bin/perl on the first line,
39650         start with a variant of what's recommended by "man perlrun" that
39651         invokes the first "perl" program from your shell's search path.
39652         * build-aux/gitlog-to-changelog: Replace #!... as above.
39653         Add a "Local Variables" perl mode setting.
39654         Prompted by a patch from Ludovic Courtès.
39655         Improved by Eric Blake.
39656         * build-aux/useless-if-before-free: Likewise.
39657         * build-aux/announce-gen: Likewise.
39658         * build-aux/update-copyright: Likewise.
39659
39660 2009-10-29  Eric Blake  <ebb9@byu.net>
39661
39662         filenamecat-lgpl: adjust clients
39663         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39664         filenamecat.
39665         * modules/renameat (Depends-on): Likewise.
39666
39667         filenamecat: split into filenamecat-lgpl
39668         * modules/filenamecat-lgpl: New module.
39669         * modules/filenamecat (Files): Move library-safe files into
39670         filenamecat-lgpl.
39671         (Depends-on): Add filenamecat-lgpl.
39672         (configure.ac): Declare witness.
39673         * lib/filenamecat.h (file_name_concat): Only declare when using
39674         GPL module.
39675         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39676         Move...
39677         * lib/filenamecat-lgpl.c: ...into new file.
39678         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39679         (gl_FILE_NAME_CONCAT): Use it.
39680         * MODULES.html.sh (File system functions): Mention new module.
39681
39682         argp: avoid memory leak
39683         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39684         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39685         base_name, since the latter malloc()s and can call exit().
39686         Leak introduced 2006-07-03.
39687
39688         dirname-lgpl: adjust clients that don't need full dirname
39689         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39690         * modules/filenamecat (Depends-on): Likewise.
39691         * modules/linkat (Depends-on): Likewise.
39692         * modules/mkancesdirs (Depends-on): Likewise.
39693         * modules/mkdir (Depends-on): Likewise.
39694         * modules/openat (Depends-on): Likewise.
39695         * modules/savewd (Depends-on): Likewise.
39696         * modules/rename (Depends-on): Likewise.
39697         (License): Relax license.
39698         * modules/mkdir-tests (Depends-on): Drop progname.
39699         (Makefile.am): Delete unneeded LDADD.
39700         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39701
39702         dirname: split into dirname-lgpl
39703         * modules/dirname-lgpl: New module.
39704         * modules/dirname (Files): Move library-safe files into
39705         dirname-lgpl.
39706         (Depends-on): Add dirname-lgpl.
39707         (configure.ac): Declare witness.
39708         * modules/double-slash-root (License): Relax license.
39709         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39710         module.
39711         * lib/dirname.c (dir_len, mdir_name): Move...
39712         * lib/dirname-lgpl.c: ...into new file.
39713         * lib/basename.c (last_component, base_len): Move...
39714         * lib/basename-lgpl.c: ...into new file.
39715         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39716         (gl_DIRNAME): Use it.
39717         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39718         Mention new module.
39719         * modules/dirname-tests (Depends-on): Add progname.
39720         * tests/test-dirname.c (program_name): Delete.
39721
39722         mkdir: make safe for libraries
39723         * modules/mkdir (Depends-on): Drop xalloc.
39724         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39725         exit.
39726
39727         tests: avoid some compiler warnings
39728         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39729         literals.
39730         * tests/test-memchr.c (main): Avoid type mismatch.
39731         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39732         * tests/test-base64.c (main): Likewise.
39733         * tests/test-getdelim.c (main): Likewise.
39734         * tests/test-gethostname.c (main): Likewise.
39735         * tests/test-getline.c (main): Likewise.
39736         * tests/test-netinet_in.c (main): Likewise.
39737         * tests/test-select.c (open_server_socket, main): Likewise.
39738         * tests/test-select-stdin.c (main): Likewise.
39739         * tests/test-sockets.c (main): Likewise.
39740         * tests/test-strsignal.c (main): Likewise.
39741         * tests/test-sys_select.c (main): Likewise.
39742         * tests/test-sys_socket.c (main): Likewise.
39743         * tests/test-u64.c (main): Likewise.
39744         * tests/test-xfprintf-posix.c (main): Likewise.
39745         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39746
39747         sockets: avoid compiler warning
39748         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39749
39750         maint: detect usage(1) and other suspicious exits
39751         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39752
39753 2009-10-29  Jim Meyering  <meyering@redhat.com>
39754
39755         timespec: long-to-int truncation could make timespec_cmp malfunction
39756         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39757         a multiple of 2^32 nanoseconds as no difference.
39758
39759 2009-10-28  Jim Meyering  <meyering@redhat.com>
39760
39761         fprintftime: wrap macro code argument in "do {...} while(0)"
39762         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39763         cpy macro must be a statement that can be followed by a semicolon.
39764         Now that the else clause contains a comment and is hence longer
39765         than one line, I require curly braces.  That in turn requires
39766         that we wrap this code block in the standard do...while(0).
39767
39768         fprintftime: remove stray semicolon from previous change
39769         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39770
39771         fprintftime: avoid a warning about ignored fwrite return value
39772         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39773         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39774         that is unsafe.
39775         * modules/fprintftime (Depends-on): Add ignore-value.
39776
39777         exclude: avoid an unwarranted warning
39778         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39779
39780 2009-10-27  Eric Blake  <ebb9@byu.net>
39781
39782         fseek: avoid compilation failure when fflush is replaced
39783         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39784         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39785         module is in use.
39786         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39787         module is not in use; since REPLACE_FSEEK worked otherwise.
39788         (GNULIB_FTELLO): Likewise for ftell.
39789         Reported by Ian Beckwith and others.
39790
39791 2009-10-27  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39794         Reported by Jim Meyering.
39795
39796 2009-10-27  Jim Meyering  <jim@meyering.net>
39797             Bruno Haible  <bruno@clisp.org>
39798
39799         Avoid warning despite dropping the return value of fwrite.
39800         * lib/unicodeio.c: Include ignore-value.h.
39801         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39802         * modules/unicodeio (Depends-on): Add ignore-value.
39803
39804 2009-10-26  Eric Blake  <ebb9@byu.net>
39805
39806         areadlinkat: fix fallback path
39807         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39808         pointer and zero.
39809
39810 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39811
39812         Use a better IO block size for modern systems
39813         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39814         * lib/md2.c: Likewise.
39815         * lib/md4.c: Likewise.
39816         * lib/md5.c: Likewise.
39817         * lib/sha1.c: Likewise.
39818         * lib/sha256.c: Likewise.
39819         * lib/sha512.c: Likewise.
39820
39821 2009-10-22  Eric Blake  <ebb9@byu.net>
39822
39823         tests: avoid several compiler warnings
39824         * tests/test-getcwd.c (main): Avoid buffer underflow.
39825         * tests/test-getdate.c (main): String literals are not safe with
39826         putenv, so use setenv.  Declare unused argument.
39827         * modules/getdate-tests (Depends-on): Add setenv.
39828         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39829         problems with string literals in char *.
39830         * tests/test-hash.c (main): Avoid shadowing declaration.
39831         (insert_new): Treat string literals as char const *.
39832         * tests/test-getopt.h (test_getopt): Likewise.
39833         (getopt_loop): Alter types to minimize casting elsewhere.
39834         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39835         (test_getopt_long_posix): Likewise.
39836         (do_getopt_long): Add wrapper to minimize casting.
39837         * tests/test-atexit.c (clear_temp_file): Use void.
39838         * tests/test-areadlink-with-size.c (main): Declare unused
39839         arguments.
39840         * tests/test-areadlink.c (main): Likewise.
39841         * tests/test-areadlinkat-with-size.c (main): Likewise.
39842         * tests/test-areadlinkat.c (main): Likewise.
39843         * tests/test-canonicalize-lgpl.c (main): Likewise.
39844         * tests/test-canonicalize.c (main): Likewise.
39845         * tests/test-dirent-safer.c (main): Likewise.
39846         * tests/test-dirname.c (main): Likewise.
39847         * tests/test-dup2.c (main): Likewise.
39848         * tests/test-fchdir.c (main): Likewise.
39849         * tests/test-fcntl-h.c (main): Likewise.
39850         * tests/test-fcntl-safer.c (main): Likewise.
39851         * tests/test-fdopendir.c (main): Likewise.
39852         * tests/test-fdutimensat.c (main): Likewise.
39853         * tests/test-fflush.c (main): Likewise.
39854         * tests/test-filenamecat.c (main): Likewise.
39855         * tests/test-filevercmp.c (main): Likewise.
39856         * tests/test-fopen-safer.c (main): Likewise.
39857         * tests/test-fopen.c (main): Likewise.
39858         * tests/test-fpending.c (main): Likewise.
39859         * tests/test-fpurge.c (main): Likewise.
39860         * tests/test-freading.c (main): Likewise.
39861         * tests/test-fstatat.c (main): Likewise.
39862         * tests/test-fsync.c (main): Likewise.
39863         * tests/test-futimens.c (main): Likewise.
39864         * tests/test-getndelim2.c (main): Likewise.
39865         * tests/test-gettimeofday.c (main): Likewise.
39866         * tests/test-getopt.c (main): Likewise.
39867         * tests/test-i-ring.c (main): Likewise.
39868         * tests/test-inttypes.c (main): Likewise.
39869         * tests/test-link.c (main): Likewise.
39870         * tests/test-lstat.c (main): Likewise.
39871         * tests/test-math.c (main): Likewise.
39872         * tests/test-md5.c (main): Likewise.
39873         * tests/test-memchr2.c (main): Likewise.
39874         * tests/test-memrchr.c (main): Likewise.
39875         * tests/test-mkdir.c (main): Likewise.
39876         * tests/test-mkdirat.c (main): Likewise.
39877         * tests/test-mkfifoat.c (main): Likewise.
39878         * tests/test-open.c (main): Likewise.
39879         * tests/test-openat-safer.c (main): Likewise.
39880         * tests/test-openat.c (main): Likewise.
39881         * tests/test-quotearg.c (main): Likewise.
39882         * tests/test-rawmemchr.c (main): Likewise.
39883         * tests/test-readlink.c (main): Likewise.
39884         * tests/test-remove.c (main): Likewise.
39885         * tests/test-rename.c (main): Likewise.
39886         * tests/test-renameat.c (main): Likewise.
39887         * tests/test-rmdir.c (main): Likewise.
39888         * tests/test-sha1.c (main): Likewise.
39889         * tests/test-signal.c (main): Likewise.
39890         * tests/test-sigaction.c (main): Likewise.
39891         * tests/test-stat.c (main): Likewise.
39892         * tests/test-stat-time.c (main): Likewise.
39893         * tests/test-stddef.c (main): Likewise.
39894         * tests/test-stdint.c (main): Likewise.
39895         * tests/test-stdio.c (main): Likewise.
39896         * tests/test-stdlib.c (main): Likewise.
39897         * tests/test-strchrnul.c (main): Likewise.
39898         * tests/test-strerror.c (main): Likewise.
39899         * tests/test-string.c (main): Likewise.
39900         * tests/test-strtod.c (main): Likewise.
39901         * tests/test-strverscmp.c (main): Likewise.
39902         * tests/test-symlink.c (main): Likewise.
39903         * tests/test-symlinkat.c (main): Likewise.
39904         * tests/test-sys_stat.c (main): Likewise.
39905         * tests/test-sys_time.c (main): Likewise.
39906         * tests/test-time.c (main): Likewise.
39907         * tests/test-unistd.c (main): Likewise.
39908         * tests/test-unlink.c (main): Likewise.
39909         * tests/test-unlinkat.c (main): Likewise.
39910         * tests/test-utimens.c (main): Likewise.
39911         * tests/test-utimensat.c (main): Likewise.
39912         * tests/test-version-etc.c (main): Likewise.
39913         * tests/test-wchar.c (main): Likewise.
39914         * tests/test-wctype.c (main): Likewise.
39915         * tests/test-xprintf-posix.c (main): Likewise.
39916         * tests/test-posixtm.c (main): Likewise.
39917         (STREQ): Delete unused macro.
39918         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39919         shadowed variables.
39920         * tests/test-memchr.c (main): Likewise.
39921
39922 2009-10-21  Eric Blake  <ebb9@byu.net>
39923
39924         areadlinkat: avoid failure on older glibc
39925         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39926         rather than mis-comparing 0 against FUNC_RESULT of char*.
39927
39928 2009-10-21  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/stpncpy (License): Relicense under LGPLv2+.
39931         Reported by David Lutterkort <lutter@redhat.com>.
39932
39933 2009-10-20  Eric Blake  <ebb9@byu.net>
39934
39935         utimensat: work around Solaris 9 bug
39936         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39937         has trailing slash bugs.
39938         * tests/test-lutimens.h (test_lutimens): Enhance test.
39939         * tests/test-utimens.h (test_utimens): Likewise.
39940         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39941         * doc/posix-functions/utimes.texi (utimes): Likewise.
39942         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39943         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39944         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39945         * doc/posix-functions/futimens.texi (futimens): Likewise.
39946
39947         fdutimensat: new module
39948         * modules/fdutimensat: New file.
39949         * lib/fdutimensat.c (fdutimensat): Likewise.
39950         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39951         * MODULES.html.sh (File system functions): Mention module.
39952         * modules/fdutimensat-tests: New test.
39953         * tests/test-fdutimensat.c: Likewise.
39954
39955         doc: regenerate INSTALL
39956         * doc/INSTALL: Reflect recent autoconf update.
39957         * doc/INSTALL.ISO: Likewise.
39958         * doc/INSTALL.UTF-8: Likewise.
39959
39960 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39961
39962         acl: warn if ACL support is not detected
39963         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39964
39965 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39966
39967         * lib/nproc.h: Add extern "C" block for C++.
39968
39969 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39970             Bruno Haible  <bruno@clisp.org>
39971
39972         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39973         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39974         * doc/posix-functions/isalpha.texi: Likewise.
39975         * doc/posix-functions/isblank.texi: Likewise.
39976         * doc/posix-functions/iscntrl.texi: Likewise.
39977         * doc/posix-functions/isdigit.texi: Likewise.
39978         * doc/posix-functions/isgraph.texi: Likewise.
39979         * doc/posix-functions/islower.texi: Likewise.
39980         * doc/posix-functions/isprint.texi: Likewise.
39981         * doc/posix-functions/ispunct.texi: Likewise.
39982         * doc/posix-functions/isspace.texi: Likewise.
39983         * doc/posix-functions/isupper.texi: Likewise.
39984         * doc/posix-functions/isxdigit.texi: Likewise.
39985
39986 2009-10-18  Bruno Haible  <bruno@clisp.org>
39987
39988         Tests for module 'isblank'.
39989         * modules/isblank-tests: New file.
39990         * tests/test-isblank.c: New file.
39991
39992         New module 'isblank'.
39993         * lib/isblank.c: New file.
39994         * m4/isblank.m4: New file.
39995         * modules/isblank: New file.
39996         * doc/posix-functions/isblank.texi: Mention the new module.
39997
39998 2009-10-18  Bruno Haible  <bruno@clisp.org>
39999
40000         New module 'ctype'.
40001         * lib/ctype.in.h: New file.
40002         * m4/ctype.m4: New file.
40003         * modules/ctype: New file.
40004         * doc/posix-headers/ctype.texi: Mention the new module.
40005
40006 2009-10-18  Jim Meyering  <meyering@redhat.com>
40007
40008         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40009         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40010         right after its initialization, rather than farther down.
40011         Keeping these in close proximity makes it easier to ensure
40012         that each such variable is initialized.  E.g.,
40013
40014             LIB_CLOCK_GETTIME=
40015             AC_SUBST([LIB_CLOCK_GETTIME])
40016
40017         This change also increments these serial numbers.
40018         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40019         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40021
40022 2009-10-18  Bruno Haible  <bruno@clisp.org>
40023
40024         Don't let environment variables perturb build.
40025         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40026         (gl_PREREQ_GETHRXTIME): ... not here.
40027
40028 2009-10-18  Bruno Haible  <bruno@clisp.org>
40029
40030         Avoid symlink attack in localcharset module.
40031         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40032         (O_NOFOLLOW): Define fallback.
40033         (get_charset_aliases): Don't open the file if it is a symbolic link.
40034         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40035         gl_FCNTL_H.
40036         (gl_FCNTL_H): Require it.
40037         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40038         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40039         Reported by Fergal Glynn <fglynn@veracode.com>.
40040
40041 2009-10-18  Bruno Haible  <bruno@clisp.org>
40042
40043         Implement nproc for mingw.
40044         * lib/nproc.c: Include <windows.h>
40045         (num_processors): On native Windows platforms, try GetSystemInfo.
40046
40047 2009-10-18  Bruno Haible  <bruno@clisp.org>
40048
40049         Implement nproc for IRIX.
40050         * lib/nproc.c: Include <sys/sysmp.h>.
40051         (num_processors): On IRIX systems, try sysmp.
40052         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40053
40054 2009-10-18  Bruno Haible  <bruno@clisp.org>
40055
40056         Implement nproc for HP-UX.
40057         * lib/nproc.c: Include <sys/pstat.h>
40058         (num_processors): On HP-UX systems, try pstat_getdynamic.
40059         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40060         pstat_getdynamic.
40061
40062 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40063             Bruno Haible  <bruno@clisp.org>
40064
40065         Implement nproc for NetBSD, OpenBSD.
40066         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40067         (ARRAY_SIZE): New macro.
40068         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40069         * m4/nproc.m4: New file.
40070         * modules/nproc (Files): Add m4/nproc.m4.
40071         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40072         (Makefile.am): Instead, augment lib_SOURCES.
40073
40074 2009-10-18  Bruno Haible  <bruno@clisp.org>
40075
40076         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40077         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40078         sys/param.h.
40079
40080 2009-10-16  Eric Blake  <ebb9@byu.net>
40081
40082         utimensat: new module
40083         * modules/utimensat: New file.
40084         * lib/utimensat.c (utimensat): Likewise.
40085         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40086         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40087         so we can work around Linux bugs.
40088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40089         * modules/sys_stat (Makefile.am): Substitute them.
40090         * lib/sys_stat.in.h (utimensat): Declare it.
40091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40092         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40093         * modules/utimensat-tests: New test.
40094         * tests/test-utimensat.c: Likewise.
40095
40096         utimens: let lutimens work on non-symlinks
40097         * lib/utimens.c (lutimens): Fall back to utimens rather than
40098         failing with ENOSYS, when file is not a symlink.
40099         (utimens): Reduce redirection.
40100         * tests/test-lutimens.h (test_lutimens): Update test to cover
40101         non-symlinks.
40102         * tests/test-utimens.h (test_utimens): Update test to cover
40103         symlinks.
40104         * tests/test-utimens.c (main): Update caller.
40105
40106         utimens: cache whether utimensat syscall works
40107         * lib/utimens.c (utimensat_works_really): New cache variable.
40108         (fdutimens, lutimens): Use it to avoid failing syscall.
40109
40110         test-stat-time, test-utimens: improve portability
40111         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40112         ext4 on alpha, and for cygwin.
40113         * tests/test-utimens-common.h: New file.
40114         (nap): Factor delays into single function.
40115         * tests/test-lutimens.h (test_lutimens): Use new header.
40116         * tests/test-futimens.h (test_futimens): Likewise.
40117         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40118         timestamps to occur from same machine, as was done previously for
40119         test_utimens.
40120         * modules/utimens-tests (Files): Ship new file.
40121         * modules/futimens-tests (Files): Likewise.
40122         Reported in part by Jim Meyering.
40123
40124         sys_stat: sort replacement declarations
40125         * lib/sys_stat.in.h: Sort declarations.
40126         * lib/futimens.c (futimens): Fix typo.
40127
40128 2009-10-15  Jim Meyering  <meyering@redhat.com>
40129
40130         don't let environment settings perturb build
40131         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40132         could cause a configure-time and/or build-time malfunction.
40133         Typically, a configure-time function-in-library test is performed
40134         via code like this:
40135
40136           LIB_VAR=
40137           AC_SUBST([LIB_VAR])
40138           prefix_saved_LIBS=$LIBS
40139             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40140                        [test "$ac_cv_search_FUNC" = "none required" ||
40141                         LIB_VAR=$ac_cv_search_FUNC])
40142           LIBS=$prefix_saved_LIBS
40143
40144         However, in each of the files affected by this change, the LIB_VAR=
40145         initialization was omitted.  Thus, when set in the environment, its
40146         value would propagate into generated Makefiles when FUNC is not found
40147         in LIB_NAME.
40148         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40149         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40151
40152 2009-10-14  Eric Blake  <ebb9@byu.net>
40153
40154         fchdir: avoid infinite recursion in mingw
40155         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40156         recursing.
40157
40158         test-stat-time: port to mingw
40159         * tests/test-stat-time.c (force_unlink): Return a value.
40160         (test_ctime) [W32]: Fix compilation error.
40161         (nap): Don't call usleep with too large an argument.  Use
40162         force_unlink.
40163         * doc/pastposix-functions/usleep.texi (usleep): Document the
40164         portability issue.
40165
40166 2009-10-13  Jim Meyering  <meyering@redhat.com>
40167
40168         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40169         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40170         * modules/pipe-filter-ii: Likewise.
40171         * modules/sys_socket-tests: Likewise.
40172         * modules/tsearch-tests: Likewise.
40173         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40174         (check): Depend on it.
40175
40176 2009-10-12  Eric Blake  <ebb9@byu.net>
40177
40178         utimens-tests: port to NFS file systems
40179         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40180         comparisons to avoid spurious failures from timestamp drift
40181         between NFS machines.
40182
40183 2009-10-12  Eric Blake  <ebb9@byu.net>
40184
40185         stat-time-tests: minor cleanups
40186         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40187         * tests/test-stat-time.c (nap): Separate assignment from call.
40188         Suggested by Paolo Bonzini and Bruno Haible.
40189
40190         sys_stat: guarantee struct timespec
40191         * lib/sys_stat.in.h (includes): Always include <time.h>
40192         * modules/sys_stat (Depends-on): Add time.
40193         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40194         mode_t permission values.
40195         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40196         get at subsecond timestamps.
40197
40198 2009-10-10  Eric Blake  <ebb9@byu.net>
40199
40200         futimens: new module
40201         * modules/futimens: New file.
40202         * lib/futimens.c (futimens): Likewise.
40203         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40204         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40205         we can work around Linux bugs.
40206         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40207         * modules/sys_stat (Makefile.am): Substitute them.
40208         * lib/sys_stat.in.h (futimens): Declare it.
40209         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40210         * doc/posix-functions/futimens.texi (futimens): Likewise.
40211         * modules/futimens-tests: New test.
40212         * tests/test-futimens.c: Likewise.
40213
40214         utimens: introduce fdutimens
40215         * lib/utimens.h (fdutimens): New prototype.
40216         * lib/utimens.c (gl_futimens): Move guts...
40217         (fdutimens): ...to new interface.
40218         * tests/test-utimens.c (do_fdutimens): Use it.
40219
40220         utimens: add UTIME_NOW and UTIME_OMIT support
40221         * lib/utimens.c (validate_timespec, update_timespec): New helper
40222         functions.
40223         (gl_futimens, lutimens): Use them.
40224         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40225         stdbool, sys_stat.
40226         (Link): Mention resulting library dependency.
40227         * modules/utimecmp (Link): Likewise.
40228         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40229         (Makefile.am): Pick up library dependency.
40230         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40231         definition.
40232         * tests/test-sys_stat.c: Test the definitions.
40233         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40234         * NEWS: Document library dependency.
40235
40236         utimecmp: support symlink timestamps
40237         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40238         hashing when possible.  Use pathconf when available.
40239         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40240         * modules/utimecmp (Depends-on): Add lstat.
40241
40242         utimens: add lutimens interface
40243         * lib/utimens.c (lutimens): New function.
40244         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40245         * lib/utimens.h (lutimens): Declare new interface.
40246         * tests/test-utimens.c (main): Enhance test.
40247         * tests/test-lutimens.h (test_lutimens): New file.
40248         * modules/utimens-tests (Files): Distribute it.
40249         (Depends-on): Add symlink.
40250         (configure.ac): Check for usleep.
40251
40252         utimens: validate futimens usage
40253         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40254         fewer syscalls on failure later on.  Avoid compiler warning on
40255         mingw.
40256         * modules/utimens (Depends-on): Add dup2.
40257
40258         utimens: add test
40259         * modules/utimens-tests: New test.
40260         * tests/test-utimens.h: New file.
40261         * tests/test-futimens.h: Likewise.
40262         * tests/test-utimens.c: Likewise.
40263
40264         doc: mention timestamp portability issues
40265         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40266         instead.
40267         * doc/posix-functions/utime.texi (utime): Likewise.
40268         * doc/posix-functions/utimes.texi (utimes): Likewise.
40269         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40270         instead.
40271         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40272         module.
40273         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40274         Mention weakness with symlink timestamps.
40275         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40276         to utimensat/futimens instead.
40277         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40278
40279         test-dup2: enhance test
40280         * tests/test-dup2.c (main): Also check AT_FDCWD.
40281
40282         test-stat-time: avoid more spurious failures
40283         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40284         xfs; and avoid race if the two timestamps cross quantization edge.
40285
40286         relocatable: prefer 'file system' over 'filesystem'
40287         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40288         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40289         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40290         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40291         * lib/relocatable.c (compute_curr_prefix): Likewise.
40292
40293 2009-10-10  Jim Meyering  <meyering@redhat.com>
40294
40295         stat-time-tests: check for the usleep function
40296         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40297
40298 2009-10-10  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/xnanosleep: Put the Link section after the Include section.
40301
40302 2009-10-09  Eric Blake  <ebb9@byu.net>
40303
40304         dup2: work around FreeBSD 6.1 bug
40305         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40306         * doc/posix-functions/dup2.texi (dup2): Document it.
40307         Reported by Nelson H. F. Beebe and Jim Meyering.
40308
40309         test-stat-time: port to buggy NFS clients
40310         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40311         (test_ctime): Also skip test if mtime and ctime are skewed.
40312
40313         maint: prefer 'file system' over 'filesystem'
40314         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40315         * doc/posix-functions/lstat.texi (lstat): Likewise.
40316         * lib/file-has-acl.c (file_has_acl): Likewise.
40317         * lib/fwriteerror.c [TEST]: Likewise.
40318         * tests/test-areadlink.h (test_areadlink): Likewise.
40319         * tests/test-areadlinkat-with-size.c (main): Likewise.
40320         * tests/test-areadlinkat.c (main): Likewise.
40321         * tests/test-canonicalize-lgpl.c (main): Likewise.
40322         * tests/test-canonicalize.c (main): Likewise.
40323         * tests/test-fstatat.c (main): Likewise.
40324         * tests/test-linkat.c (main): Likewise.
40325         * tests/test-lstat.h (test_lstat_func): Likewise.
40326         * tests/test-mkdir.h (test_mkdir): Likewise.
40327         * tests/test-readlink.h (test_readlink): Likewise.
40328         * tests/test-remove.c (main): Likewise.
40329         * tests/test-rename.h (test_rename): Likewise.
40330         * tests/test-renameat.c (main): Likewise.
40331         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40332         * tests/test-symlink.h (test_symlink): Likewise.
40333         * tests/test-symlinkat.c (main): Likewise.
40334         * tests/test-unlink.h (test_unlink_func): Likewise.
40335         * tests/test-unlinkat.c (main): Likewise.
40336
40337         maint: make realtime library usage explicit
40338         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40339         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40340         * modules/settime (Link): Likewise.
40341         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40342
40343         test-stat-time: speed up execution
40344         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40345         warning on mingw.
40346         (nap): New helper function.
40347         (prepare_test): Use it to reduce sleep time.
40348         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40349         execution.
40350         * modules/stat-time-tests (configure.ac): Check for usleep.
40351
40352 2009-10-09  Jim Meyering  <meyering@redhat.com>
40353
40354         selinux-h: always use getfilecon wrappers
40355         * lib/getfilecon.c: New file.
40356         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40357         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40358         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40359         (fgetfilecon): Provide a stub.
40360         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40361         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40362         file unconditionally.
40363         When <selinux/selinux.h> is found, arrange to use wrappers.
40364         * modules/selinux-h (Files): Add getfilecon.c.
40365         (Makefile.am): Substitute include-next-related bits
40366         into the now-always-generated selinux/selinux.h file.
40367         * doc/glibc-functions/lgetfilecon.texi: New file.
40368         * doc/glibc-functions/fgetfilecon.texi: New file.
40369         * doc/glibc-functions/getfilecon.texi: New file.
40370         * doc/glibc-functions/getfilecon-desc.texi: New file.
40371         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40372         which to pull in the new files.
40373         * MODULES.html.sh (Misc): Add selinux-h.
40374
40375 2009-10-08  Jim Meyering  <meyering@redhat.com>
40376
40377         unistd: fix comment typo
40378         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40379
40380 2009-10-08  Eric Blake  <ebb9@byu.net>
40381
40382         areadlink: use SIZE_MAX consistently
40383         * modules/areadlink (Depends-on): Add stdint.
40384         * modules/areadlink-with-size (Depends-on): Likewise.
40385         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40386         gives NULL; drop sys/types, since unistd gives size_t; and add
40387         stdint for SIZE_MAX.
40388         (SIZE_MAX): Rely on headers.
40389         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40390         and add stdint.
40391         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40392         (SIZE_MAX): Likewise.
40393         (INITIAL_BUF_SIZE): Turn into enum.
40394         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40395
40396 2009-10-08  Jim Meyering  <meyering@redhat.com>
40397
40398         areadlinkat: avoid compilation failure
40399         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40400         Fix typo in comment.
40401
40402 2009-10-07  Eric Blake  <ebb9@byu.net>
40403
40404         areadlinkat-with-size: new module
40405         * modules/areadlinkat-with-size: New module.
40406         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40407         * lib/areadlink.h (areadlinkat): Declare it.
40408         * MODULES.html.sh (File system functions): Mention it.
40409         * modules/areadlinkat-with-size-tests: New test.
40410         * tests/test-areadlinkat-with-size.c: New file.
40411
40412         xreadlinkat: new module
40413         * modules/xreadlinkat: New module.
40414         * lib/xreadlinkat.c (xreadlinkat): New file.
40415         * lib/xreadlink.h (xreadlinkat): Declare it.
40416         * MODULES.html.sh (File system functions): Mention it.
40417
40418         areadlinkat: new module
40419         * lib/at-func.c (FUNC_FAIL): New define.
40420         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40421         * modules/areadlinkat: New module.
40422         * lib/linkat.c (areadlinkat): Move...
40423         * lib/areadlinkat.c (areadlinkat): ...to new file.
40424         * lib/areadlink.h (areadlinkat): Declare it.
40425         * modules/linkat (Depends-on): Add areadlinkat.
40426         * MODULES.html.sh (File system functions): Mention it.
40427         * modules/areadlinkat-tests: New test.
40428         * tests/test-areadlinkat.c: New file.
40429
40430         areadlink, areadlink-with-size: add tests
40431         * modules/areadlink-tests: New test.
40432         * modules/areadlink-with-size-tests: Likewise.
40433         * tests/test-areadlink.h: New file.
40434         * tests/test-areadlink.c: Likewise.
40435         * tests/test-areadlink-with-size.c: Likewise.
40436
40437         maint: minor cleanups
40438         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40439         _UNUSED_PARAMETER_ instead.
40440         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40441         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40442         * modules/linkat-tests (Files): Distribute test-link.h.
40443
40444         openat, utimens: whitespace cleanup
40445         * lib/openat.c: Prefer space throughout, rather than mix of 8
40446         spaces vs. tabs.
40447         * lib/at-func.c: Likewise.
40448         * lib/utimens.c: Likewise.
40449
40450         openat: avoid using wrong fd
40451         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40452         working directory chooses same fd.
40453         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40454
40455         mkdir, mkdirat: fix cygwin 1.5.x bug
40456         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40457         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40458         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40459         bug.
40460         (gl_PREREQ_MKDIR): Delete unused macro.
40461         * modules/mkdir (Files): Track file rename.
40462         (configure.ac): Update macro name.
40463         * modules/openat (Depends-on): Add mkdir.
40464         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40465
40466         mkdir, mkdirat: add tests
40467         * modules/mkdir-tests: New test.
40468         * tests/test-mkdir.h: New file.
40469         * tests/test-mkdir.c: Likewise.
40470         * tests/test-mkdirat.c: Likewise.
40471         * modules/openat-tests (Files): Add new files.
40472         (Makefile.am): Run new test.
40473
40474 2009-10-06  Eric Blake  <ebb9@byu.net>
40475
40476         doc: tweak *at function documentation
40477         * doc/posix-functions/faccessat.texi (faccessat): Mention
40478         known issue with replacement.
40479         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40480         * doc/posix-functions/linkat.texi (linkat): Likewise.
40481         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40482         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40483         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40484         * doc/posix-functions/renameat.texi (renameat): Likewise.
40485         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40486
40487         openat: fix GNU/Hurd bug in unlinkat
40488         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40489         broken.
40490         * doc/posix-functions/unlink.texi (unlink): Document this.
40491         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40492
40493         fdopendir: fix GNU/Hurd bug
40494         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40495         allowing non-directory fds.
40496         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40498         * modules/dirent (Makefile.am): Substitute it.
40499         * lib/dirent.in.h (fdopendir): Declare replacement.
40500         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40501         * tests/test-fdopendir.c (main): Test something other than
40502         /dev/null, since on Hurd that behaves like a directory.
40503
40504         test-symlink: port to GNU/Hurd
40505         * tests/test-symlink.h (test_symlink): Relax expected errno.
40506
40507         doc: tweak more cygwin information
40508         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40509         now compatible with glibc.
40510         * doc/posix-functions/getopt.texi (getopt): Likewise.
40511
40512         getopt-gnu: add another test
40513         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40514         guarantee behavior relied on by m4.
40515         * tests/test-getopt.c (main): Use it.
40516         * modules/getopt-posix-tests (Depends-on): Add setenv.
40517         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40518
40519         getopt: fix compilation on darwin
40520         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40521         include.
40522         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40523         Reported by Ludovic Courtès.
40524
40525 2009-10-06  Bruno Haible  <bruno@clisp.org>
40526
40527         * modules/size_max (Description): Discourage its use.
40528         Reported by Simon Josefsson.
40529
40530 2009-10-06  Jim Meyering  <meyering@redhat.com>
40531
40532         linkat: avoid compilation failure
40533         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40534
40535 2009-10-05  Eric Blake  <ebb9@byu.net>
40536
40537         linkat: support Linux 2.6.17
40538         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40539         linkat on Linux, but allow cache variable override.
40540         * lib/linkat.c (rpl_linkat): Define override.
40541         * modules/linkat (Depends-on): Add symlinkat.
40542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40543         * modules/unistd (Makefile.am): Substitute it.
40544         * lib/unistd.in.h (linkat): Declare replacement.
40545         Reported by Pádraig Brady.
40546
40547         quotearg: port test to systems with C.UTF-8 locale
40548         * tests/test-quotearg.c (struct result_strings): Add another
40549         member, differentiating between C.ASCII and C.UTF-8 handling.
40550         (compare_strings): Add parameter.
40551         (main): Adjust all callers.
40552
40553         getopt: avoid clash with FreeBSD _getopt_internal
40554         * lib/getopt.in.h (_getopt_internal): Override the name.
40555         * lib/getopt_int.h (includes): Pick up any overrides.
40556         Reported by Reuben Thomas.
40557
40558         hash: allow C89 compilation
40559         * lib/hash.c (check_tuning): Move declaration before statement.
40560         Reported by Reuben Thomas.
40561
40562 2009-10-05  Karl Berry  <karl@gnu.org>
40563
40564         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40565
40566 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40567             Bruno Haible  <bruno@clisp.org>
40568
40569         * lib/uname.c (uname): Use a table-driven algorithm to compute
40570         Windows NT versions.
40571
40572 2009-10-04  Bruno Haible  <bruno@clisp.org>
40573
40574         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40575         program_invocation_short_name.
40576         * modules/progname (configure.ac): Test for presence of
40577         program_invocation_short_name.
40578         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40579
40580 2009-10-04  Bruno Haible  <bruno@clisp.org>
40581
40582         * lib/progname.c (set_program_name): Fix comment.
40583         Reported by Jim Meyering.
40584
40585 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40586             Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/uname.c: Include <string.h>.
40589         (uname): Do only one call to GetVersionEx in the common case.
40590
40591 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40592             Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40595         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40596         (uname): Add support for Windows CE and various non-x86 CPU types.
40597
40598 2009-10-03  Bruno Haible  <bruno@clisp.org>
40599
40600         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40601         invocation to tests/configure.ac.
40602         Reported by Ian Beckwith <ianb@erislabs.net>.
40603
40604 2009-10-02  Eric Blake  <ebb9@byu.net>
40605
40606         fchdir: avoid compiler warning
40607         * lib/fchdir.c (canonicalize_file_name)
40608         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40609
40610         test-open: support mingw errno values
40611         * tests/test-open.h (test_open): Relax test.
40612         * tests/test-fopen.h (test_fopen): Likewise.
40613         * tests/test-openat-safer.c (main): Likewise.
40614
40615         open: fix opening directory on mingw
40616         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40617
40618         test-open: on GNU/Hurd, /dev/null is a directory
40619         * tests/test-fopen.h (main): Rename...
40620         (test_fopen): ...to this.  Use a guaranteed non-directory when
40621         confirming open behavior on trailing slash.
40622         * tests/test-openat-safer.c (main): Likewise.
40623         * tests/test-open.h (main): Likewise....
40624         (test_open): ...to this.
40625         * tests/test-fopen.c (main): Adjust caller.
40626         * tests/test-fopen-safer.c (main): Likewise.
40627         * tests/test-open.c (main): Likewise.
40628         * tests/test-fcntl-safer.c (main): Likewise.
40629         Reported by Samuel Thibault.
40630
40631         rename, fchdir: don't ignore chdir failure
40632         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40633         * lib/rename.c (rpl_rename) [W32]: Likewise.
40634         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40635         an empty destination directory if source cannot be renamed,
40636         although there is still possibility for failure.
40637         * doc/posix-functions/rename.texi (rename): Document the race.
40638         Reported by Jim Meyering.
40639
40640         maint: cleanup whitespace in recent commits
40641         * lib/rename.c (rpl_rename): Remove tabs.
40642         * tests/test-link.h (test_link): Likewise.
40643         * lib/fchdir.c (get_name): Likewise.
40644         Reported by Jim Meyering.
40645
40646 2009-10-02  Ben Pfaff  <blp@gnu.org>
40647
40648         relocatable-prog-wrapper: Add missing dependency on
40649         double-slash-root.
40650         * modules/relocatable-prog-wrapper: Add dependency.
40651         Reported by Ian Beckwith <ianb@erislabs.net>.
40652
40653 2009-10-02  Eric Blake  <ebb9@byu.net>
40654
40655         renameat: fix Solaris bugs
40656         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40657         needed fixing.
40658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40659         * modules/stdio (Makefile.am): Substitute it.
40660         * lib/stdio.in.h (renameat): Declare replacement.
40661         * lib/renameat.c (rpl_renameat): Implement fix.
40662
40663         renameat: new module
40664         * modules/renameat: New file.
40665         * lib/renameat.c (renameat): Likewise.
40666         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40668         * modules/stdio (Makefile.am): Substitute them.
40669         * lib/stdio.in.h (renameat): Declare it.
40670         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40671         * doc/posix-functions/renameat.texi (renameat): Likewise.
40672         * modules/renameat-tests: New test.
40673         * tests/test-renameat.c: Likewise.
40674
40675         rename: fix mingw bugs
40676         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40677         directory overwrite bugs.
40678
40679         rename: fix another cygwin 1.5 bug
40680         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40681         checks.
40682         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40683         unnecessary cygwin workarounds.  Also work around bug with moving
40684         full directory onto an empty one.
40685         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40686
40687         rename-dest-slash: merge into rename module
40688         * modules/rename-dest-slash (Status): Mark obsolete.
40689         (Depends-on): Add rename.
40690         (Files): Let rename do it all.
40691         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40692         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40693         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40694         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40695         * lib/rename.c (rpl_rename): Update comments.
40696
40697         rename: fix cygwin 1.5.x bugs
40698         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40699         * lib/rename.c (rpl_rename): Work around them.
40700         * modules/rename (Depends-on): Add same-inode.
40701
40702         rename: fix Solaris 10 bug
40703         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40704         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40705         was the only bug.
40706
40707         rename: fix Solaris 9 bug
40708         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40709         on non-directory.  Avoid calling exit.
40710         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40711         strdup.
40712         * modules/rename-tests (Depends-on): Drop lstat.
40713         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40714         (gl_PREREQ_RENAME): Delete unused macro.
40715
40716         rename-dest-slash: fix NetBSD bug
40717         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40718         links.
40719         * modules/rename-dest-slash (Depends-on): Add same-inode.
40720
40721         rename-tests: new test, exposes several platform bugs
40722         * modules/rename-tests: New file.
40723         * tests/test-rename.h: Likewise.
40724         * tests/test-rename.c: Likewise.
40725         * doc/posix-functions/rename.texi (rename): Improve documentation,
40726         including bugs that will eventually be fixed in gnulib.
40727
40728 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40729
40730         * lib/uname.c: Include <stdlib.h>
40731         (uname): Assume version info is available.
40732
40733 2009-10-02  Jim Meyering  <meyering@redhat.com>
40734
40735         gnu-web-doc-update: correct --help output
40736         * build-aux/gnu-web-doc-update: Make --help output relevant.
40737
40738         gnu-web-doc-update: add standard options
40739         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40740
40741         gnu-web-doc-update: New module.
40742         Use this script to automatically update the on-line web documentation
40743         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40744         * modules/gnu-web-doc-update: New file, from coreutils.
40745         * build-aux/gnu-web-doc-update: New script.
40746
40747 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40748
40749         link: LoadLibrary is not needed.
40750         * lib/link.c: Use GetModuleHandle.
40751
40752 2009-10-01  Eric Blake  <ebb9@byu.net>
40753
40754         getopt: bump serial number
40755         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40756         change.
40757
40758         tests: tighten link, rmdir, and remove tests
40759         * tests/test-link.h (includes): No need to use <config.h> here.
40760         Clean up if directory hard link was created, otherwise test for
40761         trailing '.'.
40762         * tests/test-linkat.c (main): Simplify.
40763         * tests/test-remove.c (main): Enhance test for trailing '.'.
40764         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40765
40766 2009-10-01  Jim Meyering  <meyering@redhat.com>
40767
40768         maint.mk: requiring "make major" was annoying, for a "minor" release.
40769         What is intended is "stable", to contrast with alpha and beta,
40770         so require "make stable", not "make major".
40771         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40772         (get_tool_versions): Likewise.
40773         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40774
40775 2009-09-30  Ben Pfaff  <blp@gnu.org>
40776
40777         Fix broken build of replacement for Windows tmpfile().
40778         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40779         flags argument added along with the 'mkostemp' module.
40780
40781 2009-09-28  Bruno Haible  <bruno@clisp.org>
40782
40783         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40784         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40785         to 'remove_elt'.
40786         (gl_list_remove): Update.
40787         * lib/gl_list.c (gl_list_remove): Update.
40788         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40789         to 'remove_elt'.
40790         (gl_oset_remove): Update.
40791         * lib/gl_list.c (gl_oset_remove): Update.
40792         Reported by Eric Blake.
40793
40794 2009-09-28  Eric Blake  <ebb9@byu.net>
40795
40796         doc: mention yet more cygwin 1.7 status
40797         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40798         cygwin.
40799         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40800         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40801
40802         argp: fix test failure
40803         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40804         that are not upper-case.  Pass correct range to tolower.
40805
40806 2009-09-27  Jim Meyering  <meyering@redhat.com>
40807
40808         test-yesno: work around sparc-dash here-document infelicity
40809         Without this change, the literal \177 byte in a here document
40810         would make dash 0.5.5.1-3 access uninitialized memory.
40811         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40812         Instead, use a marker, "@", and filter through tr to create the desired
40813         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40814
40815 2009-09-27  Bruno Haible  <bruno@clisp.org>
40816
40817         Disable untested support for new flavours of ACLs on AIX.
40818         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40819         progress.
40820         * lib/set-mode-acl.c (qset_acl): Likewise.
40821
40822 2008-12-07  Bruno Haible  <bruno@clisp.org>
40823
40824         Add support for new flavours of ACLs on AIX. (Untested.)
40825         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40826         (file_has_acl): Add support for newer AIX.
40827         * lib/set-mode-acl.c (qset_acl): Likewise.
40828         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40829         Rainer Tammer <tammer@tammer.net>.
40830
40831 2009-09-26  Eric Blake  <ebb9@byu.net>
40832
40833         argp: fix compilation of getopt
40834         * lib/getopt.in.h (includes): Use different guard than glibc.
40835         Reported by Sergey Poznyakoff.
40836
40837         doc: mention more cygwin 1.7 status
40838         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40839         bug.
40840         * doc/posix-functions/execl.texi (execl): Likewise.
40841         * doc/posix-functions/execle.texi (execle): Likewise.
40842         * doc/posix-functions/execlp.texi (execlp): Likewise.
40843         * doc/posix-functions/execv.texi (execv): Likewise.
40844         * doc/posix-functions/execve.texi (execve): Likewise.
40845         * doc/posix-functions/execvp.texi (execvp): Likewise.
40846         * doc/glibc-functions/canonicalize_file_name.texi
40847         (canonicalize_file_name): Cygwin 1.7 now provides this.
40848         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40849         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40850         on AT_SYMLINK_NOFOLLOW.
40851
40852 2009-09-24  Eric Blake  <ebb9@byu.net>
40853
40854         test-linkat: make test more robust
40855         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40856
40857         getopt: fix inclusion guards for cygwin
40858         * modules/getopt-posix (Depends-on): Add include-next.
40859         (Makefile.am): Substitute more items in replacement header.
40860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40861         <getopt.h>.
40862         * lib/getopt.in.h (includes): Use split inclusion guard, and
40863         prefer <getopt.h> over include <unistd.h> when one is present.
40864         (option): Also override name of 'struct option'.
40865
40866         same-inode: revert prior change; it is not yet ready
40867         * NEWS: Undo mention of this change.
40868         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40869         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40870         * lib/cycle-check.c (cycle_check): Likewise.
40871         * lib/same.c (same_name): Likewise.
40872         * lib/at-func2.c (at_func2): Likewise.
40873
40874 2009-09-23  Eric Blake  <ebb9@byu.net>
40875
40876         linkat: new module
40877         * modules/linkat: New file.
40878         * lib/at-func2.c (at_func2): Likewise.
40879         * lib/linkat.c (linkat): Likewise.
40880         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40881         * lib/openat-priv.h (at_func2): Add declaration.
40882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40883         * modules/unistd (Makefile.am): Substitute them.
40884         * lib/unistd.in.h (linkat): Declare it.
40885         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40886         * doc/posix-functions/linkat.texi (linkat): Likewise.
40887         * doc/posix-functions/link.texi (link): Tweak wording.
40888         * tests/test-link.c (main): Move guts...
40889         * tests/test-link.h (test_link): ...into new file.
40890         * modules/linkat-tests: New test.
40891         * tests/test-linkat.c: Likewise.
40892         * modules/link-tests (Files): Ship new file.
40893         (Depends-on): Add stdbool.
40894
40895         dirname: add library-safe mdir_name
40896         * lib/dirname.h (mdir_name): New prototype.
40897         * lib/dirname.c (dir_name): Move guts...
40898         (mdir_name): ...to new function that avoids xalloc_die.
40899
40900         fchdir: another mingw fix
40901         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40902         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40903         on mingw (where it has not yet been ported), and make it optional
40904         elsewhere.
40905         (_gl_register_fd): Use it.
40906
40907         same-inode: make SAME_INODE tri-state, to port to mingw
40908         * NEWS: Mention this change.
40909         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40910         st_ino always being 0.
40911         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40912         * lib/cycle-check.c (cycle_check): Likewise.
40913         * lib/same.c (same_name): Likewise.
40914
40915         lstat: avoid mingw compilation error
40916         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40917         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40918         lstat ourselves.
40919         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40920         was adequate.
40921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40922         the checks for lstat.
40923         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40924
40925         link: fix test failure on Solaris 9
40926         * lib/link.c (rpl_link): Don't assume link will catch bogus
40927         trailing slash on source.
40928
40929         test-symlinkat: enhance test
40930         * tests/test-readlink.c (main): Move guts...
40931         * tests/test-readlink.h (test_readlink): ...into new file.
40932         * tests/test-symlink.c (main): Move guts...
40933         * tests/test-symlink.h (test_symlink): ...into new file.
40934         * tests/test-symlinkat.c (main): Use new files for further
40935         coverage.
40936         (do_symlink, do_readlink): New helper functions.
40937         * modules/symlink-tests (Files): Ship new file.
40938         (Depends-on): Add stdbool.
40939         * modules/readlink-tests (Files): Ship new file.
40940         (Depends-on): Add stdbool.
40941         * modules/symlinkat-tests (Files): Use new files.
40942
40943 2009-09-23  Eric Blake  <ebb9@byu.net>
40944
40945         readlink: document portability issue with symlink length
40946         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40947         systems have bogus st_size on symlinks, and mention the
40948         areadlink-with-size module.
40949         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40950         * doc/posix-functions/readlink.texi (readlink): Mention the
40951         areadlink module, and ERANGE failure.
40952         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40953         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40954
40955         readlink: fix Solaris 9 bug with trailing slash
40956         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40957         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40958         * doc/posix-functions/readlink.texi (readlink): Document this.
40959         * modules/readlink-tests: New test.
40960         * tests/test-readlink.c: Likewise.
40961
40962         readlink: fix cygwin 1.5.x bug with return type
40963         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40964         * lib/unistd.in.h (readlink): Use ssize_t.
40965         * lib/readlink.c (readlink): Likewise.
40966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40967         * modules/unistd (Makefile.am): Substitute it.
40968         * lib/unistd.in.h (readlink): Declare replacement.
40969         * doc/posix-functions/readlink.texi (readlink): Document this.
40970
40971         symlink: use throughout gnulib
40972         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40973         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40974         symlink is not used.
40975         * modules/symlinkat (Depends-on): Add symlink.
40976         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40977         * modules/canonicalize-tests (Depends-on): Likewise.
40978         * modules/lstat-tests (Depends-on): Likewise.
40979         * modules/openat-tests (Depends-on): Likewise.
40980         * modules/remove-tests (Depends-on): Likewise.
40981         * modules/rmdir-tests (Depends-on): Likewise.
40982         * modules/unlink-tests (Depends-on): Likewise.
40983         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40984         * tests/test-canonicalize.c (symlink): Likewise.
40985         * tests/test-fstatat.c (symlink): Likewise.
40986         * tests/test-lstat.c (symlink): Likewise.
40987         * tests/test-remove.c (symlink): Likewise.
40988         * tests/test-rmdir.c (symlink): Likewise.
40989         * tests/test-unlink.c (symlink): Likewise.
40990         * tests/test-unlinkat.c (symlink): Likewise.
40991
40992         symlink: new module, for Solaris 9 bug
40993         * modules/symlink: New file.
40994         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40995         * lib/symlink.c: Likewise.
40996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40997         * modules/unistd (Makefile.am): Substitute them.
40998         * lib/unistd.in.h (symlink): Declare replacement.
40999         * MODULES.html.sh (File system functions): Mention it.
41000         * doc/posix-functions/symlink.texi (symlink): Likewise.
41001         * modules/symlink-tests: New test.
41002         * tests/test-symlink.c: Likewise.
41003
41004 2009-09-23  Bruno Haible  <bruno@clisp.org>
41005
41006         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41007         when needed.
41008         Test case: gnulib-tool --import --with-tests atexit inttypes.
41009         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41010
41011 2009-09-23  Bruno Haible  <bruno@clisp.org>
41012
41013         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41014         subcommand, not in a subshell.
41015
41016 2009-09-22  Eric Blake  <ebb9@byu.net>
41017
41018         unistd: sort replacement declarations
41019         * lib/unistd.in.h: Sort declarations.
41020
41021         open, openat: minor optimization
41022         * lib/open.c (open): If open succeeded, len is non-zero.
41023         * lib/openat.c (rpl_openat): Likewise.
41024
41025         link-follow: ensure correct result
41026         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41027         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41028         distinguish between possible failures.
41029
41030 2009-09-21  Eric Blake  <ebb9@byu.net>
41031
41032         fts: avoid compiler warning
41033         * lib/fts.c (dirent_inode_sort_may_be_useful)
41034         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41035
41036 2009-09-19  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/progreloc.c (canonicalize_file_name): New declaration.
41039
41040 2009-09-19  Eric Blake  <ebb9@byu.net>
41041
41042         link: fix quoting
41043         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41044
41045         openat: fix openat bugs on Solaris 9
41046         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41047         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41048         * modules/openat (Depends-on): Add open.
41049         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41050         * modules/fcntl-h (Makefile.am): Substitute it.
41051         * lib/fcntl.in.h (openat): Declare replacement.
41052         * doc/posix-functions/openat.texi (openat): Document this.
41053
41054         openat: move fstatat and unlinkat into correct files
41055         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41056         compiled.
41057         * lib/openat.c (fstatat, unlinkat): Move...
41058         * lib/fstatat.c (fstatat): ...into correct files.
41059         * lib/unlinkat.c (unlinkat): Likewise.
41060
41061         openat: fix unlinkat bugs on Solaris 9
41062         * lib/unlinkat.c (unlinkat): New file.
41063         * modules/openat (Depends-on): Add unlink.
41064         (Files): Distribute it.
41065         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41066         trailing slash behavior is broken.
41067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41068         * modules/unistd (Makefile.am): Substitute it.
41069         * lib/unistd.in.h (unlinkat): Declare replacement.
41070         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41071
41072         openat: fix fstatat bugs on Solaris 9
41073         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41074         stat.
41075         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41076
41077         test-unlinkat: enhance test, to expose Solaris 9 bug
41078         * tests/test-unlink.c (main): Factor guts...
41079         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41080         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41081         * tests/test-rmdir.c (main): Adjust caller.
41082         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41083         (unlinker): New helper function.
41084         (rmdirat): Enhance check.
41085         * modules/rmdir-tests (Depends-on): Add stdbool.
41086         * modules/unlink-tests (Depends-on): Likewise.
41087         (Files): Add test-unlink.h.
41088         * modules/openat-tests (Files): Likewise.
41089         (Depends-on): Add unlinkdir.
41090
41091         test-fstatat: new test, to expose Solaris 9 bugs
41092         * tests/test-stat.c (main): Factor guts...
41093         * tests/test-stat.h (test_stat_func): ...into new file.
41094         * tests/test-lstat.c (main): Factor guts...
41095         * tests/test-lstat.h (test_lstat_func): ...into new file.
41096         * tests/test-fstatat.c: New file.
41097         * modules/stat-tests (Files): Add test-stat.h.
41098         * modules/lstat-tests (Files): Add test-lstat.h.
41099         (Depends-on): Add stdbool.
41100         * modules/openat-tests (Depends-on): Add pathmax.
41101         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41102         (Makefile.am): Run new test.
41103
41104         remove: new module, for mingw and Solaris 9 bugs
41105         * modules/remove: New file.
41106         * lib/remove.c: Likewise.
41107         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41109         * modules/stdio (Makefile.am): Use them.
41110         * lib/stdio.in.h (remove): Declare replacement.
41111         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41112         * doc/posix-functions/remove.texi (remove): Likewise.
41113         * modules/remove-tests: New test.
41114         * tests/test-remove.c: Likewise.
41115
41116         unlink: new module, for Solaris 9 bug
41117         * modules/unlink: New file.
41118         * lib/unlink.c: Likewise.
41119         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41121         * modules/unistd (Makefile.am): Use them.
41122         * lib/unistd.in.h (stat): Declare replacement.
41123         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41124         * doc/posix-functions/unlink.texi (unlink): Likewise.
41125         * modules/unlink-tests: New test.
41126         * tests/test-unlink.c: Likewise.
41127
41128         lstat: fix Solaris 9 bug
41129         * lib/lstat.c (lstat): Also check for trailing slash on
41130         non-symlink, non-directories.  Use stat module to simplify logic.
41131         * doc/posix-functions/lstat.texi (lstat): Document it.
41132         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41133         (configure.ac): Check for symlink.
41134         * tests/test-lstat.c (main): Add more tests.
41135
41136         stat: add as dependency to other modules
41137         * modules/chown (Depends-on): Add stat.
41138         * modules/euidaccess (Depends-on): Likewise.
41139         * modules/fchdir (Depends-on): Likewise.
41140         * modules/isdir (Depends-on): Likewise.
41141         * modules/link (Depends-on): Likewise.
41142         * modules/lstat (Depends-on): Likewise.
41143         * modules/mkdir-p (Depends-on): Likewise.
41144         * modules/modechange (Depends-on): Likewise.
41145         * modules/open (Depends-on): Likewise.
41146         * modules/readlink (Depends-on): Likewise.
41147         * modules/same (Depends-on): Likewise.
41148
41149         stat: fix Solaris 9 bug
41150         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41151         slash.
41152         * lib/stat.c (rpl_stat): Work around it.
41153         * doc/posix-functions/stat.texi (stat): Update documentation.
41154
41155         stat: new module, for mingw bug
41156         * modules/stat: New file.
41157         * lib/stat.c: Likewise.
41158         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41159         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41160         * modules/sys_stat (Makefile.am): Use them.
41161         * lib/sys_stat.in.h (stat): Declare replacement.
41162         * lib/openat.c (fstatat): Deal with lstat and stat being function
41163         macros.
41164         * modules/openat (Depends-on): Add inline.
41165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41166         * doc/posix-functions/stat.texi (stat): Likewise.
41167         * modules/stat-tests: New test.
41168         * tests/test-stat.c: Likewise.
41169
41170 2009-09-19  Jim Meyering  <meyering@redhat.com>
41171
41172         syntax-check: detect unnecessary inclusion of canonicalize.h
41173         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41174
41175 2009-09-19  Eric Blake  <ebb9@byu.net>
41176
41177         canonicalize-lgpl: adjust clients to use correct header
41178         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41179         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41180         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41181         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41182         * lib/progreloc.c (includes): Likewise.
41183
41184 2009-09-19  Jim Meyering  <meyering@redhat.com>
41185
41186         test-posixtm.c: correct a comment
41187         * tests/test-posixtm.c: Correct first-line comment.
41188         Spotted by Eric Blake.
41189
41190 2009-09-16  Jim Meyering  <meyering@redhat.com>
41191
41192         posixtm-tests: make T const-correct; add a test case
41193         * tests/test-posixtm.c (T): Declare const.
41194         Add a test for -(2^31+1).
41195         Remove useless can-succeed-only-in-2002 test.
41196
41197         posixtm-tests: adjust the sole failing test
41198         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41199         expected output matches what mktime now produces.  Cross-checked via
41200         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41201
41202         posixtm: move #ifdef'd tests into a new module
41203         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41204         * tests/test-posixtm.c: ... this new file.
41205         * modules/posixtm-tests: New module.
41206
41207 2009-09-19  Eric Blake  <ebb9@byu.net>
41208
41209         openat: simplify use of at-func.c
41210         * lib/at-func.c (includes): Include prerequisites here, to
41211         simplify requirements on client files.
41212         * lib/openat-priv.h: Add double-inclusion guard.
41213         * lib/faccessat.c (includes): Simplify.
41214         * lib/fchmodat.c (includes): Likewise.
41215         * lib/fchownat.c (includes): Likewise.
41216         * lib/mkdirat.c (includes): Likewise.
41217         * lib/mkfifoat.c (includes): Likewise.
41218         * lib/symlinkat.c (includes): Likewise.
41219
41220         openat: allow return of fd 0
41221         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41222         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41223         unistd-safer.
41224         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41225         <fcntl.h>; this module does not leak fds.
41226         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41227         must be allowed to return 0, leaving openat_safer to add the
41228         safety.
41229         (openat_permissive): Avoid writing to just-opened fd 2 if
41230         restoring the current directory fails.
41231         * lib/openat-die.c (openat_restore_fail): Add comment.
41232         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41233         (save_cwd): Guarantee safe fd, but without use of open_safer.
41234         * tests/test-openat.c: New test.
41235         * modules/openat-tests (Files, Makefile.am): Distribute and build
41236         new file.
41237
41238         relocatable-prog-wrapper: fix build
41239         * modules/relocatable-prog-wrapper (Files): Update name of
41240         canonicalize m4 file, broken on 2009-09-17.
41241         Reported by emad hajjar <aleppos@hotmail.com>.
41242
41243 2009-09-19  Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41246         * lib/safe-alloc.c: Likewise.
41247         Reported by Ian Beckwith <ianb@erislabs.net>.
41248
41249 2009-09-18  Bruno Haible  <bruno@clisp.org>
41250
41251         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41252         Reported by <erobles@sensacd.com.mx>.
41253
41254 2009-09-17  Eric Blake  <ebb9@byu.net>
41255
41256         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41257         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41258         slashes when checking if last component is missing.
41259         * tests/test-canonicalize.c (main): Test this.
41260
41261         canonicalize, canonicalize-lgpl: honor // if distinct from /
41262         * modules/canonicalize (Files): Add double-slash-root.m4.
41263         * modules/canonicalize-lgpl (Files): Likewise.
41264         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41265         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41266         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41267         fallback definition.
41268         (canonicalize_filename_mode): Use it to protect //.
41269         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41270         (__realpath): Likewise.
41271         * tests/test-canonicalize.c (main): Test this.
41272         * tests/test-canonicalize-lgpl.c (main): Likewise.
41273         * modules/canonicalize-tests (Depends-on): Add same-inode.
41274         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41275
41276         canonicalize-lgpl: fix glibc bug with trailing slash
41277         * m4/canonicalize-lgpl.m4: Move contents...
41278         * m4/canonicalize.m4: ...here.
41279         (gl_CANONICALIZE_LGPL): Factor realpath check...
41280         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41281         glibc 2.3.5 bug, fixed 2005-04-27.
41282         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41283         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41284         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41285         * modules/canonicalize-lgpl (Files): Manage file rename.
41286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41287         * modules/stdlib (Makefile.am): Substitute witness.
41288         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41289         is needed.
41290         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41291         replacement is required.
41292         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41293         * doc/glibc-functions/canonicalize_file_name.texi
41294         (canonicalize_file_name): Document this.
41295         * doc/posix-functions/realpath.texi (realpath): Likewise.
41296
41297         canonicalize-lgpl: reject non-directory with trailing slash
41298         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41299         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41300         catches failures in glibc 2.3.5.
41301         * tests/test-canonicalize.c (main): Likewise.
41302
41303         canonicalize-lgpl: use native realpath if it works
41304         * lib/canonicalize-lgpl.c (realpath): Guard with
41305         FUNC_REALPATH_WORKS.
41306         * lib/stdlib.in.h (realpath): Make declaration optional based on
41307         HAVE_REALPATH.
41308         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41309         native realpath works.
41310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41311         * modules/stdlib (Makefile.am): Substitute witness.
41312
41313         canonicalize, canonicalize-lgpl: use <stdlib.h>
41314         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41315         (Include): Mention <stdlib.h>.
41316         (configure.ac): Mention functions we provide.
41317         * modules/canonicalize (configure.ac): Likewise.
41318         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41319         realpath if canonicalize_file_name is missing.
41320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41321         * modules/stdlib (Makefile.am): Substitute witnesses.
41322         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41323         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41324         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41325         * NEWS: Document this.
41326         * doc/glibc-functions/canonicalize_file_name.texi
41327         (canonicalize_file_name): Likewise.
41328         * doc/posix-functions/realpath.texi (realpath): Likewise.
41329         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41330
41331         test-canonicalize: consolidate into single C program
41332         * tests/test-canonicalize.sh: Delete; move setup into...
41333         * tests/test-canonicalize.c (main): ...the program, making it
41334         easier to run in debugger.  Add some tests.
41335         * modules/canonicalize-tests (Files): Remove unused file.
41336         (Depends-on): Add progname.
41337         (configure.ac, Makefile.am): Simplify.
41338
41339         test-canonicalize-lgpl: consolidate into single C program
41340         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41341         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41342         easier to run in debugger.  Add some tests.
41343         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41344         (configure.ac, Makefile.am): Simplify.
41345
41346         canonicalize: avoid resolvepath
41347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41348         unnecessary checks.
41349         * lib/canonicalize.c (includes): Simplify.
41350         (canonicalize_file_name): Drop resolvepath implementation.
41351         * modules/canonicalize (Depends-on): Drop filenamecat.
41352
41353         canonicalize: don't lose errno
41354         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41355         over calls to free.
41356
41357         canonicalize: simplify errno handling
41358         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41359         assignment.
41360
41361         canonicalize, canonicalize-lgpl: update module dependencies
41362         * modules/canonicalize (Depends-on): Add extensions, lstat,
41363         pathmax, stdlib.
41364         (Files): Drop pathmax.h.
41365         (configure.ac): Adjust macro name.
41366         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41367         lstat, stdlib, sys_stat.
41368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41369         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41370         extensions.
41371         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41372         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41373         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41374         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41375         declaration, if available.
41376         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41377         we can rely on the readlink module.
41378         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41379         (includes): Use <unistd.h> unconditionally.
41380
41381 2009-09-17  Eric Blake  <ebb9@byu.net>
41382
41383         maint: make Include sections of modules consistent
41384         * modules/alloca: Use only header name; no need to list #include.
41385         * modules/alloca-opt: Likewise.
41386         * modules/arpa_inet: Likewise.
41387         * modules/canon-host: Likewise.
41388         * modules/configmake: Likewise.
41389         * modules/dirent: Likewise.
41390         * modules/eealloc: Likewise.
41391         * modules/environ: Likewise.
41392         * modules/fchdir: Likewise.
41393         * modules/fcntl: Likewise.
41394         * modules/fcntl-h: Likewise.
41395         * modules/gethrxtime: Likewise.
41396         * modules/gettime: Likewise.
41397         * modules/ignore-value: Likewise.
41398         * modules/inet_ntop: Likewise.
41399         * modules/inet_pton: Likewise.
41400         * modules/inttypes: Likewise.
41401         * modules/isnand-nolibm: Likewise.
41402         * modules/isnanf-nolibm: Likewise.
41403         * modules/mbchar: Likewise.
41404         * modules/mbfile: Likewise.
41405         * modules/mbiter: Likewise.
41406         * modules/mbuiter: Likewise.
41407         * modules/netdb: Likewise.
41408         * modules/netinet_in: Likewise.
41409         * modules/nproc: Likewise.
41410         * modules/pagealign_alloc: Likewise.
41411         * modules/poll: Likewise.
41412         * modules/printf-frexp: Likewise.
41413         * modules/pthread: Likewise.
41414         * modules/putenv: Likewise.
41415         * modules/random_r: Likewise.
41416         * modules/relocatable-prog: Likewise.
41417         * modules/search: Likewise.
41418         * modules/select: Likewise.
41419         * modules/selinux-h: Likewise.
41420         * modules/settime: Likewise.
41421         * modules/signal: Likewise.
41422         * modules/size_max: Likewise.
41423         * modules/socklen: Likewise.
41424         * modules/ssize_t: Likewise.
41425         * modules/stdarg: Likewise.
41426         * modules/stdbool: Likewise.
41427         * modules/stddef: Likewise.
41428         * modules/stdint: Likewise.
41429         * modules/stdio: Likewise.
41430         * modules/stdlib: Likewise.
41431         * modules/string: Likewise.
41432         * modules/strings: Likewise.
41433         * modules/sys_file: Likewise.
41434         * modules/sys_ioctl: Likewise.
41435         * modules/sys_select: Likewise.
41436         * modules/sys_socket: Likewise.
41437         * modules/sys_stat: Likewise.
41438         * modules/sys_time: Likewise.
41439         * modules/sys_times: Likewise.
41440         * modules/sys_utsname: Likewise.
41441         * modules/sys_wait: Likewise.
41442         * modules/sysexits: Likewise.
41443         * modules/time: Likewise.
41444         * modules/times: Likewise.
41445         * modules/tmpfile: Likewise.
41446         * modules/trim: Likewise.
41447         * modules/unistd: Likewise.
41448         * modules/wchar: Likewise.
41449         * modules/wctype: Likewise.
41450
41451 2009-09-17  Bruno Haible  <bruno@clisp.org>
41452
41453         Make getdate.y compile on QNX and NetBSD 5 / i386.
41454         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41455         TIME_T_FITS_IN_LONG_INT.
41456         * lib/getdate.y (long_time_t): New type.
41457         (relative_time): Change type of 'seconds' field to long_time_t.
41458         (get_date): Update types of local variables. Check against overflow
41459         during conversion from long_time_t to time_t.
41460         Reported by Matt Kraai <kraai@ftbfs.org>
41461         and Hasso Tepper <hasso@netbsd.org>.
41462
41463 2009-09-17  Bruno Haible  <bruno@clisp.org>
41464
41465         * modules/COPYING: Update copyright years.
41466         * modules/README: Likeiwse.
41467         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41468         Reported by Ian Beckwith <ianb@erislabs.net>.
41469
41470 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41471
41472         * users.txt: Update references for gnuit package.
41473
41474 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41475
41476         * m4/getdelim.m4: Fix typo in copyright line.
41477
41478 2009-09-17  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/atoll.c: Use the standard header with GPL copyright.
41481         * lib/argz.in.h: Likewise.
41482         * lib/glob.c: Likewise.
41483         * lib/glob-libc.h: Likewise.
41484         * lib/random_r.c: Likewise.
41485         * lib/siglist.h: Likewise.
41486         * lib/strsignal.c: Likewise.
41487         Reported by Ian Beckwith <ianb@erislabs.net>.
41488
41489 2009-09-17  Eric Blake  <ebb9@byu.net>
41490
41491         rmdir: ensure correct dependency order
41492         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41493
41494 2009-09-17  Bruno Haible  <bruno@clisp.org>
41495
41496         Disable assertion that fails on NetBSD 5 / i386.
41497         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41498         Reported by Sam Steingold <sds@gnu.org>
41499         and Hasso Tepper <hasso@netbsd.org>.
41500
41501 2009-09-16  Eric Blake  <ebb9@byu.net>
41502
41503         unlinkdir: port to mingw
41504         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41505         on which no one can unlink a directory.
41506
41507         stdlib: sort witness names
41508         * modules/stdlib (Makefile.am): Sort replacements.
41509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41510         * lib/stdlib.in.h: Likewise.
41511
41512         parse-duration-tests: avoid link failure
41513         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41514         LIBINTL.
41515         Reported by Tom G. Christensen.
41516
41517         openat-tests: ensure unlinkat behaves like rmdir
41518         * tests/test-rmdir.c (main): Factor guts...
41519         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41520         * modules/rmdir-tests (Files): Ship new file.
41521         * modules/openat-tests: New test.
41522         * tests/test-unlinkat.c: Likewise.
41523
41524         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41525         * modules/rmdir-errno (Status, Notice): Now obsolete.
41526
41527         rmdir: work around cygwin 1.5.x and mingw bugs
41528         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41529         * lib/rmdir.c (rmdir): Work around it.
41530         * modules/rmdir (Status, Notice): No longer obsolete.
41531         (Files): Add dos.m4.
41532         (Depends-on): Add unistd.
41533         (configure.ac): Set witnesses.
41534         (License): Relax to LGPLv2+.
41535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41536         * modules/unistd (Makefile.am): Substitute witnesses.
41537         * lib/unistd.in.h (rmdir): Declare replacement.
41538         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41539         * modules/rmdir-tests: New tests.
41540         * tests/test-rmdir.c: Likewise.
41541
41542 2009-09-15  Eric Blake  <ebb9@byu.net>
41543
41544         fchdir: improve use of replacement functions
41545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41547         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41548         REPLACE_CLOSEDIR.
41549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41550         * modules/sys_stat (Makefile.am): Substitute correct witness.
41551         * modules/dirent (Makefile.am): Likewise.
41552         * modules/unistd (Makefile.am): Likewise.
41553         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41554         * lib/unistd.in.h (dup): Likewise.
41555         * lib/sys_stat.in.h (fstat): Likewise.
41556
41557         maint: ignore gnulib-tool temp files
41558         * .gitignore: Ignore files created during gnulib-tool --test.
41559
41560 2009-09-13  Jim Meyering  <meyering@redhat.com>
41561
41562         posixtm: don't reject a time that specify "60" as the number of seconds
41563         * lib/posixtm.c (posixtime): The code to reject invalid dates
41564         would also reject a time specified with the .60 suffix.
41565         But POSIX allows that, in order to accommodate leap seconds.
41566         So don't reject it.
41567         (main): Adjust tests accordingly.
41568         * modules/posixtm (Depends-on): Add stpcpy.
41569
41570 2009-09-11  Jim Meyering  <meyering@redhat.com>
41571
41572         announce-gen: include [$release_type] in emitted Subject:
41573         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41574         e.g., [stable] in the emitted Subject: line.
41575
41576 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41577
41578         Remove obsolete macros from several modules.
41579         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41580         obsolete Autoconf macros with their modern counterparts.
41581         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41582         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41584         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41585         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41586         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41588         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41589         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41590         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41591         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41593         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41594         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41595         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41596         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41597         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41598         * m4/time_r.m4 (gl_TIME_R): Likewise.
41599         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41600         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41601         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41602
41603         Fix copyright header in build-aux scripts.
41604         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41605         recommendation.
41606         * build-aux/ncftpput-ftp: Likewise.
41607         * build-aux/update-copyright: Likewise.
41608
41609 2009-09-09  Eric Blake  <ebb9@byu.net>
41610
41611         test-link: allow Linux choice of errno
41612         * tests/test-link.c (main): Relax test for alternate error.
41613
41614         strndup: fix improper m4 caching
41615         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41616         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41617         (gl_PREREQ_STRNDUP): Delete.
41618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41619         * modules/string (Makefile.am): Substitute it.
41620         * lib/string.in.h (strndup): Modernize prototype.
41621
41622         getcwd: port to mingw
41623         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41624         different from the POSIX assumptions made throughout the getcwd
41625         module; fortunately, the mingw getcwd does not need replacement.
41626         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41627         * modules/getcwd-tests: New test.
41628         * tests/test-getcwd.c: Likewise.
41629
41630         link: fix platform bugs
41631         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41632         * lib/link.c (link): Work around them.  Fix related mingw bug.
41633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41634         * modules/unistd (Makefile.am): Substitute it.
41635         * lib/unistd.in.h (link): Declare replacement.
41636         * doc/posix-functions/link.texi (link): Document this.
41637         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41638
41639         test-link: consolidate into single C program, test more cases
41640         * tests/test-link.sh: Delete.
41641         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41642         at least Cygwin and Solaris.
41643         * modules/link-tests (Files): Remove unused file.
41644         (Depends-on): Add errno, sys_stat.
41645         (Makefile.am): Simplify.
41646
41647 2009-09-08  Bruno Haible  <bruno@clisp.org>
41648
41649         Work around towlower, towupper bug on mingw.
41650         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41651         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41652         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41653         * doc/posix-functions/towupper.texi: Likewise.
41654         Reported by Eric Blake.
41655
41656 2009-09-08  Jim Meyering  <meyering@redhat.com>
41657
41658         build: don't try to run autoheader if we don't use it
41659         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41660         is not used in configure.ac.
41661
41662 2009-09-08  Eric Blake  <ebb9@byu.net>
41663
41664         euidaccess: fix compilation error
41665         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41666
41667         rawmemchr: relax license
41668         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41669         okay.
41670         Reported by Jim Meyering.
41671
41672         mkfifoat: new module
41673         * modules/mkfifoat: New file.
41674         * lib/mkfifoat.c: Likewise.
41675         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41676         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41677         * modules/sys_stat (Makefile.am): Use them.
41678         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41679         * MODULES.html.sh (File system functions): Mention module.
41680         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41681         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41682         * modules/mkfifoat-tests: New test.
41683         * tests/test-mkfifoat.c: Likewise.
41684
41685         strchrnul: relax license
41686         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41687         okay.
41688         Reported by Jim Meyering.
41689
41690 2009-09-08  Eric Blake  <ebb9@byu.net>
41691
41692         fstatat: fix compilation on Solaris
41693         * lib/fstatat.c (includes): Add fcntl.h.
41694         Reported by Pádraig Brady.
41695
41696 2009-09-07  Eric Blake  <ebb9@byu.net>
41697
41698         rename: modernize replacement
41699         * modules/rename (Depends-on): Add stdio.
41700         (configure.ac): Declare witness.
41701         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41702         stdio take care of replacement.
41703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41704         * modules/stdio (Makefile.am): Substitute them.
41705         * lib/stdio.in.h (rename): Declare replacement.
41706         * lib/rename.c (includes): Allow cross-compilation to non-windows
41707         machines.
41708         * doc/posix-functions/rename.texi (rename): Improve
41709         documentation.
41710
41711         stdio: sort witness names
41712         * modules/stdio (Makefile.am): Sort replacements.
41713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41714         * lib/stdio.in.h: Likewise.
41715
41716         getcwd: minor cleanups
41717         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41718         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41719
41720         openat: provide more convenience names
41721         * modules/faccessat (configure.ac): Add C witness.
41722         * lib/unistd.in.h (readlinkat): Fix typo.
41723         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41724         convenience wrappers.
41725         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41726         wrappers in syntax checks.
41727
41728 2009-09-06  Eric Blake  <ebb9@byu.net>
41729
41730         doc: fix comments in recent patches
41731         * lib/faccessat.c: Mention correct function.
41732         * lib/fchmodat.c: Likewise.
41733         * lib/fchownat.c: Likewise.
41734         * lib/symlinkat.c: Likewise.
41735         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41736         constants.
41737
41738         faccessat, symlinkat: continue cleanup of previous patch
41739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41740         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41741         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41743         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41744         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41745         set.
41746
41747 2009-09-06  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41750         (fstatat): Declare if GNULIB_FSTATAT is set.
41751         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41752         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41753         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41754         * modules/fcntl-h (Files): Remove m4/openat.m4.
41755         * modules/sys_stat (Files): Remove m4/openat.m4.
41756         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41757         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41758         * modules/unistd (Files): Remove m4/openat.m4.
41759         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41760         GNULIB_OPENAT.
41761         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41762         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41763         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41764         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41765         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41766         gl_OPENAT_DEFAULTS.
41767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41768         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41769         Don't require gl_OPENAT_DEFAULTS.
41770         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41771         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41772         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41773         (gl_OPENAT_DEFAULTS): Remove macro.
41774
41775 2009-09-06  Bruno Haible  <bruno@clisp.org>
41776
41777         * modules/openat (configure.ac): Remove unneeded witness.
41778
41779 2009-09-06  Bruno Haible  <bruno@clisp.org>
41780
41781         Set errno to ENOSYS when a function is entirely unsupported.
41782         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41783         EOPNOTSUPP.
41784         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41785         * modules/chown (Depends-on): Remove errno.
41786
41787 2009-09-06  Bruno Haible  <bruno@clisp.org>
41788
41789         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41790
41791 2009-09-06  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41794
41795 2009-09-06  Ben Pfaff  <blp@gnu.org>
41796             Bruno Haible  <bruno@clisp.org>
41797
41798         Work around a glibc bug in strtok_r.
41799         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41800         Undefine if UNDEFINE_STRTOK_R is set.
41801         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41803         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41804         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41805         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41806         UNDEFINE_STRTOK_R.
41807         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41808
41809 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41810
41811         exclude: minor fix
41812         * lib/exclude.c: Include wctype.h
41813
41814 2009-09-06  Akim Demaille  <demaille@gostai.com>
41815
41816         bootstrap: improve error message
41817         * build-aux/bootstrap (find_tool): Upon failure, report the list
41818         of candidates.
41819         Honor the initial value of the envvar.
41820
41821 2009-09-05  Eric Blake  <ebb9@byu.net>
41822
41823         symlinkat: new module
41824         * modules/symlinkat: New file.
41825         * lib/symlinkat.c: Likewise.
41826         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41828         * modules/unistd (Makefile.am): Use them.
41829         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41830         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41831         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41832         * MODULES.html.sh (File system functions): Mention module.
41833         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41834         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41835         * modules/symlinkat-tests: New test.
41836         * tests/test-symlinkat.c: Likewise.
41837
41838         test-openat-safer: add more checks
41839         * tests/test-openat-safer.c (main): Check more code paths.
41840
41841 2009-09-05  Jim Meyering  <meyering@redhat.com>
41842
41843         syntax-check: detect unnecessary inclusion of openat.h
41844         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41845
41846 2009-09-05  Bruno Haible  <bruno@clisp.org>
41847
41848         Support towlower, towupper.
41849         * doc/posix-functions/towlower.texi: Mention module wctype.
41850         * doc/posix-functions/towupper.texi: Likewise.
41851         * lib/wctype.in.h (towlower, towupper): New functions.
41852         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41853         (ASSERT): New macro.
41854         (e): New variable.
41855         (main): Test also towlower, towupper. Test WEOF argument.
41856         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41857
41858 2009-09-05  Bruno Haible  <bruno@clisp.org>
41859
41860         Fix conversion behaviour when the input is invalid.
41861         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41862         mark occurring in first pass of indirect conversion.
41863         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41864         input.
41865         Found by clang's static analyzer.
41866
41867 2009-09-05  Bruno Haible  <bruno@clisp.org>
41868
41869         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41870         where direct conversion is possible.
41871
41872 2009-09-04  Eric Blake  <ebb9@byu.net>
41873
41874         openat: fail with ENOENT on empty name
41875         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41876         buffer.
41877
41878         link-follow: fix logic bug in prior patch
41879         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41880         reversed sense of yes and no in prior patch.  Avoid confusing
41881         compilation failure with desired semantics.
41882
41883         link-follow: accomodate mingw and cross-compilation
41884         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41885         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41886         cross-compilation results to -1, to make linkat easier to
41887         implement when cross-compiling.  Trivially support mingw.
41888         * modules/link-follow (configure.ac): Call new name.
41889         * NEWS: Mention this.
41890
41891 2009-09-03  Eric Blake  <ebb9@byu.net>
41892
41893         faccessat: compile replacement
41894         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41895         needed.
41896
41897         fts: fix compilation error
41898         * lib/fts.c (includes): Re-add "openat.h", for
41899         openat_needs_fchdir.
41900
41901         faccessat: new module
41902         * modules/faccessat: New file.
41903         * lib/faccessat.c: Likewise.
41904         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41906         * modules/unistd (Makefile.am): Use it.
41907         * lib/unistd.in.h (faccessat): Declare it.
41908         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41909         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41910         * MODULES.html.sh (File system functions): Mention it.
41911         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41912         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41913
41914         euidaccess: prefer POSIX over non-standard implementation
41915         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41916         * lib/euidaccess.c (euidaccess): Use it if available.
41917
41918         openat: make template easier to use
41919         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41920         AT_FUNC_F2 to be undefined.
41921         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41922         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41923         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41924         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41925         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41926         Likewise.
41927         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41928         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41929         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41930         Likewise.
41931
41932         openat: declare in POSIX headers
41933         * NEWS: Mention this.
41934         * modules/openat (configure.ac): Declare witnesses.
41935         (Depends-on): Add fcntl-h, sys_stat, unistd.
41936         (Include): Mention correct headers.
41937         * modules/fcntl-h (Depends-on): Add link-warning.
41938         (Files): Add openat.m4.
41939         (Makefile.am): Substitute witnesses.
41940         * modules/sys_stat (Files, Makefile.am): Likewise.
41941         * modules/unistd (Files, Makefile.am): Likewise.
41942         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41943         (gl_OPENAT_DEFAULTS): New macro.
41944         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41946         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41947         (SYS_STAT_H): Remove unused variable.
41948         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41949         * lib/fcntl--.h (includes): Remove unneeded header.
41950         * lib/openat-safer.c (includes): Likewise.
41951         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41952         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41953         appropriate headers.
41954         (__OPENAT_PREFIX): Delete.
41955         * lib/fcntl.in.h (openat): Provide declaration.
41956         (AT_FDCWD): Fix Solaris bug.
41957         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41958         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41959         * lib/fchmodat.c (includes):  Adjust to find declaration.
41960         * lib/fchownat.c (includes): Likewise.
41961         * lib/mkdirat.c (includes): Likewise.
41962         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41963         still visible.
41964
41965 2009-09-02  Eric Blake  <ebb9@byu.net>
41966
41967         errno: use consistently
41968         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41969         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41970         * lib/canonicalize.c (ELOOP): Likewise.
41971         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41972         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41973         * lib/lchown.c (EOPNOTSUPP): Likewise.
41974         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41975         * lib/savewd.c (ESTALE): Likewise.
41976         * lib/settime.c (ENOSYS): Likewise.
41977         * lib/utimens.c (ENOSYS): Likewise.
41978         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41979         * lib/chdir-safer.c (ELOOP): Likewise.
41980         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41981         * modules/c-stack (Depends-on): Add errno.
41982         * modules/canonicalize (Depends-on): Likewise.
41983         * modules/chdir-safer (Depends-on): Likewise.
41984         * modules/fdopendir (Depends-on): Likewise.
41985         * modules/inet_ntop (Depends-on): Likewise.
41986         * modules/inet_pton (Depends-on): Likewise.
41987         * modules/lchown (Depends-on): Likewise.
41988         * modules/openat (Depends-on): Likewise.
41989         * modules/savewd (Depends-on): Likewise.
41990         * modules/settime (Depends-on): Likewise.
41991         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41992
41993         fts: avoid leaking fds
41994         * modules/fts (Depends-on): Add cloexec.
41995         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41996         flag.
41997
41998         fts: make directory fds more robust
41999         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42000         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42001
42002         backupfile, chdir-long, fts, savedir: make safer
42003         * lib/backupfile.c (includes): Use "dirent--.h", since
42004         numbered_backup can write to stderr during readdir.
42005         * lib/savedir.c (includes): Likewise.
42006         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42007         emulation can write to stderr on failure.
42008         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42009         * lib/getcwd.c: Document why opendir_safer is unused.
42010         * lib/glob.c: Likewise.
42011         * lib/scandir.c: Likewise.
42012         * lib/openat-proc.c: Likewise, for open_safer.
42013         * modules/backupfile (Depends-on): Add dirent-safer.
42014         * modules/savedir (Depends-on): Likewise.
42015         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42016         * modules/chdir-long (Depends-on): Add openat-safer.
42017
42018         openat-safer: new module
42019         * modules/openat-safer: New file.
42020         * lib/openat-safer.c: Likewise.
42021         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42022         * lib/fcntl-safer.h (openat_safer): Declare.
42023         * lib/fcntl--.h (openat): Override.
42024         * MODULES.html.sh (File descriptor based I/O): Mention it.
42025         * lib/openat.h: Add double-inclusion guards.
42026         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42027         "fcntl--.h", so we can implement openat.
42028         * modules/openat-safer-tests: New test.
42029         * tests/test-openat-safer.c: New file.
42030
42031         dirent-safer: new module
42032         * modules/dirent-safer: New file.
42033         * lib/dirent--.h: Likewise.
42034         * lib/dirent-safer.h: Likewise.
42035         * lib/opendir-safer.c: Likewise.
42036         * m4/dirent-safer.m4: Likewise.
42037         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42038         * modules/dirent-safer-tests: New test.
42039         * tests/test-dirent-safer.c: New file.
42040         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42041
42042         fdopendir: optimize on mingw
42043         * lib/unistd.in.h (_gl_directory_name): New prototype.
42044         * lib/fchdir.c (_gl_directory_name): Implement it.
42045         (fchdir): Use it to simplify implementation.
42046         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42047         fchdir, when available, to avoid calling [f]chdir().
42048
42049         fdopendir: split into its own module
42050         * lib/openat.c (fdopendir): Move...
42051         * lib/fdopendir.c: ...into new file.
42052         * modules/fdopendir: New module.
42053         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42054         * modules/openat (Depends-on): Add fdopendir.
42055         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42056         fdopendir here.
42057         * modules/savedir (Depends-on): Only need fdopendir, not full
42058         openat.
42059         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42060         * lib/openat.h (fdopendir): Drop prototype.
42061         * lib/dirent.in.h (fdopendir): Provide prototype.
42062         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42063         * modules/dirent (Makefile.am): Substitute them.
42064         * MODULES.html.sh (File system functions): Mention it.
42065         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42066         * modules/fdopendir-tests: New file.
42067         * tests/test-fdopendir.c: Likewise.
42068
42069         fchdir: use more consistent macro convention
42070         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42071         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42072         REPLACE_FCHDIR, rather than relying on config.h macros.
42073         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42074         inside a single make-time REPLACE_FCHDIR block, rather than using
42075         the config.h FCHDIR_REPLACEMENT.
42076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42077         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42078         Manage fstat replacement.
42079         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42080         REPLACE_FCHDIR.
42081         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42082         (Makefile.am): Substitute REPLACE_FCHDIR.
42083         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42084         FCHDIR_REPLACEMENT.
42085         * lib/dup-safer.c (dup_safer): Likewise.
42086         * lib/dup2.c (rpl_dup2): Likewise.
42087         * lib/dup3.c (rpl_dup3): Likewise.
42088         * lib/open.c (rpl_open): Likewise.
42089
42090         fchdir: simplify error handling, and support dup3
42091         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42092         stdbool, malloc-posix, realloc-posix.
42093         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42094         (ensure_dirs_slot): Return false on allocation failure.
42095         (rpl_dup2): Delete.
42096         (_gl_register_dup): New function.
42097         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42098         (_gl_register_fd): Close fd on allocation failure.
42099         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42100         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42101         prototype.
42102         (rpl_dup2_fchdir): Delete prototype.
42103         * lib/open.c (open): Update caller.
42104         * lib/dup2.c (dup2): Track fchdir metadata.
42105         * lib/dup3.c (dup3): Likewise.
42106         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42108
42109 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42110
42111         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42112         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42113         don't pass arguments to AC_OUTPUT.
42114
42115 2009-09-02  Bruno Haible  <bruno@clisp.org>
42116
42117         * modules/mkdtemp (License): Relicense under LGPLv2+.
42118         Reported by Paolo Bonzini.
42119
42120 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42121
42122         Replace uses of obsolete autoconf macros in Jim's modules.
42123         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42124         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42125         can evoke a warning from autoconf when run with -Wobsolete
42126         enabled.  They were declared obsolete for good reasons (see
42127         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42128         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42129         should not continue using the deprecated macros.
42130         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42131         obsolete Autoconf macros with modern counterparts.
42132         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42133         * m4/dos.m4 (gl_AC_DOS): Likewise.
42134         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42136         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42137         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42138         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42139         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42140         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42141         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42143         Likewise.
42144         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42145         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42146         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42147         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42148         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42149         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42150
42151 2009-09-01  Eric Blake  <ebb9@byu.net>
42152
42153         fchdir: fix off-by-one bug in previous patch
42154         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42155         (_gl_unregister_fd): Delete useless if.
42156
42157 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42158
42159         maint.mk: sort the list of syntax-check rules
42160         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42161         easier to get a sense of progress when the rules are run sequentially
42162         and take a long time.
42163
42164 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42165
42166         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42167         * modules/netinet_in: Likewise.
42168         * modules/sys_file: Likewise.
42169         * modules/sys_ioctl: Likewise.
42170         * modules/sys_select: Likewise.
42171         * modules/sys_socket: Likewise.
42172         * modules/sys_stat: Likewise.
42173         * modules/sys_time: Likewise.
42174         * modules/sys_times: Likewise.
42175         * modules/sys_utsname: Likewise.
42176         * modules/sys_wait: Likewise.
42177
42178 2009-09-01  Jim Meyering  <meyering@redhat.com>
42179
42180         fts: help ensure that return values are not ignored
42181         * lib/fts_.h (__GNUC_PREREQ): Define.
42182         (__attribute_warn_unused_result__): Define.
42183         (fts_children, fts_close, fts_open, fts_read): Declare with
42184         __attribute_warn_unused_result__.
42185
42186         fts: fts_close now fails also when closing a dir file descriptor fails
42187         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42188         and propagate to caller, along with errno.
42189
42190         announce-gen: correct formatting in --help output
42191         * build-aux/announce-gen (usage): Move the one-line description in
42192         --help output "up", to where it belongs, just after Usage:.
42193
42194 2009-08-31  Eric Blake  <ebb9@byu.net>
42195
42196         fchdir: port to mingw
42197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42198         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42199         opened, then use a substitute.
42200         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42201         replacement.
42202         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42203         (_gl_register_fd): No need to check stat if open already filters
42204         all directories.
42205         (fchdir): Fix error condition to match POSIX.
42206         * modules/fchdir (Depends-on): Add sys_stat.
42207         * doc/posix-functions/open.texi (open): Document the limitation.
42208         * modules/fchdir-tests: New file.
42209         * tests/test-fchdir.c: Likewise.
42210
42211         canonicalize: allow cross-testing from cygwin to mingw
42212         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42213         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42214         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42215         Likewise.
42216         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42217         target does not support symlinks.
42218         * tests/test-canonicalize-lgpl.sh: Likewise.
42219
42220         chown: avoid compilation warning on mingw
42221         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42222         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42223         mingw.
42224         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42225         * modules/chown (Depends-on): Add errno.
42226
42227 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42228
42229         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42230         command.
42231
42232 2009-08-31  Jim Meyering  <meyering@redhat.com>
42233
42234         canonicalize: remove useless initialization
42235         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42236         initialization of local, "end".
42237
42238 2009-08-30  Bruno Haible  <bruno@clisp.org>
42239
42240         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42241         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42242         ENOSYS.
42243
42244 2009-08-30  Bruno Haible  <bruno@clisp.org>
42245
42246         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42247         /usr/xpg4/bin/tr when it exists.
42248         * tests/test-pipe-filter-gi1.sh: Likewise.
42249
42250 2009-08-30  Bruno Haible  <bruno@clisp.org>
42251
42252         Work around deficient /usr/bin/id program on Solaris.
42253         * tests/test-file-has-acl.sh (ID): New variable.
42254         * tests/test-set-mode-acl.sh (ID): Likewise.
42255         * tests/test-copy-acl.sh (ID): Likewise.
42256         * tests/test-copy-file.sh (ID): Likewise.
42257
42258 2009-08-30  Bruno Haible  <bruno@clisp.org>
42259
42260         New module 'xstriconveh'.
42261         * lib/xstriconveh.h: New file.
42262         * lib/xstriconveh.c: New file.
42263         * modules/xstriconveh: New file.
42264
42265 2009-08-30  Bruno Haible  <bruno@clisp.org>
42266
42267         Make it easier to use mem_cd_iconveh.
42268         * lib/striconveh.h (iconveh_t): New type.
42269         (iconveh_open, iconveh_close): New declarations.
42270         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42271         with a single 'const iconveh_t *' argument.
42272         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42273         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42274         with a single 'const iconveh_t *' argument.
42275         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42276         * tests/test-striconveh.c (main): Update.
42277         * NEWS: Mention the change.
42278
42279 2009-08-30  Bruno Haible  <bruno@clisp.org>
42280
42281         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42282         problem.
42283
42284 2009-08-30  Bruno Haible  <bruno@clisp.org>
42285
42286         Work around iconv_open problem on Solaris.
42287         * lib/iconv_open-solaris.gperf: New file.
42288         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42289         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42290         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42291         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42292         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42293         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42294
42295 2009-08-29  Jim Meyering  <meyering@redhat.com>
42296
42297         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42298         * top/maint.mk (cvs-check): Remove target; it was just an alias
42299         to the better-named vc-diff-check.
42300         (maintainer-distcheck): Remove rule.  It was used only from
42301         the (alpha/beta/major) target, and all of its commands but one
42302         were coreutils-specific.
42303         (vc-dist): Remove rule.
42304         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42305         Run vc-diff-check, not vc-dist.
42306         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42307
42308 2009-08-27  Bruno Haible  <bruno@clisp.org>
42309
42310         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42311         of 0.
42312
42313 2009-08-27  Bruno Haible  <bruno@clisp.org>
42314
42315         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42316         compilers.
42317         * doc/func.texi: Document the SunPRO C bug.
42318
42319 2009-08-27  Bruno Haible  <bruno@clisp.org>
42320
42321         Fix link error on Solaris.
42322         * tests/test-parse-duration.c (xstrdup): Remove function.
42323
42324 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42325
42326         ignore-value: handle pointer types, too
42327         * lib/ignore-value.h (__attribute__): Remove definition.
42328         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42329         of a more concise and more-often effective "(void) i" statement.
42330         (ignore_ptr): New function to suppress warnings from functions that
42331         return pointers, and to make it explicit that one function doesn't
42332         handle all cases.
42333
42334 2009-08-25  Bruno Haible  <bruno@clisp.org>
42335
42336         dup2: work around a Linux bug.
42337         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42338         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42339         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42340         Reported by Simon Josefsson.
42341
42342 2009-08-25  Jim Meyering  <meyering@redhat.com>
42343
42344         libguestfs uses gnulib
42345         * users.txt: Add libguestfs.
42346
42347 2009-08-24  Eric Blake  <ebb9@byu.net>
42348
42349         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42350         * lib/pipe2.c (includes): Add binary-io.h.
42351         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42352
42353 2009-08-24  Bruno Haible  <bruno@clisp.org>
42354
42355         Tolerate declared but missing accept4 syscall.
42356         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42357         available.
42358         * lib/sys_socket.in.h (accept4): If the function is already present,
42359         override it.
42360         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42361         * modules/accept4 (Makefile.am): Compile accept4.c always.
42362         Reported by Paolo Bonzini and Eric Blake.
42363
42364 2009-08-23  Bruno Haible  <bruno@clisp.org>
42365
42366         New module 'accept4'.
42367         * lib/sys_socket.in.h (accept4): New declaration.
42368         * lib/accept4.c: New file.
42369         * m4/accept4.m4: New file.
42370         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42371         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42372         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42373         HAVE_ACCEPT4.
42374         * modules/accept4: New file.
42375         * doc/glibc-functions/accept4.texi: Mention the new module.
42376
42377 2009-08-24  Jim Meyering  <meyering@redhat.com>
42378
42379         progname: also set global program_invocation_name, when possible
42380         Before this change, a libtool-enabled program that calls glibc's
42381         error function would report the program name as
42382         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42383         * modules/progname (configure.ac): Check for a declaration of
42384         program_invocation_name.
42385         * lib/progname.c:  Include <errno.h>.
42386         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42387         Set program_invocation_name.
42388
42389 2009-08-23  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/dup3.c: Include <string.h>.
42392
42393 2009-08-23  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42396         * lib/pipe2.c (pipe2): Likewise.
42397         Suggested by Eric Blake.
42398
42399 2009-08-23  Bruno Haible  <bruno@clisp.org>
42400
42401         Tolerate declared but missing dup3 syscall.
42402         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42403         * lib/unistd.in.h (dup3): If the function is already present,
42404         override it.
42405         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42406         * modules/dup3 (Makefile.am): Compile dup3.c always.
42407         Reported by Paolo Bonzini.
42408
42409 2009-08-23  Bruno Haible  <bruno@clisp.org>
42410
42411         Tolerate declared but missing pipe2 syscall.
42412         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42413         available.
42414         * lib/unistd.in.h (pipe2): If the function is already present,
42415         override it.
42416         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42417         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42418         Reported by Paolo Bonzini.
42419
42420 2009-08-23  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/pipe2.c (pipe2): Move #ifs inside function.
42423
42424 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42425
42426         quotearg: document limitations of quote_these_too
42427         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42428         those limitations are created.
42429         * lib/quotearg.h (set_char_quoting): Document that digits and
42430         letters that are special after backslash are not permitted.
42431         (quotearg_char): Cross-reference set_char_quoting documentation.
42432
42433 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42434
42435         quotearg: implement custom_quoting_style
42436         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42437         right_quote fields.
42438         (set_custom_quoting): New public function.
42439         (quotearg_buffer_restyled): Add left_quote and right_quote
42440         arguments, handle them very much like locale quoting, and update
42441         all uses.
42442         (quotearg_n_custom): New public function.
42443         (quotearg_n_custom_mem): New public function.
42444         (quotearg_custom): New public function.
42445         (quotearg_custom_mem): New public function.
42446         * lib/quotearg.h: Prototype and document new public functions.
42447         (enum quoting_style): For escape_quoting_style and
42448         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42449         ignored even though they're otherwise like c_quoting_style.
42450         Add custom_quoting_style member and document with comparison to
42451         clocale_quoting_style.
42452         * tests/test-quotearg.c (custom_quotes): New array.
42453         (custom_results): New array.
42454         (main): Extend to test custom quoting.
42455
42456 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42457
42458         quotearg: fix right quote escaping when it's in quote_these_too
42459         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42460         quote, be sure to prepend only one backslash.
42461         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42462         (main): Test it.
42463
42464 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42465
42466         quotearg-tests: test escaping of embedded locale quotes
42467         * tests/test-quotearg.c (struct result_strings): Add member for
42468         new input.
42469         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42470         (inputs): Add new input.
42471         (results_g): Add expected results.
42472         (flag_results): Likewise.
42473         (locale_results): Likewise.
42474         (compare_strings): Check those.
42475
42476 2009-08-23  Bruno Haible  <bruno@clisp.org>
42477
42478         Tests for module 'dup3'.
42479         * modules/dup3-tests: New file.
42480         * tests/test-dup3.c: New file.
42481
42482         New module 'dup3'.
42483         * lib/unistd.in.h (dup3): New declaration.
42484         * lib/dup3.c: New file.
42485         * m4/dup3.m4: New file.
42486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42487         HAVE_DUP3.
42488         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42489         * modules/dup3: New file.
42490         * doc/glibc-functions/dup3.texi: Mention the new module.
42491
42492 2009-08-23  Bruno Haible  <bruno@clisp.org>
42493
42494         Tweak the dup2 test.
42495         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42496         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42497         the test file is still empty. Fix argument order of lseek.
42498
42499 2009-08-23  Bruno Haible  <bruno@clisp.org>
42500
42501         Avoid test link errors when the modules getopt-gnu, gettext are used.
42502         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42504
42505 2009-08-23  Bruno Haible  <bruno@clisp.org>
42506
42507         Fix getdtablesize() on mingw.
42508         * lib/getdtablesize.c (getdtablesize): Implement differently.
42509         * lib/unistd.in.h (getdtablesize): Improve comment.
42510
42511 2009-08-23  Bruno Haible  <bruno@clisp.org>
42512
42513         New module 'mkostemp'.
42514         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42515         * lib/stdlib.in.h (mksotemp): New declaration.
42516         * lib/mkostemp.c: New file, from glibc with modifications.
42517         * lib/tempname.h (GT_FILE): Remove outdated comment.
42518         (gen_tempname): Add flags argument.
42519         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42520         (__GT_FILE): Map to 1.
42521         (small_open, large_open): Remove macros.
42522         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42523         * lib/mkstemp.c (mkstemp): Update.
42524         * lib/mkdtemp.c (mkdtemp): Likewise.
42525         * m4/mkostemp.m4: New file.
42526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42527         HAVE_MKOSTEMP.
42528         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42529         HAVE_MKOSTEMP.
42530         * modules/mkostemp: New file, based on modules/mkstemp.
42531         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42532         * NEWS: Mention the change.
42533
42534 2009-08-23  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42537         Reported by Eric Blake.
42538
42539 2009-08-23  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42542         Reported by Eric Blake.
42543
42544 2009-08-23  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42547         * modules/pipe2 (Depends-on): Likewise.
42548
42549 2009-08-23  Eric Blake  <ebb9@byu.net>
42550
42551         fcntl-h: add O_TTY_INIT support
42552         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42553         * tests/test-fcntl-h.c (o): Test it.
42554         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42555
42556         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42557         * modules/fcntl: Move <fcntl.h> header replacement...
42558         * modules/fcntl-h: ...to new name, so as not to collide with
42559         like-named function.
42560         * tests/test-fcntl.c: Rename...
42561         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42562         * modules/fcntl-tests: Rename...
42563         * modules/fcntl-h-tests: ...to this.  Update test file name.
42564         * modules/chdir-long (Depends-on): Update clients.
42565         * modules/chdir-safer (Depends-on): Likewise.
42566         * modules/fcntl-safer (Depends-on): Likewise.
42567         * modules/fts (Depends-on): Likewise.
42568         * modules/mkancesdirs (Depends-on): Likewise.
42569         * modules/mkdir-p (Depends-on): Likewise.
42570         * modules/open (Depends-on): Likewise.
42571         * modules/savewd (Depends-on): Likewise.
42572         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42573         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42574
42575 2009-08-22  Bruno Haible  <bruno@clisp.org>
42576
42577         * modules/binary-io (License): Relicense under LGPL.
42578         * modules/pipe2 (License): Likewise.
42579
42580 2009-08-22  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42583         return value.
42584         * lib/pipe-filter-gi.c (filter_init): Likewise.
42585         Reported by Eric Blake.
42586
42587 2009-08-22  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42590         * modules/pipe (Depends-on): Add pipe2.
42591
42592 2009-08-22  Bruno Haible  <bruno@clisp.org>
42593
42594         Tests for module 'pipe2'.
42595         * modules/pipe2-tests: New file.
42596         * tests/test-pipe2.c: New file.
42597
42598         New module 'pipe2'.
42599         * lib/unistd.in.h (pipe2): New declaration.
42600         * lib/pipe2.c: New file.
42601         * m4/pipe2.m4: New file.
42602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42603         HAVE_PIPE2.
42604         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42605         * modules/pipe2: New file.
42606         * doc/glibc-functions/pipe2.texi: Mention the new module.
42607
42608 2009-08-22  Bruno Haible  <bruno@clisp.org>
42609
42610         Reference some new glibc functions.
42611         * doc/glibc-functions/accept4.texi: New file.
42612         * doc/glibc-functions/dup3.texi: New file.
42613         * doc/glibc-functions/mkostemp.texi: New file.
42614         * doc/glibc-functions/pipe2.texi: New file.
42615         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42616         (Glibc sys/socket.h): Refer to accept4.
42617         (Glibc unistd.h): Refer to dup3, pipe2.
42618         Reported by Eric Blake.
42619
42620 2009-08-22  Jim Meyering  <meyering@redhat.com>
42621             Bruno Haible  <bruno@clisp.org>
42622
42623         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42624         This makes it so packages using automake-1.11's silent-rules option
42625         can print e.g., a single "GEN    configmake.h" line, rather than
42626         the 30+ statements that perform the job.  If you want to see the
42627         actual commands, you can still run "make V=1".
42628         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42629         so that make output is abbreviated when those variables are defined
42630         appropriately.
42631         * modules/argz: Likewise.
42632         * modules/arpa_inet: Likewise.
42633         * modules/byteswap: Likewise.
42634         * modules/configmake: Likewise.
42635         * modules/dirent: Likewise.
42636         * modules/errno: Likewise.
42637         * modules/fcntl: Likewise.
42638         * modules/float: Likewise.
42639         * modules/fnmatch: Likewise.
42640         * modules/getopt-posix: Likewise.
42641         * modules/glob: Likewise.
42642         * modules/iconv_open: Likewise.
42643         * modules/inttypes: Likewise.
42644         * modules/localcharset: Likewise.
42645         * modules/locale: Likewise.
42646         * modules/math: Likewise.
42647         * modules/netdb: Likewise.
42648         * modules/netinet_in: Likewise.
42649         * modules/poll: Likewise.
42650         * modules/posix_spawnp-tests: Likewise.
42651         * modules/sched: Likewise.
42652         * modules/search: Likewise.
42653         * modules/selinux-h: Likewise.
42654         * modules/signal: Likewise.
42655         * modules/spawn: Likewise.
42656         * modules/stdarg: Likewise.
42657         * modules/stdbool: Likewise.
42658         * modules/stddef: Likewise.
42659         * modules/stdint: Likewise.
42660         * modules/stdio: Likewise.
42661         * modules/stdlib: Likewise.
42662         * modules/string: Likewise.
42663         * modules/strings: Likewise.
42664         * modules/sys_file: Likewise.
42665         * modules/sys_ioctl: Likewise.
42666         * modules/sys_select: Likewise.
42667         * modules/sys_socket: Likewise.
42668         * modules/sys_stat: Likewise.
42669         * modules/sys_time: Likewise.
42670         * modules/sys_times: Likewise.
42671         * modules/sys_utsname: Likewise.
42672         * modules/sys_wait: Likewise.
42673         * modules/sysexits: Likewise.
42674         * modules/time: Likewise.
42675         * modules/unistd: Likewise.
42676         * modules/wchar: Likewise.
42677         * modules/wctype: Likewise.
42678
42679 2009-08-22  Jim Meyering  <meyering@redhat.com>
42680
42681         announce-gen: detect write failure
42682         * build-aux/announce-gen: Add Coda at end.
42683         Remove equivalent-but-more-verbose block at top.
42684
42685 2009-08-19  Akim Demaille  <demaille@gostai.com>
42686
42687         bootstrap: --help to stdout.
42688         * bootstrap (usage): Don't send --help to stderr.
42689         Use a here doc instead of a long string.
42690
42691 2009-08-21  Eric Blake  <ebb9@byu.net>
42692
42693         test-popen-safer: split from test-popen
42694         * tests/test-popen.c (main): Move...
42695         * tests/test-popen.h: ...into new file.
42696         * tests/test-popen-safer2.c: New file.
42697         * modules/popen-tests (Files): Add test-popen.h.
42698         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42699         Suggested by Bruno Haible.
42700
42701         test-fcntl-safer: split from test-open
42702         * tests/test-open.c (main): Move...
42703         * tests/test-open.h: ...into new file.
42704         * tests/test-fcntl-safer.c: New file.
42705         * modules/open-tests (Files): Add test-open.h.
42706         * modules/fcntl-safer-tests: New file.
42707         Suggested by Bruno Haible.
42708
42709         test-fopen-safer: split from test-fopen
42710         * tests/test-fopen.c (main): Move...
42711         * tests/test-fopen.h: ...into new file.
42712         * tests/test-fopen-safer.c: New file.
42713         * modules/fopen-tests (Files): Add test-fopen.h.
42714         * modules/fopen-safer-tests: New file.
42715         Suggested by Bruno Haible.
42716
42717 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42718
42719         popen-safer: test O_CLOEXEC at run-time.
42720         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42721
42722 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42723
42724         fcntl: move more flags to the header
42725         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42726         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42727         * lib/fcntl.in.h: Do both things here.
42728
42729 2009-08-21  Jim Meyering  <meyering@redhat.com>
42730
42731         consistently remove $@-t before redirecting to it
42732         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42733         * modules/alloca-opt: Likewise.
42734         * modules/byteswap: Likewise.
42735         * modules/fnmatch: Likewise.
42736         * modules/getopt-posix: Likewise.
42737         * modules/glob: Likewise.
42738         * modules/poll: Likewise.
42739         * modules/posix_spawnp-tests: Likewise.
42740         * modules/sys_socket: Likewise.
42741         * modules/sysexits: Likewise.
42742
42743 2009-08-21  Eric Blake  <ebb9@byu.net>
42744
42745         popen: simplify access to original popen
42746         * lib/popen.c (rpl_popen): No need to worry about popen being a
42747         macro.
42748         Reported by Bruno Haible.
42749
42750 2009-08-20  Eric Blake  <ebb9@byu.net>
42751
42752         build: avoid some compiler warnings
42753         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42754         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42755         type.
42756         (new_exclude_segment, excluded_file_pattern_p)
42757         (excluded_file_name_p): Reduce scope.
42758         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42759         old-style declaration.
42760
42761 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42762
42763         * tests/test-exclude1.sh: Handle Windows EOL.
42764         * tests/test-exclude2.sh: Likewise.
42765         * tests/test-exclude3.sh: Likewise.
42766         * tests/test-exclude4.sh: Likewise.
42767         * tests/test-exclude5.sh: Likewise.
42768         * tests/test-exclude6.sh: Likewise.
42769         * tests/test-exclude7.sh: Likewise.
42770
42771 2009-08-19  Akim Demaille  <demaille@gostai.com>
42772
42773         bootstrap: find sha1sum when named gsha1sum.
42774         * bootstrap (find_tool): New.
42775         ($SHA1SUM): New.
42776         Use it.
42777
42778 2009-08-20  Jim Meyering  <meyering@redhat.com>
42779
42780         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42781         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42782         expression that converts "." in a file name to "\." in the resulting
42783         regexp.  Start with a dummy statement, so that prior shell variable
42784         definitions are expanded portably.  Reported by Simon Josefsson.
42785
42786 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42787
42788         Fix polling for writeability of a screen buffer.
42789         * lib/poll.c: Distinguish input and screen buffers for the
42790         Win32 implementation.
42791         * lib/select.c: Likewise.
42792
42793 2009-08-19  Eric Blake  <ebb9@byu.net>
42794
42795         popen-safer: prevent popen from clobbering std descriptors
42796         * modules/popen-safer: New file.
42797         * lib/popen-safer.c: Likewise.
42798         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42799         * lib/stdio--.h (popen): Provide override.
42800         * lib/stdio-safer.h (popen_safer): Provide declaration.
42801         * tests/test-popen.c (includes): Partially test this.
42802         * modules/popen-safer-tests: New file, for more tests.
42803         * tests/test-popen-safer.c: Likewise.
42804         * MODULES.html.sh (file stream based Input/Output): Mention it.
42805
42806         tests: test some of the *-safer modules
42807         * modules/fopen-safer (Depends-on): Add fopen.
42808         * modules/fcntl-safer (Depends-on): Add fcntl.
42809         * modules/stdlib-safer (Depends-on): Add stdlib.
42810         (configure.ac): Set indicator.
42811         * modules/unistd-safer (configure.ac): Likewise.
42812         * modules/tmpfile-safer (configure.ac): Likewise.
42813         (Depends-on): Add tmpfile.
42814         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42815         active.
42816         * tests/test-fopen.c (includes): Test safer versions when they are
42817         in use.
42818         * tests/test-open.c (includes): Likewise.
42819
42820         popen: fix cygwin 1.5 bug when stdin closed
42821         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42822         * modules/popen: New file.
42823         * modules/popen-tests: Likewise.
42824         * tests/test-popen.c: Likewise.
42825         * m4/popen.m4: Likewise.
42826         * lib/popen.c: Likewise.
42827         * lib/stdio.in.h (popen): New declaration.
42828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42829         * modules/stdio (Makefile.am): Likewise.
42830         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42831
42832 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42833
42834         maint.mk: give full control over update-copyright exclusions
42835         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42836         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42837         (update-copyright): Don't force inclusion of top-level
42838         ChangeLog.  Don't force exclusion of all COPYING files, but make
42839         them the default exclusion instead.
42840
42841 2009-08-16  Bruno Haible  <bruno@clisp.org>
42842
42843         Fix test failures on Solaris 10.
42844         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42845         tests when Solaris iconv() is used.
42846         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42847         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42848         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42849         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42850         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42851
42852 2009-08-16  Bruno Haible  <bruno@clisp.org>
42853
42854         Fix test failures on Solaris 10.
42855         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42856         'tr' program and pass it as first argument.
42857         * tests/test-pipe-filter-gi1.sh: Likewise.
42858         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42859         program as first argument.
42860         * tests/test-pipe-filter-gi1.c (main): Likewise.
42861
42862 2009-08-16  Eric Blake  <ebb9@byu.net>
42863
42864         fpurge: fix previous commits
42865         * modules/fpurge (Makefile.am): Make replacement conditional,
42866         partially reverting 2007-04-29 change; missed in previous
42867         attempt.
42868         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42869         is missing.
42870
42871 2009-08-16  Bruno Haible  <bruno@clisp.org>
42872
42873         Clarify fpurge's effect on the file position.
42874         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42875         * tests/test-fpurge.c (main): Make a second pass for checking the file
42876         position.
42877
42878 2009-08-16  Bruno Haible  <bruno@clisp.org>
42879
42880         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42881         declaration of fpurge is missing.
42882         * tests/test-fpurge.c (main): Check that the file has not more contents
42883         than expected. Close the file before removing it.
42884
42885 2009-08-15  Eric Blake  <ebb9@byu.net>
42886
42887         fpurge: don't wrap working cygwin implementation
42888         * lib/fpurge.c (fpurge): Fix comment typo.
42889         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42890         1.7 to avoid replacement.
42891         * tests/test-fpurge.c (main): Enhance test.
42892
42893 2009-08-15  Eric Blake  <ebb9@byu.net>
42894         and Jim Meyering  <meyering@redhat.com>
42895
42896         test-update-copyright: skip if perl is insufficient
42897         * tests/test-update-copyright.sh: Failure to run maintainer tool
42898         should not cause testsuite failure on cygwin 1.5.
42899
42900 2009-08-14  Eric Blake  <ebb9@byu.net>
42901
42902         doc: mention more functions added in cygwin 1.7.0
42903         * doc/posix-headers/limits.texi (limits.h): Update for recent
42904         cygwin additions.
42905         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42906         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42907         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42908         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42909         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42910
42911 2009-08-14  Eric Blake  <ebb9@byu.net>
42912
42913         maint.mk: simplify update-copyright rule
42914         * top/maint.mk (update-copyright-local): Delete, and document how
42915         to do it in cfg.mk instead.
42916         (update-copyright-exclude-regexp): Delete, and document how to do
42917         it in .x-update-copyright instead.
42918         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42919         exclude ChangeLog.
42920
42921 2009-08-14  Bruno Haible  <bruno@clisp.org>
42922
42923         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42924
42925 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42926
42927         maint.mk: support update-copyright-env
42928         * top/maint.mk (update-copyright-env): Define place-holder.
42929         (update-copyright): Expand $(update-copyright-env) before
42930         invoking update-copyright.
42931
42932 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42933
42934         update-copyright: implement forced reformatting
42935         * build-aux/update-copyright: Implement and document
42936         UPDATE_COPYRIGHT_FORCE.
42937         * tests/test-update-copyright.sh: Test it.
42938
42939 2009-08-14  Eric Blake  <ebb9@byu.net>
42940         and Bruno Haible  <bruno@clisp.org>
42941
42942         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42943         * tests/test-locale.c: Revert previous patch related to NULL.
42944         * tests/test-stdio.c: Likewise.
42945         * tests/test-stdlib.c: Likewise.
42946         * tests/test-string.c: Likewise.
42947         * tests/test-unistd.c: Likewise.
42948         * modules/time-tests (Depends-on): Add verify.
42949         * modules/wchar-tests (Depends-on): Likewise.
42950         * tests/test-time.c: Test for NULL compliance.
42951         * tests/test-wchar.c: Likewise.
42952         * modules/locale (Depends-on): Add stddef.
42953         * modules/stdio (Depends-on): Likewise.
42954         * modules/stdlib (Depends-on): Likewise.
42955         * modules/string (Depends-on): Likewise.
42956         * modules/time (Depends-on): Likewise.
42957         * modules/unistd (Depends-on): Likewise.
42958         * modules/wchar (Depends-on): Likewise.
42959         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42960         * lib/stdlib.in.h (includes): Likewise.
42961         * lib/string.in.h (includes): Likewise.
42962         * lib/time.in.h (includes): Likewise.
42963         * lib/unistd.in.h (includes): Likewise.
42964         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42965         replaced.
42966         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42967         * m4/stddef_h.m4: New file.
42968         * modules/stddef: Likewise.
42969         * lib/stddef.in.h: Likewise.
42970         * modules/stddef-tests: Likewise.
42971         * tests/test-stddef.c: Likewise.
42972         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42973         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42974         * doc/posix-headers/locale.texi (locale.h): Likewise.
42975         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42976         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42977         * doc/posix-headers/string.texi (string.h): Likewise.
42978         * doc/posix-headers/time.texi (time.h): Likewise.
42979         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42980         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42981
42982 2009-08-14  Eric Blake  <ebb9@byu.net>
42983
42984         doc: improve git diff of texinfo files
42985         * .gitattributes: Add rule for *.texi files, with hint on how to
42986         use it.
42987         Copied from m4, and based on a report by Bruno Haible.
42988
42989 2009-08-14  Bruno Haible  <bruno@clisp.org>
42990
42991         Disable multithread support by default on Cygwin 1.5.x for real.
42992         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42993
42994 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42995
42996         update-copyright: much ado about intervals
42997         * build-aux/update-copyright: Implement and document
42998         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42999         of copyright year intervals.
43000         Also, document UPDATE_COPYRIGHT_YEAR.
43001         * tests/test-update-copyright.sh: Test it.
43002
43003         update-copyright: convert 2-digit to 4-digit years
43004         * build-aux/update-copyright: Implement and document.
43005         * tests/test-update-copyright.sh: Update.
43006
43007 2009-08-14  Jim Meyering  <meyering@redhat.com>
43008
43009         test-exclude: avoid coreutils "make check" failure
43010         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43011         just as in test-argmatch.c.
43012
43013 2009-08-13  Eric Blake  <ebb9@byu.net>
43014
43015         test-dup2: fix bad assumption
43016         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43017         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43018
43019         test-version-etc: fix CRLF portability issue
43020         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43021         recognize \r.
43022         * tests/test-argp-version-etc-1.sh: Likewise.
43023
43024         getopt: update client modules
43025         * modules/argp (Depends-on): Use getopt-gnu.
43026         * modules/git-merge-changelog (Depends-on): Likewise.
43027         * modules/long-options (Depends-on): Likewise.
43028         * modules/xstrtol (Depends-on): Likewise.
43029
43030 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43031
43032         * tests/test-version-etc.sh: Don't fail on different
43033         project/version.  Don't fail on CRLF differences.  Rewrite to use
43034         multiple -e instead of multiple sed forks, suggested by Eric Blake
43035         <ebb9@byu.net>.
43036         * tests/test-argp-version-etc-1.sh: Likewise.
43037
43038 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43039
43040         * tests/test-version-etc.sh: Don't fail on different
43041         project/version.
43042
43043 2009-08-12  Bruno Haible  <bruno@clisp.org>
43044
43045         Tests for modules 'getopt-posix', 'getopt-gnu'.
43046         * modules/getopt-posix-tests: New file.
43047         * tests/test-getopt.c: New file.
43048         * tests/test-getopt.h: New file.
43049         * tests/test-getopt_long.h: New file.
43050
43051         New modules 'getopt-posix', 'getopt-gnu'.
43052         * modules/getopt-gnu: New file, renamed from modules/getopt.
43053         * modules/getopt-posix: New file.
43054         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43055         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43056         (gl_GETOPT): Remove macro.
43057         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43058         Disable the test against BSD systems that declare optreset. Test
43059         against mingw bug. Test against lack of support of optional arguments
43060         on many platforms.
43061         * doc/glibc-headers/getopt.texi: Update module name and list of
43062         relevant platforms.
43063         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43064         'getopt-gnu' and more portability problems.
43065         * NEWS: Mention the changes.
43066
43067 2009-08-12  Bruno Haible  <bruno@clisp.org>
43068
43069         Ensure that optarg etc. get declared by <unistd.h>.
43070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43071         AC_USE_SYSTEM_EXTENSIONS.
43072         * modules/getopt (Depends-on): Add 'extensions'.
43073
43074 2009-08-12  Bruno Haible  <bruno@clisp.org>
43075
43076         Avoid test link errors.
43077         * modules/pipe-filter-ii-tests (Makefile.am): Define
43078         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43079         * modules/pipe-filter-gi-tests (Makefile.am): Define
43080         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43082
43083 2009-08-12  Bruno Haible  <bruno@clisp.org>
43084
43085         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43086         gl_GETOPT_SUBSTITUTE before.
43087         (gl_GETOPT): Use it.
43088         * m4/argp.m4 (gl_ARGP): Update.
43089         Reported by Sergey Poznyakoff.
43090
43091         * m4/getopt.m4: Reorder macros.
43092         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43093         (gl_GETOPT_SUBSTITUTE): Remove macro.
43094
43095 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43096
43097         Minor improvement in gitlog-to-changelog
43098
43099         * build-aux/gitlog-to-changelog: New option `--format' makes
43100         output format string configurable.
43101
43102 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43103
43104         Optimize exclude: use hash tables for non-wildcard patterns.
43105
43106         * lib/exclude.c: Include hash.h and mbuiter.h
43107         (struct exclude_pattern, exclude_segment): New data types.
43108         (struct exclude): Rewrite.
43109         (fnmatch_pattern_has_wildcards): New function.
43110         (new_exclude_segment, free_exclude_segment): New functions.
43111         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43112         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43113         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43114         * modules/exclude: Depend on hash and mbuiter.
43115
43116         * modules/exclude-tests: New file.
43117         * tests/test-exclude.c: New file.
43118         * tests/test-exclude1.sh: New file.
43119         * tests/test-exclude2.sh: New file.
43120         * tests/test-exclude3.sh: New file.
43121         * tests/test-exclude4.sh: New file.
43122         * tests/test-exclude5.sh: New file.
43123         * tests/test-exclude6.sh: New file.
43124         * tests/test-exclude7.sh: New file.
43125
43126 2009-08-12  Bruno Haible  <bruno@clisp.org>
43127
43128         Ensure that getopt() gets declared by <unistd.h>.
43129         * lib/unistd.in.h: Conditionally include getopt.h.
43130         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43131         Set GNULIB_UNISTD_H_GETOPT.
43132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43133         GNULIB_UNISTD_H_GETOPT.
43134         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43135
43136 2009-08-12  Bruno Haible  <bruno@clisp.org>
43137
43138         Clarify logic.
43139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43140         gl_replace_getopt instead of GETOPT_H.
43141
43142 2009-08-12  Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/getopt.m4: Add comments.
43145
43146 2009-08-12  Bruno Haible  <bruno@clisp.org>
43147
43148         Disable multithread support by default on Cygwin 1.5.x.
43149         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43150         set gl_use_threads=no if not specified otherwise.
43151
43152 2009-08-11  Bruno Haible  <bruno@clisp.org>
43153
43154         Avoid compilation error on NetBSD 5.0.
43155         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43156         * tests/test-stdio.c: Likewise.
43157         * tests/test-stdlib.c: Likewise.
43158         * tests/test-string.c: Likewise.
43159         * tests/test-unistd.c: Likewise.
43160         Reported by Greg Troxel <gdt@ir.bbn.com>
43161         at <https://savannah.gnu.org/support/?106973>.
43162
43163 2009-08-11  Bruno Haible  <bruno@clisp.org>
43164
43165         * modules/dup2-tests (Depends-on): Remove close.
43166
43167         Undo 2009-07-19 commit.
43168         * modules/acl-tests (Depends-on): Remove close.
43169         * modules/binary-io-tests (Depends-on): Likewise.
43170         * modules/closein-tests (Depends-on): Likewise.
43171         * modules/flock-tests (Depends-on): Likewise.
43172         * modules/fsync-tests (Depends-on): Likewise.
43173         * modules/lseek-tests (Depends-on): Likewise.
43174         * modules/pipe-tests (Depends-on): Likewise.
43175         * modules/posix_spawn-tests (Depends-on): Likewise.
43176         * modules/posix_spawnp-tests (Depends-on): Likewise.
43177         * modules/stat-time-tests (Depends-on): Likewise.
43178         * modules/yesno-tests (Depends-on): Likewise.
43179
43180 2009-08-10  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43183
43184 2009-08-10  Bruno Haible  <bruno@clisp.org>
43185
43186         Fix a gcc warning.
43187         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43188
43189 2009-08-10  Bruno Haible  <bruno@clisp.org>
43190
43191         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43192         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43193         not only the first time.
43194         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43195         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43196         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43197         is 1, not only the the first time.
43198
43199 2009-08-10  Bruno Haible  <bruno@clisp.org>
43200
43201         Make it possible to use module 'gethostname' without module 'close'.
43202         * lib/unistd.in.h (close): Evoke a link error only if
43203         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43205         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43206         * modules/unistd (Makefile.am): Substitute
43207         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43208         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43209         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43210         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43211         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43212         * modules/sys_ioctl (Makefile.am): Substitute
43213         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43214         * modules/socket (configure.ac): On native Windows, set
43215         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43216         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43217         Reported by Sam Steingold <sds@gnu.org>.
43218
43219 2009-08-10  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43222         * modules/ioctl (configure.ac): Likewise.
43223
43224 2009-08-10  Bruno Haible  <bruno@clisp.org>
43225
43226         Avoid collision between gnulib wrapper and libintl wrapper.
43227         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43228         already defined in intl/printf.c.
43229         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43230         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43231
43232 2009-08-09  Bruno Haible  <bruno@clisp.org>
43233
43234         Make <sys/select.h> really self-contained, also on Solaris 10.
43235         * lib/sys_select.in.h: Include <string.h>.
43236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43237         Solaris 10 problem.
43238         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43239         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43240         Reported by Jim Meyering.
43241
43242 2009-08-09  Bruno Haible  <bruno@clisp.org>
43243
43244         Avoid warnings from 'aclocal' that are due to a use of macro name
43245         AM_XGETTEXT_OPTION that is not defined in automake.
43246         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43247         automake.
43248         * modules/error (configure.ac): Likewise.
43249         * modules/propername (configure.ac): Likewise.
43250         * modules/vasprintf (configure.ac): Likewise.
43251         * modules/verror (configure.ac): Likewise.
43252         * modules/xprintf (configure.ac): Likewise.
43253         * modules/xvasprintf (configure.ac): Likewise.
43254
43255 2009-08-08  Bruno Haible  <bruno@clisp.org>
43256
43257         Avoid compilation error in C++ mode.
43258         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43259         Reported by Sam Steingold <sds@gnu.org>.
43260
43261 2009-08-08  Bruno Haible  <bruno@clisp.org>
43262
43263         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43264         for the various Unix platforms.
43265         * doc/posix-headers/limits.texi: Update platforms list regarding
43266         HOST_NAME_MAX.
43267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43268
43269 2009-08-07  Jim Meyering  <meyering@redhat.com>
43270
43271         selinux-at: fix typo in a comment
43272         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43273         Spotted by Paolo Bonzini.
43274
43275         selinux-at: remove redundant m4 code, add documentation
43276         * modules/selinux-at (configure.ac): Remove redundant code.
43277         LIB_SELINUX is already set via the dependent module, selinux-h.
43278         (Include): Add quotes around selinux-at.h.
43279         * lib/selinux-at.h: Add documentation.
43280         Reported by Bruno Haible in
43281         http://marc.info/?l=gnulib-bug&m=124958988300749
43282
43283 2009-08-07  Bruno Haible  <bruno@clisp.org>
43284
43285         Avoid link error on MacOS X 10.3 and 10.4.
43286         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43287         on non-ELF systems.
43288         * lib/argp-pv.c (argp_program_version): Likewise.
43289         Reported by Simon Josefsson.
43290
43291 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43292
43293         * tests/test-version-etc.sh: Use $EXEEXT.
43294
43295 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43296
43297         update-copyright: update documentation to point to maint.mk
43298         * build-aux/update-copyright: Here.
43299
43300 2009-08-06  Jim Meyering  <meyering@redhat.com>
43301
43302         maint.mk: support update-copyright-local
43303         * top/maint.mk (update-copyright-local): Define place-holder.
43304         (update-copyright): Depend on $(update-copyright-local).
43305
43306 2009-08-06  Jim Meyering  <meyering@redhat.com>
43307
43308         selinux-at: new module
43309         Initially written for coreutils, this module will soon be
43310         used by findutils, too.
43311         * MODULES.html.sh [Misc]: Add selinux-at.
43312         * lib/selinux-at.h: New file, from coreutils.
43313         * lib/selinux-at.c: Likewise.
43314         * modules/selinux-at: Likewise.
43315         (License): Change from LGPL to GPL, since it depends
43316         on the GPL'd openat module.
43317
43318         doc: update README
43319         * README: Remove references to cogito.
43320         Remove cvs-repo-updating instructions from 2007.
43321         Don't imply that CVS is better if you have limited disk space.
43322
43323 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43324
43325         update-copyright: support C-style comments
43326         * build-aux/update-copyright: Implement and document.
43327         * tests/test-update-copyright.sh: Test.
43328
43329 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43330
43331         update-copyright: support omitted "(C)"
43332         * build-aux/update-copyright: Implement and document.  Also,
43333         allow variable whitespace before "(C)".
43334         * tests/test-update-copyright.sh: Test.
43335
43336 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43337
43338         update-copyright: don't trip on non-FSF copyright statements
43339         * build-aux/update-copyright: Fix so that the first correctly
43340         formatted FSF copyright statement is recognized no matter what
43341         appears before it.  Update documentation.
43342         * tests/test-update-copyright.sh: Test that.
43343
43344 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43345
43346         update-copyright: clean up code a little
43347         * build-aux/update-copyright: Append "_re" to the name of any
43348         variable holding a regular expression.
43349         Replace "old" and "new" with "stmt" in variable names.
43350         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43351         handled correctly.
43352         Format code more consistently.
43353
43354 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43355
43356         update-copyright-tests: improve portability
43357         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43358         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43359
43360 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43361
43362         update-copyright: support @copyright{} and &copy;
43363         * build-aux/update-copyright: Implement and document.
43364         * tests/test-update-copyright.sh: Test.
43365
43366 2009-08-04  Jim Meyering  <meyering@redhat.com>
43367
43368         update-copyright-tests: correctly test EOL=\r\n handling
43369         * tests/test-update-copyright.sh: Put \r at the end of some lines
43370         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43371
43372         maint.mk: make update-copyright exclusion list more configurable
43373         * top/maint.mk (update-copyright): Default to excluding COPYING,
43374         but allow an override, in case someone does want to update that file.
43375
43376         maint.mk: don't update copyright date in COPYING
43377         * top/maint.mk (update-copyright): Exclude COPYING.
43378
43379         maint.mk: add a copyright-updating rule
43380         * top/maint.mk (update-copyright): New rule.
43381         Derived from coreutils/Makefile.am.
43382
43383         update-copyright: rename some variables
43384         * build-aux/update-copyright: Rename a few variables for clarity.
43385         Tweak syntax.  List Joel E. Denny as coauthor.
43386
43387 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43388
43389         update-copyright: fix bug for 2-digit last year and add tests
43390         * build-aux/update-copyright: Fix bug.
43391         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43392         specified.
43393         * modules/update-copyright-tests: New
43394         * tests/test-update-copyright.sh: New.
43395
43396 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43397
43398         update-copyright: handle leading tabs in line prefix
43399         * build-aux/update-copyright: Count leading tabs as 8 spaces
43400         when computing margin.  This helps with the formatting of
43401         ChangeLogs, for example.
43402         Fix documentation a little.
43403
43404 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43405
43406         update-copyright: support EOL=\r\n
43407         * build-aux/update-copyright: Implement that.
43408
43409 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43410
43411         update-copyright: automatically format copyright statements
43412         * build-aux/update-copyright: Implement that.
43413         Also, be a little more predictable and safer by always failing
43414         when the full copyright format is not perfectly recognized as an
43415         unbroken whole.  Discussed at
43416         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43417         Rewrite documentation.
43418
43419 2009-08-03  Bruno Haible  <bruno@clisp.org>
43420
43421         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43422
43423 2009-08-02  Bruno Haible  <bruno@clisp.org>
43424
43425         Tests for module 'uname'.
43426         * modules/uname-tests: New file.
43427         * tests/test-uname.c: New file.
43428
43429         New module 'uname'.
43430         * lib/uname.c: New file.
43431         * m4/uname.m4: New file.
43432         * modules/uname: New file.
43433         * doc/posix-functions/uname.texi: Mention the new module.
43434
43435 2009-08-02  Bruno Haible  <bruno@clisp.org>
43436
43437         Tests for module 'sys_utsname'.
43438         * modules/sys_utsname-tests: New file.
43439         * tests/test-sys_utsname.c: New file.
43440
43441         New module 'sys_utsname'.
43442         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43443         * m4/sys_utsname_h.m4: New file.
43444         * modules/sys_utsname: New file.
43445         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43446
43447 2009-08-02  Bruno Haible  <bruno@clisp.org>
43448
43449         Implicitly initialize the sockets library.
43450         * lib/gethostname.c: Include sockets.h.
43451         (rpl_gethostname): Invoke gl_sockets_startup.
43452         * lib/socket.c: Include sockets.h.
43453         (rpl_socket): Invoke gl_sockets_startup.
43454         * modules/gethostname (Depends-on): Add sockets.
43455         * modules/socket (Depends-on): Likewise.
43456         * tests/test-poll.c: Don't include sockets.h.
43457         (main): Don't invoke gl_sockets_startup.
43458         * tests/test-select.c: Don't include sockets.h.
43459         (main): Don't invoke gl_sockets_startup.
43460
43461 2009-08-02  Bruno Haible  <bruno@clisp.org>
43462
43463         Allow multiple calls to gl_sockets_startup.
43464         * lib/sockets.c (initialized_sockets_version): New variable.
43465         (gl_sockets_startup): Do nothing if already called for this or a higher
43466         version.
43467         (gl_sockets_cleanup): Reset initialized_sockets_version.
43468
43469 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43470
43471         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43472         different project/version.
43473
43474 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43475             Bruno Haible  <bruno@clisp.org>
43476
43477         Tests for module 'pipe-filter-gi'.
43478         * modules/pipe-filter-gi-tests: New file.
43479         * tests/test-pipe-filter-gi1.sh: New file.
43480         * tests/test-pipe-filter-gi1.c: New file.
43481         * tests/test-pipe-filter-gi2.sh: New file.
43482         * tests/test-pipe-filter-gi2-main.c: New file.
43483         * tests/test-pipe-filter-gi2-child.c: New file.
43484
43485         New module 'pipe-filter-gi'.
43486         * lib/pipe-filter-gi.c: New file.
43487         * modules/pipe-filter-gi: New file.
43488
43489 2009-08-02  Bruno Haible  <bruno@clisp.org>
43490             Paolo Bonzini  <bonzini@gnu.org>
43491
43492         Tests for module 'pipe-filter-ii'.
43493         * modules/pipe-filter-ii-tests: New file.
43494         * tests/test-pipe-filter-ii1.sh: New file.
43495         * tests/test-pipe-filter-ii1.c: New file.
43496         * tests/test-pipe-filter-ii2.sh: New file.
43497         * tests/test-pipe-filter-ii2-main.c: New file.
43498         * tests/test-pipe-filter-ii2-child.c: New file.
43499
43500         New module 'pipe-filter-ii'.
43501         * lib/pipe-filter.h: New file.
43502         * lib/pipe-filter-ii.c: New file.
43503         * lib/pipe-filter-aux.h: New file.
43504         * modules/pipe-filter-ii: New file.
43505
43506 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43507
43508         * lib/gc-libgcrypt.c: Change copyright to FSF.
43509         * lib/gc-gnulib.c: Likewise.
43510
43511 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43512
43513         * lib/gethostname.c: Include limits.h.
43514
43515 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43516             Bruno Haible  <bruno@clisp.org>
43517
43518         Ensure HOST_NAME_MAX as part of the gethostname module.
43519         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43520         define also HOST_NAME_MAX.
43521         * tests/test-gethostname.c: Include <limits.h>.
43522         (main): Check also HOST_NAME_MAX.
43523         * doc/posix-headers/limits.texi: Document the mingw problem.
43524
43525 2009-08-02  Bruno Haible  <bruno@clisp.org>
43526
43527         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43528         Add comments.
43529
43530 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43531
43532         * lib/gethostname.c: Add Windows wrapper.
43533         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43534         * modules/gethostname: Depend on sys_socket & errno, for also
43535         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43536         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43537
43538 2009-07-31  Jim Meyering  <meyering@redhat.com>
43539
43540         getloadavg: fix symbol name in comment
43541         * lib/getloadavg.c: Correct a typo I introduced when adding
43542         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43543         Matt Kraai spotted the problem.
43544
43545 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43546
43547         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43548         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43549         code also if ! defined N_NAME_POINTER.
43550         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43551         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43552         but the n_name member is a 12-byte array.
43553
43554 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43555
43556         update-copyright: generalize comment handling
43557         * build-aux/update-copyright: Handle copyright statements
43558         within more comment styles.
43559         Document usage.
43560         Report any file with an external copyright holder or parse failure.
43561
43562 2009-07-29  Jim Meyering  <meyering@redhat.com>
43563
43564         mktime: correct setting of REPLACE_MKTIME
43565         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43566
43567         update-copyright: new module
43568         * modules/update-copyright: New file.
43569         * build-aux/update-copyright: New file.
43570         * MODULES.html.sh (maint+release support): Add update-copyright.
43571
43572 2009-07-27  Bruno Haible  <bruno@clisp.org>
43573
43574         Fix compilation error when <ctime> is used and mktime is replaced.
43575         * lib/time.in.h (mktime): New declaration.
43576         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43577         REPLACE_MKTIME instead of defining mktime in config.h.
43578         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43579         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43580         Reported by Ross McFarland <rwmcfa1@neces.com>.
43581
43582 2009-07-27  Bruno Haible  <bruno@clisp.org>
43583
43584         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43585         Reported by Matt Kraai <mkraai@beckman.com>.
43586
43587 2009-07-25  Jim Meyering  <meyering@redhat.com>
43588
43589         maint.mk: avoid warnings about missing files
43590         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43591         diagnostic when .prev-version does not exist.
43592         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43593         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43594         nonexistent cfg.mk.
43595         Suggestions from Simon Josefsson.
43596
43597 2009-07-25  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43600         defined as macros. Needed on QNX 6.4.1.
43601         Reported by Matt Kraai <mkraai@beckman.com>.
43602
43603 2009-07-23  Jim Meyering  <meyering@redhat.com>
43604
43605         maint.mk: invoke "make dist" with a working value of XZ_OPT
43606         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43607
43608 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43609
43610         Make fseeko.c compile on QNX.
43611         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43612
43613 2009-07-22  Peter Simons  <simons@cryp.to>
43614
43615         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43616         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43617         * lib/md4.h: Likewise.
43618         * lib/md5.h: Likewise.
43619         * lib/sha1.h: Likewise.
43620         * lib/sha256.h: Likewise.
43621         * lib/sha512.h: Likewise.
43622
43623         tests-sha1: don't assign literal string to 'char *' variable
43624         * tests/test-sha1.c (main): Declare locals with "const" to match
43625         attributes of the right hand side.
43626
43627 2009-07-21  Eric Blake  <ebb9@byu.net>
43628
43629         dup2: fix more mingw problems
43630         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43631         fd to itself.
43632         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43633         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43634         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43635         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43636         care of mingw bugs.
43637
43638 2009-07-21  Jim Meyering  <meyering@redhat.com>
43639
43640         vc-list-files: avoid failure when /bin/sh is dash
43641         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43642         On some Debian based systems, /bin/sh is a symlink to dash, and running
43643         this command would omit the "/" following each 'tests' prefix:
43644           dash -x build-aux/vc-list-files -C . tests
43645         That is because bash and dash work differently:
43646           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43647           bash ok
43648           dash odd
43649
43650 2009-07-21  Eric Blake  <ebb9@byu.net>
43651
43652         dup2-tests: test previous patch
43653         * modules/dup2-tests: New file.
43654         * tests/test-dup2.c: Likewise.
43655         * tests/test-open.c (main): Avoid unspecified behavior.
43656         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43657         test.
43658
43659         dup2: work around mingw and cygwin 1.5 bug
43660         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43662         * modules/unistd (Makefile.am): Substitute it.
43663         * lib/unistd.in.h (dup2): Declare the replacement.
43664         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43665         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43666         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43667         * modules/execute (Depends-on): Add dup2.
43668         * modules/fseterr (Depends-on): Likewise.
43669         * modules/pipe (Depends-on): Likewise.
43670         * modules/posix_spawn-internal (Depends-on): Likewise.
43671
43672 2009-07-21  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/.gitattributes: New file.
43675
43676 2009-07-20  Bruno Haible  <bruno@clisp.org>
43677
43678         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43679         (main): Use it.
43680
43681 2009-07-20  Eric Blake  <ebb9@byu.net>
43682
43683         test-pipe: make a bit more robust.
43684         * tests/test-pipe.c (myerr): Allow error messages regardless of
43685         what we do to stderr.
43686         (test_pipe): Rearrange to avoid deadlock.
43687         (child_main): Try a larger read, to ensure we avoided deadlock.
43688         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43689         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43690         if misused.
43691
43692 2009-07-19  Jim Meyering  <meyering@redhat.com>
43693
43694         fts: avoid false-positive cycle-detection
43695         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43696         for each new command line argument.
43697
43698 2009-07-19  Bruno Haible  <bruno@clisp.org>
43699
43700         Fix build error on mingw with the modules sys_select and unistd.
43701         * modules/acl-tests (Depends-on): Add close.
43702         * modules/binary-io-tests (Depends-on): Likewise.
43703         * modules/closein-tests (Depends-on): Likewise.
43704         * modules/flock-tests (Depends-on): Likewise.
43705         * modules/fsync-tests (Depends-on): Likewise.
43706         * modules/lseek-tests (Depends-on): Likewise.
43707         * modules/pipe-tests (Depends-on): Likewise.
43708         * modules/posix_spawn-tests (Depends-on): Likewise.
43709         * modules/posix_spawnp-tests (Depends-on): Likewise.
43710         * modules/stat-time-tests (Depends-on): Likewise.
43711         * modules/yesno-tests (Depends-on): Likewise.
43712
43713 2009-07-19  Bruno Haible  <bruno@clisp.org>
43714
43715         Unify conditionals.
43716         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43717         macros, not at the compiler macros.
43718         * lib/pipe.c: Likewise.
43719         * lib/execute.c: Likewise.
43720         * lib/spawni.c: Likewise.
43721
43722 2009-07-19  Bruno Haible  <bruno@clisp.org>
43723
43724         Fix handling of closed stdin/stdout/stderr on mingw.
43725         * lib/w32spawn.h: Include unistd.h.
43726         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43727         file descriptor with O_NOINHERIT flag.
43728         (fd_safer_noinherit): New function, based on fd-safer.c.
43729         (dup_safer_noinherit): New function, based on dup-safer.c.
43730         (undup_safer_noinherit): New function.
43731         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43732         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43733         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43734         instead of fd_safer.
43735         * tests/test-pipe.c: Include <windows.h>.
43736         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43737         result.
43738
43739         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43740         from main.
43741         (test_pipe): Pass an extra argument for disambiguation.
43742         (main): Invoke parent_main or child_main.
43743
43744         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43745         consistently.
43746
43747 2009-07-18  Eric Blake  <ebb9@byu.net>
43748
43749         test-pipe: fix mingw build
43750         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43751
43752 2009-07-18  Bruno Haible  <bruno@clisp.org>
43753
43754         * modules/pipe-tests (Makefile.am): Fix typo.
43755
43756 2009-07-18  Eric Blake  <ebb9@byu.net>
43757
43758         error: fix mingw build
43759         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43760         Reported by Bruno Haible.
43761
43762         error: avoid undefined use of stdout
43763         * lib/error.c (error, error_at_line): Check that fd 1 is open
43764         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43765         is handling faults and the close_stdout module wants to report the
43766         detection of closed stdout as an error.
43767
43768 2009-07-17  Eric Blake  <ebb9@byu.net>
43769
43770         pipe: be robust in face of closed fds
43771         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43772         should cause child to misbehave.
43773         * modules/pipe-tests: New module.
43774         * tests/test-pipe.c: New file.
43775         * tests/test-pipe.sh: New file.
43776         Reported by Akim Demaille.
43777
43778 2009-07-14  Bruno Haible  <bruno@clisp.org>
43779
43780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43781         Reported by anonymous kc.
43782
43783 2009-07-07  Jim Meyering  <meyering@redhat.com>
43784
43785         maint.mk: don't look for translatable strings in *.m4 or *.mk
43786         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43787         when searching for translatable strings.
43788
43789 2009-07-05  Jim Meyering  <meyering@redhat.com>
43790
43791         remove superfluous parentheses in STREQ definition
43792         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43793         * lib/getugroups.c (STREQ): Likewise.
43794         * lib/fnmatch.c (STREQ): Likewise.
43795         Spotted by Bruno Haible.
43796
43797 2009-07-04  Jim Meyering  <meyering@redhat.com>
43798
43799         argv-iter: new module
43800         * MODULES.html.sh: Add argv-iter.
43801         * lib/argv-iter.c, lib/argv-iter.h: New files.
43802         * modules/argv-iter: New file.
43803         * modules/argv-iter-tests: New file.
43804         * tests/test-argv-iter.c: Test it.
43805
43806 2009-07-04  Bruno Haible  <bruno@clisp.org>
43807
43808         Fix assertion.
43809         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43810         contains more exact copies of a given entry than file2, leave the extra
43811         copies unpaired rather than aborting.
43812         Reported by Eric Blake.
43813
43814 2009-07-02  Bruno Haible  <bruno@clisp.org>
43815
43816         Speedup git-merge-changelog for git cherry-pick.
43817         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43818         (entries_mapping_get): New function, extracted from compute_mapping.
43819         (entries_mapping_reverse_get): New function.
43820         (compute_mapping): Add a 'full' argument. Return the result in a
43821         'struct entries_mapping'.
43822         (main): Update. Access the mappings through entries_mapping_get.
43823         Reported by Eric Blake.
43824
43825 2009-07-02  Bruno Haible  <bruno@clisp.org>
43826
43827         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43828         best_i.
43829
43830 2009-07-02  Bruno Haible  <bruno@clisp.org>
43831
43832         Speed up approximate search for matching ChangeLog entries.
43833         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43834         argument. Call fstrcmp_bounded instead of fstrcmp.
43835         (compute_mapping, try_split_merged_entry, main): Update callers.
43836
43837 2009-07-02  Bruno Haible  <bruno@clisp.org>
43838
43839         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43840
43841 2009-06-30  Bruno Haible  <bruno@clisp.org>
43842
43843         Reduce the number of uc_is_cased calls.
43844         * lib/unicase.h (casing_suffix_context_t): Add
43845         'first_char_except_ignorable' field.
43846         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43847         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43848         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43849         Update initializer.
43850         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43851         case-ignorable characters.
43852         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43853         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43854         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43855         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43856         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43857
43858 2009-06-30  Bruno Haible  <bruno@clisp.org>
43859
43860         Tests for module 'unicase/ignorable'.
43861         * modules/unicase/ignorable-tests: New file.
43862         * tests/unicase/test-ignorable.c: New file, generated by
43863         gen-uni-tables.
43864
43865         Tests for module 'unicase/cased'.
43866         * modules/unicase/cased-tests: New file.
43867         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43868         * tests/unicase/test-predicate-part1.h: New file, derived from
43869         tests/unictype/test-predicate-part1.h.
43870         * tests/unicase/test-predicate-part2.h: New file, same as
43871         tests/unictype/test-predicate-part2.h.
43872
43873         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43874         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43875         (output_casing_properties): New function.
43876         (main): Call it.
43877         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43878         * lib/unicase/cased.c: Include unictype/bitmap.h.
43879         (uc_is_cased): Define through a bitmap lookup.
43880         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43881         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43882         (uc_is_case_ignorable): Define through a bitmap lookup.
43883         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43884         lib/unictype/bitmap.h.
43885         (Depends-on): Add inline. Clean up.
43886         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43887         lib/unictype/bitmap.h.
43888         (Depends-on): Add inline. Clean up.
43889         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43890         recognition.
43891         * tests/unicase/test-u16-tolower.c (main): Likewise.
43892         * tests/unicase/test-u32-tolower.c (main): Likewise.
43893
43894 2009-06-30  Bruno Haible  <bruno@clisp.org>
43895
43896         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43897         * lib/unicase/u16-casemap.c: Likewise.
43898         * lib/unicase/u32-casemap.c: Likewise.
43899
43900 2009-06-29  Bruno Haible  <bruno@clisp.org>
43901
43902         Define u32_casefold as a wrapper around u32_ct_casefold.
43903         * lib/unicase/u32-casefold.c: Update.
43904         * modules/unicase/u32-casefold (Depends-on): Add
43905         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43906         unicase/empty-suffix-context. Clean up.
43907
43908         Define u16_casefold as a wrapper around u16_ct_casefold.
43909         * lib/unicase/u16-casefold.c: Update.
43910         * modules/unicase/u16-casefold (Depends-on): Add
43911         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43912         unicase/empty-suffix-context. Clean up.
43913
43914         Define u8_casefold as a wrapper around u8_ct_casefold.
43915         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43916         * lib/unicase/u8-casefold.c: Update.
43917         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43918         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43919
43920         Define u32_totitle as a wrapper around u32_ct_totitle.
43921         * lib/unicase/u32-totitle.c: Update.
43922         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43923         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43924
43925         Define u16_totitle as a wrapper around u16_ct_totitle.
43926         * lib/unicase/u16-totitle.c: Update.
43927         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43928         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43929
43930         Define u8_totitle as a wrapper around u8_ct_totitle.
43931         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43932         functions.
43933         (FUNC): Delegate to U_CT_TOTITLE.
43934         * lib/unicase/u8-totitle.c: Update.
43935         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43936         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43937
43938         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43939         invocation.
43940         * modules/unicase/u32-tolower (Depends-on): Add
43941         unicase/empty-prefix-context, unicase/empty-suffix-context.
43942
43943         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43944         invocation.
43945         * modules/unicase/u16-tolower (Depends-on): Add
43946         unicase/empty-prefix-context, unicase/empty-suffix-context.
43947
43948         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43949         * modules/unicase/u8-tolower (Depends-on): Add
43950         unicase/empty-prefix-context, unicase/empty-suffix-context.
43951
43952         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43953         invocation.
43954         * modules/unicase/u32-toupper (Depends-on): Add
43955         unicase/empty-prefix-context, unicase/empty-suffix-context.
43956
43957         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43958         invocation.
43959         * modules/unicase/u16-toupper (Depends-on): Add
43960         unicase/empty-prefix-context, unicase/empty-suffix-context.
43961
43962         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43963         * modules/unicase/u8-toupper (Depends-on): Add
43964         unicase/empty-prefix-context, unicase/empty-suffix-context.
43965
43966         New module 'unicase/u32-ct-casefold'.
43967         * lib/unicase/u32-ct-casefold.c: New file.
43968         * modules/unicase/u32-ct-casefold: New file.
43969
43970         New module 'unicase/u16-ct-casefold'.
43971         * lib/unicase/u16-ct-casefold.c: New file.
43972         * modules/unicase/u16-ct-casefold: New file.
43973
43974         New module 'unicase/u8-ct-casefold'.
43975         * lib/unicase/u8-ct-casefold.c: New file.
43976         * lib/unicase/u-ct-casefold.h: New file, derived from
43977         lib/unicase/u-casefold.h.
43978         * modules/unicase/u8-ct-casefold: New file.
43979
43980         New module 'unicase/u32-ct-totitle'.
43981         * lib/unicase/u32-ct-totitle.c: New file.
43982         * modules/unicase/u32-ct-totitle: New file.
43983
43984         New module 'unicase/u16-ct-totitle'.
43985         * lib/unicase/u16-ct-totitle.c: New file.
43986         * modules/unicase/u16-ct-totitle: New file.
43987
43988         New module 'unicase/u8-ct-totitle'.
43989         * lib/unicase/u8-ct-totitle.c: New file.
43990         * lib/unicase/u-ct-totitle.h: New file, derived from
43991         lib/unicase/u-totitle.h.
43992         * modules/unicase/u8-ct-totitle: New file.
43993
43994         New module 'unicase/u32-ct-tolower'.
43995         * lib/unicase/u32-ct-tolower.c: New file.
43996         * modules/unicase/u32-ct-tolower: New file.
43997
43998         New module 'unicase/u16-ct-tolower'.
43999         * lib/unicase/u16-ct-tolower.c: New file.
44000         * modules/unicase/u16-ct-tolower: New file.
44001
44002         New module 'unicase/u8-ct-tolower'.
44003         * lib/unicase/u8-ct-tolower.c: New file.
44004         * modules/unicase/u8-ct-tolower: New file.
44005
44006         New module 'unicase/u32-ct-toupper'.
44007         * lib/unicase/u32-ct-toupper.c: New file.
44008         * modules/unicase/u32-ct-toupper: New file.
44009
44010         New module 'unicase/u16-ct-toupper'.
44011         * lib/unicase/u16-ct-toupper.c: New file.
44012         * modules/unicase/u16-ct-toupper: New file.
44013
44014         New module 'unicase/u8-ct-toupper'.
44015         * lib/unicase/u8-ct-toupper.c: New file.
44016         * modules/unicase/u8-ct-toupper: New file.
44017
44018         Add context arguments to u*_casemap functions.
44019         * lib/unicase/unicasemap.h: Include unicase.h.
44020         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44021         suffix_context arguments.
44022         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44023         functions.
44024         (FUNC): Add prefix_context and suffix_context arguments. Use
44025         uc_is_cased and uc_is_case_ignorable.
44026         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44027         * lib/unicase/u16-casemap.c: Likewise.
44028         * lib/unicase/u32-casemap.c: Likewise.
44029         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44030         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44031         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44032         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44033         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44034         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44035
44036         New module 'unicase/u32-suffix-context'.
44037         * lib/unicase/u32-suffix-context.c: New file.
44038         * modules/unicase/u32-suffix-context: New file.
44039
44040         New module 'unicase/u16-suffix-context'.
44041         * lib/unicase/u16-suffix-context.c: New file.
44042         * modules/unicase/u16-suffix-context: New file.
44043
44044         New module 'unicase/u8-suffix-context'.
44045         * lib/unicase/u8-suffix-context.c: New file.
44046         * lib/unicase/u-suffix-context.h: New file.
44047         * modules/unicase/u8-suffix-context: New file.
44048
44049         New module 'unicase/empty-suffix-context'.
44050         * lib/unicase/empty-suffix-context.c: New file.
44051         * modules/unicase/empty-suffix-context: New file.
44052
44053         New module 'unicase/u32-prefix-context'.
44054         * lib/unicase/u32-prefix-context.c: New file.
44055         * modules/unicase/u32-prefix-context: New file.
44056
44057         New module 'unicase/u16-prefix-context'.
44058         * lib/unicase/u16-prefix-context.c: New file.
44059         * modules/unicase/u16-prefix-context: New file.
44060
44061         New module 'unicase/u8-prefix-context'.
44062         * lib/unicase/u8-prefix-context.c: New file.
44063         * lib/unicase/u-prefix-context.h: New file.
44064         * lib/unicase/context.h: New file.
44065         * modules/unicase/u8-prefix-context: New file.
44066
44067         New module 'unicase/empty-prefix-context'.
44068         * lib/unicase/empty-prefix-context.c: New file.
44069         * modules/unicase/empty-prefix-context: New file.
44070
44071         New module 'unicase/ignorable'.
44072         * lib/unicase/ignorable.c: New file.
44073         * modules/unicase/ignorable: New file.
44074
44075         New module 'unicase/cased'.
44076         * lib/unicase/caseprop.h: New file.
44077         * lib/unicase/cased.c: New file.
44078         * modules/unicase/cased: New file.
44079
44080         New functions for case mapping of substrings.
44081         * lib/unicase.h (casing_prefix_context_t): New type.
44082         (unicase_empty_prefix_context): New variable.
44083         (u8_casing_prefix_context, u16_casing_prefix_context,
44084         u32_casing_prefix_context, u8_casing_prefixes_context,
44085         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44086         declarations.
44087         (casing_suffix_context_t): New type.
44088         (unicase_empty_suffix_context): New variable.
44089         (u8_casing_suffix_context, u16_casing_suffix_context,
44090         u32_casing_suffix_context, u8_casing_suffixes_context,
44091         u16_casing_suffixes_context, u32_casing_suffixes_context,
44092         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44093         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44094         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44095         declarations.
44096
44097 2009-06-28  Jim Meyering  <meyering@redhat.com>
44098
44099         boostrap: indent only with spaces
44100         * build-aux/bootstrap: Indent only with spaces, never TABs.
44101
44102         bootstrap: split long lines
44103         * build-aux/bootstrap: Keep line length < 80.
44104
44105         bootstrap: sync from coreutils
44106         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44107         just as autoreconf does.  Verify a list of prerequisite
44108         package-name,version-number pairs if defined in bootstrap.conf.
44109         Refer to README-prereq, if prerequisites are not satisfied.
44110
44111 2009-06-27  Eric Blake  <ebb9@byu.net>
44112
44113         tests: add test for bogus NULL definition
44114         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44115         * tests/test-stdlib.c: Likewise.
44116         * tests/test-string.c: Likewise.
44117         * tests/test-locale.c: Likewise.
44118         * tests/test-unistd.c: Likewise.
44119         * modules/stdio-tests (Depends-on): Add verify.
44120         * modules/stdlib-tests (Depends-on): Likewise.
44121         * modules/string-tests (Depends-on): Likewise.
44122         * modules/locale-tests (Depends-on): Likewise.
44123         * modules/unistd-tests (Depends-on): Likewise.
44124
44125 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44126
44127         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44128         self-explaining comment.
44129         * m4/selinux-selinux-h: Update serial.
44130         (gl_LIBSELINUX): New macro, adding a warning for missing development
44131         packages to code extracted from...
44132         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44133         Add warning for missing development packages here, too.
44134
44135 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44136
44137         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44138
44139 2009-06-25  Eric Blake  <ebb9@byu.net>
44140
44141         version-etc: fix regression
44142         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44143         gcc.
44144         (version_etc): Use it, to catch bugs with trailing NULL.
44145         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44146         (version_etc_va): Fix logic bug.
44147         * modules/version-etc-tests: Add test.
44148         * tests/test-version-etc.c: New file.
44149         * tests/test-version-etc.sh: Likewise.
44150
44151 2009-06-25  Sam Steingold  <sds@gnu.org>
44152
44153         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44154         mbtowc declaration.
44155
44156 2009-06-25  Eric Blake  <ebb9@byu.net>
44157
44158         fpurge: migrate into <stdio.h>
44159         * lib/fpurge.h: Delete...
44160         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44161         * lib/fpurge.c (fpurge): Change declaring header.
44162         * modules/fpurge (Files): Drop deleted file.
44163         (Depends-on): Add stdio.
44164         (configure.ac): Set witness.
44165         * modules/stdio (Makefile.am): Support fpurge macros.
44166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44167         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44168         * lib/fflush.c: Update client.
44169         * tests/test-fpurge.c: Likewise.
44170         * NEWS: Mention the change.
44171
44172 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44173
44174         * lib/argp-version-etc.c (program_authors): Add const
44175         qualifier.
44176         * lib/version-etc.c: Fix typos in the comments.
44177         * modules/argp-version-etc: Depends on version-etc.
44178
44179 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44180
44181         argp-version-etc: new module.
44182
44183         * lib/argp-version-etc.c: New file.
44184         * lib/argp-version-etc.h: New file.
44185         * modules/argp-version-etc: New file.
44186         * modules/argp-version-etc-tests: New file.
44187         * tests/test-argp-version-etc.c: New test.
44188         * tests/test-argp-version-etc-1.sh: New test.
44189
44190 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44191
44192         Provide additional interfaces and documentation for version-etc
44193         module.
44194
44195         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44196         interfaces.
44197         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44198         prototypes.
44199
44200 2009-06-24  Bruno Haible  <bruno@clisp.org>
44201
44202         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44203         HAVE_LIB${NAME} macro.
44204         Reported by Sam Steingold <sds@gnu.org>.
44205
44206 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44207
44208         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44209         needed.
44210
44211 2009-06-21  Bruno Haible  <bruno@clisp.org>
44212
44213         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44214         work.
44215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44216         together with LIB${NAME}, LTLIB${NAME}.
44217         Reported by Sam Steingold <sds@gnu.org>.
44218
44219 2009-06-20  Jim Meyering  <meyering@redhat.com>
44220
44221         tests: make sc_require_test_exit_idiom more generic
44222         * top/maint.mk (Exit_witness_file): New overridable variable.
44223         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44224         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44225
44226 2009-06-19  Jim Meyering  <meyering@redhat.com>
44227
44228         hash: reverse order of src/dst parameters in an internal interface
44229         * lib/hash.c (transfer_entries): Reverse order of parameters to
44230         put DST before SRC.  Adjust callers.
44231
44232         tests: test-hash: avoid wholesale duplication
44233         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44234         Instead, use a loop and add a single conditional.
44235
44236         tests: test-hash: allow seed selection via a command line argument
44237         * tests/test-hash.c (get_seed): New function.
44238         (main): Use it.
44239
44240 2009-06-19  Eric Blake  <ebb9@byu.net>
44241
44242         hash: avoid memory leak on allocation failure
44243         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44244         failure.  Factor repeated algorithm...
44245         (transfer_entries): ...into new helper routine.
44246         (hash_delete): React to hash_rehash return value.
44247
44248         hash: reduce memory pressure in hash_rehash no-op case
44249         * lib/hash.c (next_prime): Avoid overflow.
44250         (hash_initialize): Factor bucket size computation...
44251         (compute_bucket_size): ...into new helper function.
44252         (hash_rehash): Use new function and open coding to reduce memory
44253         pressure, and avoid a memory leak in USE_OBSTACK code.
44254         Reported by Jim Meyering.
44255
44256 2009-06-18  Eric Blake  <ebb9@byu.net>
44257
44258         hash: make rotation more obvious
44259         * modules/hash (Depends-on): Add bitrotate and stdint.
44260         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44261         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44262         (SIZE_MAX): Rely on headers for definition.
44263         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44264         (raw_hasher): Use rotr_sz.
44265         Suggested by Jim Meyering.
44266
44267         hash: fix memory leak in last patch
44268         * lib/hash.c (hash_rehash): Avoid memory leak.
44269
44270         hash: avoid no-op rehashing
44271         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44272
44273         hash: provide default callback functions
44274         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44275         (hash_initialize): Use them as defaults.
44276         * tests/test-hash.c (main): Test this.
44277
44278         hash: minor optimization
44279         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44280         when possible.
44281         (hash_initialize): Document this promise.
44282         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44283         * tests/test-hash.c (hash_compare_strings): Test this.
44284
44285 2009-06-18  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44288         going to be replaced anyway.
44289
44290 2009-06-18  Bruno Haible  <bruno@clisp.org>
44291
44292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44293         in one place.
44294         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44295         be replaced anyway.
44296
44297 2009-06-18  Eric Blake  <ebb9@byu.net>
44298
44299         hash: check for resize before insertion
44300         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44301         threshold before insertion, so that a pathological hash_rehash
44302         that fills every bucket can still trigger another rehash.
44303
44304 2009-06-18  Jim Meyering  <meyering@redhat.com>
44305
44306         hash-tests: add a loop around the small tests
44307         * tests/test-hash.c (main): Repeat small tests with selected
44308         small initial table sizes.
44309
44310 2009-06-17  Eric Blake  <ebb9@byu.net>
44311
44312         hash: minor cleanups
44313         * lib/hash.h (hash_entry): Make opaque, by moving...
44314         * lib/hash.c (hash_entry): ...here.
44315         (hash_insert): Clarify restrictions on what can be inserted.
44316         (hash_get_next): Clarify when it is safe to remove an element
44317         during traversal.
44318         (check_tuning): Skip verification when tuning is known safe.
44319         (hash_initialize): Clarify restrictions on tuning.
44320
44321 2009-06-17  Jim Meyering  <jim@meyering.net>
44322         and Eric Blake  <ebb9@byu.net>
44323
44324         hash-tests: new module
44325         * modules/hash-tests: New file.
44326         * tests/test-hash.c: New file.
44327
44328 2009-06-17  Eric Blake  <ebb9@byu.net>
44329
44330         strstr-simple: document new module
44331         * MODULES.html.sh: Document new module.
44332
44333         strstr, strcasestr: replace on platforms with broken memchr
44334         * modules/strstr: Split into...
44335         * modules/strstr-simple: ...new module that does not care about
44336         performance, but does care about glibc bug.
44337         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44338         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44339         if platform memchr is broken, per Debian bug 521737.
44340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44341         memchr.
44342         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44343         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44344         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44345         * modules/mountlist (Depends-on): Add strstr-simple.
44346         * modules/gen-uni-tables (Depends-on): Likewise.
44347         * modules/argz (Depends-on): Add strstr.
44348
44349 2009-06-17  Bruno Haible  <bruno@clisp.org>
44350
44351         * modules/posix_spawn-internal (Depends-on): Add errno.
44352
44353 2009-06-17  Bruno Haible  <bruno@clisp.org>
44354
44355         Define missing ESTALE on Interix 3.5.
44356         * lib/errno.in.h (ESTALE): Assign a value if missing.
44357         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44358         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44359         missing.
44360         * doc/posix-headers/errno.texi: Mention the Interix bug.
44361         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44362
44363 2009-06-15  Eric Blake  <ebb9@byu.net>
44364
44365         memchr, memchr2: add valgrind exception
44366         * lib/memchr.valgrind: New file.
44367         * lib/memchr2.valgrind: New file.
44368         * modules/memchr (Files): Distribute valgrind file.
44369         * modules/memchr2 (Files): Likewise.
44370
44371         docs: memchr is no longer obsolete
44372         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44373         * lib/string.in.h (memchr): Simplify logic.
44374
44375 2009-06-14  Jim Meyering  <meyering@redhat.com>
44376
44377         link-follow: fix the "checking..." message to not mention trailing slash
44378         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44379         never considered trailing slashes.
44380
44381 2009-06-14  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/memchr.m4: Mention also the bug on IA-64.
44384         * doc/posix-functions/memchr.texi: Likewise.
44385
44386 2009-06-12  Eric Blake  <ebb9@byu.net>
44387
44388         memchr: detect broken x86_64 and alpha implementations
44389         * modules/memchr-tests (Depends-on): Move mmap detection...
44390         * modules/memchr (Depends-on): ...here.
44391         (configure.ac): Set indicator.
44392         * lib/string.in.h (memchr): Declare replacement.
44393         * modules/string (Makefile.am): Trigger replacement.
44394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44396         bugs.
44397         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44398         * modules/getpagesize (License): Relax license.
44399
44400 2009-06-11  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/idpriv.h: Add more references.
44403
44404 2009-06-08  Bruno Haible  <bruno@clisp.org>
44405
44406         Tests for module 'idpriv-droptemp'.
44407         * modules/idpriv-droptemp-tests: New file.
44408         * tests/test-idpriv-droptemp.sh: New file.
44409         * tests/test-idpriv-droptemp.su.sh: New file.
44410         * tests/test-idpriv-droptemp.c: New file.
44411
44412         New module 'idpriv-droptemp'.
44413         * lib/idpriv-droptemp.c: New file.
44414         * modules/idpriv-droptemp: New file.
44415
44416 2009-06-08  Bruno Haible  <bruno@clisp.org>
44417
44418         Tests for module 'idpriv-drop'.
44419         * modules/idpriv-drop-tests: New file.
44420         * tests/test-idpriv-drop.sh: New file.
44421         * tests/test-idpriv-drop.su.sh: New file.
44422         * tests/test-idpriv-drop.c: New file.
44423
44424         New module 'idpriv-drop'.
44425         * lib/idpriv.h: New file.
44426         * lib-idpriv-drop.c: New file.
44427         * m4/idpriv.m4: New file.
44428         * modules/idpriv-drop: New file.
44429
44430 2009-06-08  Bruno Haible  <bruno@clisp.org>
44431
44432         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44433         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44434         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44435         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44436         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44437         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44438         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44439
44440 2009-06-08  Eric Blake  <ebb9@byu.net>
44441
44442         test-strstr: use memory fence, when possible
44443         * tests/test-strstr.c (main): Use memory fence, in order to be
44444         more likely to trigger Debian bug 521737.
44445         * modules/strstr-tests (Files): Pull in additional files.
44446
44447         memchr: no longer obsolete, for wider field testing
44448         * modules/memchr (Status, Notice): Delete, this module is no
44449         longer obsolete.
44450         * modules/vasnprintf (Depends-on): Add memchr.
44451
44452 2009-06-07  Jim Meyering  <meyering@redhat.com>
44453
44454         hash: declare some functions with the warn_unused_result attribute
44455         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44456
44457 2009-06-07  Bruno Haible  <bruno@clisp.org>
44458
44459         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44460         Reported by Eric Blake.
44461
44462 2009-06-06  Eric Blake  <ebb9@byu.net>
44463
44464         test-alignof: fix typo with long double
44465         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44466         compiler error.
44467
44468 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44469
44470         Escape non-texinfo { and }s.
44471         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44472         markup error.
44473
44474 2009-06-04  Jim Meyering  <meyering@redhat.com>
44475
44476         gitlog-to-changelog: don't infloop on an empty commit log
44477         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44478         Reported by Boris Petersen <transacid@centerim.org>.
44479
44480 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44481
44482         version-etc: extend for packagers
44483         Add three new configure options, intended for packagers:
44484           --with-packager="packager name"
44485           --with-packager-version="packager-specific version"
44486           --with-packager-bug-reports="packager bug reporting"
44487         An example with coreutils:
44488           $ ./configure \
44489             --with-packager=Gentoo \
44490             --with-packager-bug-report=http://bugs.gentoo.org/ \
44491             --with-packager-version="patchset 1.6"
44492           $ ./src/ls --version | head -n2
44493           ls (GNU coreutils) 7.1-dirty
44494           Packaged by Gentoo (patchset 1.6)
44495         Note that the bug reporting info via --help doesn't show up because
44496         coreutils uses its own custom emit_bug_reporting_address() implementation
44497         in src/system.h.  If it didn't, it'd look like:
44498           $ ./src/ls --help | tail -n4
44499           Report bugs to <bug-coreutils@gnu.org>.
44500           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44501           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44502           General help using GNU software: <http://www.gnu.org/gethelp/>.
44503         * lib/version-etc.c: Print new information, if provided.
44504         * m4/version-etc.m4: New file.
44505         * modules/version-etc (Files): Add m4/version-etc.m4.
44506         (configure.ac): Add gl_VERSION_ETC.
44507
44508 2009-05-31  Bruno Haible  <bruno@clisp.org>
44509
44510         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44511         and 'int64_t'.
44512         * modules/alignof-tests (Dependencies): Add stdint.
44513         Reported by Eric Blake.
44514
44515 2009-05-31  Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44518         restriction due to compiler bugs.
44519         Reported by Eric Blake.
44520
44521 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44522             Bruno Haible  <bruno@clisp.org>
44523
44524         Fix test-alignof failure.
44525         * lib/alignof.h (alignof_slot): New macro.
44526         (alignof_type): New macro, with the same semantics as the previous
44527         'alignof'.
44528         (alignof): Alias to alignof_slot.
44529         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44530         check that the results are usable as constant expressions.
44531
44532 2009-05-31  Bruno Haible  <bruno@clisp.org>
44533
44534         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44535         * tests/test-memchr.c (main): Check that memchr does not read past the
44536         first occurrence of the byte.
44537         * tests/test-strstr.c (main): Update comment.
44538         Suggested by Eric Blake.
44539
44540 2009-05-30  Bruno Haible  <bruno@clisp.org>
44541
44542         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44543         detail how to use dumpbin.
44544         Reported by David Byron <dbyron@dbyron.com>.
44545
44546 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44547
44548         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44549
44550 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44551
44552         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44553
44554 2009-05-28  Bruno Haible  <bruno@clisp.org>
44555
44556         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44557         build-aux/ files.
44558
44559 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44560
44561         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44562
44563 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44564
44565         * gnulib-tool (sed_transform_main_lib_file)
44566         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44567         regexps.
44568
44569 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44570
44571         * tests/test-strstr.c: Add another self-test.
44572         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44573         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44574
44575 2009-05-23  Bruno Haible  <bruno@clisp.org>
44576
44577         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44578         change.
44579
44580 2009-05-21  Bruno Haible  <bruno@clisp.org>
44581
44582         Simplify use of mode_t varargs.
44583         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44584         uses 'mode_t' or 'int'.
44585         * lib/openat.c (openat): Likewise.
44586         * lib/open-safer.c (open_safer): Likewise.
44587         * m4/mode_t.m4: New file.
44588         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44589         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44590         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44591         * modules/open (Files): Add m4/mode_t.m4.
44592         * modules/openat (Files): Likewise.
44593         * modules/fcntl-safer (Files): Likewise.
44594         Suggested by Eric Blake.
44595
44596 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44597
44598         * doc/glibc-functions/fallocate.texi: New file.
44599         * doc/gnulib.texi: Include it.
44600
44601 2009-05-21  Eric Blake  <ebb9@byu.net>
44602             Bruno Haible  <bruno@clisp.org>
44603
44604         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44605         invocations.
44606         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44607
44608 2009-05-21  Eric Blake  <ebb9@byu.net>
44609             Bruno Haible  <bruno@clisp.org>
44610
44611         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44612         include_next. Fix of 2008-11-20 commit.
44613         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44614         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44615         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44616         NEXT_MATH_H.
44617         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44618         instead of NEXT_MATH_H.
44619
44620 2009-05-21  Bruno Haible  <bruno@clisp.org>
44621
44622         Avoid redefinition warnings for SIZE_MAX.
44623         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44624         Reported by Simon Josefsson.
44625
44626 2009-05-21  Bruno Haible  <bruno@clisp.org>
44627
44628         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44629         AC_CACHE_VAL.
44630
44631 2009-05-20  Bruno Haible  <bruno@clisp.org>
44632
44633         Make zeroptr.h work on mingw.
44634         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44635         mprotect.
44636         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44637         * modules/memchr2-tests (configure.ac): Likewise.
44638         * modules/memcmp-tests (configure.ac): Likewise.
44639         * modules/memmem-tests (configure.ac): Likewise.
44640         * modules/memrchr-tests (configure.ac): Likewise.
44641         Reported by Simon Josefsson.
44642
44643 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44644
44645         * tests/test-glob.c: Include string.h for strcmp prototype.
44646
44647 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44648
44649         * modules/getdelim (Depends-on): Add explicit stdint, although it
44650         was implicitly already pulled in via realloc-posix.
44651         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44652
44653 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44654
44655         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44656         G. Christensen" <tgc@jupiterrise.com>.
44657         * m4/sys_socket_h.m4: Check for sa_family_t.
44658         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44659         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44660         * tests/test-sys_socket.c: Check that sa_family_t works.
44661
44662 2009-05-18  Eric Blake  <ebb9@byu.net>
44663
44664         maint.mk: allow gnulib_dir in VPATH build
44665         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44666
44667 2009-05-15  Jim Meyering  <meyering@redhat.com>
44668
44669         maint.mk: Give gnulib_dir a default definition.
44670         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44671         Thus, most packages no longer need to specify this variable in cfg.mk
44672
44673 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44674
44675         rename.m4: fix typos that would make non-mingw cross-configure fail
44676         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44677
44678 2009-05-13  Eric Blake  <ebb9@byu.net>
44679
44680         mmap-anon: avoid out-of-order autoconf expansion
44681         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44682         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44683         * modules/memchr-tests (Depends-on): Add extensions.
44684         * modules/memchr2-tests (Depends-on): Add extensions.
44685         * modules/memcmp-tests (Depends-on): Add extensions.
44686         * modules/memmem-tests (Depends-on): Add extensions.
44687         * modules/memrchr-tests (Depends-on): Add extensions.
44688
44689 2009-05-13  Bruno Haible  <bruno@clisp.org>
44690
44691         Make some tests ISO C 99 compliant.
44692         * tests/zerosize-ptr.h: New file.
44693         * tests/test-memchr.c: Include zerosize-ptr.h.
44694         (main): Use a zero-size object pointer instead of NULL.
44695         * tests/test-memchr2.c: Include zerosize-ptr.h.
44696         (main): Use a zero-size object pointer instead of NULL.
44697         * tests/test-memcmp.c: Include zerosize-ptr.h.
44698         (main): Use a zero-size object pointer instead of NULL.
44699         * tests/test-memmem.c: Include zerosize-ptr.h.
44700         (main): Use a zero-size object pointer instead of NULL.
44701         * tests/test-memrchr.c: Include zerosize-ptr.h.
44702         (main): Use a zero-size object pointer instead of NULL.
44703         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44704         m4/mmap-anon.m4.
44705         (Depends-on): Add getpagesize.
44706         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44707         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44708         m4/mmap-anon.m4.
44709         (Depends-on): Add getpagesize.
44710         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44711         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44712         m4/mmap-anon.m4.
44713         (Depends-on): Add getpagesize.
44714         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44715         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44716         m4/mmap-anon.m4.
44717         (Depends-on): Add getpagesize.
44718         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44719         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44720         m4/mmap-anon.m4.
44721         (Depends-on): Add getpagesize.
44722         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44723
44724 2009-05-12  Bruno Haible  <bruno@clisp.org>
44725
44726         Tests for module 'alignof'.
44727         * modules/alignof-tests: New file.
44728         * tests/test-alignof.c: New file.
44729
44730 2009-05-12  Bruno Haible  <bruno@clisp.org>
44731
44732         Fix alignof macro.
44733         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44734         vendor compilers that are always correct.
44735
44736 2009-05-12  Bruno Haible  <bruno@clisp.org>
44737
44738         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44739         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44740         not whether its fully works.
44741
44742 2009-05-12  Bruno Haible  <bruno@clisp.org>
44743
44744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44745
44746 2009-05-12  Jim Meyering  <meyering@redhat.com>
44747
44748         * top/maint.mk: Adjust backslash alignment.
44749
44750 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44751
44752         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44753
44754 2009-05-11  Eric Blake  <ebb9@byu.net>
44755
44756         argp: avoid undefined behavior
44757         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44758         macros.
44759
44760 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44761
44762         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44763         user.name to prevent git commit from complaining.
44764
44765 2009-05-10  Bruno Haible  <bruno@clisp.org>
44766
44767         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44768         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44769         it rewrites every file name only once.
44770         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44771
44772 2009-05-08  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44775         instead of 'max'.
44776
44777 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44778
44779         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44780         sockaddr_storage test.
44781
44782 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44783
44784         * modules/sys_socket (Makefile.am): Substitute
44785         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44786         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44787         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44788         * tests/test-sys_socket.c: Check sockaddr_storage.
44789
44790 2009-05-08  Bruno Haible  <bruno@clisp.org>
44791
44792         New module 'alignof'.
44793         * lib/alignof.h: New file.
44794         * modules/alignof: New file.
44795
44796 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44797             Bruno Haible  <bruno@clisp.org>
44798
44799         Fix test-file-has-acl on FreeBSD.
44800         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44801         mask is implicitly added.
44802         * tests/test-file-has-acl.c: Include <signal.h>.
44803         (main): Terminate the test after 5 seconds.
44804         * modules/acl-tests (configure.ac): Check for alarm function.
44805
44806 2009-05-04  Bruno Haible  <bruno@clisp.org>
44807
44808         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44810         * modules/errno (configure.ac): Drop AC_REQUIRE.
44811         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44812         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44813
44814 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44815
44816         * modules/glob-tests: New module.
44817         * tests/test-glob.c: Add.
44818
44819 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44820
44821         * modules/fnmatch-tests: New module.
44822         * tests/test-fnmatch.c: Add.
44823
44824 2009-05-04  Eric Blake  <ebb9@byu.net>
44825
44826         maint: make the new no-submodule-changes rule VPATH-safe
44827         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44828
44829 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44830             Bruno Haible  <bruno@clisp.org>
44831
44832         acl: Fix infinite loop on FreeBSD.
44833         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44834         of return value from acl_get_entry.
44835         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44836         Likewise.
44837
44838 2009-05-03  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/acl-internal.h (acl_entries): Clarify return value.
44841         * lib/acl_entries.c (acl_entries): Likewise.
44842
44843 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44844
44845         Bug fix in acl module.
44846         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44847
44848 2009-05-03  Bruno Haible  <bruno@clisp.org>
44849
44850         Create gperf-generated file in the source dir, not in the build dir.
44851         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44852         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44853         * modules/unicase/locale-language (unicase/locale-languages.h):
44854         Likewise.
44855         * modules/unicase/special-casing (unicase/special-casing-table.h):
44856         Likewise.
44857         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44858         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44859         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44860         Reported by Ralf Wildenhues.
44861
44862 2009-05-03  Bruno Haible  <bruno@clisp.org>
44863
44864         * modules/fnmatch (Description, configure.ac): Taken from
44865         fnmatch-posix.
44866         * modules/fnmatch-posix: Turn into a symbolic reference to the
44867         'fnmatch' module, and deprecate.
44868         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44869
44870 2009-05-03  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44873         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44874         Reported by Ralf Wildenhues.
44875
44876 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44877
44878         * m4/fnmatch.m4: Fix fnmatch re-define.
44879
44880 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44881
44882         priv-set: new module and tests; adapt write-any-file
44883         * lib/priv-set.c: New file.
44884         * lib/priv-set.h: New file.
44885         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44886         * lib/write-any-file.c: Simplify by using priv-set module.
44887         * m4/priv-set.m4: New file.
44888         * modules/priv-set: New file.
44889         * modules/unlinkdir: Add dependency on priv-set module.
44890         * modules/write-any-file: Likewise.
44891
44892         Tests for module 'priv-set'.
44893         * modules/priv-set-tests: New file.
44894         * tests/test-priv-set.c: New file.
44895
44896 2009-05-03  Jim Meyering  <meyering@redhat.com>
44897             Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44900         use the converted UTF-8 variant of the name instead.
44901
44902 2009-05-03  Jim Meyering  <meyering@redhat.com>
44903
44904         tests: tighten some getdate tests
44905         * tests/test-getdate.c (main): Tighten tests: require equality,
44906         not just greater than.  Set TZ envvar to UTC0.
44907
44908 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44909
44910         getdate: correctly interpret "next monday" when run on a Monday
44911         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44912         that e.g., "next tues" (when run on a tuesday) results in a date
44913         that is one week in the future, and not today's date.
44914         I.e., add a week when the wday is the same as the current one.
44915         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44916         and earlier by Martin Bernreuther and Jan Minář.
44917         * tests/test-getdate.c (main): Check that "next DAY" is always in
44918         the future and that "last DAY" is always in the past.
44919
44920 2009-05-02  Jim Meyering  <meyering@redhat.com>
44921
44922         build: ensure that a release build fails when a submodule is unclean
44923         * top/maint.mk (no-submodule-changes): New rule.
44924         (alpha beta major): Depend on it.
44925
44926 2009-05-02  Bruno Haible  <bruno@clisp.org>
44927
44928         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44929         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44930         shell variable gl_fnmatch_required to detect which variant is
44931         requested.
44932         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44933         gl_FUNC_FNMATCH_POSIX.
44934         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44935         exclude fnmatch-posix.
44936
44937 2009-05-02  Bruno Haible  <bruno@clisp.org>
44938
44939         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44940         * modules/mbsrtowcs (License): Change to LGPLv2+.
44941         * modules/strnlen1 (License): Likewise.
44942         Reported by Simon Josefsson.
44943
44944 2009-05-02  Bruno Haible  <bruno@clisp.org>
44945
44946         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44947         "cross".
44948         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44949         gnulib-tool was called with option --source-base=lib.
44950
44951 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44952
44953         Use automake *-local hooks without commands, for extensibility.
44954         * modules/localcharset (Makefile.am): Rename install-exec-local
44955         rule to install-exec-localcharset, and make it a prerequisite of
44956         install-exec-local.  Likewise, rename the uninstall-local rule to
44957         uninstall-localcharset, and make it a prerequisite of the former.
44958
44959 2009-05-01  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44962         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44963         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44965         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44966         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44967         m4/locale-zh.m4, m4/codeset.m4.
44968
44969         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44970         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44971         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44972         m4/locale-zh.m4.
44973
44974         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44975         REPLACE_WCRTOMB if mbstate_t must be replaced.
44976         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44977         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44978
44979 2009-05-01  Bruno Haible  <bruno@clisp.org>
44980
44981         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44982         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44983         dngettext, dcngettext, textdomain, bindtextdomain,
44984         bind_textdomain_codeset): Undefine before redefining.
44985
44986 2009-04-30  Bruno Haible  <bruno@clisp.org>
44987
44988         Fix bug introduced on 2009-04-25.
44989         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44990         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44991         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44992         is defined.
44993         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44994         is defined.
44995         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44996         is defined.
44997         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44998
44999 2009-04-28  Bruno Haible  <bruno@clisp.org>
45000
45001         Comment tweaks.
45002         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45003         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45004         * lib/unicase.h (u*_casexfrm): Likewise.
45005         Reported by Paolo Bonzini.
45006
45007 2009-04-28  Bruno Haible  <bruno@clisp.org>
45008
45009         Fix a compilation error.
45010         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45011         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45012         Reported by Jim Meyering.
45013
45014 2009-04-27  Bruno Haible  <bruno@clisp.org>
45015
45016         New module 'libunistring'.
45017         * modules/libunistring: New file.
45018         * m4/libunistring.m4: New file.
45019         * MODULES.html.sh (Unicode string functions): Add it.
45020
45021 2009-04-27  Eric Blake  <ebb9@byu.net>
45022
45023         maint.mk: allow package-specific header to provide <config.h>
45024         * top/maint.mk (sc_require_config_h): New variable.
45025         (sc_require_config_h, sc_require_config_h_first): Use it.
45026
45027 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45028
45029         * top/maint.mk (sc_avoid_if_before_free): Except
45030         useless-if-before-free script.
45031
45032 2009-04-27  Eric Blake  <ebb9@byu.net>
45033
45034         maintainer-makefile: depend on all required helper scripts
45035         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45036         useless-if-before-free.
45037         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45038         version, rather than assuming gnulib checkout is available.
45039         Reported by Simen Josefsson.
45040
45041 2009-04-26  Bruno Haible  <bruno@clisp.org>
45042
45043         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45044         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45045         "../" or "..".
45046
45047 2009-04-26  Bruno Haible  <bruno@clisp.org>
45048
45049         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45050         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45051         AC_LIB_HAVE_LINKFLAGS.
45052
45053 2009-04-26  Bruno Haible  <bruno@clisp.org>
45054
45055         Simplify calling convention of u*_conv_from_encoding.
45056         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45057         u32_conv_from_encoding): Expect a resultbuf argument and return the
45058         result directly as a pointer.
45059         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45060         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45061         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45062         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45063         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45064         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45065         Update.
45066         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45067         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45068         * lib/vasnprintf.c (VASNPRINTF): Update.
45069         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45070         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45071         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45072         * NEWS: Mention the change.
45073
45074 2009-04-26  Bruno Haible  <bruno@clisp.org>
45075
45076         Simplify calling convention of u*_conv_to_encoding.
45077         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45078         u32_conv_to_encoding): Expect a resultbuf argument and return the
45079         result directly as a pointer.
45080         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45081         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45082         freeing scaled_offsets if mem_iconveha failed.
45083         * lib/unicase/u-casexfrm.h (FUNC): Update.
45084         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45085         * lib/vasnprintf.c (VASNPRINTF): Update.
45086         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45087         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45088         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45089         * NEWS: Mention the change.
45090
45091 2009-04-26  Bruno Haible  <bruno@clisp.org>
45092
45093         Avoid test failures on AIX and OSF/1.
45094         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45095         malloc(0).
45096         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45097         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45098         Likewise.
45099         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45100         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45101         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45102         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45103         * doc/posix-functions/malloc.texi: Document the portability problem
45104         related to malloc(0).
45105
45106 2009-04-26  Bruno Haible  <bruno@clisp.org>
45107
45108         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45109         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45110         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45111
45112 2009-04-25  Bruno Haible  <bruno@clisp.org>
45113
45114         Avoid link error when creating a namespace clean library.
45115         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45116         as macro with arguments if already defined as an alias.
45117         * lib/signbitf.c (gl_signbitf): Don't undefine.
45118         * lib/signbitd.c (gl_signbitd): Don't undefine.
45119         * lib/signbitl.c (gl_signbitl): Don't undefine.
45120
45121 2009-04-25  Jim Meyering  <meyering@redhat.com>
45122
45123         vc-list-files: fix another quoting bug
45124         * build-aux/vc-list-files: Avoid sed backslash expansion
45125         of pathological directory names.
45126
45127 2009-04-25  Eric Blake  <ebb9@byu.net>
45128
45129         vc-list-files: fix shell quoting error
45130         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45131         timestamp.
45132
45133 2009-04-25  Jim Meyering  <meyering@redhat.com>
45134
45135         vc-list-files: restore lost functionality with subdir argument
45136         * build-aux/vc-list-files: When given a non-"." sub-directory
45137         argument, substitute the $dir/ prefix back onto each resulting name.
45138         Otherwise, coreutils' root_tests check would fail.
45139
45140 2009-04-24  Eric Blake  <ebb9@byu.net>
45141
45142         vc-list-files: ignore git symlinks
45143         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45144         than ls-files, to ignore git symlinks.
45145
45146         maint.mk: import improvements from m4
45147         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45148         (move_if_change): Delete unused macro.
45149         (news-date-check, vc-diff-check): Support VPATH builds.
45150         (announcement): Likewise.  Split --bootstrap-tools list...
45151         (boostrap-tools): ...into separate list, which can be overridden
45152         in cfg.mk.
45153         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45154         requiring dependency on useless-if-before-free module.
45155         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45156         Support VPATH builds.
45157
45158 2009-04-24  Jim Meyering  <meyering@redhat.com>
45159
45160         maint.mk: remove coreutils-specific rules and variables
45161         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45162         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45163         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45164
45165         maint.mk: remove obsolete rule
45166         * top/maint.mk (rel-check): Remove rule.
45167         (WGET, WGETFLAGS): Remove now-unused variables.
45168
45169 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45170
45171         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45172         consistency.
45173
45174         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45175         '$(PATH_SEPARATOR)' instead of ':'.
45176
45177 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45178
45179         * lib/getopt1.c (main): Use 'const' for static array.
45180
45181 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45182
45183         * top/maint.mk: Sync with coreutils.
45184         * NEWS: Explain incompatibilities.
45185
45186 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45187             Bruno Haible  <bruno@clisp.org>
45188
45189         Fix cross-compilation results.
45190         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45191         statement, as third argument of AC_TRY_RUN.
45192         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45193         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45194         Likewise.
45195         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45196         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45197         Likewise.
45198         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45200         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45201
45202 2009-04-20  Bruno Haible  <bruno@clisp.org>
45203
45204         Avoid test failure on mingw.
45205         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45206
45207 2009-04-20  Bruno Haible  <bruno@clisp.org>
45208
45209         Avoid compilation error on mingw.
45210         * modules/localename-tests (Depends-on): Add locale.
45211
45212 2009-04-19  Bruno Haible  <bruno@clisp.org>
45213
45214         Support for building a shared library on Windows platforms.
45215         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45216         (main): Test the presence of UNINORM_NFC here.
45217         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45218         (main): Test the presence of UNINORM_NFD here.
45219         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45220         (main): Test the presence of UNINORM_NFKC here.
45221         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45222         (main): Test the presence of UNINORM_NFKD here.
45223
45224 2009-04-19  Bruno Haible  <bruno@clisp.org>
45225
45226         Avoid a compiler warning.
45227         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45228         Change type of variable 'sequence'.
45229
45230 2009-04-19  Bruno Haible  <bruno@clisp.org>
45231
45232         * modules/configmake (Makefile.am): When the contents of configmake.h
45233         does not change, arrange to preserve its modification time.
45234
45235 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45236
45237         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45238         gettext domain.
45239
45240 2009-04-16  Jim Meyering  <meyering@redhat.com>
45241
45242         useless-if-before-free: improve conversion code
45243         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45244         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45245
45246 2009-04-14  Bruno Haible  <bruno@clisp.org>
45247
45248         * modules/fcntl (Depends-on): Add extensions.
45249         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45250
45251 2009-04-12  Ben Pfaff  <blp@gnu.org>
45252
45253         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45254         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45255
45256 2009-03-20  Ben Pfaff  <blp@gnu.org>
45257
45258         Make rename replace existing destinations on Windows.
45259         * m4/rename.m4: Add test for Mingw.
45260         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45261         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45262         * doc/posix-functions/rename.texi: Document.
45263
45264 2009-04-10  Bruno Haible  <bruno@clisp.org>
45265
45266         New include file "iconveh.h".
45267         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45268         * lib/striconveh.h: Include it.
45269         (enum iconv_ilseq_handler): Remove definition.
45270         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45271         striconveh.h.
45272         * lib/striconveha.c: Include striconveh.h.
45273         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45274         * modules/striconveh (Files): Add lib/iconveh.h.
45275         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45276         lib/striconveh.h.
45277
45278 2009-04-10  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/uniconv.h: Update comment.
45281
45282 2009-04-10  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45285         always.
45286         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45287         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45288         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45289         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45290         "unistring-notinline.h", so that the function gets defined always.
45291         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45292         * lib/unistr/u8-uctomb.c: Likewise.
45293         * lib/unistr/u16-mbtouc.c: Likewise.
45294         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45295         * lib/unistr/u16-uctomb.c: Likewise.
45296         * lib/unistr/u32-mbtouc.c: Likewise.
45297         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45298         * lib/unistr/u32-uctomb.c: Likewise.
45299
45300 2009-04-10  Bruno Haible  <bruno@clisp.org>
45301
45302         Mark 'utime' obsolete.
45303         * modules/utime (Status, Notice): New sections.
45304         Suggested by Jim Meyering.
45305
45306         Fix cross-compile guess for utime test.
45307         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45308         autoconf.
45309         * doc/posix-functions/utime.texi: Give more precisions.
45310         Reported by Jan <ipif@ymail.com>.
45311
45312 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45313
45314         filevercmp: correct today's change
45315         * lib/filevercmp.c: Also handle coreutils' test inputs.
45316         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45317
45318         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45319         for reporting it.
45320         * lib/filevercmp.c: Special handle for "", "." and "..".
45321         * tests/test-filevercmp.c: Enlarge the set suite.
45322
45323 2009-04-07  Jim Meyering  <meyering@redhat.com>
45324
45325         useless-if-before-free: show how to remove braced useless free, too
45326         * build-aux/useless-if-before-free: still only in a comment, though.
45327
45328 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45329
45330         maint.mk: import changes to syntax-check macros from coreutils
45331         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45332         Use them in the relevant macros.
45333
45334 2009-04-06  Bruno Haible  <bruno@clisp.org>
45335
45336         Fix unportable use of bit-fields.
45337         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45338         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45339         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45340
45341 2009-04-06  Bruno Haible  <bruno@clisp.org>
45342
45343         Avoid test failures on AIX and OSF/1.
45344         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45345         that malloc(0) = NULL.
45346         * tests/unicase/test-u8-tolower.c (check): Likewise.
45347         * tests/unicase/test-u8-totitle.c (check): Likewise.
45348         * tests/unicase/test-u8-toupper.c (check): Likewise.
45349         * tests/unicase/test-u16-casefold.c (check): Likewise.
45350         * tests/unicase/test-u16-tolower.c (check): Likewise.
45351         * tests/unicase/test-u16-totitle.c (check): Likewise.
45352         * tests/unicase/test-u16-toupper.c (check): Likewise.
45353         * tests/unicase/test-u32-casefold.c (check): Likewise.
45354         * tests/unicase/test-u32-tolower.c (check): Likewise.
45355         * tests/unicase/test-u32-totitle.c (check): Likewise.
45356         * tests/unicase/test-u32-toupper.c (check): Likewise.
45357         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45358         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45359         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45360         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45361         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45362         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45363         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45364         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45365         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45366         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45367         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45368         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45369
45370 2009-04-05  Bruno Haible  <bruno@clisp.org>
45371
45372         Work around an autoconf limitation.
45373         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45374         comment line if it would be longer than 3 KB.
45375
45376 2009-04-05  Bruno Haible  <bruno@clisp.org>
45377
45378         Avoid test failure with libiconv-1.13.
45379         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45380         of the expected test results.
45381
45382 2009-04-05  Bruno Haible  <bruno@clisp.org>
45383
45384         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45385         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45386         that it should be installed.
45387
45388 2009-04-05  Bruno Haible  <bruno@clisp.org>
45389
45390         * gnulib-tool: New option --copy-file.
45391         (func_usage): Document it.
45392         (func_dest_tmpfilename): Moved out of func_import.
45393         (func_add_file, func_update_file): New functions, extracted from
45394         func_import.
45395         (func_import): Update.
45396
45397 2009-04-05  Karl Berry  <karl@gnu.org>
45398
45399         * README: prominently mention gnulib-tool.
45400         Rearrange sections so getting the code is near the top.
45401
45402 2009-04-05  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/unicase.h: Mention u*_cmp2.
45405         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45406         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45407         * lib/unicase/ulc-casecmp.c: Likewise.
45408         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45409         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45410         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45411         unistr/u8-cmp.
45412         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45413         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45414         unistr/u16-cmp.
45415         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45416         unistr/u32-cmp.
45417
45418         * lib/uninorm.h: Mention u*_cmp2.
45419         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45420         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45421         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45422         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45423         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45424         unistr/u8-cmp.
45425         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45426         unistr/u16-cmp.
45427         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45428         unistr/u32-cmp.
45429
45430         New module 'unistr/u32-cmp2'.
45431         * lib/unistr/u32-cmp2.c: New file.
45432         * modules/unistr/u32-cmp2: New file.
45433
45434         New module 'unistr/u16-cmp2'.
45435         * lib/unistr/u16-cmp2.c: New file.
45436         * modules/unistr/u16-cmp2: New file.
45437
45438         New module 'unistr/u8-cmp2'.
45439         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45440         * lib/unistr/u8-cmp2.c: New file.
45441         * lib/unistr/u-cmp2.h: New file.
45442         * modules/unistr/u8-cmp2: New file.
45443
45444 2009-04-05  Bruno Haible  <bruno@clisp.org>
45445
45446         * lib/unictype.h (uc_property_is_valid): New macro.
45447         * tests/unictype/test-pr_byname.c (main): Use it.
45448
45449         * lib/unistr.h: Doc fixes.
45450         * lib/uniconv.h: Doc fixes.
45451         * lib/unictype.h: Doc fixes.
45452
45453 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45454
45455         Port coreutils 7.2 to Solaris 8.
45456
45457         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45458         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45459         for Solaris 8.  This is a bit of a hack, as it means it's the
45460         caller's responsibility to add -lnsl if needed, but most likely it
45461         won't be needed since only getaddrinfo uses this and getaddrinfo
45462         isn't needed on Solaris 8.
45463
45464         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45465         problem to Solaris 8 encountered with coreutils 7.2, which
45466         resulted in a message "fnmatch.c:292: warning: passing argument 4
45467         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45468         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45469
45470 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45471
45472         * m4/ld-version-script.m4: Add FIXME comment.
45473
45474 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45475
45476         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45477         SOVERSION variable.
45478
45479 2009-04-02  Bruno Haible  <bruno@clisp.org>
45480
45481         * Makefile (info, html, dvi, pdf): Combine the rules.
45482         Suggested by Jim Meyering.
45483
45484 2009-04-01  Bruno Haible  <bruno@clisp.org>
45485
45486         * Makefile (info, html, dvi, pdf): New targets.
45487         Reported by Reuben Thomas <rrt@sc3d.org>.
45488
45489 2009-04-01  Bruno Haible  <bruno@clisp.org>
45490
45491         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45492         can be put into PATH.
45493         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45494
45495 2009-04-01  Bruno Haible  <bruno@clisp.org>
45496
45497         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45498
45499 2009-04-01  Bruno Haible  <bruno@clisp.org>
45500
45501         Rename module 'visibility'.
45502         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45503         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45504         * doc/gnulib.texi: Update.
45505         * MODULES.html.sh (Misc): Update.
45506         * NEWS: Mention the change.
45507
45508 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45509
45510         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45511         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45512         Eric Blake <ebb9@byu.net> for review.
45513         * MODULES.html.sh: Add lib-msvc-compat.
45514         * doc/gnulib.texi: Link to new section.
45515         * m4/ld-output-def.m4: New file.
45516         * doc/ld-output-def.texi: New file.
45517
45518 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45519
45520         Rename ld-version-script to lib-symbol-versions.  Suggested by
45521         Bruno Haible <bruno@clisp.org>.
45522         * modules/ld-version-script: Renamed to lib-symbol-versions.
45523         * doc/ld-version-script.texi: Fix module name.
45524         * MODULES.html.sh: Add lib-symbol-versions.
45525
45526 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45527
45528         * modules/u64-tests: New file.
45529         * tests/test-u64.c: New file.
45530
45531 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45532
45533         * MODULES.html.sh: Mention u64.
45534         * modules/u64: New module.
45535         * modules/crypto/sha512: Depend on u64 module instead of providing
45536         u64.h.
45537
45538 2009-03-27  Eric Blake  <ebb9@byu.net>
45539
45540         test-strerror: make debugging EAI_SYSTEM easier
45541         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45542         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45543         failure was EAI_SYSTEM.
45544
45545 2009-03-25  Bruno Haible  <bruno@clisp.org>
45546
45547         Fix a problem with --enable-relocatable on Solaris 7.
45548         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45549         since 2008-02-24.
45550
45551 2009-03-25  Eric Blake  <ebb9@byu.net>
45552
45553         test-sockets: avoid gcc warning
45554         * tests/test-sockets.c (main): Silence compiler warning.
45555
45556 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45557
45558         New modules nproc, pthread, contributed by Glen Lenker.
45559
45560         * MODULES.html.sh: Add pthread, nproc.
45561         * lib/nproc.c: New file.
45562         * lib/nproc.h: New file.
45563         * lib/pthread.in.h: New file.
45564         * m4/pthread.m4: New file.
45565         * modules/nproc: New file.
45566         * modules/pthread: New file.
45567
45568 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45569
45570         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45571         New variable.
45572
45573 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45574
45575         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45576         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45577         * tests/test-filevercmp.c: Add tests for backup suffixes.
45578
45579 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45580
45581         * modules/stdlib (Depends-on): Add stdint, needed when defining
45582         struct random_data on, for example, HP-UX 10.20.  Reported by
45583         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45584
45585 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45586
45587         * lib/readline.c (readline): Call fflush on stdout after printing
45588         prompt.
45589
45590 2009-03-20  Bruno Haible  <bruno@clisp.org>
45591
45592         Remove dependency from 'close' module to -lws2_32 on native Windows.
45593         * lib/close-hook.h: New file.
45594         * lib/close-hook.c: New file.
45595         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45596         w32sock.h.
45597         (_gl_close_fd_maybe_socket): Remove function.
45598         (rpl_close): Invoke execute_all_close_hooks instead of
45599         _gl_close_fd_maybe_socket.
45600         * lib/sockets.c: Include close-hook.h, w32sock.h.
45601         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45602         (close_sockets_hook): New variable.
45603         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45604         (gl_sockets_cleanup): Unregister it.
45605         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45606         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45607         * modules/close-hook: New file.
45608         * modules/close (Files): Remove lib/w32sock.h.
45609         (Depends-on): Add close-hook.
45610         (Link): Remove section.
45611         * modules/sockets (Files): Add lib/w32sock.h.
45612         (Depends-on): Add close-hook.
45613         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45614         invocation.
45615         * NEWS: Mention that LIB_CLOSE is gone.
45616
45617 2009-03-23  Eric Blake  <ebb9@byu.net>
45618
45619         signal-tests: test previous patch
45620         * tests/test-signal.c: New file.
45621         * modules/signal-tests: Likewise.
45622
45623         signal.h: always support 'volatile sig_atomic_t'
45624         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45625         (gl_SIGNAL_H_DEFAULTS): Add a default.
45626         * modules/signal (Makefile.am): Substitute if needed.
45627         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45628         users can blindly add volatile.
45629         * doc/posix-headers/signal.texi (signal.h): Document it.
45630         Reported by Matthew Woehlke.
45631
45632 2009-03-23  Jim Meyering  <meyering@redhat.com>
45633
45634         pathmax: PATH_MAX: use pathconf only when available
45635         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45636         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45637         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45638         This avoids a link failure in a PSP cross-compilation environment
45639         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45640
45641         * lib/vasnprintf.c (divide): Fix typo in comment.
45642
45643 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45644
45645         * gnulib-tool (func_filter_filelist): Fix comment.
45646
45647 2009-03-20  Bruno Haible  <bruno@clisp.org>
45648
45649         Make sockets.h self-contained.
45650         * lib/sockets.c: Include sockets.h first.
45651         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45652
45653 2009-03-19  Eric Blake  <ebb9@byu.net>
45654
45655         doc: mention more functions added in cygwin 1.7.0
45656         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45657         addition.
45658         * doc/posix-functions/log2f.texi: Likewise.
45659
45660 2009-03-19  Jim Meyering  <meyering@redhat.com>
45661
45662         fsusage: avoid syntax error due to statement-before-declaration
45663         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45664         after all declarations.  Reported by Matthew Woehlke in
45665         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45666
45667 2009-03-18  Eric Blake  <ebb9@byu.net>
45668
45669         build-aux/compile: sync from automake
45670         * build-aux/compile: New file, from automake.
45671         * config/srclist.txt: Mention build-aux/compile.
45672
45673 2009-03-17  Bruno Haible  <bruno@clisp.org>
45674
45675         * lib/git-merge-changelog.c: Fix typo in comment.
45676         Reported by Reuben Thomas <rrt@sc3d.org>.
45677
45678 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45679
45680         * m4/regex.m4: update and improve help for
45681         --without-included-regex.
45682
45683 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45684
45685         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45686         failure on missing include files.
45687
45688 2009-03-17  Eric Blake  <ebb9@byu.net>
45689
45690         doc: mention more functions added in cygwin 1.7.0
45691         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45692         addition.
45693         * doc/posix-functions/fwscanf.texi: Likewise.
45694         * doc/posix-functions/swprintf.texi: Likewise.
45695         * doc/posix-functions/swscanf.texi: Likewise.
45696         * doc/posix-functions/vfwprintf.texi: Likewise.
45697         * doc/posix-functions/vfwscanf.texi: Likewise.
45698         * doc/posix-functions/vswprintf.texi: Likewise.
45699         * doc/posix-functions/vswscanf.texi: Likewise.
45700         * doc/posix-functions/vwprintf.texi: Likewise.
45701         * doc/posix-functions/vwscanf.texi: Likewise.
45702         * doc/posix-functions/wcscasecmp.texi: Likewise.
45703         * doc/posix-functions/wcsdup.texi: Likewise.
45704         * doc/posix-functions/wcsftime.texi: Likewise.
45705         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45706         * doc/posix-functions/wprintf.texi: Likewise.
45707         * doc/posix-functions/wscanf.texi: Likewise.
45708         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45709
45710 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45711
45712         maint.mk: really add $(AM_MAKEFLAGS)
45713         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45714         was inadvertently omitted in the last commit.
45715         Spotted by Bruno Haible.
45716
45717         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45718         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45719         $(AM_MAKEFLAGS)' rather than plain `make'.
45720
45721         gnulib-tool: execute $MAKE not make
45722         * gnulib-tool: Default $MAKE to 'make'.
45723         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45724         than make.  Initialize $MAKE in the do-autobuild script.
45725
45726         gnulib-tool: use $MAKE not make in generated files
45727         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45728         make, in generated files.  Initialize $MAKE in the do-autobuild
45729         script.
45730
45731         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45732
45733         GNUmakefile: disable parallelism only for multiple, recursive targets
45734         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45735         additions in the Makefile.
45736         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45737         by Automake.
45738         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45739         are listed on the command line and at least one of them is
45740         listed in $(ALL_RECURSIVE_TARGETS).
45741
45742 2009-03-14  Bruno Haible  <bruno@clisp.org>
45743
45744         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45745         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45746         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45747         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45748         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45749         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45750         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45751         unistr/u8-uctomb.
45752         * modules/unistr/u8-strchr (Depends-on): Likewise.
45753         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45754         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45755         unistr/u16-uctomb.
45756         * modules/unistr/u16-strchr (Depends-on): Likewise.
45757         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45758
45759 2009-03-12  Bruno Haible  <bruno@clisp.org>
45760
45761         Work around select() bug on Interix 3.5.
45762         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45763         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45764         * m4/select.m4: New file.
45765         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45766         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45767         * modules/select (Files): Add m4/select.m4.
45768         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45769         * modules/nanosleep (Depends-on): Add select.
45770         * modules/poll (Depends-on): Likewise.
45771         * doc/posix-functions/select.texi: Mention the Interix bug.
45772         Reported by Markus Duft <mduft@gentoo.org>.
45773
45774         * lib/select.c: Renamed from lib/winsock-select.c.
45775         * modules/select (Files): Add lib/select.c, remove
45776         lib/winsock-select.c.
45777         (configure.ac): Update.
45778
45779 2009-03-12  Jim Meyering  <meyering@redhat.com>
45780
45781         avoid gcc warnings about unused macro definitions
45782         * lib/readtokens.c (STREQ): Remove unused definition.
45783         * lib/xmalloc.c (SIZE_MAX): Likewise.
45784         * lib/openat-die.c (N_): Likewise.
45785         * lib/mountlist.c (SIZE_MAX): Remove definition.
45786         Instead, include <stdint.h>.
45787         * lib/readutmp.c: Likewise.
45788         * modules/readutmp (Depends-on): Add stdint.
45789         * modules/mountlist (Depends-on): Add stdint.
45790         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45791
45792 2009-03-10  Bruno Haible  <bruno@clisp.org>
45793
45794         Tests for module 'mbmemcasecoll'.
45795         * modules/mbmemcasecoll-tests: New file.
45796         * tests/test-mbmemcasecoll1.sh: New file.
45797         * tests/test-mbmemcasecoll2.sh: New file.
45798         * tests/test-mbmemcasecoll3.sh: New file.
45799         * tests/test-mbmemcasecoll.c: New file.
45800
45801         New module 'mbmemcasecoll'.
45802         * lib/mbmemcasecoll.h: New file.
45803         * lib/mbmemcasecoll.c: New file.
45804         * modules/mbmemcasecoll: New file.
45805
45806         * tests/test-mbmemcasecmp.h: New file, extracted from
45807         tests/test-mbmemcasecmp.c.
45808         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45809         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45810         (main): Update.
45811         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45812
45813 2009-03-09  Bruno Haible  <bruno@clisp.org>
45814
45815         Tests for module 'mbmemcasecmp'.
45816         * modules/mbmemcasecmp-tests: New file.
45817         * tests/test-mbmemcasecmp1.sh: New file.
45818         * tests/test-mbmemcasecmp2.sh: New file.
45819         * tests/test-mbmemcasecmp3.sh: New file.
45820         * tests/test-mbmemcasecmp.c: New file.
45821
45822         New module 'mbmemcasecmp'.
45823         * lib/mbmemcasecmp.h: New file.
45824         * lib/mbmemcasecmp.c: New file.
45825         * modules/mbmemcasecmp: New file.
45826
45827 2009-03-09  Bruno Haible  <bruno@clisp.org>
45828
45829         Tests for module 'unicase/ulc-casecoll'.
45830         * modules/unicase/ulc-casecoll-tests: New file.
45831         * tests/unicase/test-ulc-casecoll1.sh: New file.
45832         * tests/unicase/test-ulc-casecoll2.sh: New file.
45833         * tests/unicase/test-ulc-casecoll.c: New file.
45834
45835         New module 'unicase/ulc-casecoll'.
45836         * lib/unicase.h (ulc_casecoll): New declaration.
45837         * lib/unicase/ulc-casecoll.c: New file.
45838         * modules/unicase/ulc-casecoll: New file.
45839
45840         New module 'unicase/ulc-casexfrm'.
45841         * lib/unicase.h (ulc_casexfrm): New declaration.
45842         * lib/unicase/ulc-casexfrm.c: New file.
45843         * modules/unicase/ulc-casexfrm: New file.
45844
45845 2009-03-09  Bruno Haible  <bruno@clisp.org>
45846
45847         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45848         invocations.
45849
45850         * m4/mbscasecmp.m4: Remove file.
45851         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45852         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45853
45854         * m4/mbscasestr.m4: Remove file.
45855         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45856         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45857
45858         * m4/mbschr.m4: Remove file.
45859         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45860         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45861
45862         * m4/mbscspn.m4: Remove file.
45863         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45864         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45865
45866         * m4/mbslen.m4: Remove file.
45867         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45868         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45869
45870         * m4/mbsncasecmp.m4: Remove file.
45871         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45872         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45873
45874         * m4/mbsnlen.m4: Remove file.
45875         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45876         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45877
45878         * m4/mbspbrk.m4: Remove file.
45879         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45880         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45881
45882         * m4/mbspcasecmp.m4: Remove file.
45883         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45884         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45885
45886         * m4/mbsrchr.m4: Remove file.
45887         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45888         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45889
45890         * m4/mbssep.m4: Remove file.
45891         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45892         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45893
45894         * m4/mbsspn.m4: Remove file.
45895         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45896         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45897
45898         * m4/mbsstr.m4: Remove file.
45899         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45900         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45901
45902         * m4/mbstok_r.m4: Remove file.
45903         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45904         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45905
45906         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45907
45908         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45909         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45910
45911         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45912
45913 2009-03-08  Bruno Haible  <bruno@clisp.org>
45914
45915         Tests for module 'unicase/ulc-casecmp'.
45916         * modules/unicase/ulc-casecmp-tests: New file.
45917         * tests/unicase/test-ulc-casecmp1.sh: New file.
45918         * tests/unicase/test-ulc-casecmp2.sh: New file.
45919         * tests/unicase/test-ulc-casecmp.c: New file.
45920
45921         New module 'unicase/ulc-casecmp'.
45922         * lib/unicase.h (ulc_casecmp): New declaration.
45923         * lib/unicase/ulc-casecmp.c: New file.
45924         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45925         'const SRC_UNIT *'.
45926         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45927         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45928         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45929         * modules/unicase/ulc-casecmp: New file.
45930
45931         Tests for module 'unicase/u32-is-cased'.
45932         * modules/unicase/u32-is-cased-tests: New file.
45933         * tests/unicase/test-u32-is-cased.c: New file.
45934
45935         Tests for module 'unicase/u16-is-cased'.
45936         * modules/unicase/u16-is-cased-tests: New file.
45937         * tests/unicase/test-u16-is-cased.c: New file.
45938
45939         Tests for module 'unicase/u8-is-cased'.
45940         * modules/unicase/u8-is-cased-tests: New file.
45941         * tests/unicase/test-u8-is-cased.c: New file.
45942         * tests/unicase/test-is-cased.h: New file.
45943
45944         New module 'unicase/u32-is-cased'.
45945         * lib/unicase/u32-is-cased.c: New file.
45946         * modules/unicase/u32-is-cased: New file.
45947
45948         New module 'unicase/u16-is-cased'.
45949         * lib/unicase/u16-is-cased.c: New file.
45950         * modules/unicase/u16-is-cased: New file.
45951
45952         New module 'unicase/u8-is-cased'.
45953         * lib/unicase/u8-is-cased.c: New file.
45954         * lib/unicase/u-is-cased.h: New file.
45955         * modules/unicase/u8-is-cased: New file.
45956
45957         Tests for module 'unicase/u32-is-casefolded'.
45958         * modules/unicase/u32-is-casefolded-tests: New file.
45959         * tests/unicase/test-u32-is-casefolded.c: New file.
45960
45961         Tests for module 'unicase/u16-is-casefolded'.
45962         * modules/unicase/u16-is-casefolded-tests: New file.
45963         * tests/unicase/test-u16-is-casefolded.c: New file.
45964
45965         Tests for module 'unicase/u8-is-casefolded'.
45966         * modules/unicase/u8-is-casefolded-tests: New file.
45967         * tests/unicase/test-u8-is-casefolded.c: New file.
45968         * tests/unicase/test-is-casefolded.h: New file.
45969
45970         New module 'unicase/u32-is-casefolded'.
45971         * lib/unicase/u32-is-casefolded.c: New file.
45972         * modules/unicase/u32-is-casefolded: New file.
45973
45974         New module 'unicase/u16-is-casefolded'.
45975         * lib/unicase/u16-is-casefolded.c: New file.
45976         * modules/unicase/u16-is-casefolded: New file.
45977
45978         New module 'unicase/u8-is-casefolded'.
45979         * lib/unicase/u8-is-casefolded.c: New file.
45980         * modules/unicase/u8-is-casefolded: New file.
45981
45982         Tests for module 'unicase/u32-is-titlecase'.
45983         * modules/unicase/u32-is-titlecase-tests: New file.
45984         * tests/unicase/test-u32-is-titlecase.c: New file.
45985
45986         Tests for module 'unicase/u16-is-titlecase'.
45987         * modules/unicase/u16-is-titlecase-tests: New file.
45988         * tests/unicase/test-u16-is-titlecase.c: New file.
45989
45990         Tests for module 'unicase/u8-is-titlecase'.
45991         * modules/unicase/u8-is-titlecase-tests: New file.
45992         * tests/unicase/test-u8-is-titlecase.c: New file.
45993         * tests/unicase/test-is-titlecase.h: New file.
45994
45995         New module 'unicase/u32-is-titlecase'.
45996         * lib/unicase/u32-is-titlecase.c: New file.
45997         * modules/unicase/u32-is-titlecase: New file.
45998
45999         New module 'unicase/u16-is-titlecase'.
46000         * lib/unicase/u16-is-titlecase.c: New file.
46001         * modules/unicase/u16-is-titlecase: New file.
46002
46003         New module 'unicase/u8-is-titlecase'.
46004         * lib/unicase/u8-is-titlecase.c: New file.
46005         * modules/unicase/u8-is-titlecase: New file.
46006
46007         Tests for module 'unicase/u32-is-lowercase'.
46008         * modules/unicase/u32-is-lowercase-tests: New file.
46009         * tests/unicase/test-u32-is-lowercase.c: New file.
46010
46011         Tests for module 'unicase/u16-is-lowercase'.
46012         * modules/unicase/u16-is-lowercase-tests: New file.
46013         * tests/unicase/test-u16-is-lowercase.c: New file.
46014
46015         Tests for module 'unicase/u8-is-lowercase'.
46016         * modules/unicase/u8-is-lowercase-tests: New file.
46017         * tests/unicase/test-u8-is-lowercase.c: New file.
46018         * tests/unicase/test-is-lowercase.h: New file.
46019
46020         New module 'unicase/u32-is-lowercase'.
46021         * lib/unicase/u32-is-lowercase.c: New file.
46022         * modules/unicase/u32-is-lowercase: New file.
46023
46024         New module 'unicase/u16-is-lowercase'.
46025         * lib/unicase/u16-is-lowercase.c: New file.
46026         * modules/unicase/u16-is-lowercase: New file.
46027
46028         New module 'unicase/u8-is-lowercase'.
46029         * lib/unicase/u8-is-lowercase.c: New file.
46030         * modules/unicase/u8-is-lowercase: New file.
46031
46032         Tests for module 'unicase/u32-is-uppercase'.
46033         * modules/unicase/u32-is-uppercase-tests: New file.
46034         * tests/unicase/test-u32-is-uppercase.c: New file.
46035
46036         Tests for module 'unicase/u16-is-uppercase'.
46037         * modules/unicase/u16-is-uppercase-tests: New file.
46038         * tests/unicase/test-u16-is-uppercase.c: New file.
46039
46040         Tests for module 'unicase/u8-is-uppercase'.
46041         * modules/unicase/u8-is-uppercase-tests: New file.
46042         * tests/unicase/test-u8-is-uppercase.c: New file.
46043         * tests/unicase/test-is-uppercase.h: New file.
46044
46045         New module 'unicase/u32-is-uppercase'.
46046         * lib/unicase/u32-is-uppercase.c: New file.
46047         * modules/unicase/u32-is-uppercase: New file.
46048
46049         New module 'unicase/u16-is-uppercase'.
46050         * lib/unicase/u16-is-uppercase.c: New file.
46051         * modules/unicase/u16-is-uppercase: New file.
46052
46053         New module 'unicase/u8-is-uppercase'.
46054         * lib/unicase/u8-is-uppercase.c: New file.
46055         * modules/unicase/u8-is-uppercase: New file.
46056
46057         New module 'unicase/u32-is-invariant'.
46058         * lib/unicase/u32-is-invariant.c: New file.
46059         * modules/unicase/u32-is-invariant: New file.
46060
46061         New module 'unicase/u16-is-invariant'.
46062         * lib/unicase/u16-is-invariant.c: New file.
46063         * modules/unicase/u16-is-invariant: New file.
46064
46065         New module 'unicase/u8-is-invariant'.
46066         * lib/unicase/u8-is-invariant.c: New file.
46067         * lib/unicase/invariant.h: New file.
46068         * lib/unicase/u-is-invariant.h: New file.
46069         * modules/unicase/u8-is-invariant: New file.
46070
46071         Tests for module 'unicase/u32-casecoll'.
46072         * modules/unicase/u32-casecoll-tests: New file.
46073         * tests/unicase/test-u32-casecoll.c: New file.
46074
46075         Tests for module 'unicase/u16-casecoll'.
46076         * modules/unicase/u16-casecoll-tests: New file.
46077         * tests/unicase/test-u16-casecoll.c: New file.
46078
46079         Tests for module 'unicase/u8-casecoll'.
46080         * modules/unicase/u8-casecoll-tests: New file.
46081         * tests/unicase/test-u8-casecoll.c: New file.
46082
46083         New module 'unicase/u32-casecoll'.
46084         * lib/unicase/u32-casecoll.c: New file.
46085         * modules/unicase/u32-casecoll: New file.
46086
46087         New module 'unicase/u16-casecoll'.
46088         * lib/unicase/u16-casecoll.c: New file.
46089         * modules/unicase/u16-casecoll: New file.
46090
46091         New module 'unicase/u8-casecoll'.
46092         * lib/unicase/u8-casecoll.c: New file.
46093         * lib/unicase/u-casecoll.h: New file.
46094         * modules/unicase/u8-casecoll: New file.
46095
46096         New module 'unicase/u32-casexfrm'.
46097         * lib/unicase/u32-casexfrm.c: New file.
46098         * modules/unicase/u32-casexfrm: New file.
46099
46100         New module 'unicase/u16-casexfrm'.
46101         * lib/unicase/u16-casexfrm.c: New file.
46102         * modules/unicase/u16-casexfrm: New file.
46103
46104         New module 'unicase/u8-casexfrm'.
46105         * lib/unicase/u8-casexfrm.c: New file.
46106         * lib/unicase/u-casexfrm.h: New file.
46107         * modules/unicase/u8-casexfrm: New file.
46108
46109         Tests for module 'unicase/u32-casecmp'.
46110         * modules/unicase/u32-casecmp-tests: New file.
46111         * tests/unicase/test-u32-casecmp.c: New file.
46112
46113         Tests for module 'unicase/u16-casecmp'.
46114         * modules/unicase/u16-casecmp-tests: New file.
46115         * tests/unicase/test-u16-casecmp.c: New file.
46116
46117         Tests for module 'unicase/u8-casecmp'.
46118         * modules/unicase/u8-casecmp-tests: New file.
46119         * tests/unicase/test-u8-casecmp.c: New file.
46120         * tests/unicase/test-casecmp.h: New file.
46121
46122         New module 'unicase/u32-casecmp'.
46123         * lib/unicase/u32-casecmp.c: New file.
46124         * modules/unicase/u32-casecmp: New file.
46125
46126         New module 'unicase/u16-casecmp'.
46127         * lib/unicase/u16-casecmp.c: New file.
46128         * modules/unicase/u16-casecmp: New file.
46129
46130         New module 'unicase/u8-casecmp'.
46131         * lib/unicase/u8-casecmp.c: New file.
46132         * lib/unicase/u-casecmp.h: New file.
46133         * modules/unicase/u8-casecmp: New file.
46134
46135         Tests for module 'unicase/u32-casefold'.
46136         * modules/unicase/u32-casefold-tests: New file.
46137         * tests/unicase/test-u32-casefold.c: New file.
46138
46139         Tests for module 'unicase/u16-casefold'.
46140         * modules/unicase/u16-casefold-tests: New file.
46141         * tests/unicase/test-u16-casefold.c: New file.
46142
46143         Tests for module 'unicase/u8-casefold'.
46144         * modules/unicase/u8-casefold-tests: New file.
46145         * tests/unicase/test-u8-casefold.c: New file.
46146
46147         New module 'unicase/u32-casefold'.
46148         * lib/unicase/u32-casefold.c: New file.
46149         * modules/unicase/u32-casefold: New file.
46150
46151         New module 'unicase/u16-casefold'.
46152         * lib/unicase/u16-casefold.c: New file.
46153         * modules/unicase/u16-casefold: New file.
46154
46155         New module 'unicase/u8-casefold'.
46156         * lib/unicase/u8-casefold.c: New file.
46157         * lib/unicase/u-casefold.h: New file.
46158         * modules/unicase/u8-casefold: New file.
46159
46160         New module 'unicase/tocasefold'.
46161         * lib/unicase/casefold.h: New file.
46162         * lib/unicase/tocasefold.c: New file.
46163         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46164         * modules/unicase/tocasefold: New file.
46165
46166         Tests for module 'unicase/u32-totitle'.
46167         * modules/unicase/u32-totitle-tests: New file.
46168         * tests/unicase/test-u32-totitle.c: New file.
46169
46170         Tests for module 'unicase/u16-totitle'.
46171         * modules/unicase/u16-totitle-tests: New file.
46172         * tests/unicase/test-u16-totitle.c: New file.
46173
46174         Tests for module 'unicase/u8-totitle'.
46175         * modules/unicase/u8-totitle-tests: New file.
46176         * tests/unicase/test-u8-totitle.c: New file.
46177
46178         New module 'unicase/u32-totitle'.
46179         * lib/unicase/u32-totitle.c: New file.
46180         * modules/unicase/u32-totitle: New file.
46181
46182         New module 'unicase/u16-totitle'.
46183         * lib/unicase/u16-totitle.c: New file.
46184         * modules/unicase/u16-totitle: New file.
46185
46186         New module 'unicase/u8-totitle'.
46187         * lib/unicase/u8-totitle.c: New file.
46188         * lib/unicase/u-totitle.h: New file.
46189         * modules/unicase/u8-totitle: New file.
46190
46191         Tests for module 'unicase/u32-tolower'.
46192         * modules/unicase/u32-tolower-tests: New file.
46193         * tests/unicase/test-u32-tolower.c: New file.
46194
46195         Tests for module 'unicase/u16-tolower'.
46196         * modules/unicase/u16-tolower-tests: New file.
46197         * tests/unicase/test-u16-tolower.c: New file.
46198
46199         Tests for module 'unicase/u8-tolower'.
46200         * modules/unicase/u8-tolower-tests: New file.
46201         * tests/unicase/test-u8-tolower.c: New file.
46202
46203         New module 'unicase/u32-tolower'.
46204         * lib/unicase/u32-tolower.c: New file.
46205         * modules/unicase/u32-tolower: New file.
46206
46207         New module 'unicase/u16-tolower'.
46208         * lib/unicase/u16-tolower.c: New file.
46209         * modules/unicase/u16-tolower: New file.
46210
46211         New module 'unicase/u8-tolower'.
46212         * lib/unicase/u8-tolower.c: New file.
46213         * modules/unicase/u8-tolower: New file.
46214
46215         Tests for module 'unicase/u32-toupper'.
46216         * modules/unicase/u32-toupper-tests: New file.
46217         * tests/unicase/test-u32-toupper.c: New file.
46218
46219         Tests for module 'unicase/u16-toupper'.
46220         * modules/unicase/u16-toupper-tests: New file.
46221         * tests/unicase/test-u16-toupper.c: New file.
46222
46223         Tests for module 'unicase/u8-toupper'.
46224         * modules/unicase/u8-toupper-tests: New file.
46225         * tests/unicase/test-u8-toupper.c: New file.
46226
46227         New module 'unicase/u32-toupper'.
46228         * lib/unicase/u32-toupper.c: New file.
46229         * modules/unicase/u32-toupper: New file.
46230
46231         New module 'unicase/u16-toupper'.
46232         * lib/unicase/u16-toupper.c: New file.
46233         * modules/unicase/u16-toupper: New file.
46234
46235         New module 'unicase/u8-toupper'.
46236         * lib/unicase/u8-toupper.c: New file.
46237         * modules/unicase/u8-toupper: New file.
46238
46239         New module 'unicase/u32-casemap'.
46240         * lib/unicase/u32-casemap.c: New file.
46241         * modules/unicase/u32-casemap: New file.
46242
46243         New module 'unicase/u16-casemap'.
46244         * lib/unicase/u16-casemap.c: New file.
46245         * modules/unicase/u16-casemap: New file.
46246
46247         New module 'unicase/u8-casemap'.
46248         * lib/unicase/unicasemap.h: New file.
46249         * lib/unicase/u8-casemap.c: New file.
46250         * lib/unicase/u-casemap.h: New file.
46251         * modules/unicase/u8-casemap: New file.
46252
46253         New module 'unicase/special-casing'.
46254         * lib/unicase/special-casing.h: New file.
46255         * lib/unicase/special-casing.c: New file.
46256         * lib/unicase/special-casing-table.gperf: New file, generated by
46257         gen-uni-tables.c.
46258         * modules/unicase/special-casing: New file.
46259
46260         Tests for module 'unicase/locale-language'.
46261         * modules/unicase/locale-language-tests: New file.
46262         * tests/unicase/test-locale-language.sh: New file.
46263         * tests/unicase/test-locale-language.c: New file.
46264
46265         New module 'unicase/locale-language'.
46266         * lib/unicase/locale-language.c: New file.
46267         * lib/unicase/locale-languages.gperf: New file.
46268         * modules/unicase/locale-language: New file.
46269
46270         Generate more tables for case conversion and case folding.
46271         * lib/gen-uni-tables.c (SCC_*): New enum items.
46272         (struct special_casing_rule): New type.
46273         (casing_rules, num_casing_rules, allocated_casing_rules): New
46274         variables.
46275         (add_casing_rule, fill_casing_rules): New functions.
46276         (struct casefold_rule): New type.
46277         (casefolding_rules, num_casefolding_rules,
46278         allocated_casefolding_rules): New variables.
46279         (fill_casefolding_rules): New function.
46280         (unicode_casefold): New variable.
46281         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46282         sort_casing_rules, output_casing_rules): New functions.
46283         (main): Accept to more arguments: SpecialCasing.txt and
46284         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46285         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46286         Output mapping for casefolding.
46287
46288         * lib/unicase.h: Include stdbool.h, uninorm.h.
46289         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46290         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46291         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46292         arguments.
46293         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46294         resultp arguments.
46295         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46296         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46297         resultp arguments.
46298         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46299         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46300         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46301         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46302         declarations.
46303         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46304
46305 2009-03-08  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46308         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46309         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46310         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46311
46312 2009-03-07  Bruno Haible  <bruno@clisp.org>
46313
46314         Adjust u*_normcmp, u*_normcoll API.
46315         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46316         u16_normcoll, u32_normcoll): Change failure conventions.
46317         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46318         errno and return -1.
46319         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46320
46321 2009-03-07  Bruno Haible  <bruno@clisp.org>
46322
46323         Tests for module 'uninorm/u32-normcoll'.
46324         * modules/uninorm/u32-normcoll-tests: New file.
46325         * tests/uninorm/test-u32-normcoll.c: New file.
46326
46327         Tests for module 'uninorm/u16-normcoll'.
46328         * modules/uninorm/u16-normcoll-tests: New file.
46329         * tests/uninorm/test-u16-normcoll.c: New file.
46330
46331         Tests for module 'uninorm/u8-normcoll'.
46332         * modules/uninorm/u8-normcoll-tests: New file.
46333         * tests/uninorm/test-u8-normcoll.c: New file.
46334
46335 2009-03-07  Bruno Haible  <bruno@clisp.org>
46336
46337         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46338         tests/uninorm/test-u32-normcmp.c.
46339         * tests/uninorm/test-u32-normcmp.c: Include it.
46340         (test_nonascii): New function, extracted from main. Add some more
46341         tests.
46342         (main): Invoke test_ascii and test_nonascii.
46343         * modules/uninorm/u32-normcmp-tests (Files): Add
46344         tests/uninorm/test-u32-normcmp.h.
46345         (Depends-on): Remove uninorm/u32-normcmp.
46346
46347         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46348         tests/uninorm/test-u16-normcmp.c.
46349         * tests/uninorm/test-u16-normcmp.c: Include it.
46350         (test_nonascii): New function, extracted from main. Add some more
46351         tests.
46352         (main): Invoke test_ascii and test_nonascii.
46353         * modules/uninorm/u16-normcmp-tests (Files): Add
46354         tests/uninorm/test-u16-normcmp.h.
46355         (Depends-on): Remove uninorm/u16-normcmp.
46356
46357         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46358         tests/uninorm/test-u8-normcmp.c.
46359         * tests/uninorm/test-u8-normcmp.c: Include it.
46360         (test_nonascii): New function, extracted from main. Add some more
46361         tests.
46362         (main): Invoke test_ascii and test_nonascii.
46363         * modules/uninorm/u8-normcmp-tests (Files): Add
46364         tests/uninorm/test-u8-normcmp.h.
46365         (Depends-on): Remove uninorm/u8-normcmp.
46366
46367 2009-03-07  Bruno Haible  <bruno@clisp.org>
46368
46369         New module 'uninorm/u32-normcoll'.
46370         * lib/uninorm/u32-normcoll.c: New file.
46371         * modules/uninorm/u32-normcoll: New file.
46372
46373         New module 'uninorm/u16-normcoll'.
46374         * lib/uninorm/u16-normcoll.c: New file.
46375         * modules/uninorm/u16-normcoll: New file.
46376
46377         New module 'uninorm/u8-normcoll'.
46378         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46379         declarations.
46380         * lib/uninorm/u8-normcoll.c: New file.
46381         * lib/uninorm/u-normcoll.h: New file.
46382         * modules/uninorm/u8-normcoll: New file.
46383
46384         New module 'uninorm/u32-normxfrm'.
46385         * lib/uninorm/u32-normxfrm.c: New file.
46386         * modules/uninorm/u32-normxfrm: New file.
46387
46388         New module 'uninorm/u16-normxfrm'.
46389         * lib/uninorm/u16-normxfrm.c: New file.
46390         * modules/uninorm/u16-normxfrm: New file.
46391
46392         New module 'uninorm/u8-normxfrm'.
46393         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46394         declarations.
46395         * lib/uninorm/u8-normxfrm.c: New file.
46396         * lib/uninorm/u-normxfrm.h: New file.
46397         * modules/uninorm/u8-normxfrm: New file.
46398
46399 2009-03-07  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46402         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46403         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46404
46405 2009-03-07  Bruno Haible  <bruno@clisp.org>
46406
46407         New module 'memxfrm'.
46408         * lib/memxfrm.h: New file.
46409         * lib/memxfrm.c: New file.
46410         * modules/memxfrm: New file.
46411
46412 2009-03-07  Bruno Haible  <bruno@clisp.org>
46413
46414         New module 'memcmp2'.
46415         * lib/memcmp2.h: New file.
46416         * lib/memcmp2.c: New file.
46417         * modules/memcmp2: New file.
46418
46419 2009-03-07  Bruno Haible  <bruno@clisp.org>
46420
46421         Tests for module 'uninorm/decomposing-form'.
46422         * modules/uninorm/decomposing-form-tests: New file.
46423         * tests/uninorm/test-decomposing-form.c: New file.
46424
46425         New module 'uninorm/decomposing-form'.
46426         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46427         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46428         Add 'decomposing_variant' field.
46429         * lib/uninorm/decomposing-form.c: New file.
46430         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46431         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46432         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46433         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46434         * modules/uninorm/decomposing-form: New file.
46435         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46436         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46437
46438 2009-03-07  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46441         strings.
46442
46443 2009-03-06  Bruno Haible  <bruno@clisp.org>
46444
46445         Tests for module 'uninorm/u32-normcmp'.
46446         * tests/uninorm/test-u32-normcmp.c: New file.
46447         * modules/uninorm/u32-normcmp-tests: New file.
46448
46449         Tests for module 'uninorm/u16-normcmp'.
46450         * tests/uninorm/test-u16-normcmp.c: New file.
46451         * modules/uninorm/u16-normcmp-tests: New file.
46452
46453         Tests for module 'uninorm/u8-normcmp'.
46454         * tests/uninorm/test-u8-normcmp.c: New file.
46455         * modules/uninorm/u8-normcmp-tests: New file.
46456
46457         New module 'uninorm/u32-normcmp'.
46458         * lib/uninorm/u32-normcmp.c: New file.
46459         * modules/uninorm/u32-normcmp: New file.
46460
46461         New module 'uninorm/u16-normcmp'.
46462         * lib/uninorm/u16-normcmp.c: New file.
46463         * modules/uninorm/u16-normcmp: New file.
46464
46465         New module 'uninorm/u8-normcmp'.
46466         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46467         declarations.
46468         * lib/uninorm/u8-normcmp.c: New file.
46469         * lib/uninorm/u-normcmp.h: New file.
46470         * modules/uninorm/u8-normcmp: New file.
46471
46472 2009-03-06  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46475         Reported by Eric Blake.
46476
46477 2009-03-06  Eric Blake  <ebb9@byu.net>
46478             Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46481         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46482         condition.
46483         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46484         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46485         condition.
46486         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46487
46488 2009-03-06  Eric Blake  <ebb9@byu.net>
46489
46490         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46491         to avoid compiler warnings.
46492         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46493
46494 2009-03-05  Bruno Haible  <bruno@clisp.org>
46495
46496         * tests/test-ftell.c (main): Disable test beyond end of file on
46497         FreeMiNT.
46498         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46499
46500 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46501
46502         * lib/filevercmp.c: Move hidden files up in ordering.
46503         * tests/test-filevercmp.c: Add tests for hidden files.
46504
46505 2009-03-04  Bruno Haible  <bruno@clisp.org>
46506
46507         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46508         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46509         AM_CFLAGS.
46510         Reported by Simon Josefsson.
46511
46512 2009-03-03  Bruno Haible  <bruno@clisp.org>
46513
46514         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46515         Reported by Simon Josefsson.
46516
46517         * doc/ld-version-script.texi: Update node reference.
46518
46519 2009-03-03  Bruno Haible  <bruno@clisp.org>
46520
46521         * modules/visibility (License): Change to 'unlimited'.
46522         Suggested by Simon Josefsson.
46523
46524 2009-03-03  Jim Meyering  <meyering@redhat.com>
46525
46526         unlinkdir: cannot_unlink_dir may modify process state
46527         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46528         it's neither thread-safe nor appropriate for use in a library.
46529
46530 2009-03-03  Eric Blake  <ebb9@byu.net>
46531
46532         test-closein: silence test under Darwin
46533         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46534         care if it dies from EPIPE or EBADF.
46535
46536 2009-03-03  Bruno Haible  <bruno@clisp.org>
46537
46538         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46539         earlier.
46540         * doc/visibility.texi: Fix @node and @section.
46541
46542 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46543
46544         * doc/gnulib.texi: Link to sections for ld version script and
46545         visibility.
46546         * doc/visibility.texi: Add @node and @section.
46547         * modules/ld-version-script: New module.
46548         * m4/ld-version-script.m4: New file.
46549         * doc/ld-version-script.texi: New file.
46550
46551 2009-03-02  David Lutterkort  <lutter@redhat.com>
46552
46553         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46555
46556 2009-03-02  Bruno Haible  <bruno@clisp.org>
46557
46558         * doc/visibility.texi: Mention libtool's -export-symbols option.
46559
46560 2009-03-02  Jim Meyering  <meyering@redhat.com>
46561
46562         announce-gen: new option: --no-print-checksums
46563         * build-aux/announce-gen (usage): Describe it.
46564         (print_checksums): Print a newline here, not in the [*] footnote.
46565         (main): Honor it.
46566
46567 2009-03-01  Bruno Haible  <bruno@clisp.org>
46568
46569         Use socklen_t in the native Windows replacements prototypes.
46570         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46571         instead of 'int'.
46572         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46573         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46574         * modules/getsockopt (Depends-on): Add socklen.
46575         * modules/setsockopt (Depends-on): Add socklen.
46576
46577 2009-03-01  Bruno Haible  <bruno@clisp.org>
46578
46579         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46580         least 4.2.
46581
46582 2009-03-01  Eric Blake  <ebb9@byu.net>
46583             Bruno Haible  <bruno@clisp.org>
46584
46585         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46586         error messages.
46587         * lib/wait-process.c (wait_subprocess): Omit error message about
46588         deadly signal sent to the child of termsigp != NULL.
46589
46590 2009-03-01  Eric Blake  <ebb9@byu.net>
46591
46592         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46593
46594 2009-03-01  Bruno Haible  <bruno@clisp.org>
46595
46596         Avoid a gcc warning.
46597         * tests/test-sched.c (b): Make global.
46598         Reported by Eric Blake.
46599
46600 2009-01-19  Martin Lambers  <marlam@marlam.de>
46601
46602         Provide POSIX semantics for socket timeout options on W32.
46603         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46604         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46605         * modules/setsockopt: Depend on sys_time module for struct timeval.
46606         * modules/getsockopt: Depend on sys_time module for struct timeval.
46607
46608 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46609
46610         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46611         __USE_GNU, for consistency with netdb.in.h.
46612         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46613
46614 2009-03-01  Bruno Haible  <bruno@clisp.org>
46615
46616         More support for FreeMiNT.
46617         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46618         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46619
46620 2009-03-01  Bruno Haible  <bruno@clisp.org>
46621
46622         More support for FreeMiNT.
46623         * lib/fpurge.c (fpurge): Correct last commit.
46624         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46625
46626 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46627
46628         Fix unportable awk script in vc-list-files.
46629         * build-aux/vc-list-files: In the replacement awk script, use
46630         substr with a second argument of 1, not zero.
46631         Report by Simon Josefsson.
46632
46633 2009-02-28  Bruno Haible  <bruno@clisp.org>
46634
46635         More support for FreeMiNT.
46636         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46637         to FreeMiNT today.
46638         * lib/fwriting.c (fwriting): Likewise.
46639         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46640
46641 2009-02-28  Bruno Haible  <bruno@clisp.org>
46642
46643         * tests/test-freadseek.c (main): Disable test beyond end of file on
46644         FreeMiNT.
46645         * tests/test-ftello.c (main): Likewise.
46646         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46647
46648 2009-02-28  Bruno Haible  <bruno@clisp.org>
46649
46650         Add tentative support for FreeMiNT.
46651         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46652         * lib/fpurge.c (fpurge): Likewise.
46653         * lib/freadable.c (freadable): Likewise.
46654         * lib/freading.c (freading): Likewise.
46655         * lib/freadptr.c (freadptr): Likewise.
46656         * lib/freadseek.c (freadptrinc): Likewise.
46657         * lib/fseeko.c (rpl_fseeko): Likewise.
46658         * lib/fseterr.c (fseterr): Likewise.
46659         * lib/fwritable.c (fwritable): Likewise.
46660         * lib/fwriting.c (fwriting): Likewise.
46661         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46662         Hourihane.
46663         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46664
46665 2009-02-28  Bruno Haible  <bruno@clisp.org>
46666
46667         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46668         SIGCHLD.
46669         Reported by Jim Meyering.
46670
46671 2009-02-28  Bruno Haible  <bruno@clisp.org>
46672
46673         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46674         Mention the results of these tests on various platforms.
46675         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46676         order.
46677         * doc/posix-functions/printf.texi: Likewise.
46678         * doc/posix-functions/snprintf.texi: Likewise.
46679         * doc/posix-functions/sprintf.texi: Likewise.
46680         * doc/posix-functions/vfprintf.texi: Likewise.
46681         * doc/posix-functions/vprintf.texi: Likewise.
46682         * doc/posix-functions/vsnprintf.texi: Likewise.
46683         * doc/posix-functions/vsprintf.texi: Likewise.
46684         * doc/glibc-functions/obstack_printf.texi: Likewise.
46685         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46686
46687 2009-02-28  Bruno Haible  <bruno@clisp.org>
46688
46689         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46690         Reported by Loïc Minier <lool@dooz.org>.
46691
46692 2009-02-27  Bruno Haible  <bruno@clisp.org>
46693
46694         * gnulib-tool (func_import): Make the sed expression used to create the
46695         sed script for updating the .gitignore file POSIX compliant.
46696         Reported by Eric Blake.
46697
46698 2009-02-27  Bruno Haible  <bruno@clisp.org>
46699
46700         * gnulib-tool (sed): Don't alias as "sed --posix".
46701         Reported by Eric Blake.
46702
46703 2009-02-27  Bruno Haible  <bruno@clisp.org>
46704
46705         Avoid test link errors.
46706         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46707         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46708         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46709         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46711
46712 2009-02-27  Bruno Haible  <bruno@clisp.org>
46713
46714         Avoid spurious "(cached)" in configure output.
46715         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46716         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46717         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46718         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46719         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46720         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46721         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46722         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46723         Reported by Eric Blake.
46724
46725 2009-02-27  Eric Blake  <ebb9@byu.net>
46726
46727         printf: fix regression in previous patch
46728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46729
46730 2009-02-27  Bruno Haible  <bruno@clisp.org>
46731
46732         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46733         value.
46734         * lib/stdint.in.h: Likewise.
46735         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46736
46737 2009-02-27  Eric Blake  <ebb9@byu.net>
46738
46739         doc: mention more functions added in cygwin 1.7.0
46740         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46741         addition.
46742         * doc/posix-functions/open_wmemstream.texi: Likewise.
46743         * doc/posix-functions/wcsnlen.texi: Likewise.
46744         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46745         * doc/posix-functions/wcstod.texi: Likewise.
46746         * doc/posix-functions/wcstof.texi: Likewise.
46747         * doc/posix-functions/wcstoimax.texi: Likewise.
46748         * doc/posix-functions/wcstok.texi: Likewise.
46749         * doc/posix-functions/wcstoumax.texi: Likewise.
46750
46751         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46753         * doc/posix-functions/fprintf.texi: Update.
46754         * doc/posix-functions/printf.texi: Update.
46755         * doc/posix-functions/snprintf.texi: Update.
46756         * doc/posix-functions/sprintf.texi: Update.
46757         * doc/posix-functions/vfprintf.texi: Update.
46758         * doc/posix-functions/vprintf.texi: Update.
46759         * doc/posix-functions/vsnprintf.texi: Update.
46760         * doc/posix-functions/vsprintf.texi: Update.
46761         * doc/glibc-functions/obstack_printf.texi: Update.
46762         * doc/glibc-functions/obstack_vprintf.texi: Update.
46763
46764 2009-02-26  Eric Blake  <ebb9@byu.net>
46765
46766         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46767         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46768         compilation bug by using runtime conversion.
46769         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46770         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46771         * modules/ceill-tests (Files): Use nan.h.
46772         * modules/floorl-tests (Files): Likewise.
46773         * modules/frexpl-tests (Files): Likewise.
46774         * modules/isnanl-tests (Files): Likewise.
46775         * modules/ldexpl-tests (Files): Likewise.
46776         * modules/roundl-tests (Files): Likewise.
46777         * modules/truncl-tests (Files): Likewise.
46778         * tests/test-ceill.c (main): Use a working NaN.
46779         * tests/test-floorl.c (main): Likewise.
46780         * tests/test-frexpl.c (main): Likewise.
46781         * tests/test-isnan.c (test_long_double): Likewise.
46782         * tests/test-isnanl.h (main): Likewise.
46783         * tests/test-ldexpl.h (main): Likewise.
46784         * tests/test-roundl.h (main): Likewise.
46785         * tests/test-truncl.h (main): Likewise.
46786         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46787
46788 2009-02-26  Eric Blake  <ebb9@byu.net>
46789             Bruno Haible  <bruno@clisp.org>
46790
46791         Work around a *printf bug with %ls on Solaris.
46792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46793         precision is specified, sprintf stops converting the wide string
46794         argument when the number of bytes that have been produced by this
46795         conversion equals or exceeds the precision.
46796         * doc/posix-functions/fprintf.texi: Update.
46797         * doc/posix-functions/printf.texi: Update.
46798         * doc/posix-functions/snprintf.texi: Update.
46799         * doc/posix-functions/sprintf.texi: Update.
46800         * doc/posix-functions/vfprintf.texi: Update.
46801         * doc/posix-functions/vprintf.texi: Update.
46802         * doc/posix-functions/vsnprintf.texi: Update.
46803         * doc/posix-functions/vsprintf.texi: Update.
46804         * doc/glibc-functions/obstack_printf.texi: Update.
46805         * doc/glibc-functions/obstack_vprintf.texi: Update.
46806
46807 2009-02-26  Eric Blake  <ebb9@byu.net>
46808
46809         stdlib: favor compiler check of random.h
46810         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46811         to avoid an ObjC random.h installed by Swarm.
46812
46813 2009-02-26  Bruno Haible  <bruno@clisp.org>
46814
46815         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46816         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46817         Reported by Gary V. Vaughan <gary@gnu.org>.
46818
46819 2009-02-26  Bruno Haible  <bruno@clisp.org>
46820
46821         Fix *printf behaviour regarding the %ls directive.
46822         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46823         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46824         NEED_PRINTF_DIRECTIVE_LS.
46825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46826         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46828         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46829         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46830         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46831         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46836         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46840         * doc/posix-functions/fprintf.texi: Update.
46841         * doc/posix-functions/printf.texi: Update.
46842         * doc/posix-functions/snprintf.texi: Update.
46843         * doc/posix-functions/sprintf.texi: Update.
46844         * doc/posix-functions/vfprintf.texi: Update.
46845         * doc/posix-functions/vprintf.texi: Update.
46846         * doc/posix-functions/vsnprintf.texi: Update.
46847         * doc/posix-functions/vsprintf.texi: Update.
46848         * doc/glibc-functions/obstack_printf.texi: Update.
46849         * doc/glibc-functions/obstack_vprintf.texi: Update.
46850         Reported by Eric Blake.
46851
46852 2009-02-25  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46855         with known value.
46856         Reported by Gary V. Vaughan <gary@gnu.org>.
46857
46858 2009-02-25  Bruno Haible  <bruno@clisp.org>
46859
46860         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46861         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46862         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46863         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46864         Reported by Gary V. Vaughan <gary@gnu.org>.
46865
46866 2009-02-25  Bruno Haible  <bruno@clisp.org>
46867
46868         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46869         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46870         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46871         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46872         Reported by Gary V. Vaughan <gary@gnu.org>.
46873
46874 2009-02-25  Eric Blake  <ebb9@byu.net>
46875
46876         tests: skip fseek/ftell tests if ungetc is broken
46877         * m4/ungetc.m4: New file.
46878         * modules/fseek-tests: Split test, so ungetc dependency is
46879         separate from rest of test.
46880         * modules/fseeko-tests: Likewise.
46881         * modules/ftell-tests: Likewise.
46882         * modules/ftello-tests: Likewise.
46883         * tests/test-fseek.c (main): Isolate ungetc dependency.
46884         * tests/test-fseeko.c (main): Likewise.
46885         * tests/test-ftell.c (main): Likewise.
46886         * tests/test-ftello.c (main): Likewise.
46887         * tests/test-fseek2.sh: New file.
46888         * tests/test-fseeko2.sh: Likewise.
46889         * tests/test-ftell2.sh: Likewise.
46890         * tests/test-ftello2.sh: Likewise.
46891
46892 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46893
46894         test-getaddrinfo: fix usage of skip return code 77
46895         * tests/test-gettaddrinfo.c: Return skip code 77 only
46896         for first occurance of skip (4x77 is not 77)
46897
46898 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46899
46900         strtod: avoid C99 decl-after-statement
46901         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46902
46903 2009-02-24  Eric Blake  <ebb9@byu.net>
46904
46905         strtod: detect HP-UX 11.31 bug
46906         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46907         Reported by Gary V. Vaughan.
46908
46909 2009-02-23  Bruno Haible  <bruno@clisp.org>
46910
46911         Fix invalid read past end of memory block.
46912         * lib/vasnprintf.c (DCHAR_SET): Define.
46913         (local_wcslen): Define only when needed.
46914         (local_strnlen, local_wcsnlen): New functions.
46915         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46916         directives that involve a conversion ourselves.
46917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46918         wcsnlen, mbrtowc, wcrtomb.
46919         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46920         * tests/test-vasprintf-posix.c (test_function): Likewise.
46921         * tests/test-snprintf-posix.h (test_function): Likewise.
46922         * tests/test-sprintf-posix.h (test_function): Likewise.
46923         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46924
46925 2009-02-22  Bruno Haible  <bruno@clisp.org>
46926
46927         Implement new clarified decomposition of Hangul syllables.
46928         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46929         of type LTV, return only a pairwise decomposition.
46930         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46931         Likewise.
46932         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46933         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46934         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46935
46936 2009-02-22  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46939         zero-length results and shrink excess allocated memory.
46940         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46941         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46942         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46943         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46944         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46945         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46946         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46947         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46948         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46949         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46950         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46951         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46952
46953 2009-02-21  Bruno Haible  <bruno@clisp.org>
46954
46955         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46956         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46957         spaces after a period. Put a space between a macro name and its
46958         argument list. Trivial rewordings.
46959         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46960         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46961         (main): Return 0 explicitly.
46962
46963 2009-02-21  Bruno Haible  <bruno@clisp.org>
46964
46965         Tests for module 'uninorm/filter'.
46966         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46967         * modules/uninorm/filter-tests: New file.
46968
46969         New module 'uninorm/filter'.
46970         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46971         uninorm_filter_flush, uninorm_filter_free): New declarations.
46972         * lib/uninorm/uninorm-filter.c: New file.
46973         * modules/uninorm/filter: New file.
46974
46975 2009-02-21  Bruno Haible  <bruno@clisp.org>
46976
46977         Tests for module 'uninorm/nfkc'.
46978         * tests/uninorm/test-nfkc.c: New file.
46979         * tests/uninorm/test-u8-nfkc.c: New file.
46980         * tests/uninorm/test-u16-nfkc.c: New file.
46981         * tests/uninorm/test-u32-nfkc.c: New file.
46982         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46983         * tests/uninorm/test-u32-nfkc-big.c: New file.
46984         * modules/uninorm/nfkc-tests: New file.
46985
46986         New module 'uninorm/nfkc'.
46987         * lib/uninorm/nfkc.c: New file.
46988         * modules/uninorm/nfkc: New file.
46989
46990         Tests for module 'uninorm/nfkd'.
46991         * tests/uninorm/test-nfkd.c: New file.
46992         * tests/uninorm/test-u8-nfkd.c: New file.
46993         * tests/uninorm/test-u16-nfkd.c: New file.
46994         * tests/uninorm/test-u32-nfkd.c: New file.
46995         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46996         * tests/uninorm/test-u32-nfkd-big.c: New file.
46997         * modules/uninorm/nfkd-tests: New file.
46998
46999         New module 'uninorm/nfkd'.
47000         * lib/uninorm/nfkd.c: New file.
47001         * modules/uninorm/nfkd: New file.
47002
47003         Tests for module 'uninorm/nfc'.
47004         * tests/uninorm/test-nfc.c: New file.
47005         * tests/uninorm/test-u8-nfc.c: New file.
47006         * tests/uninorm/test-u16-nfc.c: New file.
47007         * tests/uninorm/test-u32-nfc.c: New file.
47008         * tests/uninorm/test-u32-nfc-big.sh: New file.
47009         * tests/uninorm/test-u32-nfc-big.c: New file.
47010         * modules/uninorm/nfc-tests: New file.
47011
47012         New module 'uninorm/nfc'.
47013         * lib/uninorm/nfc.c: New file.
47014         * modules/uninorm/nfc: New file.
47015
47016         Tests for module 'uninorm/nfd'.
47017         * tests/uninorm/test-nfd.c: New file.
47018         * tests/uninorm/test-u8-nfd.c: New file.
47019         * tests/uninorm/test-u16-nfd.c: New file.
47020         * tests/uninorm/test-u32-nfd.c: New file.
47021         * tests/uninorm/test-u32-nfd-big.sh: New file.
47022         * tests/uninorm/test-u32-nfd-big.c: New file.
47023         * tests/uninorm/test-u32-normalize-big.h: New file.
47024         * tests/uninorm/test-u32-normalize-big.c: New file.
47025         * tests/uninorm/NormalizationTest.txt: New file, created from
47026         Unicode 5.1.0 NormalizationTest.txt.
47027         * modules/uninorm/nfd-tests: New file.
47028
47029         New module 'uninorm/nfd'.
47030         * lib/uninorm/nfd.c: New file.
47031         * modules/uninorm/nfd: New file.
47032
47033         New module 'uninorm/u32-normalize'.
47034         * lib/uninorm/u32-normalize.c: New file.
47035         * modules/uninorm/u32-normalize: New file.
47036
47037         New module 'uninorm/u16-normalize'.
47038         * lib/uninorm/u16-normalize.c: New file.
47039         * modules/uninorm/u16-normalize: New file.
47040
47041         New module 'uninorm/u8-normalize'.
47042         * lib/uninorm/u8-normalize.c: New file.
47043         * lib/uninorm/normalize-internal.h: New file.
47044         * lib/uninorm/u-normalize-internal.h: New file.
47045         * modules/uninorm/u8-normalize: New file.
47046
47047         New module 'uninorm/decompose-internal'.
47048         * lib/uninorm/decompose-internal.c: New file.
47049         * modules/uninorm/decompose-internal: New file.
47050
47051         Tests for module 'uninorm/composition'.
47052         * tests/uninorm/test-composition.c: New file.
47053         * modules/uninorm/composition-tests: New file.
47054
47055         New module 'uninorm/composition'.
47056         * lib/uninorm/composition.c: New file.
47057         * lib/uninorm/composition-table.gperf: New file, generated by
47058         gen-uni-tables.
47059         * modules/uninorm/composition: New file.
47060
47061         Tests for module 'uninorm/compat-decomposition'.
47062         * tests/uninorm/test-compat-decomposition.c: New file.
47063         * modules/uninorm/compat-decomposition-tests: New file.
47064
47065         New module 'uninorm/compat-decomposition'.
47066         * lib/uninorm/decompose-internal.h: New file.
47067         * lib/uninorm/compat-decomposition.c: New file.
47068         * modules/uninorm/compat-decomposition: New file.
47069
47070         Tests for module 'uninorm/canonical-decomposition'.
47071         * tests/uninorm/test-canonical-decomposition.c: New file.
47072         * modules/uninorm/canonical-decomposition-tests: New file.
47073
47074         New module 'uninorm/canonical-decomposition'.
47075         * lib/uninorm/canonical-decomposition.c: New file.
47076         * modules/uninorm/canonical-decomposition: New file.
47077
47078         Tests for module 'uninorm/decomposition'.
47079         * tests/uninorm/test-decomposition.c: New file.
47080         * modules/uninorm/decomposition-tests: New file.
47081
47082         New module 'uninorm/decomposition'.
47083         * lib/uninorm/decomposition.c: New file.
47084         * modules/uninorm/decomposition: New file.
47085
47086         New module 'uninorm/decomposition-table'.
47087         * lib/uninorm/decomposition-table.h: New file.
47088         * lib/uninorm/decomposition-table.c: New file.
47089         * lib/uninorm/decomposition-table1.h: New file, generated by
47090         gen-uni-tables.
47091         * lib/uninorm/decomposition-table2.h: New file, generated by
47092         gen-uni-tables.
47093         * modules/uninorm/decomposition-table: New file.
47094
47095         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47096         (UC_DECOMP_*): New enumeration items.
47097         (get_decomposition): New function.
47098         (struct decomp_table): New type.
47099         (output_decomposition, output_decomposition_tables): New functions.
47100         (unicode_composition_exclusions): New variable.
47101         (fill_composition_exclusions, debug_output_composition_tables): New
47102         functions.
47103         (main): Accept one more argument. Invoke fill_composition_exclusions.
47104         Output decomposition and composition tables.
47105
47106         New module 'uninorm/base'.
47107         * lib/uninorm.h: New file.
47108         * lib/unictype.h: Update comment.
47109         * modules/uninorm/base: New file.
47110
47111 2009-02-21  David Lutterkort  <lutter@redhat.com>
47112
47113         Tests for module 'safe-alloc'.
47114         * tests/test-safe-alloc.c: New file.
47115         * modules/safe-alloc-tests: New file.
47116
47117         New module 'safe-alloc'.
47118         * lib/safe-alloc.h: New file.
47119         * lib/safe-alloc.c: New file.
47120         * m4/safe-alloc.m4: New file.
47121         * modules/safe-alloc: New file.
47122         * doc/safe-alloc.texi: New file.
47123         * doc/gnulib.texi: Include it.
47124         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47125         safe-alloc.
47126
47127 2009-02-18  Bruno Haible  <bruno@clisp.org>
47128
47129         Fix link error on non-glibc systems.
47130         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47131         variable.
47132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47133
47134 2009-02-18  Jim Meyering  <meyering@redhat.com>
47135
47136         fts: avoid used-uninitialized error due to recent change
47137         * lib/fts.c (fts_read): Guard uses of the new member,
47138         parent->fts_n_dirs_remaining, since it's not relevant for
47139         the parent of a directory specified on the command-line.
47140
47141 2009-02-17  James Youngman  <jay@gnu.org>
47142             Bruno Haible  <bruno@clisp.org>
47143
47144         * m4/include_next.m4: Reformulate comment.
47145
47146 2009-02-16  Jim Meyering  <meyering@redhat.com>
47147
47148         fts: add #if guards so that the fts_lgpl module still builds
47149         * lib/fts.c: Guard just-added hash-table-using parts with
47150         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47151         Reported by Simon Josefsson.
47152
47153 2009-02-15  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/array-mergesort-tests: New file.
47156         * tests/test-array-mergesort.c: New file.
47157
47158         New module 'array-mergesort'.
47159         * modules/array-mergesort: New file.
47160         * lib/array-mergesort.h: New file.
47161
47162 2009-02-15  Bruno Haible  <bruno@clisp.org>
47163
47164         Fix 2009-02-07 commit.
47165         * lib/gen-uni-tables.c (output_predicate, output_category,
47166         output_combclass, output_bidi_category, output_decimal_digit,
47167         output_digit, output_numeric, output_mirror, output_scripts,
47168         output_ident_category, output_simple_mapping): Fix format directives.
47169         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47170
47171 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47172
47173         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47174         fixes are available from IBM.
47175
47176 2009-02-13  Jim Meyering  <meyering@redhat.com>
47177
47178         fts: arrange not to stat non-directories in more cases
47179         This makes GNU find (when it doesn't need to stat each file)
47180         *much* more efficient at traversing reiserfs file systems.
47181         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47182         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47183         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47184         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47185         (leaf_optimization_applies): New function.
47186         (LCO_hash, LCO_compare): New helper functions.
47187         (link_count_optimize_ok): New function.
47188         (fts_stat): Initialize new member (if dir).
47189         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47190         we've just stat'ed a directory.  Skip the stat call when possible.
47191         ---
47192         Note this AFS-related exchange:
47193         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47194         and note find's pioctl call in find/fstype.c.
47195         But that is necessary only if you want to enable the
47196         optimization for AFS, and for now, I don't.
47197
47198         fts: move a function definition "up" (no semantic change)
47199         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47200         "up" to precede upcoming use of a related function.
47201
47202 2009-02-11  Jim Meyering  <meyering@redhat.com>
47203
47204         fts: correct internal computation of nlinks (optimization-related)
47205         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47206         whether the current entry is a directory, so don't test it.
47207
47208 2009-02-10  Bruno Haible  <bruno@clisp.org>
47209
47210         Tests for module 'uniwbrk/ulc-wordbreaks'.
47211         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47212         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47213         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47214
47215         Tests for module 'uniwbrk/u32-wordbreaks'.
47216         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47217         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47218
47219         Tests for module 'uniwbrk/u16-wordbreaks'.
47220         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47221         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47222
47223         Tests for module 'uniwbrk/u8-wordbreaks'.
47224         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47225         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47226
47227 2009-02-10  Bruno Haible  <bruno@clisp.org>
47228
47229         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47230         property.
47231         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47232         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47233         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47234
47235 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47236
47237         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47238         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47239
47240 2009-02-10  Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47243         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47244         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47245         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47246         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47247         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47248
47249 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47250
47251         * lib/sockets.h (gl_fd_to_handle): New function.
47252
47253         * tests/test-sockets.c: Call gl_fd_to_handle.
47254
47255 2009-02-09  Bruno Haible  <bruno@clisp.org>
47256
47257         * doc/havelib.texi: Document the conventions on bi-arch systems.
47258
47259 2009-02-08  Bruno Haible  <bruno@clisp.org>
47260
47261         Document the AC_LIB_LINKFLAGS macro.
47262         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47263         * doc/gnulib.texi: Include it.
47264
47265 2009-02-08  Bruno Haible  <bruno@clisp.org>
47266
47267         Fix wrong order of sections, compared to TOC.
47268         * doc/gnulib.texi: Include relocatable-maint.texi after the
47269         "Regular expressions" node, not before.
47270
47271 2009-02-08  Bruno Haible  <bruno@clisp.org>
47272
47273         Tests for module 'unicase/totitle'.
47274         * modules/unicase/totitle-tests: New file.
47275
47276         Tests for module 'unicase/tolower'.
47277         * modules/unicase/tolower-tests: New file.
47278
47279         Tests for module 'unicase/toupper'.
47280         * modules/unicase/toupper-tests: New file.
47281         * tests/unicase/test-mapping-part1.h: New file.
47282         * tests/unicase/test-mapping-part2.h: New file.
47283
47284         New module 'unicase/totitle'.
47285         * modules/unicase/totitle: New file.
47286         * lib/unicase/totitle.c: New file.
47287
47288         New module 'unicase/tolower'.
47289         * modules/unicase/tolower: New file.
47290         * lib/unicase/tolower.c: New file.
47291
47292         New module 'unicase/toupper'.
47293         * modules/unicase/toupper: New file.
47294         * lib/unicase/toupper.c: New file.
47295         * lib/unicase/simple-mapping.h: New file.
47296
47297         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47298         (mapping_table): New structure.
47299         (output_simple_mapping): New function.
47300         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47301         * modules/gen-uni-tables (Description): Update.
47302         * lib/unicase/toupper.h: New file, automatically generated by
47303         gen-uni-tables.
47304         * lib/unicase/tolower.h: New file, automatically generated by
47305         gen-uni-tables.
47306         * lib/unicase/totitle.h: New file, automatically generated by
47307         gen-uni-tables.
47308         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47309         gen-uni-tables.
47310         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47311         gen-uni-tables.
47312         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47313         gen-uni-tables.
47314
47315         New module 'unicase/base'.
47316         * modules/unicase/base: New file.
47317         * lib/unicase.h: New file.
47318
47319 2009-02-08  Bruno Haible  <bruno@clisp.org>
47320
47321         New module 'uniwbrk/ulc-wordbreaks'.
47322         * modules/uniwbrk/ulc-wordbreaks: New file.
47323         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47324
47325         New module 'uniwbrk/u32-wordbreaks'.
47326         * modules/uniwbrk/u32-wordbreaks: New file.
47327         * lib/uniwbrk/u32-wordbreaks.c: New file.
47328
47329         New module 'uniwbrk/u16-wordbreaks'.
47330         * modules/uniwbrk/u16-wordbreaks: New file.
47331         * lib/uniwbrk/u16-wordbreaks.c: New file.
47332
47333         New module 'uniwbrk/u8-wordbreaks'.
47334         * modules/uniwbrk/u8-wordbreaks: New file.
47335         * lib/uniwbrk/u8-wordbreaks.c: New file.
47336         * lib/uniwbrk/u-wordbreaks.h: New file.
47337
47338         New module 'uniwbrk/table'.
47339         * modules/uniwbrk/table: New file.
47340         * lib/uniwbrk/wbrktable.h: New file.
47341         * lib/uniwbrk/wbrktable.c: New file.
47342
47343         New module 'uniwbrk/wordbreak-property'.
47344         * modules/uniwbrk/wordbreak-property: New file.
47345         * lib/uniwbrk/wordbreak-property.c: New file.
47346
47347         * lib/gen-uni-tables.c (WBP_*): New enum items.
47348         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47349         (unicode_org_wbp): New variable.
47350         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47351         New functions.
47352         (wbp_table): New structure.
47353         (output_wbp, output_wbrk_tables): New functions.
47354         (main): Accept additional argument. Invoke fill_org_wbp,
47355         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47356         output_wbrk_tables.
47357         * modules/gen-uni-tables (Description): Update.
47358         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47359         gen-uni-tables.
47360
47361         New module 'uniwbrk/base'.
47362         * modules/uniwbrk/base: New file.
47363         * lib/uniwbrk.h: New file.
47364
47365 2009-02-08  Bruno Haible  <bruno@clisp.org>
47366
47367         Update to Unicode 5.1.0.
47368         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47369         U+2185..U+2188.
47370         (is_property_default_ignorable_code_point): Don't include characters
47371         of category Cc or Cs and not-a-characters.
47372         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47373         U+0D79, U+109E, U+109F, U+A60C.
47374         * lib/unictype/bidi_of.h: Regenerated.
47375         * lib/unictype/blocks.h: Regenerated.
47376         * lib/unictype/categ_C.h: Regenerated.
47377         * lib/unictype/categ_Cf.h: Regenerated.
47378         * lib/unictype/categ_Cn.h: Regenerated.
47379         * lib/unictype/categ_L.h: Regenerated.
47380         * lib/unictype/categ_Ll.h: Regenerated.
47381         * lib/unictype/categ_Lm.h: Regenerated.
47382         * lib/unictype/categ_Lo.h: Regenerated.
47383         * lib/unictype/categ_Lu.h: Regenerated.
47384         * lib/unictype/categ_M.h: Regenerated.
47385         * lib/unictype/categ_Mc.h: Regenerated.
47386         * lib/unictype/categ_Me.h: Regenerated.
47387         * lib/unictype/categ_Mn.h: Regenerated.
47388         * lib/unictype/categ_N.h: Regenerated.
47389         * lib/unictype/categ_Nd.h: Regenerated.
47390         * lib/unictype/categ_Nl.h: Regenerated.
47391         * lib/unictype/categ_No.h: Regenerated.
47392         * lib/unictype/categ_P.h: Regenerated.
47393         * lib/unictype/categ_Pd.h: Regenerated.
47394         * lib/unictype/categ_Pe.h: Regenerated.
47395         * lib/unictype/categ_Pf.h: Regenerated.
47396         * lib/unictype/categ_Pi.h: Regenerated.
47397         * lib/unictype/categ_Po.h: Regenerated.
47398         * lib/unictype/categ_Ps.h: Regenerated.
47399         * lib/unictype/categ_S.h: Regenerated.
47400         * lib/unictype/categ_Sk.h: Regenerated.
47401         * lib/unictype/categ_Sm.h: Regenerated.
47402         * lib/unictype/categ_So.h: Regenerated.
47403         * lib/unictype/categ_of.h: Regenerated.
47404         * lib/unictype/combining.h: Regenerated.
47405         * lib/unictype/ctype_alnum.h: Regenerated.
47406         * lib/unictype/ctype_alpha.h: Regenerated.
47407         * lib/unictype/ctype_graph.h: Regenerated.
47408         * lib/unictype/ctype_lower.h: Regenerated.
47409         * lib/unictype/ctype_print.h: Regenerated.
47410         * lib/unictype/ctype_punct.h: Regenerated.
47411         * lib/unictype/ctype_upper.h: Regenerated.
47412         * lib/unictype/decdigit.h: Regenerated.
47413         * lib/unictype/digit.h: Regenerated.
47414         * lib/unictype/mirror.h: Regenerated.
47415         * lib/unictype/numeric.h: Regenerated.
47416         * lib/unictype/pr_alphabetic.h: Regenerated.
47417         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47418         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47419         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47420         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47421         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47422         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47423         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47424         * lib/unictype/pr_combining.h: Regenerated.
47425         * lib/unictype/pr_dash.h: Regenerated.
47426         * lib/unictype/pr_decimal_digit.h: Regenerated.
47427         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47428         * lib/unictype/pr_deprecated.h: Regenerated.
47429         * lib/unictype/pr_diacritic.h: Regenerated.
47430         * lib/unictype/pr_extender.h: Regenerated.
47431         * lib/unictype/pr_format_control.h: Regenerated.
47432         * lib/unictype/pr_grapheme_base.h: Regenerated.
47433         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47434         * lib/unictype/pr_grapheme_link.h: Regenerated.
47435         * lib/unictype/pr_id_continue.h: Regenerated.
47436         * lib/unictype/pr_id_start.h: Regenerated.
47437         * lib/unictype/pr_ideographic.h: Regenerated.
47438         * lib/unictype/pr_ignorable_control.h: Regenerated.
47439         * lib/unictype/pr_lowercase.h: Regenerated.
47440         * lib/unictype/pr_math.h: Regenerated.
47441         * lib/unictype/pr_numeric.h: Regenerated.
47442         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47443         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47444         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47445         * lib/unictype/pr_other_id_continue.h: Regenerated.
47446         * lib/unictype/pr_other_lowercase.h: Regenerated.
47447         * lib/unictype/pr_other_math.h: Regenerated.
47448         * lib/unictype/pr_punctuation.h: Regenerated.
47449         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47450         * lib/unictype/pr_soft_dotted.h: Regenerated.
47451         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47452         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47453         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47454         * lib/unictype/pr_uppercase.h: Regenerated.
47455         * lib/unictype/pr_xid_continue.h: Regenerated.
47456         * lib/unictype/pr_xid_start.h: Regenerated.
47457         * lib/unictype/pr_zero_width.h: Regenerated.
47458         * lib/unictype/scripts.h: Regenerated.
47459         * lib/unictype/scripts_byname.gperf: Regenerated.
47460         * lib/unictype/sy_java_ident.h: Regenerated.
47461         * lib/unilbrk/lbrkprop1.h: Regenerated.
47462         * lib/unilbrk/lbrkprop2.h: Regenerated.
47463         * tests/unictype/test-categ_C.c: Regenerated.
47464         * tests/unictype/test-categ_Cf.c: Regenerated.
47465         * tests/unictype/test-categ_Cn.c: Regenerated.
47466         * tests/unictype/test-categ_L.c: Regenerated.
47467         * tests/unictype/test-categ_Ll.c: Regenerated.
47468         * tests/unictype/test-categ_Lm.c: Regenerated.
47469         * tests/unictype/test-categ_Lo.c: Regenerated.
47470         * tests/unictype/test-categ_Lu.c: Regenerated.
47471         * tests/unictype/test-categ_M.c: Regenerated.
47472         * tests/unictype/test-categ_Mc.c: Regenerated.
47473         * tests/unictype/test-categ_Me.c: Regenerated.
47474         * tests/unictype/test-categ_Mn.c: Regenerated.
47475         * tests/unictype/test-categ_N.c: Regenerated.
47476         * tests/unictype/test-categ_Nd.c: Regenerated.
47477         * tests/unictype/test-categ_Nl.c: Regenerated.
47478         * tests/unictype/test-categ_No.c: Regenerated.
47479         * tests/unictype/test-categ_P.c: Regenerated.
47480         * tests/unictype/test-categ_Pd.c: Regenerated.
47481         * tests/unictype/test-categ_Pe.c: Regenerated.
47482         * tests/unictype/test-categ_Pf.c: Regenerated.
47483         * tests/unictype/test-categ_Pi.c: Regenerated.
47484         * tests/unictype/test-categ_Po.c: Regenerated.
47485         * tests/unictype/test-categ_Ps.c: Regenerated.
47486         * tests/unictype/test-categ_S.c: Regenerated.
47487         * tests/unictype/test-categ_Sk.c: Regenerated.
47488         * tests/unictype/test-categ_Sm.c: Regenerated.
47489         * tests/unictype/test-categ_So.c: Regenerated.
47490         * tests/unictype/test-ctype_alnum.c: Regenerated.
47491         * tests/unictype/test-ctype_alpha.c: Regenerated.
47492         * tests/unictype/test-ctype_graph.c: Regenerated.
47493         * tests/unictype/test-ctype_lower.c: Regenerated.
47494         * tests/unictype/test-ctype_print.c: Regenerated.
47495         * tests/unictype/test-ctype_punct.c: Regenerated.
47496         * tests/unictype/test-ctype_upper.c: Regenerated.
47497         * tests/unictype/test-decdigit.h: Regenerated.
47498         * tests/unictype/test-digit.h: Regenerated.
47499         * tests/unictype/test-numeric.h: Regenerated.
47500         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47501         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47502         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47503         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47504         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47505         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47506         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47507         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47508         * tests/unictype/test-pr_combining.c: Regenerated.
47509         * tests/unictype/test-pr_dash.c: Regenerated.
47510         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47511         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47512         * tests/unictype/test-pr_deprecated.c: Regenerated.
47513         * tests/unictype/test-pr_diacritic.c: Regenerated.
47514         * tests/unictype/test-pr_extender.c: Regenerated.
47515         * tests/unictype/test-pr_format_control.c: Regenerated.
47516         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47517         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47518         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47519         * tests/unictype/test-pr_id_continue.c: Regenerated.
47520         * tests/unictype/test-pr_id_start.c: Regenerated.
47521         * tests/unictype/test-pr_ideographic.c: Regenerated.
47522         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47523         * tests/unictype/test-pr_lowercase.c: Regenerated.
47524         * tests/unictype/test-pr_math.c: Regenerated.
47525         * tests/unictype/test-pr_numeric.c: Regenerated.
47526         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47527         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47528         Regenerated.
47529         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47530         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47531         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47532         * tests/unictype/test-pr_other_math.c: Regenerated.
47533         * tests/unictype/test-pr_punctuation.c: Regenerated.
47534         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47535         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47536         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47537         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47538         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47539         * tests/unictype/test-pr_uppercase.c: Regenerated.
47540         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47541         * tests/unictype/test-pr_xid_start.c: Regenerated.
47542         * tests/unictype/test-pr_zero_width.c: Regenerated.
47543
47544         Update to Unicode 5.1.0.
47545         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47546         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47547         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47548         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47549         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47550         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47551         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47552         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47553         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47554         (nonspacing_table_ind): Update.
47555         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47556
47557         Update to Unicode 5.1.0.
47558         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47559         code transform.
47560         * lib/uniname/uniname.c (unicode_character_name,
47561         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47562         * lib/uniname/uninames.h: Regenerated.
47563         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47564
47565 2009-02-07  Bruno Haible  <bruno@clisp.org>
47566
47567         Merge gen-ctype and gen-lbrk into a single program.
47568         * lib/gen-uni-tables.c: New file, incorporating
47569         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47570         Add directory prefixes to the names of the generated files.
47571         * lib/unictype/gen-ctype.c: Remove file.
47572         * lib/unilbrk/gen-lbrk.c: Remove file.
47573         * modules/gen-uni-tables: New file.
47574         * modules/unictype/gen-ctype: Remove file.
47575         * modules/unilbrk/gen-lbrk: Remove file.
47576
47577 2009-02-07  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47580
47581         New module 'unistr/u32-strcoll'.
47582         * modules/unistr/u32-strcoll: New file.
47583         * lib/unistr/u32-strcoll.c: New file.
47584
47585         New module 'unistr/u16-strcoll'.
47586         * modules/unistr/u16-strcoll: New file.
47587         * lib/unistr/u16-strcoll.c: New file.
47588
47589         New module 'unistr/u8-strcoll'.
47590         * modules/unistr/u8-strcoll: New file.
47591         * lib/unistr/u8-strcoll.c: New file.
47592         * lib/unistr/u-strcoll.h: New file.
47593
47594 2009-02-07  Bruno Haible  <bruno@clisp.org>
47595
47596         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47597         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47598         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47599         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47600         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47601         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47602
47603 2009-02-07  Bruno Haible  <bruno@clisp.org>
47604
47605         Make 64-bit clean.
47606         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47607         output_combclass, output_bidi_category, output_decimal_digit,
47608         output_digit, output_numeric, output_mirror, output_scripts,
47609         output_ident_category): Use proper width specifier in format strings.
47610
47611 2009-02-07  Bruno Haible  <bruno@clisp.org>
47612
47613         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47614         failure behaviour.
47615
47616 2009-02-07  Jim Meyering  <meyering@redhat.com>
47617
47618         regex: avoid compilation failure with upcoming gcc-4.4
47619         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47620         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47621         "... error: integer overflow in preprocessor expression".
47622
47623 2009-02-05  Ben Pfaff  <blp@gnu.org>
47624
47625         Fix link errors on Windows when close module is used.
47626         * modules/close: Add $(LIB_CLOSE) to Link section.
47627         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47628         $(LIB_CLOSE) on Windows.
47629
47630 2009-02-05  Jim Meyering  <meyering@redhat.com>
47631
47632         still avoid unused-parameter warnings, but do it cleanly
47633         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47634         (get_fs_usage): Cast to void instead.
47635         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47636         (dev_from_mount_options, read_file_system_list): Cast to void.
47637         Prompted by Bruno Haible.
47638
47639 2009-02-04  Jim Meyering  <meyering@redhat.com>
47640
47641         fsusage.c: correct copyright year
47642         * lib/fsusage.c: Reflect year in which the change is pushed into
47643
47644         avoid misc. warnings
47645         * lib/fsusage.c (UNUSED_PARAM): Define.
47646         (get_fs_usage): Mark parameter "disk" as unused.
47647         * lib/getugroups.c (getgrent): Use "void" in prototype.
47648         * lib/mountlist.c: Mark unused parameters.
47649         (read_file_system_list): Declare a local with "const".
47650         * lib/nanosleep.c (getnow): Declare static.
47651         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47652
47653         dirfd: set errno upon failure
47654         * lib/dirfd.c: Include <errno.h>.
47655         Set errno to ENOTSUP when returning -1.
47656         * modules/dirfd (Depends-on): Add errno.
47657         Suggested by John Kodis <kodis@comcast.net>.
47658
47659 2009-02-01  Bruno Haible  <bruno@clisp.org>
47660
47661         Don't assume sizeof (long) >= sizeof (void *).
47662         * lib/memcmp.c: Include stdint.h.
47663         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47664         srcp2 to 'const byte *'.
47665         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47666         types to uintptr_t.
47667         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47668         * modules/memcmp (Depends-on): Add stdint.
47669         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47670
47671 2009-01-30  Eric Blake  <ebb9@byu.net>
47672
47673         fix more require-before-expand issues
47674         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47675         expand, AC_PROG_AWK.
47676         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47677
47678 2009-01-28  Eric Blake  <ebb9@byu.net>
47679
47680         version-etc: use consistent URL formatting
47681         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47682         Improve formatting.  Use fputs for string without %.
47683
47684 2009-01-28  Jim Meyering  <meyering@redhat.com>
47685
47686         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47687         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47688         "underquoted definition of NAME" from autoconf-2.59.
47689
47690 2009-01-28  Bruno Haible  <bruno@clisp.org>
47691
47692         * doc/gnulib.texi: Add "Obsolete modules" to index.
47693
47694 2009-01-28  Jim Meyering  <meyering@redhat.com>
47695
47696         useless-if-before-free: recognize more variants
47697         * build-aux/useless-if-before-free: Also recognize e.g.,
47698         if (NULL != p) free (p);
47699
47700 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47701
47702         test-getaddrinfo: skip (don't fail) this test when there's no network
47703         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47704         on the presumption that it means you lack network access.
47705
47706 2009-01-26  Jim Meyering  <meyering@redhat.com>
47707
47708         fflush: avoid warnings on modern systems
47709         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47710         pos and result, into scopes where they're used.
47711
47712 2009-01-26  Eric Blake  <ebb9@byu.net>
47713
47714         Silence warning reintroduced by recent extensions patch.
47715         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47716         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47717         autoconf.
47718
47719         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47720         * m4/00gnulib.m4: New file.
47721         * gnulib-tool (func_get_filelist): Always use it.
47722         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47723         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47724
47725 2009-01-25  Bruno Haible  <bruno@clisp.org>
47726
47727         Make test-quotearg work on MacOS X and AIX.
47728         * tests/test-quotearg.sh: New file.
47729         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47730         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47731         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47732         include <libintl.h>.
47733         (fake_locale): Remove variable.
47734         (gettext, dgettext, dcgettext): Remove functions.
47735         (main): Instead of setting a fake locale, set a real locale. Call
47736         textdomain and bindtextdomain.
47737         * modules/quotearg-tests (Files): Add the new files.
47738         (Depends-on): Add gettext, setenv, unsetenv.
47739         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47740         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47741         Augment TESTS_ENVIRONMENT.
47742
47743 2009-01-25  Bruno Haible  <bruno@clisp.org>
47744
47745         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47746         fr_FR.ISO8859-1 locale on MacOS X.
47747         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47748         ja_JP.eucJP locale on MacOS X.
47749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47750         zh_CN.GB18030 locale on MacOS X.
47751
47752 2009-01-25  Bruno Haible  <bruno@clisp.org>
47753
47754         Avoid link errors on MacOS X 10.3.
47755         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47756         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47757
47758 2009-01-25  Bruno Haible  <bruno@clisp.org>
47759
47760         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47761         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47762         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47763         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47764         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47765         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47766         posix_spawnattr_init, posix_spawnattr_setsigmask,
47767         posix_spawnattr_setflags, posix_spawnattr_destroy.
47768
47769         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47770         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47771         * modules/execute (Files): Remove m4/posix_spawn.m4.
47772         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47773         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47774         posix_spawnattr_init, posix_spawnattr_setsigmask,
47775         posix_spawnattr_setflags, posix_spawnattr_destroy.
47776
47777 2009-01-25  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/glthread/threadlib.c: Include <stdlib.h>.
47780
47781 2009-01-25  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/glthread/threadlib.c (dummy): New declaration.
47784
47785 2009-01-25  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47788         multibyte characters also for the GB18030 encoding. Don't crash when
47789         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47790
47791 2009-01-25  Bruno Haible  <bruno@clisp.org>
47792
47793         Avoid redefining 'struct random_data' on OSF/1 5.1.
47794         * lib/stdlib.in.h: Include <random.h> if it exists.
47795         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47796         HAVE_RANDOM_H. Include <random.h> when testing whether
47797         'struct random_data' exists.
47798         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47799
47800 2009-01-25  Bruno Haible  <bruno@clisp.org>
47801
47802         Don't install charset.alias on MacOS X >= 10.3.
47803         * lib/localcharset.c (DARWIN7): New macro.
47804         (get_charset_aliases): Hardcode the result for Darwin7.
47805         * modules/localcharset (install-exec-local): Don't install
47806         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47807
47808 2009-01-25  Bruno Haible  <bruno@clisp.org>
47809
47810         Don't install charset.alias on mingw and Cygwin.
47811         * modules/localcharset (install-exec-local): Don't install
47812         charset.alias on mingw and Cygwin, if the file does not yet exist.
47813         The result for these platforms is hardcoded in localcharset.c.
47814
47815 2009-01-25  Bruno Haible  <bruno@clisp.org>
47816
47817         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47819         before requiring AC_USE_SYSTEM_EXTENSIONS.
47820
47821 2009-01-25  Jim Meyering  <meyering@redhat.com>
47822
47823         c-strtod: avoid warnings
47824         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47825         "assignment discards qualifiers from pointer target type" warnings.
47826
47827 2009-01-24  Bruno Haible  <bruno@clisp.org>
47828
47829         Add support for non-UTF-8 locales on MacOS X.
47830         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47831         canonical encodings. For Darwin 7 and newer, don't map traditional
47832         encodings to UTF-8.
47833         Reported by Vincent Lefevre <vincent@vinc17.org>
47834         at <http://savannah.gnu.org/bugs/?25235>.
47835
47836 2009-01-24  Bruno Haible  <bruno@clisp.org>
47837
47838         * doc/gnulib.texi (Obsolete modules): New section.
47839         Reported by Mike Frysinger <vapier@gentoo.org>.
47840
47841 2009-01-24  Bruno Haible  <bruno@clisp.org>
47842
47843         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47844         (%.dvi): New rule.
47845
47846 2009-01-24  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47849         Reported by Eric Blake.
47850
47851 2009-01-24  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47854         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47855         Reported by Gary V. Vaughan <gary@gnu.org>.
47856
47857 2009-01-24  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47860
47861 2009-01-23  Bruno Haible  <bruno@clisp.org>
47862
47863         Make c-strtod, c-strtold usable in libraries.
47864         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47865         (C_STRTOD): Call strdup instead of xstrdup.
47866         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47867         * modules/c-strtold (Depends-on): Likewise.
47868         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47869         * NEWS: Mention the change.
47870         Reported by Michael Gold <mgold@ncf.ca>.
47871
47872 2009-01-23  Jim Meyering  <meyering@redhat.com>
47873
47874         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47875         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47876         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47877
47878 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47879
47880         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47881         GNU CoreUtils.
47882         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47883         * modules/version-etc (Description): Update.
47884
47885 2009-01-22  Bruno Haible  <bruno@clisp.org>
47886
47887         Cache the C locale object.
47888         * lib/c-strtod.c (c_locale_cache): New variable.
47889         (c_locale): New function.
47890         (C_STRTOD): Use it, and don't call freelocale.
47891         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47892         Suggested by Paolo Bonzini.
47893
47894 2009-01-21  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47897         conditions other than overflow.
47898
47899 2009-01-21  Bruno Haible  <bruno@clisp.org>
47900
47901         * lib/c-strtod.c: Include errno.h.
47902         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47903         value from STRTOD_L and STRTOD.
47904
47905 2009-01-21  Bruno Haible  <bruno@clisp.org>
47906         and Jim Meyering  <meyering@redhat.com>
47907
47908         nanosleep: skip configure test (fail it) for apple universal builds
47909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47910         universal builds, assume that nanosleep does not work.
47911         * modules/nanosleep (Depends-on): Add multiarch.
47912
47913         mktime: skip configure test (fail it) for apple universal builds
47914         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47915         universal builds, assume that mktime does not work.
47916         * modules/mktime (Depends-on): Add multiarch.
47917
47918 2009-01-21  Eric Blake  <ebb9@byu.net>
47919
47920         multiarch: avoid expand-before-require warning
47921         * modules/multiarch (configure.ac): Require, rather than expand,
47922         gl_MULTIARCH.
47923         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47924         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47925         enforce that all clients require it.  Partial reversion of
47926         2008-12-29 patch.
47927
47928         error: avoid expand-before-require warning
47929         * modules/errno (configure.ac): Require, rather than expand,
47930         gl_HEADER_ERRNO_H.
47931         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47932         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47933         enforce that all clients require it.
47934
47935         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47936         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47937         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47938         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47939
47940 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47941
47942         Revert:
47943         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47944
47945         regex: do not depend on obsolete modules.
47946         * modules/regex: Remove memcmp and memmove.
47947
47948 2009-01-20  Bruno Haible  <bruno@clisp.org>
47949
47950         Make the 'link' module link on Windows NT 4.
47951         * lib/link.c (_WIN32_WINNT): Don't define.
47952         (CreateHardLinkFuncType): New type.
47953         (CreateHardLinkFunc, initialized): New variables.
47954         (initialize): New function.
47955         (link): Invoke CreateHardLink indirectly through the function pointer.
47956
47957 2009-01-20  Bruno Haible  <bruno@clisp.org>
47958
47959         Fix compilation failure on mingw.
47960         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47961
47962 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47963
47964         * doc/c-strtod.texi: Mention a couple of restrictions.
47965
47966 2009-01-20  Jim Meyering  <meyering@redhat.com>
47967
47968         gettimeofday: move more declarations out of functions
47969         * lib/gettimeofday.c: Move extern declarations of tzset and
47970         gmtime out of containing functions.  Prompted by Bruno Haible.
47971
47972 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47973
47974         regex: do not depend on obsolete modules.
47975         * modules/regex: Remove memcmp and memmove.
47976
47977 2009-01-19  Bruno Haible  <bruno@clisp.org>
47978
47979         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47980         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47981         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47982         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47983         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47984
47985 2009-01-19  Bruno Haible  <bruno@clisp.org>
47986
47987         * tests/test-link.c: Include <errno.h>.
47988         (main): Exit with code 77 when a hard link cannot be created due to
47989         the file system.
47990         * tests/test-link.sh: Skip test when a hard link cannot be created due
47991         to the file system.
47992         Suggested by Eric Blake.
47993
47994 2009-01-19  Martin Lambers  <marlam@marlam.de>
47995
47996         * modules/link-tests: New file.
47997         * tests/test-link.sh: New file.
47998         * tests/test-link.c: New file.
47999
48000 2009-01-19  Eric Blake  <ebb9@byu.net>
48001
48002         doc: mention another function added in cygwin 1.7.0
48003         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48004         Another new function in cygwin 1.7.
48005
48006 2009-01-19  Bruno Haible  <bruno@clisp.org>
48007
48008         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48009         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48010         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48011         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48012         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48013         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48015         * m4/md4.m4 (gl_MD4): Likewise.
48016         * m4/md5.m4 (gl_MD5): Likewise.
48017         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48018         * m4/sha1.m4 (gl_SHA1): Likewise.
48019         * m4/sha256.m4 (gl_SHA256): Likewise.
48020         * m4/sha512.m4 (gl_SHA512): Likewise.
48021
48022 2009-01-19  Bruno Haible  <bruno@clisp.org>
48023
48024         * modules/uniname/uniname-tests (Depends-on): Add progname.
48025         * tests/uniname/test-uninames.c: Include progname.h.
48026         (main): Call set_program_name.
48027
48028         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48029         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48030         (main): Call set_program_name.
48031
48032         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48033         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48034         (main): Call set_program_name.
48035
48036         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48037         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48038         (main): Call set_program_name.
48039
48040         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48041         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48042         (main): Call set_program_name.
48043
48044         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48045         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48046         (main): Call set_program_name.
48047
48048         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48049         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48050         (main): Call set_program_name.
48051
48052         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48053         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48054         (main): Call set_program_name.
48055
48056         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48057         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48058         (main): Call set_program_name.
48059
48060 2009-01-19  Eric Blake  <ebb9@byu.net>
48061
48062         test-unistd: test previous patch
48063         * tests/test-unistd.c: Test *_FILENO macros.
48064
48065         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48066         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48067         Guarantee a definition.
48068         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48069         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48070         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48071         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48072         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48073         Likewise.
48074         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48075         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48076         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48077         Likewise.
48078         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48079         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48080         (STDERR_FILENO): Likewise.
48081         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48082         (STDERR_FILENO): Likewise.
48083         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48084         (STDERR_FILENO): Likewise.
48085         Reported by Elbert Pol.
48086
48087 2009-01-19  Eric Blake  <ebb9@byu.net>
48088
48089         doc: mention more functions added in cygwin 1.7.0
48090         * doc/posix-functions/abort.texi (abort): Update wording related
48091         to cygwin.
48092         * doc/posix-functions/daylight.texi (daylight): Likewise.
48093         * doc/posix-functions/optarg.texi (optarg): Likewise.
48094         * doc/posix-functions/optarg.texi (opterr): Likewise.
48095         * doc/posix-functions/optarg.texi (optind): Likewise.
48096         * doc/posix-functions/optarg.texi (optopt): Likewise.
48097         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48098         worked in 1.5.x, and was withdrawn in 1.7.
48099         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48100         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48101         cygwin versions.
48102         * doc/posix-functions/perror.texi (perror): Likewise.
48103         * doc/posix-functions/printf.texi (printf): Likewise.
48104         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48105         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48106         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48107         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48108         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48109         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48110         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48111         Likewise.
48112         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48113         Likewise.
48114         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48115         this function.
48116         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48117         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48118         Likewise.
48119         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48120         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48121         * doc/posix-functions/confstr.texi (confstr): Likewise.
48122         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48123         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48124         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48125         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48126         * doc/posix-functions/fputws.texi (fputws): Likewise.
48127         * doc/posix-functions/fwide.texi (fwide): Likewise.
48128         * doc/posix-functions/getwc.texi (getwc): Likewise.
48129         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48130         * doc/posix-functions/putwc.texi (putwc): Likewise.
48131         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48132         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48133         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48134         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48135         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48136         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48137         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48138         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48139         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48140         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48141         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48142
48143 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48144
48145         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48146         * lib/ioctl.c: Include <sys/ioctl.h>.
48147
48148 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48149
48150         * modules/getdate-tests (Depends-on): Add progname.
48151         * tests/test-getdate.c: Use progname module, to avoid link errors
48152         on non-glibc systems.
48153
48154 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48155
48156         * modules/filenamecat-tests (Depends-on): Add progname.
48157         * modules/fstrcmp-tests (Depends-on): Likewise.
48158
48159         * tests/test-filenamecat.c: Use progname module, to avoid link
48160         errors on non-glibc systems.
48161         * tests/test-fstrcmp.c: Likewise.
48162
48163 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48164
48165         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48166         * lib/gettimeofday.c: Move extern declaration out of function.
48167
48168 2009-01-18  Bruno Haible  <bruno@clisp.org>
48169
48170         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48171         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48172         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48173
48174 2009-01-18  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/strftime.c (MEMPCPY): Remove unused macro.
48177         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48178
48179 2009-01-18  Martin Lambers  <marlam@marlam.de>
48180
48181         New module 'link'.
48182         * lib/unistd.in.h (link): New declaration.
48183         * lib/link.c: New file.
48184         * m4/link.m4: New file.
48185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48186         HAVE_LINK.
48187         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48188         * modules/link: New file.
48189         * doc/posix-functions/link.texi: Mention the new module.
48190
48191 2009-01-18  Bruno Haible  <bruno@clisp.org>
48192
48193         * tests/test-avltree_list.c (main): Call set_program_name.
48194         * tests/test-avltree_oset.c (main): Likewise.
48195         * tests/test-obstack-printf.c: Include progname.h.
48196         (main): Call set_program_name.
48197         * tests/test-quotearg.c: Include progname.h.
48198         (main): Call set_program_name.
48199         * tests/test-xmemdup0.c: Include progname.h.
48200         (main): Call set_program_name.
48201
48202 2009-01-18  Bruno Haible  <bruno@clisp.org>
48203
48204         New module 'alphasort'.
48205         * lib/dirent.in.h (alphasort): New declaration.
48206         * lib/alphasort.c: New file, from glibc with modifications.
48207         * m4/alphasort.m4: New file.
48208         * modules/alphasort: New file.
48209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48210         HAVE_ALPHASORT.
48211         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48212         HAVE_ALPHASORT.
48213         * doc/posix-functions/alphasort.texi: Mention the new module and the
48214         portability problems.
48215
48216 2009-01-18  Bruno Haible  <bruno@clisp.org>
48217
48218         New module 'scandir'.
48219         * lib/dirent.in.h (scandir): New declaration.
48220         * lib/scandir.c: New file, from glibc with modifications.
48221         * m4/scandir.m4: New file.
48222         * modules/scandir: New file.
48223         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48224         HAVE_SCANDIR.
48225         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48226         HAVE_SCANDIR.
48227         * doc/posix-functions/scandir.texi: Mention the new module and the
48228         portability problems.
48229
48230 2009-01-17  Bruno Haible  <bruno@clisp.org>
48231
48232         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48233         Update documentation.
48234         (func_remove_suffix): Escape all dots in the suffix. Update
48235         documentation.
48236         (func_filter_filelist): Update documentation.
48237         Reported by Ralf Wildenhues.
48238
48239 2009-01-17  Bruno Haible  <bruno@clisp.org>
48240
48241         * modules/dprintf-posix-tests: New file.
48242         * tests/test-dprintf-posix.sh: New file.
48243         * tests/test-dprintf-posix.c: New file.
48244
48245         New modules 'dprintf', 'dprintf-posix'.
48246         * lib/stdio.in.h (dprintf): New declaration.
48247         * lib/dprintf.c: New file.
48248         * m4/dprintf.m4: New file.
48249         * m4/dprintf-posix.m4: New file.
48250         * modules/dprintf: New file.
48251         * modules/dprintf-posix: New file.
48252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48253         HAVE_DPRINTF, REPLACE_DPRINTF.
48254         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48255         HAVE_DPRINTF, REPLACE_DPRINTF.
48256         * doc/posix-functions/dprintf.texi: Mention the new modules.
48257
48258 2009-01-17  Bruno Haible  <bruno@clisp.org>
48259
48260         * modules/vdprintf-posix-tests: New file.
48261         * tests/test-vdprintf-posix.sh: New file.
48262         * tests/test-vdprintf-posix.c: New file.
48263
48264         New modules 'vdprintf', 'vdprintf-posix'.
48265         * lib/stdio.in.h (vdprintf): New declaration.
48266         * lib/vdprintf.c: New file.
48267         * m4/vdprintf.m4: New file.
48268         * m4/vdprintf-posix.m4: New file.
48269         * modules/vdprintf: New file.
48270         * modules/vdprintf-posix: New file.
48271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48272         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48273         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48274         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48275         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48276
48277 2009-01-17  Bruno Haible  <bruno@clisp.org>
48278
48279         Fix replacement of fopen on mingw.
48280         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48281         mingw.
48282
48283 2009-01-17  Bruno Haible  <bruno@clisp.org>
48284
48285         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48286         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48287
48288 2009-01-17  Bruno Haible  <bruno@clisp.org>
48289
48290         Avoid test-fflush2.sh failure on mingw.
48291         * tests/test-fflush2.c: Include binary-io.h.
48292         (main): Put standard input into binary mode.
48293         * modules/fflush-tests (Depends-on): Add binary-io.
48294
48295 2009-01-17  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/wchar.in.h: In another particular situation, include only the
48298         system's <wchar.h> file.
48299         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48300         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48301         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48302
48303 2009-01-17  Bruno Haible  <bruno@clisp.org>
48304
48305         Support for stripping executables in --enable-relocatable.
48306         * build-aux/install-reloc: Expect one more argument, or an environment
48307         variable RELOC_STRIP_PROG. If set, strip the destination program and
48308         its wrapper.
48309         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48310         RELOC_STRIP_PROG.
48311         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48312         to set RELOCATABLE_STRIP.
48313         * NEWS: Mention the new Makefile requirement.
48314
48315 2009-01-17  Bruno Haible  <bruno@clisp.org>
48316
48317         * build-aux/install-reloc: Remove debugging information left over by
48318         C compiler on MacOS X.
48319
48320 2009-01-17  Bruno Haible  <bruno@clisp.org>
48321
48322         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48323         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48324         _NSGetExecutablePath.
48325
48326 2009-01-16  Jim Meyering  <meyering@redhat.com>
48327
48328         strerror: avoid warnings about discarding "const"
48329         * lib/strerror.c (rpl_strerror): Instead of returning a const
48330         string from each and every "case", use a variable, and add a single
48331         cast after the switch.
48332
48333 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48334
48335         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48336
48337 2009-01-16  Bruno Haible  <bruno@clisp.org>
48338
48339         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48340         array initializer syntax that also works in C++ mode.
48341         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48342
48343 2009-01-16  Jim Meyering  <meyering@redhat.com>
48344
48345         poll: suppress a warning
48346         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48347         to ignore "...unsigned expression < 0 is always false" warnings.
48348
48349 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48350
48351         poll: remove declarations of unused variables
48352         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48353         sockbuf and optlen.
48354
48355 2009-01-15  Bruno Haible  <bruno@clisp.org>
48356
48357         Make fflush-after-ungetc POSIX compliant on BSD systems.
48358         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48359         (clear_ungetc_buffer): Implement also for other systems.
48360         (rpl_fflush): On glibc systems, invoke
48361         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48362         clear_ungetc_buffer after fetching the stream's position, not before.
48363
48364 2009-01-15  Bruno Haible  <bruno@clisp.org>
48365
48366         Make fflush-after-ungetc POSIX compliant on glibc systems.
48367         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48368         after ungetc.
48369         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48370         (rpl_fflush): On glibc systems, simply call the system's fflush
48371         function after clearing the ungetc buffer.
48372         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48373         Instead, lseek only to the end of file, then use the system's fseeko
48374         for the rest. On glibc systems, reset the EOF indicator bit.
48375
48376 2009-01-15  Jim Meyering  <meyering@redhat.com>
48377
48378         openmp.m4: revert quote-adding change, for portability to older autoconf
48379         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48380         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48381         Simon Josefsson noticed the problem when using autoconf-2.61.
48382
48383 2009-01-15  Bruno Haible  <bruno@clisp.org>
48384
48385         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48386         * tests/test-fflush2.c (ASSERT): Always fail.
48387         (main): Add two tests for fflush() after ungetc(), taking into account
48388         the Austin Group's clarification.
48389         Suggested by Eric Blake.
48390
48391 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48392
48393         mktime.m4: remove K&R-style function prototypes
48394         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48395         for the Sun C++ compiler.
48396
48397 2009-01-14  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48400         while including <wchar.h>.
48401         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48402         the system's <wchar.h> file.
48403         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48404
48405 2009-01-14  Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/csharp.m4: Don't mention gettext on the serial number line.
48408         * m4/csharpexec.m4: Likewise.
48409         * m4/eaccess.m4: Likewise.
48410         * m4/javaexec.m4: Likewise.
48411         * m4/sig_atomic_t.m4: Likewise.
48412         * m4/tmpdir.m4: Likewise.
48413         * m4/intldir.m4: Bump gettext version.
48414         * m4/lib-ld.m4: Likewise.
48415
48416 2009-01-14  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/progname.c (set_program_name): Add more comments.
48419         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48420
48421 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48422
48423         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48424         were sys/stat.h does not define it.
48425
48426 2009-01-14  Jim Meyering  <meyering@redhat.com>
48427
48428         many *.m4 files: improve m4 quoting
48429         99% of this change was performed by running the following commands:
48430         git ls-files | grep '\.m4$' | xargs perl -pi \
48431           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48432           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48433           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48434           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48435         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48436         The remainder were to add Copyright dates, increment serial numbers,
48437         undo some changes in comments, exclude m4/intl.m4, and add quotes
48438         around the "1" in ",1" where the unusual spacing prohibited the
48439         above regexps from doing the job.  For more details, see
48440         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48441         * m4/acl.m4: Modified.
48442         * m4/afs.m4: Likewise.
48443         * m4/alloca.m4: Likewise.
48444         * m4/argp.m4: Likewise.
48445         * m4/argz.m4: Likewise.
48446         * m4/atexit.m4: Likewise.
48447         * m4/bison-i18n.m4: Likewise.
48448         * m4/bison.m4: Likewise.
48449         * m4/byteswap.m4: Likewise.
48450         * m4/c-stack.m4: Likewise.
48451         * m4/c-strtod.m4: Likewise.
48452         * m4/calloc.m4: Likewise.
48453         * m4/canonicalize-lgpl.m4: Likewise.
48454         * m4/chown.m4: Likewise.
48455         * m4/clock_time.m4: Likewise.
48456         * m4/codeset.m4: Likewise.
48457         * m4/copy-file.m4: Likewise.
48458         * m4/csharp.m4: Likewise.
48459         * m4/csharpcomp.m4: Likewise.
48460         * m4/csharpexec.m4: Likewise.
48461         * m4/d-ino.m4: Likewise.
48462         * m4/d-type.m4: Likewise.
48463         * m4/dirfd.m4: Likewise.
48464         * m4/double-slash-root.m4: Likewise.
48465         * m4/eaccess.m4: Likewise.
48466         * m4/eealloc.m4: Likewise.
48467         * m4/environ.m4: Likewise.
48468         * m4/errno_h.m4: Likewise.
48469         * m4/euidaccess.m4: Likewise.
48470         * m4/execute.m4: Likewise.
48471         * m4/fatal-signal.m4: Likewise.
48472         * m4/fchdir.m4: Likewise.
48473         * m4/fcntl_h.m4: Likewise.
48474         * m4/fileblocks.m4: Likewise.
48475         * m4/filenamecat.m4: Likewise.
48476         * m4/findprog.m4: Likewise.
48477         * m4/flexmember.m4: Likewise.
48478         * m4/fnmatch.m4: Likewise.
48479         * m4/fopen.m4: Likewise.
48480         * m4/fpending.m4: Likewise.
48481         * m4/fprintf-posix.m4: Likewise.
48482         * m4/free.m4: Likewise.
48483         * m4/frexp.m4: Likewise.
48484         * m4/frexpl.m4: Likewise.
48485         * m4/fsusage.m4: Likewise.
48486         * m4/ftruncate.m4: Likewise.
48487         * m4/gc-camellia.m4: Likewise.
48488         * m4/gc-random.m4: Likewise.
48489         * m4/gc.m4: Likewise.
48490         * m4/getaddrinfo.m4: Likewise.
48491         * m4/getcwd-abort-bug.m4: Likewise.
48492         * m4/getcwd-path-max.m4: Likewise.
48493         * m4/getdate.m4: Likewise.
48494         * m4/getdomainname.m4: Likewise.
48495         * m4/getgroups.m4: Likewise.
48496         * m4/gethostname.m4: Likewise.
48497         * m4/gethrxtime.m4: Likewise.
48498         * m4/getline.m4: Likewise.
48499         * m4/getloadavg.m4: Likewise.
48500         * m4/getndelim2.m4: Likewise.
48501         * m4/getpass.m4: Likewise.
48502         * m4/gettext.m4: Likewise.
48503         * m4/gettime.m4: Likewise.
48504         * m4/gettimeofday.m4: Likewise.
48505         * m4/gnulib-common.m4: Likewise.
48506         * m4/group-member.m4: Likewise.
48507         * m4/host-os.m4: Likewise.
48508         * m4/iconv.m4: Likewise.
48509         * m4/iconv_open.m4: Likewise.
48510         * m4/inet_ntop.m4: Likewise.
48511         * m4/inet_pton.m4: Likewise.
48512         * m4/inline.m4: Likewise.
48513         * m4/intldir.m4: Likewise.
48514         * m4/intlmacosx.m4: Likewise.
48515         * m4/intmax.m4: Likewise.
48516         * m4/intmax_t.m4: Likewise.
48517         * m4/inttypes.m4: Likewise.
48518         * m4/inttypes_h.m4: Likewise.
48519         * m4/inttypes-pri.m4: Likewise.
48520         * m4/isapipe.m4: Likewise.
48521         * m4/isnand.m4: Likewise.
48522         * m4/isnanf.m4: Likewise.
48523         * m4/isnanl.m4: Likewise.
48524         * m4/javacomp.m4: Likewise.
48525         * m4/javaexec.m4: Likewise.
48526         * m4/jm-winsz1.m4: Likewise.
48527         * m4/jm-winsz2.m4: Likewise.
48528         * m4/lchown.m4: Likewise.
48529         * m4/lcmessage.m4: Likewise.
48530         * m4/ldexpl.m4: Likewise.
48531         * m4/lib-ld.m4: Likewise.
48532         * m4/lib-link.m4: Likewise.
48533         * m4/libsigsegv.m4: Likewise.
48534         * m4/link-follow.m4: Likewise.
48535         * m4/localcharset.m4: Likewise.
48536         * m4/locale-fr.m4: Likewise.
48537         * m4/locale-ja.m4: Likewise.
48538         * m4/locale-tr.m4: Likewise.
48539         * m4/locale-zh.m4: Likewise.
48540         * m4/lock.m4: Likewise.
48541         * m4/longlong.m4: Likewise.
48542         * m4/ls-mntd-fs.m4: Likewise.
48543         * m4/lstat.m4: Likewise.
48544         * m4/malloc.m4: Likewise.
48545         * m4/mathl.m4: Likewise.
48546         * m4/mbrtowc.m4: Likewise.
48547         * m4/mbstate_t.m4: Likewise.
48548         * m4/mbswidth.m4: Likewise.
48549         * m4/memchr.m4: Likewise.
48550         * m4/memcmp.m4: Likewise.
48551         * m4/memcpy.m4: Likewise.
48552         * m4/memmem.m4: Likewise.
48553         * m4/memmove.m4: Likewise.
48554         * m4/mempcpy.m4: Likewise.
48555         * m4/memrchr.m4: Likewise.
48556         * m4/memset.m4: Likewise.
48557         * m4/minmax.m4: Likewise.
48558         * m4/mkdir-slash.m4: Likewise.
48559         * m4/mkdtemp.m4: Likewise.
48560         * m4/mktime.m4: Likewise.
48561         * m4/mmap-anon.m4: Likewise.
48562         * m4/mountlist.m4: Likewise.
48563         * m4/nanosleep.m4: Likewise.
48564         * m4/nls.m4: Likewise.
48565         * m4/nocrash.m4: Likewise.
48566         * m4/open.m4: Likewise.
48567         * m4/openat.m4: Likewise.
48568         * m4/openmp.m4: Likewise.
48569         * m4/pathmax.m4: Likewise.
48570         * m4/perl.m4: Likewise.
48571         * m4/physmem.m4: Likewise.
48572         * m4/pipe.m4: Likewise.
48573         * m4/po.m4: Likewise.
48574         * m4/poll.m4: Likewise.
48575         * m4/posixtm.m4: Likewise.
48576         * m4/posixver.m4: Likewise.
48577         * m4/printf-frexp.m4: Likewise.
48578         * m4/printf-frexpl.m4: Likewise.
48579         * m4/printf-posix.m4: Likewise.
48580         * m4/printf-posix-rpl.m4: Likewise.
48581         * m4/printf.m4: Likewise.
48582         * m4/progtest.m4: Likewise.
48583         * m4/putenv.m4: Likewise.
48584         * m4/readline.m4: Likewise.
48585         * m4/readlink.m4: Likewise.
48586         * m4/readutmp.m4: Likewise.
48587         * m4/realloc.m4: Likewise.
48588         * m4/regex.m4: Likewise.
48589         * m4/relocatable.m4: Likewise.
48590         * m4/relocatable-lib.m4: Likewise.
48591         * m4/rename-dest-slash.m4: Likewise.
48592         * m4/rename.m4: Likewise.
48593         * m4/rmdir-errno.m4: Likewise.
48594         * m4/rmdir.m4: Likewise.
48595         * m4/roundf.m4: Likewise.
48596         * m4/roundl.m4: Likewise.
48597         * m4/rpmatch.m4: Likewise.
48598         * m4/save-cwd.m4: Likewise.
48599         * m4/selinux-selinux-h.m4: Likewise.
48600         * m4/setenv.m4: Likewise.
48601         * m4/settime.m4: Likewise.
48602         * m4/sig2str.m4: Likewise.
48603         * m4/sig_atomic_t.m4: Likewise.
48604         * m4/signalblocking.m4: Likewise.
48605         * m4/signbit.m4: Likewise.
48606         * m4/sigpipe.m4: Likewise.
48607         * m4/sockets.m4: Likewise.
48608         * m4/sockpfaf.m4: Likewise.
48609         * m4/st_dm_mode.m4: Likewise.
48610         * m4/stat-time.m4: Likewise.
48611         * m4/stdbool.m4: Likewise.
48612         * m4/stdint.m4: Likewise.
48613         * m4/stdint_h.m4: Likewise.
48614         * m4/stpcpy.m4: Likewise.
48615         * m4/stpncpy.m4: Likewise.
48616         * m4/strcase.m4: Likewise.
48617         * m4/strchrnul.m4: Likewise.
48618         * m4/strcspn.m4: Likewise.
48619         * m4/strdup.m4: Likewise.
48620         * m4/strftime.m4: Likewise.
48621         * m4/strndup.m4: Likewise.
48622         * m4/strnlen.m4: Likewise.
48623         * m4/strpbrk.m4: Likewise.
48624         * m4/strptime.m4: Likewise.
48625         * m4/strsep.m4: Likewise.
48626         * m4/strtod.m4: Likewise.
48627         * m4/strtoimax.m4: Likewise.
48628         * m4/strtok_r.m4: Likewise.
48629         * m4/strtol.m4: Likewise.
48630         * m4/strtoll.m4: Likewise.
48631         * m4/strtoul.m4: Likewise.
48632         * m4/strtoull.m4: Likewise.
48633         * m4/strtoumax.m4: Likewise.
48634         * m4/strverscmp.m4: Likewise.
48635         * m4/threadlib.m4: Likewise.
48636         * m4/timegm.m4: Likewise.
48637         * m4/tm_gmtoff.m4: Likewise.
48638         * m4/tmpdir.m4: Likewise.
48639         * m4/tmpfile.m4: Likewise.
48640         * m4/tzset.m4: Likewise.
48641         * m4/uintmax_t.m4: Likewise.
48642         * m4/unlinkdir.m4: Likewise.
48643         * m4/unlocked-io.m4: Likewise.
48644         * m4/uptime.m4: Likewise.
48645         * m4/userspec.m4: Likewise.
48646         * m4/utimbuf.m4: Likewise.
48647         * m4/utime.m4: Likewise.
48648         * m4/utimes-null.m4: Likewise.
48649         * m4/utimes.m4: Likewise.
48650         * m4/vararrays.m4: Likewise.
48651         * m4/vasnprintf.m4: Likewise.
48652         * m4/vfprintf-posix.m4: Likewise.
48653         * m4/vprintf-posix.m4: Likewise.
48654         * m4/wait-process.m4: Likewise.
48655         * m4/wchar_t.m4: Likewise.
48656         * m4/wint_t.m4: Likewise.
48657         * m4/write-any-file.m4: Likewise.
48658         * m4/yield.m4: Likewise.
48659
48660 2009-01-13  Bruno Haible  <bruno@clisp.org>
48661
48662         Avoid test-copy-file.sh failures when ACL support insufficient.
48663         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48664         TESTS_ENVIRONMENT.
48665         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48666         Reported by Jim Meyering.
48667
48668 2009-01-13  Bruno Haible  <bruno@clisp.org>
48669
48670         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48671         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48672         * modules/unistdio/u8-printf-parse (Files): Likewise.
48673         * modules/unistdio/u32-printf-parse (Files): Likewise.
48674         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48675
48676 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48677
48678         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48679         and m4/inttypes_h.m4 too.
48680
48681 2009-01-12  Eric Blake  <ebb9@byu.net>
48682
48683         tests: IRIX 6.2 cc can't compile -0.0 into .data
48684         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48685         rather than at compile-time.
48686         * tests/test-floorl.c (minus_zero): Likewise.
48687         * tests/test-frexpl.c (minus_zero): Likewise.
48688         * tests/test-isnan.c (minus_zerol): Likewise.
48689         * tests/test-isnanl.h (minus_zero): Likewise.
48690         * tests/test-ldexpl.c (minus_zero): Likewise.
48691         * tests/test-roundl.c (minus_zero): Likewise.
48692         * tests/test-signbit.c (minus_zerol): Likewise.
48693         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48694         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48695         * tests/test-truncl.c (minus_zero): Likewise.
48696         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48697         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48698         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48699
48700 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48701
48702         regex: fix glibc bug 9697
48703         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48704         handling.
48705
48706 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48707
48708         regex: fix glibc bug 697
48709         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48710         being NULL also if there are no backreferences.
48711
48712 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48713
48714         regex: merge glibc changes
48715         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48716         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48717         re_string_skip_chars, re_string_reconstruct): Likewise.
48718         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48719
48720 2009-01-07  Jim Meyering  <meyering@redhat.com>
48721
48722         poll: filter through cppi
48723         * lib/poll.c: Indent cpp directives to reflect nesting.
48724
48725 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48726
48727         poll: don't return uninitialized
48728         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48729
48730 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48731
48732         avoid compile failure on AIX 6.1
48733         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48734         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48735
48736 2009-01-04  Jim Meyering  <meyering@redhat.com>
48737
48738         remove duplicate inclusion of <stdio.h>
48739         * tests/test-fprintf-posix.c: Likewise.
48740         * tests/test-printf-posix.c: Likewise.
48741         * tests/test-snprintf-posix.c: Likewise.
48742         * tests/test-sprintf-posix.c: Likewise.
48743         * tests/test-vasprintf-posix.c: Likewise.
48744         * tests/test-vfprintf-posix.c: Likewise.
48745         * tests/test-vprintf-posix.c: Likewise.
48746         * tests/test-vsnprintf-posix.c: Likewise.
48747         * tests/test-vsprintf-posix.c: Likewise.
48748
48749 2009-01-03  Jim Meyering  <meyering@redhat.com>
48750
48751         gnulib-tool: fix sed-based filtering
48752         * gnulib-tool (func_filter_filelist): Remove extra backslash
48753         in sed_fff_filter definition.
48754
48755 2009-01-02  Jim Meyering  <meyering@redhat.com>
48756
48757         strftime: avoid compilation failure on Solaris 2.6
48758         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48759         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48760         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48761         be available.  Reported by Tom G. Christensen.  Details in
48762         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48763
48764 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48765             Bruno Haible  <bruno@clisp.org>
48766
48767         Speed up gnulib-tool by doing more string processing through shell
48768         built-ins.
48769         * gnulib-tool (fast_func_append): New variable.
48770         (func_remove_prefix, func_remove_suffix): New functions.
48771         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48772         (func_filter_filelist): New function.
48773         (func_get_dependencies): Use func_remove_suffix instead of sed.
48774         (func_get_automake_snippet): Use func_filter_filelist instead of a
48775         subshell and sed invocation.
48776
48777 2009-01-01  Bruno Haible  <bruno@clisp.org>
48778
48779         Fix a security bug.
48780         * gnulib-tool (func_import, import, update): Don't allow the characters
48781         '"', '$', '`', '\' in macro arguments that become part of commands that
48782         are evaluated.
48783
48784 2009-01-01  Bruno Haible  <bruno@clisp.org>
48785
48786         * gnulib-tool (func_reset_sigpipe): Add more comments.
48787
48788 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48789
48790         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48791         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48792         already know the answer.
48793
48794 2009-01-01  Jim Meyering  <meyering@redhat.com>
48795
48796         * lib/version-etc.c (version_etc_va): Update copyright year.
48797
48798 2008-12-30  Bruno Haible  <bruno@clisp.org>
48799
48800         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48801         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48802         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48803
48804 2008-12-29  Eric Blake  <ebb9@byu.net>
48805
48806         multiarch: avoid autoconf AC_REQUIRE bug
48807         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48808         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48809         2.63 and older.
48810         Reported by Bruno Haible, and analyzed in
48811         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48812
48813 2008-12-29  Bruno Haible  <bruno@clisp.org>
48814
48815         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48816         files in subdirectories correctly.
48817         Reported by Ralf Wildenhues.
48818
48819 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48820
48821         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48822         rather than 'join FILE -', for Solaris join.
48823
48824 2008-12-29  Bruno Haible  <bruno@clisp.org>
48825
48826         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48827         quoting.
48828         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48829         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48830         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48831         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48832         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48833         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48834         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48835         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48836         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48837         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48838         * m4/nls.m4 (AM_NLS): Likewise.
48839         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48840         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48841         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48842         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48843         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48844         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48845         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48846         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48847         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48848         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48849         * m4/xsize.m4 (gl_XSIZE): Likewise.
48850         Suggested by Jim Meyering.
48851
48852 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48853
48854         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48855         * lib/parse-duration.c: use a switch instead of cascading if's.
48856
48857 2008-12-29  Eric Blake  <ebb9@byu.net>
48858
48859         wchar.h: supply WEOF on Irix 5.3
48860         * lib/wchar.in.h (wint_t): Also supply WEOF.
48861         * lib/wctype.in.h (wint_t): Likewise.
48862         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48863         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48864         Reported by Tom G. Christensen.
48865
48866 2008-12-26  Bruno Haible  <bruno@clisp.org>
48867
48868         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48869         i486, i586, i686.
48870
48871 2008-12-26  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48874
48875 2008-12-26  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48878         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48879         not __STDC_CONSTANT_MACROS.
48880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48881
48882 2008-12-25  Bruno Haible  <bruno@clisp.org>
48883
48884         Add support for universal builds to vasnprintf.
48885         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48886         universal builds, guess no.
48887         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48888         * modules/vasprintf-posix (Depends-on): Likewise.
48889         * modules/fprintf-posix (Depends-on): Likewise.
48890         * modules/vfprintf-posix (Depends-on): Likewise.
48891         * modules/snprintf-posix (Depends-on): Likewise.
48892         * modules/vsnprintf-posix (Depends-on): Likewise.
48893         * modules/sprintf-posix (Depends-on): Likewise.
48894         * modules/vsprintf-posix (Depends-on): Likewise.
48895         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48896         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48898         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48899         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48900         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48902
48903         Add support for universal builds to <inttypes.h>.
48904         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48905         _SCNu64_PREFIX): In Apple
48906         universal builds, define directly, using _LP64.
48907         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48908         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48909         * modules/inttypes (Depends-on): Add multiarch.
48910         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48911
48912         Add support for universal builds to <stdint.h>.
48913         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48914         universal builds, define directly, using _LP64.
48915         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48916         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48917         and size_t.
48918         * modules/stdint (Depends-on): Add multiarch.
48919         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48920
48921         New module 'multiarch'.
48922         * modules/multiarch: New file.
48923         * m4/multiarch.m4: New file.
48924
48925 2008-12-25  Bruno Haible  <bruno@clisp.org>
48926
48927         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48928
48929 2008-12-25  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/btowc (License): Relicense under LGPLv2+.
48932         * modules/mbsinit (License): Likewise.
48933         * modules/mbrtowc (License): Likewise.
48934         * modules/wcrtomb (License): Likewise.
48935         * modules/streq (License): Likewise.
48936         Reported by David Lutterkort <lutter@redhat.com>.
48937
48938 2008-12-23  Bruno Haible  <bruno@clisp.org>
48939
48940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48941
48942 2008-12-23  Bruno Haible  <bruno@clisp.org>
48943
48944         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48945         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48946         GETADDRINFO_LIB, not in LIBS.
48947         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48948         * modules/canon-host (Link): Likewise.
48949         * NEWS: Mention the change.
48950         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48951         GETADDRINFO_LIB.
48952
48953 2008-12-22  Bruno Haible  <bruno@clisp.org>
48954
48955         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48956         * doc/posix-functions/iswalpha_l.texi: Likewise.
48957         * doc/posix-functions/iswblank_l.texi: Likewise.
48958         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48959         * doc/posix-functions/iswctype_l.texi: Likewise.
48960         * doc/posix-functions/iswdigit_l.texi: Likewise.
48961         * doc/posix-functions/iswgraph_l.texi: Likewise.
48962         * doc/posix-functions/iswlower_l.texi: Likewise.
48963         * doc/posix-functions/iswprint_l.texi: Likewise.
48964         * doc/posix-functions/iswpunct_l.texi: Likewise.
48965         * doc/posix-functions/iswspace_l.texi: Likewise.
48966         * doc/posix-functions/iswupper_l.texi: Likewise.
48967         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48968         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48969         * doc/posix-functions/open_wmemstream.texi: Likewise.
48970         * doc/posix-functions/swscanf.texi: Likewise.
48971         * doc/posix-functions/towctrans_l.texi: Likewise.
48972         * doc/posix-functions/towlower.texi: Likewise.
48973         * doc/posix-functions/towlower_l.texi: Likewise.
48974         * doc/posix-functions/towupper.texi: Likewise.
48975         * doc/posix-functions/towupper_l.texi: Likewise.
48976         * doc/posix-functions/vfwprintf.texi: Likewise.
48977         * doc/posix-functions/vfwscanf.texi: Likewise.
48978         * doc/posix-functions/vswscanf.texi: Likewise.
48979         * doc/posix-functions/vwprintf.texi: Likewise.
48980         * doc/posix-functions/vwscanf.texi: Likewise.
48981         * doc/posix-functions/wcpcpy.texi: Likewise.
48982         * doc/posix-functions/wcpncpy.texi: Likewise.
48983         * doc/posix-functions/wcscasecmp.texi: Likewise.
48984         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48985         * doc/posix-functions/wcscoll_l.texi: Likewise.
48986         * doc/posix-functions/wcsdup.texi: Likewise.
48987         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48988         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48989         * doc/posix-functions/wcsnlen.texi: Likewise.
48990         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48991         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48992         * doc/posix-functions/wctrans_l.texi: Likewise.
48993         * doc/posix-functions/wctype_l.texi: Likewise.
48994         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48995         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48996         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48997         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48998         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48999         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49000         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49001         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49002         * doc/glibc-functions/wcschrnul.texi: Likewise.
49003         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49004         * doc/glibc-functions/wcstod_l.texi: Likewise.
49005         * doc/glibc-functions/wcstof_l.texi: Likewise.
49006         * doc/glibc-functions/wcstol_l.texi: Likewise.
49007         * doc/glibc-functions/wcstold_l.texi: Likewise.
49008         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49009         * doc/glibc-functions/wcstoq.texi: Likewise.
49010         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49011         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49012         * doc/glibc-functions/wcstouq.texi: Likewise.
49013         * doc/glibc-functions/wmempcpy.texi: Likewise.
49014
49015 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49016             Eric Blake  <ebb9@byu.net>
49017             Paolo Bonzini  <bonzini@gnu.org>
49018             Bruno Haible  <bruno@clisp.org>
49019
49020         Make c-stack work on Haiku.
49021         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49022         (c_stack_action): Use SA_ONSTACK flag.
49023
49024 2008-12-22  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49027
49028 2008-12-22  Bruno Haible  <bruno@clisp.org>
49029
49030         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49031         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49032         being overridden.
49033         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49034         New macros.
49035         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49037         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49038         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49039
49040 2008-12-22  Bruno Haible  <bruno@clisp.org>
49041
49042         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49043         from test code.
49044
49045 2008-12-22  Eric Blake  <ebb9@byu.net>
49046
49047         Avoid gcc warnings on cygwin.
49048         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49049         Avoid unused variable.
49050         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49051         Likewise.
49052
49053 2008-12-22  Bruno Haible  <bruno@clisp.org>
49054
49055         Remove HAVE_MBRTOWC conditionals.
49056         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49057         (mbscasecmp): Assume mbrtowc function.
49058         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49059         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49060         * lib/mbschr.c: Include mbuiter.h unconditionally.
49061         (mbschr): Assume mbrtowc function.
49062         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49063         (mbscspn): Assume mbrtowc function.
49064         * lib/mbslen.c: Include mbuiter.h unconditionally.
49065         (mbslen): Assume mbrtowc function.
49066         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49067         (mbsncasecmp): Assume mbrtowc function.
49068         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49069         (mbsnlen): Assume mbrtowc function.
49070         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49071         (mbspbrk): Assume mbrtowc function.
49072         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49073         (mbspcasecmp): Assume mbrtowc function.
49074         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49075         (mbsrchr): Assume mbrtowc function.
49076         * lib/mbssep.c: Include mbuiter.h unconditionally.
49077         (mbssep): Assume mbrtowc function.
49078         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49079         (mbsspn): Assume mbrtowc function.
49080         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49081         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49082         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49083         (mbstok_r): Assume mbrtowc function.
49084         * lib/propername.c: Include mbuiter.h unconditionally.
49085         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49086         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49087         (trim2): Assume mbrtowc function.
49088         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49089         (mbsnwidth): Assume mbrtowc function.
49090         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49091         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49092         fallback definitions.
49093         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49094
49095 2008-12-22  Bruno Haible  <bruno@clisp.org>
49096
49097         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49098
49099 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49100
49101         * modules/regex: Request emulations for the mb*/wc* functions we need.
49102         * m4/regex.m4: Don't look for those functions here.
49103         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49104
49105 2008-12-22  Bruno Haible  <bruno@clisp.org>
49106
49107         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49108
49109 2008-12-21  Bruno Haible  <bruno@clisp.org>
49110
49111         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49112         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49113         (Include): Remove conditionalization.
49114         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49115         (Include): Remove conditionalization.
49116         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49117         (Include): Remove conditionalization.
49118         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49119         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49120         * NEWS: Mention the change.
49121         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49122         via Sergey Poznyakoff <gray@gnu.org.ua>.
49123
49124 2008-12-21  Bruno Haible  <bruno@clisp.org>
49125
49126         * MODULES.html.sh (Extended multibyte and wide character utilities
49127         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49128         wcrtomb, wcsrtombs.
49129         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49130         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49131         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49132         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49133
49134 2008-12-21  Bruno Haible  <bruno@clisp.org>
49135
49136         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49137
49138 2008-12-21  Bruno Haible  <bruno@clisp.org>
49139
49140         * modules/wcsnrtombs-tests: New file.
49141         * tests/test-wcsnrtombs1.sh: New file.
49142         * tests/test-wcsnrtombs2.sh: New file.
49143         * tests/test-wcsnrtombs3.sh: New file.
49144         * tests/test-wcsnrtombs4.sh: New file.
49145         * tests/test-wcsnrtombs.c: New file.
49146
49147         New module 'wcsnrtombs'.
49148         * lib/wchar.in.h (wcsnrtombs): New declaration.
49149         * lib/wcsnrtombs.c: New file.
49150         * lib/wcsrtombs-state.c: New file.
49151         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49152         (internal_state): Remove variable.
49153         * m4/wcsnrtombs.m4: New file.
49154         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49155         compilation units.
49156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49157         HAVE_WCSNRTOMBS.
49158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49159         HAVE_WCSNRTOMBS.
49160         * modules/wcsnrtombs: New file.
49161         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49162         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49163
49164 2008-12-21  Bruno Haible  <bruno@clisp.org>
49165
49166         * modules/wcsrtombs-tests: New file.
49167         * tests/test-wcsrtombs1.sh: New file.
49168         * tests/test-wcsrtombs2.sh: New file.
49169         * tests/test-wcsrtombs3.sh: New file.
49170         * tests/test-wcsrtombs4.sh: New file.
49171         * tests/test-wcsrtombs.c: New file.
49172
49173         New module 'wcsrtombs'.
49174         * lib/wchar.in.h (wcsrtombs): New declaration.
49175         * lib/wcsrtombs.c: New file.
49176         * m4/wcsrtombs.m4: New file.
49177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49178         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49180         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49181         * modules/wcsrtombs: New file.
49182         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49183         bugs.
49184
49185 2008-12-21  Bruno Haible  <bruno@clisp.org>
49186
49187         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49188         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49189         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49190         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49191         if not correct.
49192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49193         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49194         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49195         m4/locale-zh.m4, m4/codeset.m4.
49196         * doc/posix-functions/wcrtomb.texi: Document the bug.
49197
49198 2008-12-21  Bruno Haible  <bruno@clisp.org>
49199
49200         Work around a btowc() bug on IRIX 6.5.
49201         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49202         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49203         REPLACE_WTOBC if not.
49204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49205         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49206         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49207
49208 2008-12-21  Bruno Haible  <bruno@clisp.org>
49209
49210         * modules/wcrtomb-tests: New file.
49211         * tests/test-wcrtomb.sh: New file.
49212         * tests/test-wcrtomb.c: New file.
49213
49214         New module 'wcrtomb'.
49215         * lib/wchar.in.h (wcrtomb): New declaration.
49216         * lib/wcrtomb.c: New file.
49217         * m4/wcrtomb.m4: New file.
49218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49219         HAVE_WCRTOMB.
49220         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49221         HAVE_WCRTOMB.
49222         * modules/wcrtomb: New file.
49223         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49224
49225 2008-12-21  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49228         * modules/mbsrtowcs (Files): Likewise.
49229         * modules/wctob (Files): Likewise.
49230         * modules/c-strcase-tests (Files): Likewise.
49231         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49232         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49233         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49234         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49235         * modules/vasnprintf-posix-tests (Files): Likewise.
49236
49237 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49238
49239         gitlog-to-changelog: pass all command-line arguments to git-log
49240         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49241         it is sometimes convenient to filter the commits in various ways.
49242         gitlog-to-changelog only allows --since to specify a start date,
49243         but git-log itself supports many other filtering mechanisms.
49244         At the moment, I want to filter by branch name.  Rather than
49245         adding a --branch option to gitlog-to-changelog, it seems more
49246         flexible to simply pass all options directly to git-log and let
49247         git do the work.  Notice that this effectively makes --since a
49248         redundant option for gitlog-to-changelog, but removing it would
49249         require current usage to change since calls would then require
49250         an additional '--'.
49251
49252 2008-12-21  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/mbsnrtowcs-tests: New file.
49255         * tests/test-mbsnrtowcs1.sh: New file.
49256         * tests/test-mbsnrtowcs2.sh: New file.
49257         * tests/test-mbsnrtowcs3.sh: New file.
49258         * tests/test-mbsnrtowcs4.sh: New file.
49259         * tests/test-mbsnrtowcs.c: New file.
49260
49261         New module 'mbsnrtowcs'.
49262         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49263         * lib/mbsnrtowcs.c: New file.
49264         * lib/mbsrtowcs-state.c: New file.
49265         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49266         (internal_state): Remove variable.
49267         * m4/mbsnrtowcs.m4: New file.
49268         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49269         compilation units.
49270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49271         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49272         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49273         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49274         * modules/mbsnrtowcs: New file.
49275         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49276         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49277         portability problem.
49278
49279 2008-12-21  Bruno Haible  <bruno@clisp.org>
49280
49281         Work around mbsrtowcs bug.
49282         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49283         (gl_FUNC_MBSRTOWCS): Invoke it.
49284         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49285         m4/locale-zh.m4.
49286         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49287
49288 2008-12-21  Bruno Haible  <bruno@clisp.org>
49289
49290         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49291
49292 2008-12-21  Bruno Haible  <bruno@clisp.org>
49293
49294         Update doc for AIX.
49295         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49296         16-bit wchar_t type.
49297         * doc/posix-functions/btowc.texi: Likewise.
49298         * doc/posix-functions/fgetwc.texi: Likewise.
49299         * doc/posix-functions/fgetws.texi: Likewise.
49300         * doc/posix-functions/fputwc.texi: Likewise.
49301         * doc/posix-functions/fputws.texi: Likewise.
49302         * doc/posix-functions/fwide.texi: Likewise.
49303         * doc/posix-functions/fwprintf.texi: Likewise.
49304         * doc/posix-functions/fwscanf.texi: Likewise.
49305         * doc/posix-functions/getwchar.texi: Likewise.
49306         * doc/posix-functions/getwc.texi: Likewise.
49307         * doc/posix-functions/iswalnum.texi: Likewise.
49308         * doc/posix-functions/iswalpha.texi: Likewise.
49309         * doc/posix-functions/iswblank.texi: Likewise.
49310         * doc/posix-functions/iswcntrl.texi: Likewise.
49311         * doc/posix-functions/iswctype.texi: Likewise.
49312         * doc/posix-functions/iswdigit.texi: Likewise.
49313         * doc/posix-functions/iswgraph.texi: Likewise.
49314         * doc/posix-functions/iswlower.texi: Likewise.
49315         * doc/posix-functions/iswprint.texi: Likewise.
49316         * doc/posix-functions/iswpunct.texi: Likewise.
49317         * doc/posix-functions/iswspace.texi: Likewise.
49318         * doc/posix-functions/iswupper.texi: Likewise.
49319         * doc/posix-functions/iswxdigit.texi: Likewise.
49320         * doc/posix-functions/mbrtowc.texi: Likewise.
49321         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49322         * doc/posix-functions/mbstowcs.texi: Likewise.
49323         * doc/posix-functions/mbtowc.texi: Likewise.
49324         * doc/posix-functions/putwchar.texi: Likewise.
49325         * doc/posix-functions/putwc.texi: Likewise.
49326         * doc/posix-functions/swprintf.texi: Likewise.
49327         * doc/posix-functions/tolower.texi: Likewise.
49328         * doc/posix-functions/toupper.texi: Likewise.
49329         * doc/posix-functions/towctrans.texi: Likewise.
49330         * doc/posix-functions/ungetwc.texi: Likewise.
49331         * doc/posix-functions/vswprintf.texi: Likewise.
49332         * doc/posix-functions/wcrtomb.texi: Likewise.
49333         * doc/posix-functions/wcscat.texi: Likewise.
49334         * doc/posix-functions/wcschr.texi: Likewise.
49335         * doc/posix-functions/wcscmp.texi: Likewise.
49336         * doc/posix-functions/wcscoll.texi: Likewise.
49337         * doc/posix-functions/wcscpy.texi: Likewise.
49338         * doc/posix-functions/wcscspn.texi: Likewise.
49339         * doc/posix-functions/wcsftime.texi: Likewise.
49340         * doc/posix-functions/wcslen.texi: Likewise.
49341         * doc/posix-functions/wcsncat.texi: Likewise.
49342         * doc/posix-functions/wcsncmp.texi: Likewise.
49343         * doc/posix-functions/wcsncpy.texi: Likewise.
49344         * doc/posix-functions/wcspbrk.texi: Likewise.
49345         * doc/posix-functions/wcsrchr.texi: Likewise.
49346         * doc/posix-functions/wcsrtombs.texi: Likewise.
49347         * doc/posix-functions/wcsspn.texi: Likewise.
49348         * doc/posix-functions/wcsstr.texi: Likewise.
49349         * doc/posix-functions/wcstod.texi: Likewise.
49350         * doc/posix-functions/wcstof.texi: Likewise.
49351         * doc/posix-functions/wcstoimax.texi: Likewise.
49352         * doc/posix-functions/wcstok.texi: Likewise.
49353         * doc/posix-functions/wcstold.texi: Likewise.
49354         * doc/posix-functions/wcstoll.texi: Likewise.
49355         * doc/posix-functions/wcstol.texi: Likewise.
49356         * doc/posix-functions/wcstombs.texi: Likewise.
49357         * doc/posix-functions/wcstoull.texi: Likewise.
49358         * doc/posix-functions/wcstoul.texi: Likewise.
49359         * doc/posix-functions/wcstoumax.texi: Likewise.
49360         * doc/posix-functions/wcswidth.texi: Likewise.
49361         * doc/posix-functions/wcsxfrm.texi: Likewise.
49362         * doc/posix-functions/wctob.texi: Likewise.
49363         * doc/posix-functions/wctomb.texi: Likewise.
49364         * doc/posix-functions/wctrans.texi: Likewise.
49365         * doc/posix-functions/wctype.texi: Likewise.
49366         * doc/posix-functions/wcwidth.texi: Likewise.
49367         * doc/posix-functions/wmemchr.texi: Likewise.
49368         * doc/posix-functions/wmemcmp.texi: Likewise.
49369         * doc/posix-functions/wmemcpy.texi: Likewise.
49370         * doc/posix-functions/wmemmove.texi: Likewise.
49371         * doc/posix-functions/wmemset.texi: Likewise.
49372         * doc/posix-functions/wprintf.texi: Likewise.
49373         * doc/posix-functions/wscanf.texi: Likewise.
49374
49375 2008-12-21  Bruno Haible  <bruno@clisp.org>
49376
49377         Update doc for HP-UX 11.11.
49378         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49379         in HP-UX version 11.00, not in all versions of HP-UX 11.
49380         * doc/posix-functions/fwide.texi: Likewise.
49381         * doc/posix-functions/fwprintf.texi: Likewise.
49382         * doc/posix-functions/fwscanf.texi: Likewise.
49383         * doc/posix-functions/inet_ntop.texi: Likewise.
49384         * doc/posix-functions/inet_pton.texi: Likewise.
49385         * doc/posix-functions/mbrlen.texi: Likewise.
49386         * doc/posix-functions/mbrtowc.texi: Likewise.
49387         * doc/posix-functions/mbsinit.texi: Likewise.
49388         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49389         * doc/posix-functions/swprintf.texi: Likewise.
49390         * doc/posix-functions/swscanf.texi: Likewise.
49391         * doc/posix-functions/towctrans.texi: Likewise.
49392         * doc/posix-functions/vfwprintf.texi: Likewise.
49393         * doc/posix-functions/vswprintf.texi: Likewise.
49394         * doc/posix-functions/vwprintf.texi: Likewise.
49395         * doc/posix-functions/wcrtomb.texi: Likewise.
49396         * doc/posix-functions/wcsrtombs.texi: Likewise.
49397         * doc/posix-functions/wcsstr.texi: Likewise.
49398         * doc/posix-functions/wctob.texi: Likewise.
49399         * doc/posix-functions/wctrans.texi: Likewise.
49400         * doc/posix-functions/wmemchr.texi: Likewise.
49401         * doc/posix-functions/wmemcmp.texi: Likewise.
49402         * doc/posix-functions/wmemcpy.texi: Likewise.
49403         * doc/posix-functions/wmemmove.texi: Likewise.
49404         * doc/posix-functions/wmemset.texi: Likewise.
49405         * doc/posix-functions/wprintf.texi: Likewise.
49406         * doc/posix-functions/wscanf.texi: Likewise.
49407
49408 2008-12-21  Bruno Haible  <bruno@clisp.org>
49409
49410         Work around a portability problem.
49411         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49412         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49413
49414 2008-12-20  Bruno Haible  <bruno@clisp.org>
49415
49416         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49417         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49418         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49420         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49421
49422         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49423         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49424         set.
49425         (GNULIB_defined_mbstate_t): New macro.
49426         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49427         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49428         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49429         reuses the system's mbrtowc function but works around the bugs.
49430         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49431         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49432         macros.
49433         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49434         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49435         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49436         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49437         REPLACE_MBSINIT if mbsinit needs to be overridden.
49438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49439         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49440         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49441         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49442         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49443         m4/locale-zh.m4.
49444         (Depends): Add mbsinit.
49445         * modules/mbsinit (Depends): Add mbrtowc.
49446         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49447
49448 2008-12-20  Bruno Haible  <bruno@clisp.org>
49449
49450         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49451         so that there are no conversion errors on AIX.
49452         * tests/test-mbsrtowcs.c (main): LIkewise.
49453
49454 2008-12-20  Bruno Haible  <bruno@clisp.org>
49455
49456         Work around wctob bug on Solaris <= 9.
49457         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49458         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49460         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49461         * modules/wctob (Files): Add m4/locale-fr.m4.
49462         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49463
49464 2008-12-20  Bruno Haible  <bruno@clisp.org>
49465
49466         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49467         /dev/null.
49468         * tests/test-select-in.sh: Likewise.
49469         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49470
49471 2008-12-20  Bruno Haible  <bruno@clisp.org>
49472
49473         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49474         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49475         Cygwin 1.5.x.
49476
49477 2008-12-20  Bruno Haible  <bruno@clisp.org>
49478
49479         Ensure mbstate_t is defined on HP-UX 11.11.
49480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49481         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49482         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49483         AC_USE_SYSTEM_EXTENSIONS.
49484         * modules/fnmatch (Depends-on): Add extensions.
49485         * modules/mbrlen (Depends-on): Likewise.
49486         * modules/mbrtowc (Depends-on): Likewise.
49487         * modules/mbsinit (Depends-on): Likewise.
49488         * modules/mbsrtowcs (Depends-on): Likewise.
49489         * modules/mbswidth (Depends-on): Likewise.
49490         * modules/quotearg (Depends-on): Likewise.
49491         * modules/strftime (Depends-on): Likewise.
49492
49493 2008-12-20  Bruno Haible  <bruno@clisp.org>
49494
49495         Ensure wctob is declared on IRIX 6.5.
49496         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49497         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49498         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49500         of HAVE_WCTOB.
49501         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49502         HAVE_WCTOB.
49503         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49504
49505 2008-12-19  Bruno Haible  <bruno@clisp.org>
49506
49507         * modules/mbsrtowcs-tests: New file.
49508         * tests/test-mbsrtowcs1.sh: New file.
49509         * tests/test-mbsrtowcs2.sh: New file.
49510         * tests/test-mbsrtowcs3.sh: New file.
49511         * tests/test-mbsrtowcs4.sh: New file.
49512         * tests/test-mbsrtowcs.c: New file.
49513
49514         New module 'mbsrtowcs'.
49515         * lib/wchar.in.h (mbsrtowcs): New declaration.
49516         * lib/mbsrtowcs.c: New file.
49517         * m4/mbsrtowcs.m4: New file.
49518         * modules/mbsrtowcs: New file.
49519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49520         HAVE_MBSRTOWCS.
49521         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49522         HAVE_MBSRTOWCS.
49523         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49524
49525 2008-12-19  Bruno Haible  <bruno@clisp.org>
49526
49527         New module 'mbrlen'.
49528         * lib/wchar.in.h (mbrlen): New declaration.
49529         * lib/mbrlen.c: New file.
49530         * m4/mbrlen.m4: New file.
49531         * modules/mbrlen: New file.
49532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49533         HAVE_MBRLEN.
49534         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49535         HAVE_MBRLEN.
49536         * doc/posix-functions/mbrlen.texi: Document the new module.
49537
49538 2008-12-19  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49541         * modules/mbrtowc (Depends-on): Add verify.
49542         Suggested by Paul Eggert.
49543
49544 2008-12-18  Bruno Haible  <bruno@clisp.org>
49545
49546         * modules/mbsinit-tests: New file.
49547         * tests/test-mbsinit.sh: New file.
49548         * tests/test-mbsinit.c: New file.
49549
49550 2008-12-18  Bruno Haible  <bruno@clisp.org>
49551
49552         * modules/mbrtowc-tests: New file.
49553         * tests/test-mbrtowc1.sh: New file.
49554         * tests/test-mbrtowc2.sh: New file.
49555         * tests/test-mbrtowc3.sh: New file.
49556         * tests/test-mbrtowc4.sh: New file.
49557         * tests/test-mbrtowc.c: New file.
49558
49559         New module 'mbrtowc'.
49560         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49561         mbsinit and mbrtowc.
49562         (mbrtowc): New declaration.
49563         * lib/mbrtowc.c: New file.
49564         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49565         * modules/mbrtowc: New file.
49566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49567         HAVE_MBRTOWC.
49568         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49569         HAVE_MBRTOWC.
49570         * doc/posix-functions/mbrtowc.texi: Document the new module.
49571
49572 2008-12-18  Bruno Haible  <bruno@clisp.org>
49573
49574         New module 'wctob'.
49575         * lib/wchar.in.h (wctob): New declaration.
49576         * lib/wctob.c: New file.
49577         * m4/wctob.m4: New file.
49578         * modules/wctob: New file.
49579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49580         HAVE_WCTOB.
49581         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49582         * doc/posix-functions/wctob.texi: Document the new module.
49583
49584 2008-12-18  Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49587         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49588
49589 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49590
49591         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49592         G. Christensen" <tgc@jupiterrise.com>.
49593
49594         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49595         G. Christensen" <tgc@jupiterrise.com>.
49596
49597         * lib/flock.c: Need to include string.h.  Reported by "Tom
49598         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49599         <ebb9@byu.net>.
49600
49601 2008-12-18  Bruno Haible  <bruno@clisp.org>
49602
49603         * m4/locale-ja.m4: New file, from GNU gettext.
49604
49605 2008-12-17  Bruno Haible  <bruno@clisp.org>
49606
49607         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49608         Suggested by Eric Blake.
49609
49610 2008-12-17  Bruno Haible  <bruno@clisp.org>
49611
49612         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49613
49614 2008-12-17  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49617         * modules/mbsinit (Depends-on): Add verify.
49618         Suggested by Paul Eggert.
49619
49620 2008-12-17  Bruno Haible  <bruno@clisp.org>
49621
49622         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49623         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49624         gl_FUNC_MBRTOWC.
49625         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49626         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49627         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49628         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49629         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49630         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49631         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49632         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49633         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49634         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49635         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49636         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49637         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49638         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49639         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49640         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49641         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49642         * modules/trim (configure.ac): Likewise.
49643
49644 2008-12-17  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/btowc-tests: New file.
49647         * tests/test-btowc1.sh: New file.
49648         * tests/test-btowc2.sh: New file.
49649         * tests/test-btowc.c: New file.
49650
49651         New module 'btowc'.
49652         * lib/wchar.in.h (btowc): New declaration.
49653         * lib/btowc.c: New file.
49654         * m4/btowc.m4: New file.
49655         * modules/btowc: New file.
49656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49657         HAVE_BTOWC.
49658         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49659         * doc/posix-functions/btowc.texi: Document the new module.
49660
49661 2008-12-17  Bruno Haible  <bruno@clisp.org>
49662
49663         New module 'mbsinit'.
49664         * lib/wchar.in.h (mbsinit): New declaration.
49665         * lib/mbsinit.c: New file.
49666         * m4/mbsinit.m4: New file.
49667         * modules/mbsinit: New file.
49668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49669         HAVE_MBSINIT.
49670         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49671         HAVE_MBSINIT.
49672         * doc/posix-functions/mbsinit.texi: Document the new module.
49673
49674 2008-12-16  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/unistd.in.h: Add comment.
49677         * tests/test-environ.c: Don't include <stdlib.h>.
49678
49679 2008-12-16  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/parse-duration.h (parse_duration): Document return value
49682         convention.
49683         * lib/parse-duration.c: Include specification header first. Add
49684         comments.
49685         (_): Remove macro.
49686         (parse_year_month_day, parse_hour_minute_second): Move side effects
49687         outside of strchr call.
49688         (parse_non_iso8601): Move side effects outside of isspace call.
49689         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49690         call.
49691
49692 2008-12-16  Bruno Haible  <bruno@clisp.org>
49693
49694         * tests/test-parse-duration.sh: Produce no output when the test
49695         succeeds.
49696
49697 2008-12-16  Bruno Haible  <bruno@clisp.org>
49698
49699         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49700         expressions.
49701
49702 2008-12-15  Bruno Haible  <bruno@clisp.org>
49703
49704         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49705         * doc/glibc-functions/flistxattr.texi: Likewise.
49706         * doc/glibc-functions/fopencookie.texi: Likewise.
49707         * doc/glibc-functions/fremovexattr.texi: Likewise.
49708         * doc/glibc-functions/fsetxattr.texi: Likewise.
49709         * doc/glibc-functions/getxattr.texi: Likewise.
49710         * doc/glibc-functions/lgetxattr.texi: Likewise.
49711         * doc/glibc-functions/listxattr.texi: Likewise.
49712         * doc/glibc-functions/llistxattr.texi: Likewise.
49713         * doc/glibc-functions/lremovexattr.texi: Likewise.
49714         * doc/glibc-functions/lsetxattr.texi: Likewise.
49715         * doc/glibc-functions/removexattr.texi: Likewise.
49716         * doc/glibc-functions/setxattr.texi: Likewise.
49717         * doc/posix-functions/open_memstream.texi: Likewise.
49718
49719 2008-12-15  Eric Blake  <ebb9@byu.net>
49720
49721         Update doc for cygwin 1.7.
49722         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49723         functions.
49724         * doc/posix-functions/fchmodat.texi: Likewise.
49725         * doc/posix-functions/fchownat.texi: Likewise.
49726         * doc/posix-functions/fdopendir.texi: Likewise.
49727         * doc/posix-functions/fmemopen.texi: Likewise.
49728         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49729         * doc/posix-functions/fstatat.texi: Likewise.
49730         * doc/posix-functions/futimens.texi: Likewise.
49731         * doc/posix-functions/gai_strerror.texi: Likewise.
49732         * doc/posix-functions/getaddrinfo.texi: Likewise.
49733         * doc/posix-functions/getnameinfo.texi: Likewise.
49734         * doc/posix-functions/if_freenameindex.texi: Likewise.
49735         * doc/posix-functions/if_indextoname.texi: Likewise.
49736         * doc/posix-functions/if_nameindex.texi: Likewise.
49737         * doc/posix-functions/if_nametoindex.texi: Likewise.
49738         * doc/posix-functions/insque.texi: Likewise.
49739         * doc/posix-functions/linkat.texi: Likewise.
49740         * doc/posix-functions/llrint.texi: Likewise.
49741         * doc/posix-functions/llrintf.texi: Likewise.
49742         * doc/posix-functions/llrintl.texi: Likewise.
49743         * doc/posix-functions/lockf.texi: Likewise.
49744         * doc/posix-functions/lrintl.texi: Likewise.
49745         * doc/posix-functions/mkdirat.texi: Likewise.
49746         * doc/posix-functions/mkfifoat.texi: Likewise.
49747         * doc/posix-functions/mknodat.texi: Likewise.
49748         * doc/posix-functions/mq_close.texi: Likewise.
49749         * doc/posix-functions/mq_getattr.texi: Likewise.
49750         * doc/posix-functions/mq_notify.texi: Likewise.
49751         * doc/posix-functions/mq_open.texi: Likewise.
49752         * doc/posix-functions/mq_receive.texi: Likewise.
49753         * doc/posix-functions/mq_send.texi: Likewise.
49754         * doc/posix-functions/mq_setattr.texi: Likewise.
49755         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49756         * doc/posix-functions/mq_timedsend.texi: Likewise.
49757         * doc/posix-functions/mq_unlink.texi: Likewise.
49758         * doc/posix-functions/open_memstream.texi: Likewise.
49759         * doc/posix-functions/openat.texi: Likewise.
49760         * doc/posix-functions/posix_fadvise.texi: Likewise.
49761         * doc/posix-functions/posix_fallocate.texi: Likewise.
49762         * doc/posix-functions/posix_madvise.texi: Likewise.
49763         * doc/posix-functions/posix_memalign.texi: Likewise.
49764         * doc/posix-functions/posix_openpt.texi: Likewise.
49765         * doc/posix-functions/readlinkat.texi: Likewise.
49766         * doc/posix-functions/remque.texi: Likewise.
49767         * doc/posix-functions/renameat.texi: Likewise.
49768         * doc/posix-functions/rintl.texi: Likewise.
49769         * doc/posix-functions/sem_unlink.texi: Likewise.
49770         * doc/posix-functions/shm_open.texi: Likewise.
49771         * doc/posix-functions/shm_unlink.texi: Likewise.
49772         * doc/posix-functions/signgam.texi: Likewise.
49773         * doc/posix-functions/sigset.texi: Likewise.
49774         * doc/posix-functions/stpcpy.texi: Likewise.
49775         * doc/posix-functions/stpncpy.texi: Likewise.
49776         * doc/posix-functions/strerror.texi: Likewise.
49777         * doc/posix-functions/strtod.texi: Likewise.
49778         * doc/posix-functions/symlinkat.texi: Likewise.
49779         * doc/posix-functions/unlinkat.texi: Likewise.
49780         * doc/posix-functions/utimensat.texi: Likewise.
49781         * doc/glibc-functions/bindresvport.texi: Likewise.
49782         * doc/glibc-functions/dn_expand.texi: Likewise.
49783         * doc/glibc-functions/exp10.texi: Likewise.
49784         * doc/glibc-functions/exp10f.texi: Likewise.
49785         * doc/glibc-functions/fgetxattr.texi: Likewise.
49786         * doc/glibc-functions/flistxattr.texi: Likewise.
49787         * doc/glibc-functions/fopencookie.texi: Likewise.
49788         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49789         * doc/glibc-functions/fremovexattr.texi: Likewise.
49790         * doc/glibc-functions/fsetxattr.texi: Likewise.
49791         * doc/glibc-functions/getifaddrs.texi: Likewise.
49792         * doc/glibc-functions/getxattr.texi: Likewise.
49793         * doc/glibc-functions/lgetxattr.texi: Likewise.
49794         * doc/glibc-functions/listxattr.texi: Likewise.
49795         * doc/glibc-functions/llistxattr.texi: Likewise.
49796         * doc/glibc-functions/lremovexattr.texi: Likewise.
49797         * doc/glibc-functions/lsetxattr.texi: Likewise.
49798         * doc/glibc-functions/pow10.texi: Likewise.
49799         * doc/glibc-functions/pow10f.texi: Likewise.
49800         * doc/glibc-functions/rcmd_af.texi: Likewise.
49801         * doc/glibc-functions/removexattr.texi: Likewise.
49802         * doc/glibc-functions/res_init.texi: Likewise.
49803         * doc/glibc-functions/res_mkquery.texi: Likewise.
49804         * doc/glibc-functions/res_query.texi: Likewise.
49805         * doc/glibc-functions/res_querydomain.texi: Likewise.
49806         * doc/glibc-functions/res_send.texi: Likewise.
49807         * doc/glibc-functions/rresvport_af.texi: Likewise.
49808         * doc/glibc-functions/setxattr.texi: Likewise.
49809         * doc/glibc-functions/strcasestr.texi: Likewise.
49810
49811 2008-12-15  Bruno Haible  <bruno@clisp.org>
49812
49813         Fix compilation error on OSF/1 4.0.
49814         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49815         <sys/time.h>, simply delegate to the system header.
49816         Reported by Daniel Richard G. <oss@teragram.com>.
49817
49818 2008-12-15  Bruno Haible  <bruno@clisp.org>
49819
49820         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49821         * doc/posix-functions/fchmodat.texi: Likewise.
49822         * doc/posix-functions/fchownat.texi: Likewise.
49823         * doc/posix-functions/fdopendir.texi: Likewise.
49824         * doc/posix-functions/fstatat.texi: Likewise.
49825         * doc/posix-functions/mkdirat.texi: Likewise.
49826         * doc/posix-functions/unlinkat.texi: Likewise.
49827
49828 2008-12-14  Bruno Haible  <bruno@clisp.org>
49829
49830         Update doc for POSIX:2008.
49831         * doc/posix-functions/faccessat.texi: New file.
49832         * doc/posix-functions/fchmodat.texi: New file.
49833         * doc/posix-functions/fchownat.texi: New file.
49834         * doc/posix-functions/fdopendir.texi: New file.
49835         * doc/posix-functions/fstatat.texi: New file.
49836         * doc/posix-functions/futimens.texi: New file.
49837         * doc/posix-functions/linkat.texi: New file.
49838         * doc/posix-functions/mkdirat.texi: New file.
49839         * doc/posix-functions/mkfifoat.texi: New file.
49840         * doc/posix-functions/mknodat.texi: New file.
49841         * doc/posix-functions/open_wmemstream.texi: New file.
49842         * doc/posix-functions/openat.texi: New file.
49843         * doc/posix-functions/psiginfo.texi: New file.
49844         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49845         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49846         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49847         * doc/posix-functions/readlinkat.texi: New file.
49848         * doc/posix-functions/renameat.texi: New file.
49849         * doc/posix-functions/strerror_l.texi: New file.
49850         * doc/posix-functions/symlinkat.texi: New file.
49851         * doc/posix-functions/unlinkat.texi: New file.
49852         * doc/posix-functions/utimensat.texi: New file.
49853         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49854
49855 2008-12-14  Bruno Haible  <bruno@clisp.org>
49856
49857         Update doc for POSIX:2008.
49858         * doc/posix-functions/alphasort.texi: Renamed from
49859         doc/glibc-functions/alphasort.texi.
49860         * doc/posix-functions/dirfd.texi: Renamed from
49861         doc/glibc-functions/dirfd.texi.
49862         * doc/posix-functions/dprintf.texi: Renamed from
49863         doc/glibc-functions/dprintf.texi.
49864         * doc/posix-functions/duplocale.texi: Renamed from
49865         doc/glibc-functions/duplocale.texi.
49866         * doc/posix-functions/fexecve.texi: Renamed from
49867         doc/glibc-functions/fexecve.texi.
49868         * doc/posix-functions/fmemopen.texi: Renamed from
49869         doc/glibc-functions/fmemopen.texi.
49870         * doc/posix-functions/freelocale.texi: Renamed from
49871         doc/glibc-functions/freelocale.texi.
49872         * doc/posix-functions/getdate_err.texi: Renamed from
49873         doc/glibc-functions/getdate_err.texi.
49874         * doc/posix-functions/isalnum_l.texi: Renamed from
49875         doc/glibc-functions/isalnum_l.texi.
49876         * doc/posix-functions/isalpha_l.texi: Renamed from
49877         doc/glibc-functions/isalpha_l.texi.
49878         * doc/posix-functions/isblank_l.texi: Renamed from
49879         doc/glibc-functions/isblank_l.texi.
49880         * doc/posix-functions/iscntrl_l.texi: Renamed from
49881         doc/glibc-functions/iscntrl_l.texi.
49882         * doc/posix-functions/isdigit_l.texi: Renamed from
49883         doc/glibc-functions/isdigit_l.texi.
49884         * doc/posix-functions/isgraph_l.texi: Renamed from
49885         doc/glibc-functions/isgraph_l.texi.
49886         * doc/posix-functions/islower_l.texi: Renamed from
49887         doc/glibc-functions/islower_l.texi.
49888         * doc/posix-functions/isprint_l.texi: Renamed from
49889         doc/glibc-functions/isprint_l.texi.
49890         * doc/posix-functions/ispunct_l.texi: Renamed from
49891         doc/glibc-functions/ispunct_l.texi.
49892         * doc/posix-functions/isspace_l.texi: Renamed from
49893         doc/glibc-functions/isspace_l.texi.
49894         * doc/posix-functions/isupper_l.texi: Renamed from
49895         doc/glibc-functions/isupper_l.texi.
49896         * doc/posix-functions/iswalnum_l.texi: Renamed from
49897         doc/glibc-functions/iswalnum_l.texi.
49898         * doc/posix-functions/iswalpha_l.texi: Renamed from
49899         doc/glibc-functions/iswalpha_l.texi.
49900         * doc/posix-functions/iswblank_l.texi: Renamed from
49901         doc/glibc-functions/iswblank_l.texi.
49902         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49903         doc/glibc-functions/iswcntrl_l.texi.
49904         * doc/posix-functions/iswctype_l.texi: Renamed from
49905         doc/glibc-functions/iswctype_l.texi.
49906         * doc/posix-functions/iswdigit_l.texi: Renamed from
49907         doc/glibc-functions/iswdigit_l.texi.
49908         * doc/posix-functions/iswgraph_l.texi: Renamed from
49909         doc/glibc-functions/iswgraph_l.texi.
49910         * doc/posix-functions/iswlower_l.texi: Renamed from
49911         doc/glibc-functions/iswlower_l.texi.
49912         * doc/posix-functions/iswprint_l.texi: Renamed from
49913         doc/glibc-functions/iswprint_l.texi.
49914         * doc/posix-functions/iswpunct_l.texi: Renamed from
49915         doc/glibc-functions/iswpunct_l.texi.
49916         * doc/posix-functions/iswspace_l.texi: Renamed from
49917         doc/glibc-functions/iswspace_l.texi.
49918         * doc/posix-functions/iswupper_l.texi: Renamed from
49919         doc/glibc-functions/iswupper_l.texi.
49920         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49921         doc/glibc-functions/iswxdigit_l.texi.
49922         * doc/posix-functions/isxdigit_l.texi: Renamed from
49923         doc/glibc-functions/isxdigit_l.texi.
49924         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49925         doc/glibc-functions/mbsnrtowcs.texi.
49926         * doc/posix-functions/mkdtemp.texi: Renamed from
49927         doc/glibc-functions/mkdtemp.texi.
49928         * doc/posix-functions/newlocale.texi: Renamed from
49929         doc/glibc-functions/newlocale.texi.
49930         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49931         doc/glibc-functions/nl_langinfo_l.texi.
49932         * doc/posix-functions/open_memstream.texi: Renamed from
49933         doc/glibc-functions/open_memstream.texi.
49934         * doc/posix-functions/opterr.texi: Renamed from
49935         doc/glibc-functions/opterr.texi.
49936         * doc/posix-functions/optind.texi: Renamed from
49937         doc/glibc-functions/optind.texi.
49938         * doc/posix-functions/optopt.texi: Renamed from
49939         doc/glibc-functions/optopt.texi.
49940         * doc/posix-functions/psignal.texi: Renamed from
49941         doc/glibc-functions/psignal.texi.
49942         * doc/posix-functions/scandir.texi: Renamed from
49943         doc/glibc-functions/scandir.texi.
49944         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49945         doc/glibc-functions/sched_get_priority_min.texi.
49946         * doc/posix-functions/signgam.texi: Renamed from
49947         doc/glibc-functions/signgam.texi.
49948         * doc/posix-functions/stpcpy.texi: Renamed from
49949         doc/glibc-functions/stpcpy.texi.
49950         * doc/posix-functions/stpncpy.texi: Renamed from
49951         doc/glibc-functions/stpncpy.texi.
49952         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49953         doc/glibc-functions/strcasecmp_l.texi.
49954         * doc/posix-functions/strcoll_l.texi: Renamed from
49955         doc/glibc-functions/strcoll_l.texi.
49956         * doc/posix-functions/strfmon_l.texi: Renamed from
49957         doc/glibc-functions/strfmon_l.texi.
49958         * doc/posix-functions/strftime_l.texi: Renamed from
49959         doc/glibc-functions/strftime_l.texi.
49960         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49961         doc/glibc-functions/strncasecmp_l.texi.
49962         * doc/posix-functions/strndup.texi: Renamed from
49963         doc/glibc-functions/strndup.texi.
49964         * doc/posix-functions/strnlen.texi: Renamed from
49965         doc/glibc-functions/strnlen.texi.
49966         * doc/posix-functions/strsignal.texi: Renamed from
49967         doc/glibc-functions/strsignal.texi.
49968         * doc/posix-functions/strxfrm_l.texi: Renamed from
49969         doc/glibc-functions/strxfrm_l.texi.
49970         * doc/posix-functions/timer_gettime.texi: Renamed from
49971         doc/glibc-functions/timer_gettime.texi.
49972         * doc/posix-functions/tolower_l.texi: Renamed from
49973         doc/glibc-functions/tolower_l.texi.
49974         * doc/posix-functions/toupper_l.texi: Renamed from
49975         doc/glibc-functions/toupper_l.texi.
49976         * doc/posix-functions/towctrans_l.texi: Renamed from
49977         doc/glibc-functions/towctrans_l.texi.
49978         * doc/posix-functions/towlower_l.texi: Renamed from
49979         doc/glibc-functions/towlower_l.texi.
49980         * doc/posix-functions/towupper_l.texi: Renamed from
49981         doc/glibc-functions/towupper_l.texi.
49982         * doc/posix-functions/uselocale.texi: Renamed from
49983         doc/glibc-functions/uselocale.texi.
49984         * doc/posix-functions/vdprintf.texi: Renamed from
49985         doc/glibc-functions/vdprintf.texi.
49986         * doc/posix-functions/wcpcpy.texi:
49987         Renamed from doc/glibc-functions/wcpcpy.texi.
49988         * doc/posix-functions/wcpncpy.texi: Renamed from
49989         doc/glibc-functions/wcpncpy.texi.
49990         * doc/posix-functions/wcscasecmp.texi: Renamed from
49991         doc/glibc-functions/wcscasecmp.texi.
49992         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49993         doc/glibc-functions/wcscasecmp_l.texi.
49994         * doc/posix-functions/wcscoll_l.texi: Renamed from
49995         doc/glibc-functions/wcscoll_l.texi.
49996         * doc/posix-functions/wcsdup.texi: Renamed from
49997         doc/glibc-functions/wcsdup.texi.
49998         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49999         doc/glibc-functions/wcsncasecmp.texi.
50000         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50001         doc/glibc-functions/wcsncasecmp_l.texi.
50002         * doc/posix-functions/wcsnlen.texi: Renamed from
50003         doc/glibc-functions/wcsnlen.texi.
50004         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50005         doc/glibc-functions/wcsnrtombs.texi.
50006         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50007         doc/glibc-functions/wcsxfrm_l.texi.
50008         * doc/posix-functions/wctrans_l.texi: Renamed from
50009         doc/glibc-functions/wctrans_l.texi.
50010         * doc/posix-functions/wctype_l.texi: Renamed from
50011         doc/glibc-functions/wctype_l.texi.
50012         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50013         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50014         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50015         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50016         these subsections.
50017         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50018         Remove sections.
50019
50020 2008-12-14  Bruno Haible  <bruno@clisp.org>
50021
50022         Update doc for POSIX:2008.
50023         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50024
50025 2008-12-14  Bruno Haible  <bruno@clisp.org>
50026
50027         Update doc for POSIX:2008.
50028         * doc/pastposix-functions/bcmp.texi: Renamed from
50029         doc/posix-functions/bcmp.texi.
50030         * doc/pastposix-functions/bcopy.texi: Renamed from
50031         doc/posix-functions/bcopy.texi.
50032         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50033         doc/posix-functions/bsd_signal.texi.
50034         * doc/pastposix-functions/bzero.texi: Renamed from
50035         doc/posix-functions/bzero.texi.
50036         * doc/pastposix-functions/ecvt.texi: Renamed from
50037         doc/posix-functions/ecvt.texi.
50038         * doc/pastposix-functions/fcvt.texi: Renamed from
50039         doc/posix-functions/fcvt.texi.
50040         * doc/pastposix-functions/ftime.texi: Renamed from
50041         doc/posix-functions/ftime.texi.
50042         * doc/pastposix-functions/gcvt.texi: Renamed from
50043         doc/posix-functions/gcvt.texi.
50044         * doc/pastposix-functions/getcontext.texi: Renamed from
50045         doc/posix-functions/getcontext.texi.
50046         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50047         doc/posix-functions/gethostbyaddr.texi.
50048         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50049         doc/posix-functions/gethostbyname.texi.
50050         * doc/pastposix-functions/getwd.texi: Renamed from
50051         doc/posix-functions/getwd.texi.
50052         * doc/pastposix-functions/h_errno.texi: Renamed from
50053         doc/posix-functions/h_errno.texi.
50054         * doc/pastposix-functions/index.texi: Renamed from
50055         doc/posix-functions/index.texi.
50056         * doc/pastposix-functions/makecontext.texi: Renamed from
50057         doc/posix-functions/makecontext.texi.
50058         * doc/pastposix-functions/mktemp.texi: Renamed from
50059         doc/posix-functions/mktemp.texi.
50060         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50061         doc/posix-functions/pthread_attr_getstackaddr.texi.
50062         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50063         doc/posix-functions/pthread_attr_setstackaddr.texi.
50064         * doc/pastposix-functions/rindex.texi: Renamed from
50065         doc/posix-functions/rindex.texi.
50066         * doc/pastposix-functions/scalb.texi: Renamed from
50067         doc/posix-functions/scalb.texi.
50068         * doc/pastposix-functions/setcontext.texi: Renamed from
50069         doc/posix-functions/setcontext.texi.
50070         * doc/pastposix-functions/swapcontext.texi: Renamed from
50071         doc/posix-functions/swapcontext.texi.
50072         * doc/pastposix-functions/ualarm.texi: Renamed from
50073         doc/posix-functions/ualarm.texi.
50074         * doc/pastposix-functions/usleep.texi: Renamed from
50075         doc/posix-functions/usleep.texi.
50076         * doc/pastposix-functions/vfork.texi: Renamed from
50077         doc/posix-functions/vfork.texi.
50078         * doc/pastposix-functions/wcswcs.texi: Renamed from
50079         doc/posix-functions/wcswcs.texi.
50080         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50081         (Function Substitutes): Update.
50082
50083 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50084
50085         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50086         m4/strerror.m4.
50087
50088 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50089             Bruno Haible  <bruno@clisp.org>
50090
50091         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50092
50093 2008-12-13  Bruno Haible  <bruno@clisp.org>
50094
50095         * modules/strtoull (Depends-on): Remove unistd.
50096
50097 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50098
50099         * modules/strtoull (Depends-on): Add stdlib.
50100
50101 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50102
50103         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50104
50105 2008-12-10  Jim Meyering  <meyering@redhat.com>
50106
50107         gl_ASSERT: don't say assertions are disabled when they're not
50108         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50109         "checking whether to enable assertions... no", when they are in
50110         fact enabled.  This is solely a bug in the output of configure.
50111         In spite of saying "no", NDEBUG was not defined in that case.
50112         Also, as noted by Eric Blake, leave assertions enabled upon
50113         --enable-assert=INVALID.
50114
50115 2008-12-10  Bruno Haible  <bruno@clisp.org>
50116
50117         Change MODULES.html to refer to POSIX:2008 where possible.
50118         * MODULES.html.sh (POSIX2008_URL): New variable.
50119         (posix_headers): Remove sys/timeb, ucontext.
50120         (posix2001_headers): New variable.
50121         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50122         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50123         index, makecontext, mktemp, pthread_attr_getstackaddr,
50124         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50125         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50126         (posix2001_functions): New variable.
50127         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50128         otherwise.
50129
50130 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50131
50132         add missing include to parse-duration.c
50133         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50134         * modules/parse-duration (Depends-on): Add xalloc.
50135
50136         fix sed script reading maint.mk
50137         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50138         (syntax-check-rules): Use it.
50139
50140 2008-12-09  Bruno Haible  <bruno@clisp.org>
50141
50142         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50143         MacOS X 10.4/PowerPC.
50144         Reported by Simon Josefsson.
50145
50146 2008-12-08  Jim Meyering  <meyering@redhat.com>
50147
50148         work around mingw's lack of some S_IF definitions
50149         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50150         Reported by Simon Josefsson.
50151
50152 2008-12-08  Bruno Haible  <bruno@clisp.org>
50153
50154         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50155         applied to variables. Needed on MacOS X 10.4/PowerPC.
50156         Reported by Simon Josefsson.
50157
50158 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50159         and Eric Blake  <ebb9@byu.net>
50160
50161         assert: honor --enable-assert
50162         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50163         order to honor --enable-assert, rather than treating it as a
50164         synonym for --disable-assert.
50165
50166 2008-12-08  Jim Meyering  <meyering@redhat.com>
50167
50168         * lib/posixtm.c: Remove now-useless declaration of mktime.
50169
50170         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50171
50172 2008-12-07  Bruno Haible  <bruno@clisp.org>
50173
50174         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50175         test_once): Mark functions as static.
50176         * tests/test-tls.c (test_tls): Likewise.
50177
50178 2008-12-07  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50181         iconv_register_autodetect.
50182
50183 2008-12-07  Jim Meyering  <meyering@redhat.com>
50184
50185         posixtm.c: avoid a warning
50186         * lib/posixtm.c (posixtime): Don't initialize tm0.
50187         It's no longer needed to placate gcc4's -Wuninitialized,
50188         and the attempt to placate would elicit a new warning.
50189
50190         unicodeio.c: mark unused parameters
50191         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50192         (fallback_failure_callback): Likewise.
50193
50194 2008-12-07  Bruno Haible  <bruno@clisp.org>
50195
50196         * gnulib-tool (func_create_testdir): When building the tests
50197         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50198         Reported by Simon Josefsson.
50199
50200 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50201
50202         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50203
50204 2008-12-06  Bruno Haible  <bruno@clisp.org>
50205
50206         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50207         Suggested by Eric Blake.
50208
50209 2008-12-06  Bruno Haible  <bruno@clisp.org>
50210
50211         Fix a c-stack test failure on MacOS X.
50212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50213         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50214         handler for SIGBUS as well.
50215         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50216         install a signal handler for SIGBUS as well.
50217         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50218
50219 2008-12-06  Bruno Haible  <bruno@clisp.org>
50220
50221         Advocacy documentation.
50222         * doc/gnulib-intro.texi (Benefits): New section.
50223         * doc/gnulib.texi: Update.
50224
50225 2008-12-06  Bruno Haible  <bruno@clisp.org>
50226
50227         Document the 'manywarnings' module.
50228         * doc/manywarnings.texi: New file.
50229         * doc/gnulib.texi: Include it.
50230
50231 2008-12-05  Eric Blake  <ebb9@byu.net>
50232
50233         tests: silence some gcc warnings
50234         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50235         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50236         type mismatches.
50237
50238 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50239             Bruno Haible  <bruno@clisp.org>
50240
50241         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50242
50243 2008-11-29  Jim Meyering  <meyering@redhat.com>
50244
50245         unicodeio.c: mark unused parameters
50246         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50247         (fallback_failure_callback): Likewise.
50248
50249         fts: fix a thinko
50250         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50251         (set_stat_type): Return S_IF*-valued "type" directly.
50252         Prompted by James Youngman's spotting a related bug.
50253         Confirmed by further testing through find.
50254
50255         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50256         * lib/fts.c (D_TYPE): Define.
50257         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50258         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50259         (s_ifmt_shift_bits): New function.
50260         (set_stat_type): New function.
50261         (fts_build): When not calling fts_stat, call set_stat_type
50262         to propagate dirent.d_type info to fts_read caller.
50263         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50264         fts_statp->st_mode type information may be valid.
50265
50266 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50267
50268         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50269         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50270         <sds@gnu.org>.
50271
50272 2008-11-20  Bruno Haible  <bruno@clisp.org>
50273
50274         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50275         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50276         INCLUDE_NEXT.
50277         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50278         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50279         * modules/math (Makefile.am): Substitute
50280         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50282
50283 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50284             Bruno Haible  <bruno@clisp.org>
50285
50286         * lib/stdint.in.h: Define all type macros so that their expansion is
50287         a single typedef'ed token. Fixes a compilation failure in Boost which
50288         does "using ::int8_t;".
50289
50290 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50291
50292         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50293         gl_MANYWARN_ALL_GCC.
50294         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50295         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50296         * modules/manywarnings: New file.
50297         * MODULES.html.sh: Mention manywarnings module.
50298
50299 2008-11-18  Bruno Haible  <bruno@clisp.org>
50300
50301         * doc/gnulib-tool.texi (Unit tests): New section.
50302
50303 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50304
50305         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50306         paths like 'lib/po/foo.po'.
50307
50308 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50309
50310         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50311         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50312
50313 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50314
50315         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50316         parameter works.
50317
50318 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50319
50320         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50321
50322 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50323
50324         * modules/parse-duration-tests: New file.
50325         * tests/test-parse-duration.sh: New file.
50326         * tests/test-parse-duration.c: New file.
50327
50328         New module 'parse-duration'.
50329         * lib/parse-duration.h: New file.
50330         * lib/parse-duration.c: New file.
50331         * modules/parse-duration: New file.
50332
50333 2008-11-17  Bruno Haible  <bruno@clisp.org>
50334
50335         * tests/test-select-out.sh: Comment out the first pipe test.
50336         Reported by Simon Josefsson.
50337
50338 2008-11-17  Bruno Haible  <bruno@clisp.org>
50339
50340         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50342         gl_HOSTENT.
50343
50344 2008-11-17  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50347         -lnetwork and -lnet. Needed for Haiku and BeOS.
50348
50349 2008-11-16  Bruno Haible  <bruno@clisp.org>
50350
50351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50352
50353 2008-11-16  Bruno Haible  <bruno@clisp.org>
50354
50355         Avoid test failure on Haiku.
50356         * tests/test-fsync.c: Include <errno.h>.
50357         (main): Don't require that fsync (0) fails.
50358
50359 2008-11-15  Bruno Haible  <bruno@clisp.org>
50360
50361         New module 'hostent'.
50362         * modules/hostent: New file.
50363         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50364
50365 2008-11-15  Bruno Haible  <bruno@clisp.org>
50366
50367         New module 'servent'.
50368         * modules/servent: New file.
50369         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50370
50371 2008-11-15  Bruno Haible  <bruno@clisp.org>
50372
50373         Avoid generating same test program with two different rules.
50374         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50375         test-frexp to test-frexp-nolibm.
50376         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50377         test-frexpl to test-frexpl-nolibm.
50378
50379 2008-11-15  Bruno Haible  <bruno@clisp.org>
50380
50381         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50382         $(FREXPL_LIBM).
50383
50384 2008-11-15  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/netdb.in.h: Activate the definitions also when the system's
50387         <netdb.h> has 'struct addrinfo'.
50388         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50389         EAI_OVERFLOW or AI_NUMERICSERV.
50390         * doc/posix-headers/netdb.texi: Document the problem.
50391
50392 2008-11-15  Bruno Haible  <bruno@clisp.org>
50393
50394         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50395
50396         Make the 'sched' module work on platforms where <sched.h> exists but
50397         is incomplete (such as Haiku).
50398         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50399         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50400         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50401         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50402         HAVE_STRUCT_SCHED_PARAM.
50403         * modules/sched (Depends-on): Add include_next.
50404         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50405         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50406         * doc/posix-headers/sched.texi: Document the issue.
50407
50408 2008-11-13  Jim Meyering  <meyering@redhat.com>
50409
50410         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50411         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50412         test would fail due to the difference in the Report bugs to ...
50413         line.  The expected address is empty, "<>", while the actual
50414         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50415
50416 2008-11-12  Bruno Haible  <bruno@clisp.org>
50417
50418         lstat: don't compile lstat.c on systems lacking lstat
50419         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50420         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50421         Reported by Daniel P. Berrange via Jim Meyering.
50422
50423 2008-11-12  Jim Meyering  <meyering@redhat.com>
50424
50425         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50426
50427 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50428
50429         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50430         instead.
50431
50432 2008-11-12  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/unicodeio.c: Include unistr.h.
50435         (utf8_wctomb): Remove function.
50436         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50437
50438 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50439
50440         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50441         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50442         <bruno@clisp.org>.
50443         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50444
50445 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50446
50447         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50448         * doc/gnulib.texi: Add section for warnings.
50449
50450 2008-11-11  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/sockets.h: Add a comment.
50453
50454 2008-11-11  Karl Berry  <karl@gnu.org>
50455
50456         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50457
50458 2008-11-11  Eric Blake  <ebb9@byu.net>
50459
50460         fdl.texi: avoid git symlinks
50461         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50462
50463 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50464
50465         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50466
50467 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50468
50469         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50470         (gl_WARN_ADD): Substitute $2 if literal.
50471
50472 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50473
50474         * m4/warning.m4: Remove.
50475
50476 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50477
50478         * m4/warnings.m4: Almost complete rewrite. :-)
50479
50480 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50481
50482         * modules/warnings: New module.
50483         * m4/warnings.m4: New file.
50484         * MODULES.html.sh: Mention warnings module.
50485         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50486         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50487
50488 2008-11-10  Eric Blake  <ebb9@byu.net>
50489
50490         fdl.texi: make a symlink to the latest version
50491         * doc/standards.texi: Revert today's earlier change.
50492         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50493         * doc/fdl.texi: ...and replace this with a symlink to the newer
50494         fdl-1.3.texi.
50495
50496 2008-11-10  Bruno Haible  <bruno@clisp.org>
50497
50498         * tests/test-select-fd.c (main): Accept the result file name as fourth
50499         argument.
50500         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50501         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50502
50503 2008-11-10  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50506         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50507         as autoconf-substituted macros.
50508         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50510         gl_NETDB_H_DEFAULTS. Set these variables.
50511         * modules/netdb (Makefile.am): Substitute these variables.
50512
50513 2008-11-10  Eric Blake  <ebb9@byu.net>
50514
50515         standards.texi: include correct file for FDL 1.3
50516         * doc/standards.texi (GNU Free Documentation License): Change
50517         include file to pull in FDL 1.3, not 1.2.
50518
50519         fdl.texi: revert accidental change to license
50520         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50521
50522 2008-11-10  Bruno Haible  <bruno@clisp.org>
50523
50524         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50525         cross-compiling guesses also when the native compile gives no result.
50526
50527 2008-11-10  Bruno Haible  <bruno@clisp.org>
50528
50529         * lib/spawni.c (__spawni): Force variable into the stack.
50530
50531 2008-11-10  Bruno Haible  <bruno@clisp.org>
50532
50533         Add support for Haiku.
50534         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50535         glibc and BeOS, but also on Haiku.
50536         * lib/fpurge.c (fpurge): Likewise.
50537         * lib/freadable.c (freadable): Likewise.
50538         * lib/freadahead.c (freadahead): Likewise.
50539         * lib/freading.c (freading): Likewise.
50540         * lib/freadptr.c (freadptr): Likewise.
50541         * lib/freadseek.c (freadptrinc): Likewise.
50542         * lib/fseeko.c (rpl_fseeko): Likewise.
50543         * lib/fseterr.c (fseterr): Likewise.
50544         * lib/fwritable.c (fwritable): Likewise.
50545         * lib/fwriting.c (fwriting): Likewise.
50546         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50547
50548 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50549
50550         * lib/config.charset: Treat Haiku like BeOS.
50551
50552 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50553
50554         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50555         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50556
50557 2008-11-08  Bruno Haible  <bruno@clisp.org>
50558
50559         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50560         AC_CACHE_CHECK.
50561
50562 2008-11-08  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50565
50566 2008-11-08  Bruno Haible  <bruno@clisp.org>
50567
50568         * tests/test-select-fd.c: New file.
50569         * tests/test-select-in.sh: New file.
50570         * tests/test-select-out.sh: New file.
50571         * tests/test-select-stdin.c: New file.
50572         * modules/select-tests (Files): Add the new files.
50573         (Depends-on): Add gettimeofday.
50574         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50575         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50576         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50577
50578 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50579             Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50582
50583 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50584
50585         * build-aux/pmccabe2html: Added support for C++ source files.
50586
50587 2008-11-05  Ben Pfaff  <blp@gnu.org>
50588
50589         Fix lib/close.c build on Windows.
50590         * modules/close (Files): Add lib/w32sock.h.
50591
50592 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50593
50594         Accept Bison's NEWS format.
50595         * build-aux/announce-gen (print_news_deltas): Tweak
50596         $re_prefix.
50597
50598 2008-11-04  Bruno Haible  <bruno@clisp.org>
50599
50600         * modules/random_r (Maintainer): Add glibc.
50601
50602 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50603
50604         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50605         by karl@freefriends.org (Karl Berry).
50606         * doc/alloca.texi: Likewise.
50607         * doc/c-ctype.texi: Likewise.
50608         * doc/c-strcase.texi: Likewise.
50609         * doc/c-strcaseeq.texi: Likewise.
50610         * doc/c-strcasestr.texi: Likewise.
50611         * doc/c-strstr.texi: Likewise.
50612         * doc/c-strtod.texi: Likewise.
50613         * doc/c-strtold.texi: Likewise.
50614         * doc/ctime.texi: Likewise.
50615         * doc/error.texi: Likewise.
50616         * doc/fdl.texi: Likewise.
50617         * doc/gcd.texi: Likewise.
50618         * doc/getdate.texi: Likewise.
50619         * doc/gnulib-intro.texi: Likewise.
50620         * doc/gnulib-tool.texi: Likewise.
50621         * doc/gnulib.texi: Likewise.
50622         * doc/inet_ntoa.texi: Likewise.
50623         * doc/maintain.texi: Likewise.
50624         * doc/make-stds.texi: Likewise.
50625         * doc/quote.texi: Likewise.
50626         * doc/regexprops-generic.texi: Likewise.
50627         * doc/standards.texi: Likewise.
50628         * doc/verify.texi: Likewise.
50629         * doc/visibility.texi: Likewise.
50630         * doc/gnulib.texi (GNU Free Documentation License): Include
50631         fdl-1.3.texi instead of fdl.texi.
50632
50633 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50634
50635         * doc/fdl-1.3.texi: New file, from
50636         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50637         * modules/fdl-1.3: Add.
50638         * MODULES.html.sh: Add fdl-1.3.
50639
50640 2008-11-03  Bruno Haible  <bruno@clisp.org>
50641
50642         Make determination of absolute name of header file work with AIX xlc.
50643         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50644         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50645         preprocessing.
50646         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50647         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50648
50649 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50650
50651         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50652         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50653         <ludo@gnu.org>.
50654
50655 2008-11-02  Bruno Haible  <bruno@clisp.org>
50656
50657         Mark 'strpbrk' obsolete.
50658         * modules/strpbrk (Status, Notice): New sections.
50659         * modules/strtok_r (Depends-on): Add strpbrk.
50660
50661 2008-11-02  Bruno Haible  <bruno@clisp.org>
50662
50663         Mark 'strdup' obsolete.
50664         * modules/strdup (Status, Notice): New sections.
50665         * modules/findprog (Depends-on): Add strdup.
50666         * modules/getaddrinfo (Depends-on): Likewise.
50667         * modules/localename (Depends-on): Likewise.
50668         * modules/relocatable-lib (Depends-on): Likewise.
50669         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50670         * modules/relocatable-prog (Depends-on): Likewise.
50671         * modules/trim (Depends-on): Likewise.
50672         * modules/unictype/gen-ctype (Depends-on): Likewise.
50673         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50674
50675 2008-11-02  Bruno Haible  <bruno@clisp.org>
50676
50677         Mark 'strcspn' obsolete.
50678         * modules/strcspn (Status, Notice): New sections.
50679
50680 2008-11-02  Bruno Haible  <bruno@clisp.org>
50681
50682         Mark 'rmdir' obsolete.
50683         * modules/rmdir (Status, Notice): New sections.
50684         * modules/clean-temp (Depends-on): Add rmdir.
50685         * modules/openat (Depends-on): Likewise.
50686
50687 2008-11-02  Bruno Haible  <bruno@clisp.org>
50688
50689         Mark 'raise' obsolete.
50690         * modules/raise (Status, Notice): New sections.
50691         (Include): Specify <signal.h>.
50692         * modules/stdio (Depends-on): Add raise.
50693         * modules/write (Depends-on): Likewise.
50694
50695 2008-11-02  Bruno Haible  <bruno@clisp.org>
50696
50697         Mark 'memset' obsolete.
50698         * modules/memset (Status, Notice): New sections.
50699
50700 2008-11-02  Bruno Haible  <bruno@clisp.org>
50701
50702         Mark 'memmove' obsolete.
50703         * modules/memmove (Status, Notice): New sections.
50704         * modules/argp (Depends-on): Add memmove.
50705         * modules/argz (Depends-on): Likewise.
50706         * modules/canonicalize (Depends-on): Likewise.
50707         * modules/canonicalize-lgpl (Depends-on): Likewise.
50708         * modules/fts (Depends-on): Likewise.
50709         * modules/getcwd (Depends-on): Likewise.
50710         * modules/human (Depends-on): Likewise.
50711         * modules/regex (Depends-on): Likewise.
50712         * modules/striconveh (Depends-on): Likewise.
50713         * modules/trim (Depends-on): Likewise.
50714         * modules/unistr/u8-move (Depends-on): Likewise.
50715         * modules/unistr/u16-move (Depends-on): Likewise.
50716         * modules/unistr/u32-move (Depends-on): Likewise.
50717
50718 2008-11-02  Bruno Haible  <bruno@clisp.org>
50719
50720         Mark 'memcpy' obsolete.
50721         * modules/memcpy (Status, Notice): New sections.
50722
50723 2008-11-02  Bruno Haible  <bruno@clisp.org>
50724
50725         Mark 'memcmp' obsolete.
50726         * modules/memcmp (Status, Notice): New sections.
50727         * modules/argmatch (Depends-on): Add memchr.
50728         * modules/backupfile (Depends-on): Likewise.
50729         * modules/c-strcasestr (Depends-on): Likewise.
50730         * modules/crypto/des (Depends-on): Likewise.
50731         * modules/csharpcomp (Depends-on): Likewise.
50732         * modules/fnmatch (Depends-on): Likewise.
50733         * modules/git-merge-changelog (Depends-on): Likewise.
50734         * modules/isnand (Depends-on): Likewise.
50735         * modules/isnand-nolibm (Depends-on): Likewise.
50736         * modules/isnanf (Depends-on): Likewise.
50737         * modules/isnanf-nolibm (Depends-on): Likewise.
50738         * modules/isnanl (Depends-on): Likewise.
50739         * modules/isnanl-nolibm (Depends-on): Likewise.
50740         * modules/mbchar (Depends-on): Likewise.
50741         * modules/memcoll (Depends-on): Likewise.
50742         * modules/quotearg (Depends-on): Likewise.
50743         * modules/regex (Depends-on): Likewise.
50744         * modules/relocatable-prog (Depends-on): Likewise.
50745         * modules/same (Depends-on): Likewise.
50746         * modules/signbit (Depends-on): Likewise.
50747         * modules/strcasestr-simple (Depends-on): Likewise.
50748         * modules/unictype/gen-ctype (Depends-on): Likewise.
50749         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50750         * modules/uniname/uniname (Depends-on): Likewise.
50751         * modules/unistr/u8-cmp (Depends-on): Likewise.
50752
50753 2008-11-02  Bruno Haible  <bruno@clisp.org>
50754
50755         Mark 'memchr' obsolete.
50756         * modules/memchr (Status, Notice): New sections.
50757         * modules/argp (Depends-on): Add memchr.
50758         * modules/base64 (Depends-on): Likewise.
50759         * modules/c-strcasestr (Depends-on): Likewise.
50760         * modules/chdir-long (Depends-on): Likewise.
50761         * modules/fnmatch (Depends-on): Likewise.
50762         * modules/getsubopt (Depends-on): Likewise.
50763         * modules/git-merge-changelog (Depends-on): Likewise.
50764         * modules/glob (Depends-on): Likewise.
50765         * modules/strcasestr-simple (Depends-on): Likewise.
50766         * modules/strnlen (Depends-on): Likewise.
50767
50768 2008-11-02  Bruno Haible  <bruno@clisp.org>
50769
50770         Mark 'atexit' obsolete.
50771         * modules/atexit (Status, Notice): New sections.
50772         * modules/chdir-long (Depends-on): Add atexit.
50773         * modules/wait-process (Depends-on): Likewise.
50774
50775 2008-11-02  Bruno Haible  <bruno@clisp.org>
50776
50777         * gnulib-tool: New option --with-obsolete.
50778         (func_usage): Document it.
50779         (func_modules_transitive_closure): Drop obsolete dependencies if
50780         incobsolete is not true.
50781         (func_import): Read and save the incobsolete variable to the cache.
50782
50783 2008-11-02  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50786         * gnulib-tool: New option --extract-status.
50787         (func_usage): Document it.
50788         (sed_extract_prog): Recognize it.
50789         (func_get_status): New function.
50790
50791 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50792
50793         * modules/sockets (License): Change from LGPL to LGPLv2+.
50794
50795 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50796
50797         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50798
50799 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50800
50801         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50802         Mention times and sys_times.
50803         * modules/sys_times, modules/sys_times-tests: New modules.
50804         * modules/times, modules/times-tests: Likewise
50805         * m4/sys_times_h.m4: New file.
50806         * lib/sys_times.in.h: Likewise
50807         * lib/times.c: Likewise.
50808         * tests/test-sys_times.c: Likewise.
50809         * tests/test-times.c: Likewise.
50810         * doc/posix-headers/sys_times.texi: Update.
50811         * doc/posix-functions/times.texi: Update.
50812
50813 2008-10-28  Jim Meyering  <meyering@redhat.com>
50814
50815         * modules/tempname (Depends-on): Add lstat.
50816
50817         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50818
50819 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50820
50821         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50822         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50823         using idiom used elsewhere in gnulib.
50824
50825 2008-10-27  Jim Meyering  <meyering@redhat.com>
50826
50827         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50828
50829 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50830
50831         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50832         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50833         programs.
50834         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50835
50836 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50837
50838         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50839
50840 2008-10-27  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-lstat.c: Include <stdio.h>.
50843
50844 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50845
50846         * modules/lstat-tests: New module.
50847         * tests/test-lstat.c: New file.
50848
50849 2008-10-26  Jim Meyering  <meyering@redhat.com>
50850
50851         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50852
50853 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50854             Bruno Haible  <bruno@clisp.org>
50855
50856         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50857         * modules/configmake (Include): Add a note that the include must come
50858         after all system headers.
50859         * lib/javaversion.c: Include configmake.h after all other includes.
50860
50861 2008-10-26  Bruno Haible  <bruno@clisp.org>
50862
50863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50864         HAVE_STRUCT_RANDOM_DATA to 1.
50865         (gl_STDLIB_H): Simplify.
50866
50867 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50868
50869         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50870         substitute HAVE_STRUCT_RANDOM_DATA.
50871         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50872         random_data.
50873         * modules/stdlib (Makefile.am): Substitute
50874         HAVE_STRUCT_RANDOM_DATA.
50875
50876 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50877
50878         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50879         * doc/gnulib-intro.texi (Copyright): Likewise.
50880
50881 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50882
50883         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50884         findings.
50885
50886 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50887             Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/unistd.in.h: Include <winsock2.h>.
50890         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50891         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50892         Provide dummy declarations.
50893         (gethostname): Override.
50894         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50895         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50896         gl_PREREQ_SYS_H_WINSOCK2.
50897         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50898         * doc/posix-functions/gethostname.texi: More details.
50899
50900 2008-10-25  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50903         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50904         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50905
50906         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50907         here ...
50908         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50909         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50910         gl_UNISTD_H_DEFAULTS.
50911
50912 2008-10-25  Eric Blake  <ebb9@byu.net>
50913
50914         signbit: avoid spurious compiler failure
50915         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50916         declarations inside function.
50917
50918 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50919             Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50922         * modules/random_r (Depends-on): Add stdint.
50923
50924 2008-10-24  Bruno Haible  <bruno@clisp.org>
50925
50926         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50927         Eggert.
50928         * modules/strerror (License): Likewise.
50929
50930 2008-10-24  Jim Meyering  <meyering@redhat.com>
50931
50932         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50933         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50934
50935 2008-10-24  Eric Blake  <ebb9@byu.net>
50936
50937         getgroups: fix compilation when getgroups is available
50938         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50939         but with <config.h> override of getgroups disabled.
50940
50941 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50942
50943         * doc/gnulib.texi (Header files): Add note about C++ problems.
50944         Explained by Bruno Haible <bruno@clisp.org>.
50945
50946 2008-10-23  Bruno Haible  <bruno@clisp.org>
50947
50948         Define a dummy SA_NODEFER macro on Interix.
50949         * lib/signal.in.h (SA_NODEFER): Define fallback.
50950         Reported by Aleksey Cheusov <cheusov@tut.by> via
50951         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50952
50953 2008-10-23  Bruno Haible  <bruno@clisp.org>
50954
50955         * modules/freadahead (License): Change to LGPLv2+.
50956         Suggested by Simon Josefsson.
50957
50958 2008-10-23  Jim Meyering  <meyering@redhat.com>
50959
50960         random_r: new module
50961         * modules/random_r: New file.
50962         * m4/random_r.m4: New file.
50963         * lib/random_r.c: New file, from glibc.
50964         * modules/random_r-tests: New file.
50965         * tests/test-random_r.c: New file.
50966         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50967          Declare.
50968         (RAND_MAX): Define.
50969         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50970         * modules/stdlib: Substitute them, too.
50971         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50972         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50973         * doc/glibc-functions/random_r.texi: Likewise.
50974         * doc/glibc-functions/setstate_r.texi: Likewise.
50975         * doc/glibc-functions/srandom_r.texi: Likewise.
50976         * config/srclist.txt: Mention it.
50977
50978 2008-10-23  David Lutterkort  <lutter@redhat.com>
50979
50980         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50981         link requirement
50982
50983 2008-10-23  Jim Meyering  <meyering@redhat.com>
50984
50985         selinux-h: mark parameters of stub functions as intentionally unused
50986         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50987         * lib/se-context.in.h: Likewise.
50988
50989 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50990
50991         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50992
50993 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50994
50995         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50996
50997 2008-10-22  Eric Blake  <ebb9@byu.net>
50998
50999         glthread/thread: avoid compiler warning
51000         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51001         Add unreachable abort to silence compiler.
51002
51003 2008-10-22  Eric Blake  <ebb9@byu.net>
51004
51005         netdb: also supply struct addrinfo for cygwin 1.5.x
51006         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51007         older cygwin.
51008         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51009         cygwin.
51010         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51011
51012 2008-10-22  Bruno Haible  <bruno@clisp.org>
51013
51014         * users.txt: Update entry about pspp.
51015
51016 2008-10-21  Bruno Haible  <bruno@clisp.org>
51017
51018         Simplification.
51019         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51020         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51021
51022         Simplification.
51023         * lib/ioctl.c (ioctl): Don't undefine.
51024         * lib/socket.c (socket): Don't undefine.
51025
51026         Remove unused module indicator macros.
51027         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51028         GNULIB_$1 as a C macro.
51029
51030         * doc/posix-functions/close.texi: Undo last change.
51031         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51032         Windows platforms.
51033
51034 2008-10-21  Bruno Haible  <bruno@clisp.org>
51035
51036         Add gethostname() declaration to <unistd.h>.
51037         * lib/unistd.in.h (gethostname): New declaration.
51038         * lib/gethostname.c: Include <unistd.h>.
51039         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51040         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51042         and HAVE_GETHOSTNAME.
51043         * modules/gethostname (Depends-on): Add unistd.
51044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51045         (Include): Specify <unistd.h>.
51046         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51047         HAVE_GETHOSTNAME.
51048         * tests/test-gethostname.c: Include <unistd.h> first.
51049
51050 2008-10-21  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51053         * modules/select-tests (Depends-on): Likewise.
51054         Reported by Simon Josefsson.
51055
51056 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51057
51058         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51059         * lib/accept.c: New file, based on winsock.c.
51060         * lib/bind.c: New file, based on winsock.c.
51061         * lib/connect.c: New file, based on winsock.c.
51062         * lib/getpeername.c: New file, based on winsock.c.
51063         * lib/getsockname.c: New file, based on winsock.c.
51064         * lib/getsockopt.c: New file, based on winsock.c.
51065         * lib/ioctl.c: New file, based on winsock.c.
51066         * lib/listen.c: New file, based on winsock.c.
51067         * lib/recv.c: New file, based on winsock.c.
51068         * lib/recvfrom.c: New file, based on winsock.c.
51069         * lib/send.c: New file, based on winsock.c.
51070         * lib/sendto.c: New file, based on winsock.c.
51071         * lib/setsockopt.c: New file, based on winsock.c.
51072         * lib/shutdown.c: New file, based on winsock.c.
51073         * lib/socket.c: New file, based on winsock.c.
51074         * lib/w32sock.h: New file, based on winsock.c.
51075         * lib/winsock.c: Remove file.
51076         * modules/accept: Likewise.
51077         * modules/bind: Likewise.
51078         * modules/connect: Likewise.
51079         * modules/getpeername: Likewise.
51080         * modules/getsockname: Likewise.
51081         * modules/getsockopt: Likewise.
51082         * modules/ioctl: Likewise.
51083         * modules/listen: Likewise.
51084         * modules/recv: Likewise.
51085         * modules/recvfrom: Likewise.
51086         * modules/send: Likewise.
51087         * modules/sendto: Likewise.
51088         * modules/setsockopt: Likewise.
51089         * modules/shutdown: Likewise.
51090         * modules/socket: Use socket.c instead of winsock.c.
51091         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51092         * doc/posix-functions/accept.texi: Doc fix.
51093         * doc/posix-functions/bind.texi: Doc fix.
51094         * doc/posix-functions/close.texi: Doc fix.
51095         * doc/posix-functions/connect.texi: Doc fix.
51096         * doc/posix-functions/getpeername.texi: Doc fix.
51097         * doc/posix-functions/getsockname.texi: Doc fix.
51098         * doc/posix-functions/getsockopt.texi: Doc fix.
51099         * doc/posix-functions/ioctl.texi: Doc fix.
51100         * doc/posix-functions/listen.texi: Doc fix.
51101         * doc/posix-functions/recv.texi: Doc fix.
51102         * doc/posix-functions/recvfrom.texi: Doc fix.
51103         * doc/posix-functions/send.texi: Doc fix.
51104         * doc/posix-functions/sendto.texi: Doc fix.
51105         * doc/posix-functions/setsockopt.texi: Doc fix.
51106         * doc/posix-functions/shutdown.texi: Doc fix.
51107         * doc/posix-functions/socket.texi: Doc fix.
51108
51109 2008-10-20  Bruno Haible  <bruno@clisp.org>
51110
51111         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51112         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51113         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51114         as an alias for SIGABRT.
51115         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51116         (sigaction): Map it to SIGABRT.
51117         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51118
51119 2008-10-20  Bruno Haible  <bruno@clisp.org>
51120
51121         * lib/fts.c: Don't include lstat.h.
51122         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51123
51124         Move the lstat() declaration to <sys/stat.h>.
51125         * lib/lstat.h: Remove file.
51126         * lib/sys_stat.in.h: Add special invocation convention.
51127         (lstat): New declaration.
51128         * lib/lstat.c (orig_lstat): New function.
51129         (rpl_lstat): Use orig_lstat instead of lstat.
51130         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51131         AC_C_INLINE. Set REPLACE_LSTAT.
51132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51133         and REPLACE_LSTAT.
51134         * modules/lstat (Files): Remove lib/lstat.h.
51135         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51136         (Include): Specify <sys/stat.h> instead of lstat.h.
51137         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51138         REPLACE_LSTAT.
51139         * NEWS: Mention the change.
51140
51141 2008-10-20  Bruno Haible  <bruno@clisp.org>
51142
51143         * modules/posix_spawn-tests: New file.
51144         * tests/test-posix_spawn3.c: New file.
51145
51146 2008-10-20  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51149         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51150         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51151         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51152         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51153
51154 2008-10-20  Bruno Haible  <bruno@clisp.org>
51155
51156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51157         of posix_spawn on AIX 5.3.
51158
51159 2008-10-20  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51162
51163 2008-10-20  Bruno Haible  <bruno@clisp.org>
51164
51165         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51166         of AC_LANG_PROGRAM.
51167
51168 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51169
51170         * lib/netdb.in.h: Don't define GNU specific constants until they
51171         are supported or needed.  Reported by Bruno Haible
51172         <bruno@clisp.org>.
51173
51174 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51175
51176         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51177
51178 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51179
51180         * lib/getaddrinfo.h: Remove file.
51181         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51182         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51183         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51184         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51185         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51186         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51187         * tests/test-getaddrinfo.c: Likewise.
51188         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51189         * NEWS: Mention change.
51190
51191 2008-10-19  Bruno Haible  <bruno@clisp.org>
51192
51193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51194
51195 2008-10-19  Bruno Haible  <bruno@clisp.org>
51196
51197         * lib/wait-process.c: Include simply <sys/wait.h>.
51198         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51199         WIFSTOPPED): Remove fallback definitions.
51200         * modules/wait-process (Depends-on): Add sys_wait.
51201
51202         New module 'sys_wait'.
51203         * modules/sys_wait: New file.
51204         * lib/sys_wait.in.h: New file, partially copied from
51205         lib/wait-process.c.
51206         * m4/sys_wait_h.m4: New file.
51207         * doc/posix-headers/sys_wait.texi: Mention the new module.
51208
51209 2008-10-19  Bruno Haible  <bruno@clisp.org>
51210
51211         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51212
51213 2008-10-19  Bruno Haible  <bruno@clisp.org>
51214
51215         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51216         * lib/wait-process.c (WAIT_T): Remove type.
51217         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51218         (wait_subprocess): Update.
51219
51220 2008-10-19  Bruno Haible  <bruno@clisp.org>
51221
51222         New module 'atoll'.
51223         * modules/atoll: New file.
51224         * lib/stdlib.in.h (atoll): New declaration.
51225         * lib/atoll.c: New file, from glibc with modifications.
51226         * m4/atoll.m4: New file.
51227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51228         HAVE_ATOLL.
51229         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51230         * doc/posix-functions/atoll.texi: Mention the new module.
51231
51232 2008-10-19  Bruno Haible  <bruno@clisp.org>
51233
51234         Add strtoull() declaration to <stdlib.h>.
51235         * lib/stdlib.in.h (strtoull): New declaration.
51236         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51237         Set HAVE_STRTOULL.
51238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51239         HAVE_STRTOULL.
51240         * modules/strtoull (Depends-on): Add stdlib.
51241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51242         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51243         HAVE_STRTOULL.
51244
51245 2008-10-19  Bruno Haible  <bruno@clisp.org>
51246
51247         Add strtoll() declaration to <stdlib.h>.
51248         * lib/stdlib.in.h (strtoll): New declaration.
51249         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51250         Set HAVE_STRTOLL.
51251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51252         HAVE_STRTOLL.
51253         * modules/strtoll (Depends-on): Add stdlib.
51254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51255         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51256
51257 2008-10-19  Bruno Haible  <bruno@clisp.org>
51258
51259         * modules/bcopy (Depends-on): Add strings.
51260         (Include): Specify <strings.h>.
51261
51262 2008-10-19  Bruno Haible  <bruno@clisp.org>
51263
51264         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51265
51266 2008-10-19  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51269         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51270         mingw.
51271
51272 2008-10-19  Bruno Haible  <bruno@clisp.org>
51273
51274         * lib/atanl.c: Don't include isnanl.h.
51275         * lib/cosl.c: Likewise.
51276         * lib/ldexpl.c: Likewise.
51277         * lib/logl.c: Likewise.
51278         * lib/sinl.c: Likewise.
51279         * lib/sqrtl.c: Likewise.
51280         * lib/tanl.c: Likewise.
51281
51282         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51283         * lib/isnanf.h: Remove file.
51284         * lib/isnand.h: Remove file.
51285         * lib/isnanl.h: Remove file.
51286         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51287         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51288         macros.
51289         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51290         HAVE_ISNANF, don't define it as a C macro.
51291         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51292         HAVE_ISNAND, don't define it as a C macro.
51293         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51294         HAVE_ISNANL, don't define it as a C macro.
51295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51296         HAVE_ISNAN[FDL].
51297         * modules/isnanf (Files): Remove lib/isnanf.h.
51298         (Depends-on): Add math.
51299         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51300         (Include): Specify <math.h> instead of isnanf.h.
51301         * modules/isnand (Files): Remove lib/isnand.h.
51302         (Depends-on): Add math.
51303         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51304         (Include): Specify <math.h> instead of isnand.h.
51305         * modules/isnanl (Files): Remove lib/isnanl.h.
51306         (Depends-on): Add math.
51307         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51308         (Include): Specify <math.h> instead of isnanl.h.
51309         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51310         HAVE_ISNAN[FDL].
51311         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51312         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51313         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51314         * NEWS: Mention the change.
51315
51316 2008-10-18  Bruno Haible  <bruno@clisp.org>
51317
51318         Add getusershell(), setusershell(), endusershell() declarations to
51319         <unistd.h>.
51320         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51321         declarations.
51322         * lib/getusershell.c: Include unistd.h.
51323         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51324         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51325         HAVE_GETUSERSHELL.
51326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51327         and HAVE_GETUSERSHELL.
51328         * modules/getusershell (Depends-on): Add unistd, extensions.
51329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51330         (Include): Specify <unistd.h>.
51331         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51332         HAVE_GETUSERSHELL.
51333
51334 2008-10-18  Bruno Haible  <bruno@clisp.org>
51335
51336         Add a getloadavg() declaration to <stdlib.h>.
51337         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51338         getloadavg declaration.
51339         (getloadavg): New declaration.
51340         * lib/getloadavg.c: Include <stdlib.h> first.
51341         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51342         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51343         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51345         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51346         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51348         (Include): Specify <stdlib.h>.
51349         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51350         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51351
51352 2008-10-18  Bruno Haible  <bruno@clisp.org>
51353
51354         * lib/dirchownmod.c: Don't include lchmod.h.
51355
51356         Move the lchmod() declaration to <sys/stat.h>.
51357         * lib/lchmod.h: Remove file.
51358         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51359         (lchmod): New declaration, moved here from lib/lchown.h.
51360         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51361         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51363         and HAVE_LCHMOD.
51364         * modules/lchmod (Files): Remove lib/lchmod.h.
51365         (Depends-on): Add sys_stat, extensions.
51366         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51367         (Include): Specify <sys/stat.h> instead of lchmod.h.
51368         * modules/sys_stat (Depends-on): Add link-warning.
51369         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51370         definition of GL_LINK_WARNING.
51371         * NEWS: Mention the change.
51372
51373 2008-10-18  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/fchdir.c: Don't include dirfd.h.
51376         * lib/fts.c: Likewise.
51377         * lib/getcwd.c: Likewise.
51378         * lib/glob.c: Likewise.
51379
51380         Move the dirfd() declaration to <dirent.h>.
51381         * lib/dirfd.h: Remove file.
51382         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51383         (dirfd): New declaration.
51384         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51386         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51387         HAVE_DECL_DIRFD.
51388         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51389         HAVE_DECL_DIRFD.
51390         * modules/dirfd (Files): Remove lib/dirfd.h.
51391         (Depends-on): Add dirent, extensions.
51392         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51393         (Include): Specify <dirent.h> instead of dirfd.h.
51394         * modules/dirent (Depends-on): Add link-warning.
51395         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51396         definition of GL_LINK_WARNING.
51397         * NEWS: Mention the change.
51398
51399 2008-10-18  Bruno Haible  <bruno@clisp.org>
51400
51401         Move the euidaccess() declaration to <unistd.h>.
51402         * lib/euidaccess.h: Remove file.
51403         * lib/unistd.in.h (euidaccess): New declaration.
51404         * lib/euidaccess.c: Don't include euidaccess.h.
51405         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51406         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51408         and HAVE_EUIDACCESS.
51409         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51410         (Depends-on): Add unistd.
51411         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51412         (Include): Specify <unistd.h> instead of euidaccess.h.
51413         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51414         HAVE_EUIDACCESS.
51415         * NEWS: Mention the change.
51416
51417 2008-10-18  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51420
51421         Move the getdomainname() declaration to <unistd.h>.
51422         * lib/getdomainname.h: Remove file.
51423         * lib/unistd.in.h (getdomainname): New declaration.
51424         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51425         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51426         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51427         HAVE_GETDOMAINNAME.
51428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51429         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51430         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51431         (Depends-on): Add unistd, extensions.
51432         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51433         (Includes): Specify <unistd.h> instead of getdomainname.h.
51434         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51435         HAVE_GETDOMAINNAME.
51436         * NEWS: Mention the change.
51437
51438 2008-10-18  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/dirent: New file.
51441         * m4/dirent_h.m4: New file.
51442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51443         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51444         * modules/fchdir (Files): Remove lib/dirent.in.h.
51445         (Depends-on): Add dirent.
51446         (Makefile.am): Move rules to modules/dirent.
51447         * doc/posix-headers/dirent.texi: Mention the new module.
51448
51449 2008-10-18  Bruno Haible  <bruno@clisp.org>
51450
51451         Avoid -Wunused-parameter warnings in public gnulib header files.
51452         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51453         macro.
51454         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51455
51456 2008-10-18  Bruno Haible  <bruno@clisp.org>
51457
51458         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51459         * doc/glibc-functions/error.texi: Mention the module 'error'.
51460         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51461         * doc/glibc-functions/getdomainname.texi: Mention the module
51462         'getdomainname'.
51463         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51464         * doc/glibc-functions/getpagesize.texi: Mention the module
51465         'getpagesize'.
51466         * doc/glibc-functions/getusershell.texi: Mention the module
51467         'getusershell'.
51468         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51469         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51470         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51471         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51472         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51473         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51474         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51475         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51476         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51477         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51478         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51479         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51480         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51481         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51482
51483 2008-10-17  Bruno Haible  <bruno@clisp.org>
51484
51485         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51486         HP-UX and IRIX, use -0.0L.
51487         * tests/test-ceill.c (minus_zero): Likewise.
51488         * tests/test-floorl.c (minus_zero): Likewise.
51489         * tests/test-frexpl.c (minus_zero): Likewise.
51490         * tests/test-isnan.c (minus_zerol): Likewise.
51491         * tests/test-isnanl.h (minus_zero): Likewise.
51492         * tests/test-ldexpl.c (minus_zero): Likewise.
51493         * tests/test-roundl.c (minus_zero): Likewise.
51494         * tests/test-signbit.c (minus_zerol): Likewise.
51495         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51496         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51497         * tests/test-truncl.c (minus_zero): Likewise.
51498         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51499         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51500         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51501         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51502
51503 2008-10-17  Bruno Haible  <bruno@clisp.org>
51504
51505         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51506         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51507         that it gets activated only for gcc >= 3.0.
51508         * lib/dirent.in.h: Likewise.
51509         * lib/errno.in.h: Likewise.
51510         * lib/fcntl.in.h: Likewise.
51511         * lib/float.in.h: Likewise.
51512         * lib/iconv.in.h: Likewise.
51513         * lib/inttypes.in.h: Likewise.
51514         * lib/locale.in.h: Likewise.
51515         * lib/math.in.h: Likewise.
51516         * lib/netdb.in.h: Likewise.
51517         * lib/netinet_in.in.h: Likewise.
51518         * lib/search.in.h: Likewise.
51519         * lib/signal.in.h: Likewise.
51520         * lib/spawn.in.h: Likewise.
51521         * lib/stdarg.in.h: Likewise.
51522         * lib/stdint.in.h: Likewise.
51523         * lib/stdio.in.h: Likewise.
51524         * lib/stdlib.in.h: Likewise.
51525         * lib/string.in.h: Likewise.
51526         * lib/strings.in.h: Likewise.
51527         * lib/sys_file.in.h: Likewise.
51528         * lib/sys_ioctl.in.h: Likewise.
51529         * lib/sys_select.in.h: Likewise.
51530         * lib/sys_socket.in.h: Likewise.
51531         * lib/sys_stat.in.h: Likewise.
51532         * lib/sys_time.in.h: Likewise.
51533         * lib/sysexits.in.h: Likewise.
51534         * lib/time.in.h: Likewise.
51535         * lib/unistd.in.h: Likewise.
51536         * lib/wchar.in.h: Likewise.
51537         * lib/wctype.in.h: Likewise.
51538         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51539
51540 2008-10-17  Jim Meyering  <meyering@redhat.com>
51541
51542         ignore-value: don't depend on inline module
51543         * modules/ignore-value (Depends-on): Remove 'inline'.
51544         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51545         Suggestion from Bruno Haible.
51546
51547 2008-10-17  Bruno Haible  <bruno@clisp.org>
51548
51549         New implementation of condition variables for Win32.
51550         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51551         (gl_linked_waitqueue_t): New type.
51552         (gl_cond_t): Use it.
51553         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51554         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51555         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51556         (glthread_cond_init_func, glthread_cond_wait_func,
51557         glthread_cond_timedwait_func, glthread_cond_signal_func,
51558         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51559         Reimplemented on the basis of gl_linked_waitqueue_t.
51560         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51561         gl_waitqueue_t.
51562         (gl_rwlock_t): Update.
51563         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51564
51565 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51566
51567         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51568         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51569
51570 2008-10-17  Jim Meyering  <meyering@redhat.com>
51571
51572         ignore-value: new module
51573         * modules/ignore-value: New file.
51574         * lib/ignore-value.h: New file.
51575         * MODULES.html.sh (Compiler warning management): New section,
51576         just for this module.  More to come.
51577
51578 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51581         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51582         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51583
51584 2008-10-16  Jim Meyering  <meyering@redhat.com>
51585
51586         openat-die.c: avoid 'no previous prototype' warning
51587         * lib/openat-die.c: Include "openat.h".
51588         Reported by Reuben Thomas <rrt@sc3d.org>.
51589
51590 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51591
51592         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51593         * lib/netdb.in.h: Fix typo.
51594         Reported by Bruno Haible  <bruno@clisp.org>
51595
51596         * lib/netdb.in.h: Include sys/socket.h for platforms without
51597         netdb.h, to get structures like hostent on MinGW.
51598         * modules/netdb (Depends-on): Add sys_socket.
51599
51600 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51601
51602         * modules/netdb, modules/netdb-tests: New file.
51603         * m4/netdb_h.m4: New file.
51604         * lib/netdb.in.h: Add, currently just an empty file pending
51605         definitions.
51606         * tests/test-netdb.c: New file.
51607         * doc/posix-headers/netdb.texi: Mention that we replace it if
51608         needed.
51609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51610         netdb.
51611
51612 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51613
51614         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51615         with code.
51616
51617 2008-10-13  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/glthread/cond.c (glthread_cond_wait_func,
51620         glthread_cond_timedwait_func): Add a comment.
51621
51622 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51623
51624         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51625         * tests/test-select.c: Likewise,
51626
51627 2008-10-13  Bruno Haible  <bruno@clisp.org>
51628
51629         * lib/glthread/cond.c (glthread_cond_wait_func,
51630         glthread_cond_timedwait_func): Fix variable name.
51631         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51632
51633 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51634
51635         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51636         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51637         struct sockaddr.sa_len.
51638         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51639
51640 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51641
51642         * build-aux/pmccabe2html: Add css and css_url parameters.
51643
51644 2008-10-12  Bruno Haible  <bruno@clisp.org>
51645
51646         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51647         calling aclx_get.
51648         Reported by Rainer Tammer <tammer@tammer.net>.
51649
51650 2008-10-12  Bruno Haible  <bruno@clisp.org>
51651
51652         Use msvcrt aware primitives for creation/termination of Win32 threads.
51653         * lib/glthread/thread.c: Include <process.h>.
51654         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51655         (wrapper_func): Update signature.
51656         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51657
51658 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51659             Bruno Haible  <bruno@clisp.org>
51660
51661         Provide a Win32 implementation of the 'cond' module.
51662         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51663         * lib/glthread/cond.c (glthread_cond_init_func,
51664         glthread_cond_wait_func, glthread_cond_timedwait_func,
51665         glthread_cond_signal_func, glthread_cond_broadcast_func,
51666         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51667         * modules/cond (Dependencies): Add gettimeofday.
51668
51669 2008-10-11  Bruno Haible  <bruno@clisp.org>
51670
51671         Make sleep work on older versions of mingw.
51672         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51673         only whether it exists.
51674         * doc/posix-functions/sleep.texi: Mention the problem with older
51675         versions of mingw.
51676
51677 2008-10-11  Bruno Haible  <bruno@clisp.org>
51678
51679         New module 'shutdown'.
51680         * modules/shutdown: New file.
51681         * lib/sys_socket.in.h (shutdown): New declaration.
51682         * lib/winsock.c (shutdown): New function.
51683         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51684         GNULIB_SHUTDOWN.
51685         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51686         * doc/posix-functions/shutdown.texi: Document the new module.
51687
51688 2008-10-11  Jim Meyering  <meyering@redhat.com>
51689
51690         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51691
51692 2008-10-11  Bruno Haible  <bruno@clisp.org>
51693
51694         New module 'fclose'.
51695         * modules/fclose: New file.
51696         * lib/stdio.in.h (fclose): New declaration.
51697         * lib/fclose.c: New file.
51698         * m4/fclose.m4: New file.
51699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51700         REPLACE_FCLOSE.
51701         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51702         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51703         REPLACE_FCLOSE.
51704         * modules/close (Depends-on): fclose.
51705         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51706
51707 2008-10-11  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51710         set errno and don't call _close.
51711
51712 2008-10-10  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51715         ACL, not afterwards. Fixes test failure on Cygwin.
51716
51717 2008-10-09  Ben Pfaff  <blp@gnu.org>
51718
51719         * build-aux/announce-gen: Fix gnulib version related part of usage
51720         message.  Die with a useful error message if no tarballs are
51721         found.
51722
51723 2008-10-10  Jim Meyering  <meyering@redhat.com>
51724
51725         bootstrap: use git's --depth=N option only if it's supported
51726         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51727         recognize the --depth option.  Reported by Pádraig Brady.
51728
51729 2008-10-09  Bruno Haible  <bruno@clisp.org>
51730
51731         New module 'ioctl'.
51732         * modules/ioctl: New file.
51733         * lib/sys_socket.in.h (ioctl): Remove declaration.
51734         * lib/winsock.c: Include <sys/ioctl.h>.
51735         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51736         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51737         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51738         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51739         * doc/posix-functions/ioctl.texi: Mention the new module.
51740
51741 2008-10-09  Bruno Haible  <bruno@clisp.org>
51742
51743         New module 'sys_ioctl'.
51744         * lib/sys_ioctl.in.h: New file.
51745         * m4/sys_ioctl_h.m4: New file.
51746         * modules/sys_ioctl: New file.
51747         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51748
51749 2008-10-09  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51752         * lib/winsock.c: Include <stdarg.h>.
51753         (rpl_ioctl): Change to second argument 'int' and then varargs.
51754
51755 2008-10-09  Bruno Haible  <bruno@clisp.org>
51756
51757         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51758         when the sys_socket module is present and the system has <winsock2.h>.
51759
51760 2008-10-09  Bruno Haible  <bruno@clisp.org>
51761
51762         * doc/posix-functions/close.texi: Mention module 'close' instead of
51763         module 'sys_socket'.
51764
51765 2008-10-09  Bruno Haible  <bruno@clisp.org>
51766
51767         * doc/glibc-headers/sys_ioctl.texi: New file.
51768         * doc/gnulib.texi: Include it.
51769
51770 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51771             Bruno Haible  <bruno@clisp.org>
51772
51773         Combine the two replacements of 'close'.
51774         * lib/sys_socket.in.h (close): Define to a reminder to include
51775         <unistd.h>.
51776         (_gl_close_fd_maybe_socket): New declaration.
51777         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51778         * lib/winsock.c (close): Remove undefinition.
51779         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51780         needed for the gnulib module 'close'.
51781         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51782         define to an error symbol or to a warning, if suitable.
51783         * lib/close.c: Include <sys/socket.h>.
51784         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51785         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51786         UNISTD_H_HAVE_WINSOCK2_H.
51787         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51789         UNISTD_H_HAVE_WINSOCK2_H.
51790         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51791         (configure.ac): Set a module indicator.
51792         (Makefile.am): Substitute GNULIB_CLOSE.
51793         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51794         * modules/poll-tests (Depends-on): Add close.
51795         * modules/select-tests (Depends-on): Likewise.
51796
51797 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51798             Bruno Haible  <bruno@clisp.org>
51799
51800         New module 'close'.
51801         * modules/close: New file.
51802         * lib/unistd.in.h (close): Move declaration out of the
51803         FCHDIR_REPLACEMENT scope.
51804         (_gl_unregister_fd): New declaration.
51805         * lib/close.c: New file.
51806         * lib/fchdir.c (rpl_close): Remove function.
51807         * m4/close.m4: New file.
51808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51809         close.
51810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51811         REPLACE_CLOSE.
51812         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51813         REPLACE_CLOSE.
51814         * modules/fchdir (Depends-on): Add close.
51815
51816 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51817             Bruno Haible  <bruno@clisp.org>
51818
51819         * lib/fcntl.in.h (open): Simplify conditionals.
51820         (_gl_register_fd): New declaration.
51821         * lib/fchdir.c (rpl_open): Remove function.
51822         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51823         also.
51824         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51826         open.
51827
51828 2008-10-09  Jim Meyering  <meyering@redhat.com>
51829
51830         GNUmakefile: use the more name-space-friendly "_version"
51831         * top/GNUmakefile (_dummy): Update.
51832         (_version): Rename from "version".
51833
51834 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51835             Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51838         rpl_close.
51839         (_gl_register_fd): New function, extracted from rpl_open.
51840         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51841         (rpl_open, rpl_opendir): Use _gl_register_fd.
51842
51843 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51844
51845         Fix organization of 'open' replacement.
51846         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51847         (gl_FUNC_OPEN): Use it.
51848         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51849
51850 2008-10-08  Bruno Haible  <bruno@clisp.org>
51851
51852         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51853
51854 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51855
51856         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51857         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51858         listen).
51859
51860 2008-10-08  Eric Blake  <ebb9@byu.net>
51861
51862         GNUmakefile: add 'make version' target
51863         * top/GNUmakefile (_curr-ver): Split version update rules...
51864         (version): ...into a target.
51865
51866 2008-10-07  Bruno Haible  <bruno@clisp.org>
51867
51868         Use a more portable replacement expression for -0.0L.
51869         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51870         instead of -0.0L. Fix m4 quotation.
51871
51872         * tests/test-signbit.c: Include <float.h>.
51873         (minus_zero): New variable.
51874         (test_signbitl): Use minus_zero instead of -zero.
51875         * modules/signbit-tests (Depends-on): Add float.
51876
51877         * tests/test-ceill.c: Include <float.h>.
51878         (zero): Remove variable.
51879         (minus_zero): New variable.
51880         (main): Use minus_zero instead of -zero.
51881         * modules/ceill-tests (Depends-on): Add float.
51882
51883         * tests/test-floorl.c: Include <float.h>.
51884         (zero): Remove variable.
51885         (minus_zero): New variable.
51886         (main): Use minus_zero instead of -zero.
51887         * modules/floorl-tests (Depends-on): Add float.
51888
51889         * tests/test-roundl.c: Include <float.h>.
51890         (zero): Remove variable.
51891         (minus_zero): New variable.
51892         (main): Use minus_zero instead of -zero.
51893         * modules/roundl-tests (Depends-on): Add float.
51894
51895         * tests/test-truncl.c: Include <float.h>.
51896         (zero): Remove variable.
51897         (minus_zero): New variable.
51898         (main): Use minus_zero instead of -zero.
51899         * modules/truncl-tests (Depends-on): Add float.
51900
51901         * tests/test-frexpl.c (zero): Remove variable.
51902         (minus_zero): New variable.
51903         (main): Use minus_zero instead of -zero.
51904         * modules/frexpl-tests (Depends-on): Add float.
51905
51906         * tests/test-isnan.c (zerol): Remove variable.
51907         (minus_zerol): New variable.
51908         (test_long_double): Use minus_zerol instead of -zerol.
51909         * modules/isnan-tests (Depends-on): Add float.
51910
51911         * tests/test-isnanl.h (zero): Remove variable.
51912         (minus_zero): New variable.
51913         (main): Use minus_zero instead of -zero.
51914         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51915         * modules/isnanl-tests (Depends-on): Add float.
51916
51917         * tests/test-ldexpl.c (zero): Remove variable.
51918         (minus_zero): New variable.
51919         (main): Use minus_zero instead of -zero.
51920         * modules/ldexpl-tests (Depends-on): Add float.
51921
51922         * tests/test-snprintf-posix.h (zerol): Remove variable.
51923         (minus_zerol): New variable.
51924         (test_function): Use minus_zerol instead of -zerol.
51925         * modules/snprintf-posix-tests (Depends-on): Add float.
51926         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51927
51928         * tests/test-sprintf-posix.h (zerol): Remove variable.
51929         (minus_zerol): New variable.
51930         (test_function): Use minus_zerol instead of -zerol.
51931         * modules/sprintf-posix-tests (Depends-on): Add float.
51932         * modules/vsprintf-posix-tests (Depends-on): Add float.
51933
51934         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51935         (minus_zerol): New variable.
51936         (test_function): Use minus_zerol instead of -zerol.
51937         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51938
51939         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51940         (minus_zerol): New variable.
51941         (test_function): Use minus_zerol instead of -zerol.
51942         * modules/vasprintf-posix-tests (Depends-on): Add float.
51943
51944 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51945
51946         * MODULES.html.sh (Support for building documentation): Mention
51947         pmccabe2html.  Sort entries.
51948
51949         Add pmccabe2html module, from gnupdf.
51950         * build-aux/pmccabe.css: New file.
51951         * build-aux/pmccabe2html: New file.
51952         * m4/pmccabe2html.m4: New file.
51953         * modules/pmccabe2html: New file.
51954
51955 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51956
51957         flock: new module
51958         * MODULES.html.sh: Add to list of modules.
51959         * lib/flock.c: flock implementation for Windows and Unix systems
51960         which have fcntl.
51961         * doc/glibc-functions/flock.texi: Update documentation.
51962         * lib/sys_file.in.h: <sys/file.h> header file.
51963         * m4/flock.m4: M4 macros.
51964         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51965         * modules/flock: flock module.
51966         * modules/flock-tests: flock tests module.
51967         * modules/sys_file: sys/file.h module.
51968         * tests/test-flock.c: test suite for flock.
51969
51970 2008-10-06  Jim Meyering  <meyering@redhat.com>
51971
51972         bootstrap: check for LT_INIT more portably still ;-)
51973         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51974         Spotted by Bruno Haible.
51975
51976 2008-10-06  Eric Blake  <ebb9@byu.net>
51977
51978         test-signbit: avoid tripping Irix cc bug on -0.0L
51979         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51980         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51981         entire testsuite consistent and avoids an Irix 6.2 bug.
51982
51983 2008-10-05  Bruno Haible  <bruno@clisp.org>
51984             Jim Meyering  <jim@meyering.net>
51985
51986         Add an option for ignoring EPIPE during close_stdout.
51987         * lib/closeout.h: Include <stdbool.h>.
51988         (close_stdout_set_ignore_EPIPE): New declaration.
51989         * lib/closeout.c: Include <stdbool.h>.
51990         (ignore_EPIPE): New variable.
51991         (close_stdout_set_ignore_EPIPE): New function.
51992         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51993         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51994         failure.
51995         * modules/closeout (Depends-on): Add stdbool.
51996
51997 2008-10-05  Bruno Haible  <bruno@clisp.org>
51998
51999         * modules/accept: New file.
52000         * modules/bind: New file.
52001         * modules/connect: New file.
52002         * modules/getpeername: New file.
52003         * modules/getsockname: New file.
52004         * modules/getsockopt: New file.
52005         * modules/listen: New file.
52006         * modules/recv: New file.
52007         * modules/recvfrom: New file.
52008         * modules/send: New file.
52009         * modules/sendto: New file.
52010         * modules/setsockopt: New file.
52011         * modules/socket: New file.
52012         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52013         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52014         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52015         the particular module is requested. Add a link warning when the
52016         particular module is not requested.
52017         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52018         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52019         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52020         the particular module is requested.
52021         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52022         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52023         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52024         * modules/sys_socket (Depends-on): Add link-warning.
52025         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52026         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52027         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52028         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52029         GL_LINK_WARNING.
52030         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52031         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52032         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52033         * doc/posix-functions/getpeername.texi: Mention the new module
52034         'getpeername'.
52035         * doc/posix-functions/getsockname.texi: Mention the new module
52036         'getsockname'.
52037         * doc/posix-functions/getsockopt.texi: Mention the new module
52038         'getsockopt'.
52039         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52040         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52041         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52042         * doc/posix-functions/send.texi: Mention the new module 'send'.
52043         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52044         * doc/posix-functions/setsockopt.texi: Mention the new module
52045         'setsockopt'.
52046         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52047         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52048         listen, connect, accept.
52049         * modules/select-tests (Depends-on): Likewise.
52050
52051 2008-10-05  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/winsock.c (strerror): Remove unused #undef.
52054         (rpl_close): Remove unused local variable.
52055
52056         * modules/sys_socket (Depends-on); Add errno.
52057
52058 2008-10-05  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52061         (select): Add a link warning when the 'select' module is not used.
52062         * modules/sys_select (Depends-on): Add link-warning.
52063         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52064         Suggested by Paolo Bonzini.
52065
52066 2008-10-05  Jim Meyering  <meyering@redhat.com>
52067
52068         bootstrap: check for LT_INIT more portably
52069         * build-aux/bootstrap: Avoid using grep -E, since it's not
52070         portable enough.  Suggestion from Bruno Haible.
52071
52072 2008-10-05  Bruno Haible  <bruno@clisp.org>
52073
52074         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52075         as being fixed by gnulib.
52076
52077 2008-10-05  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/select-tests: New file, mostly copied from
52080         modules/sys_select-tests.
52081         * tests/test-select.c: New file, mostly copied from
52082         tests/test-sys_select.c.
52083         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52084         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52085         (Makefile.am): Remove test_sys_select_LDADD.
52086
52087         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52088         to an undefined symbol, for an error message.
52089         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52090         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52091         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52092         winsock-select.c here.
52093         * modules/sys_select (Files): Remove lib/winsock-select.c.
52094         (Depends-on): Remove alloca.
52095         (Makefile.am): Substitute GNULIB_SELECT.
52096         * modules/select: New file.
52097         * doc/posix-functions/select.texi: Update.
52098
52099 2008-10-05  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52102         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52103         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52104         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52105         getdtablesize.
52106         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52107         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52108
52109 2008-10-05  Bruno Haible  <bruno@clisp.org>
52110
52111         * modules/getdtablesize-tests: New file.
52112         * tests/test-getdtablesize.c: New file.
52113
52114         New module 'getdtablesize'.
52115         * lib/unistd.in.h (getdtablesize): New declaration.
52116         * lib/getdtablesize.c: New file.
52117         * m4/getdtablesize.m4: New file.
52118         * modules/getdtablesize: New file.
52119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52120         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52121         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52122         HAVE_GETDTABLESIZE.
52123         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52124
52125 2008-10-05  Bruno Haible  <bruno@clisp.org>
52126
52127         * modules/sched (Makefile.am): Fix typo.
52128         Reported by Simon Josefsson.
52129
52130 2008-10-05  Jim Meyering  <meyering@redhat.com>
52131
52132         bootstrap: check for LT_INIT, too
52133         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52134         are deprecated.  Suggestion from Ralf Wildenhues.
52135
52136 2008-10-05  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52139         overriding them by ours.
52140         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52141
52142 2008-10-05  Jim Meyering  <meyering@redhat.com>
52143
52144         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52145         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52146         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52147
52148 2008-10-04  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/dup2 (License): Change to LGPLv2+.
52151         * modules/sleep (License): Likewise.
52152         * modules/perror (License): Likewise.
52153         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52154         Blake.
52155         * modules/signal (License): Likewise.
52156         * modules/sigprocmask (License): Likewise.
52157         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52158         Meyering.
52159
52160 2008-10-04  Bruno Haible  <bruno@clisp.org>
52161
52162         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52163         Reported by Rainer Tammer <tammer@tammer.net>.
52164
52165 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52166             Bruno Haible  <bruno@clisp.org>
52167
52168         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52169         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52170         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52171
52172 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52173
52174         filevercmp: new module
52175         * lib/filevercmp.h: New function filevercmp comparing version strings.
52176         * lib/filevercmp.c: Implementation of filevercmp function.
52177         * modules/filevercmp: Module metadata.
52178         * tests/test-filevercmp.c: Unit test for new module.
52179         * modules/filevercmp-tests: Unit test metadata.
52180         * MODULES.html.sh: Add filevercmp module.
52181
52182 2008-10-03  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/c-ctype.h: Add comment.
52185         Reported by Jim Meyering.
52186
52187 2008-10-02  Bruno Haible  <bruno@clisp.org>
52188
52189         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52190
52191 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52192
52193         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52194         name of bootstrap.conf accordingly.
52195
52196 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52197
52198         * build-aux/bootstrap: Install git-merge-changelog configuration
52199         items into .gitconfig if needed.
52200
52201 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52202
52203         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52204         git repository, and initialize/update it accordingly.
52205
52206 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52207
52208         * modules/fsync-tests: New file.
52209         * tests/test-fsync.c: New file.
52210
52211         New module 'fsync'.
52212         * lib/fsync.c: New file.
52213         * m4/fsync.m4: New file.
52214         * modules/fsync: New file.
52215         * lib/unistd.in.h (fsync): New declaration.
52216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52217         GNULIB_FSYNC and HAVE_FSYNC.
52218         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52219         * MODULES.html.sh (posix_functions): Add fsync.
52220         * doc/posix-functions/fsync.texi: Mention the new module.
52221
52222 2008-10-02  Jim Meyering  <meyering@redhat.com>
52223
52224         fts.c: sync with similar code from coreutils' remove.c
52225         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52226         Guard also with "#if defined __linux__", since for now at least,
52227         this code is Linux-kernel-specific.
52228
52229 2008-10-02  Jim Meyering  <meyering@redhat.com>
52230
52231         fts: bug fixes
52232         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52233         Include <sys/vfs.h>, not <sys/statfs.h>.
52234
52235         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52236         Include <sys/vfs.h>, not <sys/statfs.h>.
52237
52238 2008-10-01  Bruno Haible  <bruno@clisp.org>
52239
52240         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52242         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52243         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52244         * doc/posix-functions/posix_spawnp.texi: Likewise.
52245         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52246         whether posix_spawn actually works.
52247         * m4/pipe.m4 (gl_PIPE): Likewise.
52248         * modules/execute (Files): Add m4/posix_spawn.m4.
52249         * modules/pipe (Files): Add m4/posix_spawn.m4.
52250         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52251
52252 2008-10-01  Jim Meyering  <meyering@redhat.com>
52253
52254         remove trailing spaces
52255         * NEWS: Likewise.
52256         * lib/poll.c (poll): Likewise.
52257         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52258         * lib/winsock.c (rpl_close): Likewise.
52259         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52260         * modules/yield: Likewise.
52261         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52262         * tests/test-sys_select.c (connect_to_socket): Likewise.
52263
52264         fts.c: adjust a new interface to be more generally useful
52265         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52266         (fts_build): Adjust caller.
52267
52268 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52269
52270         * modules/cond-tests: New file.
52271         * tests/test-cond.c: New file.
52272
52273 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52274             Bruno Haible  <bruno@clisp.org>
52275
52276         * modules/cond (Dependencies): Add errno, time.
52277         * lib/glthread/cond.h: Include <time.h>.
52278         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52279         across platforms.
52280
52281 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52282             Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52285
52286 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52287             Bruno Haible  <bruno@clisp.org>
52288
52289         * modules/tls-tests (Depends-on): Add thread, yield.
52290         (configure.ac): Remove all checks.
52291         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52292         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52293         gl_thread_self): Remove definitions. Include glthread/thread.h and
52294         glthread/yield.h instead.
52295         (test_tls): Pass an additional NULL argument to gl_thread_join.
52296
52297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52298             Bruno Haible  <bruno@clisp.org>
52299
52300         * modules/lock-tests (Depends-on): Add thread, yield.
52301         (configure.ac): Remove all checks.
52302         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52303         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52304         gl_thread_self): Remove definitions. Include glthread/thread.h and
52305         glthread/yield.h instead.
52306         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52307         additional NULL argument to gl_thread_join.
52308
52309 2008-09-30  Bruno Haible  <bruno@clisp.org>
52310
52311         Fix the Win32 implementation of the 'thread' module.
52312         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52313         pointer type.
52314         (gl_thread_self): Invoke gl_thread_self_func.
52315         (gl_thread_self_func): New declaration.
52316         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52317         (do_init_self_key, init_self_key): New functions.
52318         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52319         Remove some fields.
52320         (running_threads, running_lock): Remove variables.
52321         (get_current_thread_handle): New function.
52322         (gl_thread_self_func, wrapper_func, glthread_create_func,
52323         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52324         simplified.
52325
52326 2008-09-30  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52329         files.
52330
52331 2008-09-30  Jim Meyering  <meyering@redhat.com>
52332
52333         fts.m4: correct the test for statfs.f_type
52334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52335         when checking for statfs.f_type.
52336
52337 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52338
52339         tests: avoid some compiler warnings
52340         * tests/test-memchr.c (main): Pass NULL indirectly.
52341         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52342
52343 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52344
52345         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52346         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52347         exactly specified dayshifts.
52348         (dayshift): New rule.
52349         (rel): Add dayshift.
52350         (relative_time_table) [tomorrow, yesterday, today, now]:
52351         Use tDAY_SHIFT in place of tDAY_UNIT.
52352         * tests/test-getdate.c: Add tests for now-disallowed countable
52353         dayshifts, e.g., "4 yesterday ago".
52354
52355 2008-09-29  Bruno Haible  <bruno@clisp.org>
52356
52357         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52358         * tests/test-posix_spawn1.in.sh: Renamed from
52359         tests/test-posix_spawn.in.sh.
52360         * tests/test-posix_spawn2.c: New file.
52361         * tests/test-posix_spawn2.in.sh: New file.
52362         * modules/posix_spawnp-tests (Files): Update.
52363         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52364
52365 2008-09-29  Bruno Haible  <bruno@clisp.org>
52366
52367         Propagate effects of putenv/setenv/unsetenv to child processes.
52368         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52369         * lib/pipe.c (create_pipe): Likewise.
52370
52371 2008-09-29  Bruno Haible  <bruno@clisp.org>
52372
52373         Enable use of shell scripts as executables in mingw.
52374         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52375         run the program as a shell script.
52376         * lib/pipe.c (create_pipe): Likewise.
52377         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52378         resulting array.
52379
52380 2008-09-29  Eric Blake  <ebb9@byu.net>
52381
52382         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52383
52384 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52385
52386         * doc/posix-functions/accept.texi: Update mingw problems.
52387         * doc/posix-functions/bind.texi: Update mingw problems.
52388         * doc/posix-functions/close.texi: Update mingw problems.
52389         * doc/posix-functions/connect.texi: Update mingw problems.
52390         * doc/posix-functions/getpeername.texi: Update mingw problems.
52391         * doc/posix-functions/getsockname.texi: Update mingw problems.
52392         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52393         * doc/posix-functions/ioctl.texi: Update mingw problems.
52394         * doc/posix-functions/listen.texi: Update mingw problems.
52395         * doc/posix-functions/recv.texi: Update mingw problems.
52396         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52397         * doc/posix-functions/select.texi: Update mingw problems.
52398         * doc/posix-functions/send.texi: Update mingw problems.
52399         * doc/posix-functions/sendto.texi: Update mingw problems.
52400         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52401         * doc/posix-functions/socket.texi: Update mingw problems.
52402
52403 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52404             Bruno Haible  <bruno@clisp.org>
52405
52406         * lib/sys_select.in.h: Include sys/time.h.
52407         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52408         * modules/sys_select: Depend on sys_time.
52409         * tests/test-sys_select.c: Test that sys/select.h defines struct
52410         timeval fully.
52411
52412 2008-09-29  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52415         * lib/sys_select.in.h: Likewise.
52416
52417 2008-09-29  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52420
52421 2008-09-29  Bruno Haible  <bruno@clisp.org>
52422
52423         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52424         Set LIBSOCKET instead of augmenting LIBS.
52425         * modules/sockets (Link): New section.
52426         * modules/sockets-tests (test_sockets_LDADD): New variable.
52427         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52428         * modules/poll-tests (test_poll_LDADD): New variable.
52429         * NEWS: Document the change.
52430
52431 2008-09-29  Bruno Haible  <bruno@clisp.org>
52432
52433         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52434         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52435         ARPA_INET_H directly.
52436         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52437
52438 2008-09-28  Bruno Haible  <bruno@clisp.org>
52439
52440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52441         from gl_HEADER_SYS_SOCKET.
52442         (gl_HEADER_SYS_SOCKET): Invoke it.
52443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52444
52445 2008-09-28  Bruno Haible  <bruno@clisp.org>
52446
52447         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52448         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52449         Needed on OSF/1 4.0.
52450
52451 2008-09-28  Bruno Haible  <bruno@clisp.org>
52452
52453         Override open more carefully.
52454         * lib/open.c (orig_open): New function.
52455         (rpl_open): Use orig_open instead of open.
52456         * lib/fcntl.in.h: Add special invocation convention.
52457         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52458         (gl_FUNC_OPEN): Invoke it.
52459
52460         Override freopen more carefully.
52461         * lib/freopen.c (orig_freopen): New function.
52462         (rpl_freopen): Use orig_freopen instead of freopen.
52463         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52464         (gl_FUNC_FREOPEN): Invoke it.
52465
52466         Override fopen more carefully.
52467         * lib/fopen.c (orig_fopen): New function.
52468         (rpl_fopen): Use orig_fopen instead of fopen.
52469         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52470         (gl_FUNC_FOPEN): Invoke it.
52471         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52472
52473 2008-09-28  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52476         SIGPIPE.
52477
52478 2008-09-28  Bruno Haible  <bruno@clisp.org>
52479
52480         * tests/test-sigaction.c (handler, main): Disable the check whether
52481         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52482         glibc systems with LinuxThreads.
52483
52484 2008-09-28  Bruno Haible  <bruno@clisp.org>
52485
52486         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52487
52488         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52489         with AIX xlc.
52490         * lib/fcntl.in.h (open): Likewise.
52491         Reported by Rainer Tammer <tammer@tammer.net>.
52492
52493 2008-09-28  Bruno Haible  <bruno@clisp.org>
52494
52495         * modules/posix_spawnp-tests: New file.
52496         * tests/test-posix_spawn.c: New file.
52497         * tests/test-posix_spawn.in.sh: New file.
52498
52499         New module 'posix_spawnp'.
52500         * modules/posix_spawnp: New file.
52501         * lib/spawnp.c: New file, from GNU libc with modifications.
52502         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52503
52504         New module 'posix_spawn'.
52505         * modules/posix_spawn: New file.
52506         * lib/spawn.c: New file, from GNU libc with modifications.
52507         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52508
52509         New module 'posix_spawnattr_destroy'.
52510         * modules/posix_spawnattr_destroy: New file.
52511         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52512         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52513         module.
52514
52515         New module 'posix_spawnattr_setsigmask'.
52516         * modules/posix_spawnattr_setsigmask: New file.
52517         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52518         modifications.
52519         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52520         new module.
52521
52522         New module 'posix_spawnattr_getsigmask'.
52523         * modules/posix_spawnattr_getsigmask: New file.
52524         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52525         modifications.
52526         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52527         new module.
52528
52529         New module 'posix_spawnattr_setsigdefault'.
52530         * modules/posix_spawnattr_setsigdefault: New file.
52531         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52532         modifications.
52533         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52534         new module.
52535
52536         New module 'posix_spawnattr_getsigdefault'.
52537         * modules/posix_spawnattr_getsigdefault: New file.
52538         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52539         modifications.
52540         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52541         new module.
52542
52543         New module 'posix_spawnattr_setschedpolicy'.
52544         * modules/posix_spawnattr_setschedpolicy: New file.
52545         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52546         modifications.
52547         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52548         new module.
52549
52550         New module 'posix_spawnattr_getschedpolicy'.
52551         * modules/posix_spawnattr_getschedpolicy: New file.
52552         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52553         modifications.
52554         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52555         new module.
52556
52557         New module 'posix_spawnattr_setschedparam'.
52558         * modules/posix_spawnattr_setschedparam: New file.
52559         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52560         modifications.
52561         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52562         new module.
52563
52564         New module 'posix_spawnattr_getschedparam'.
52565         * modules/posix_spawnattr_getschedparam: New file.
52566         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52567         modifications.
52568         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52569         new module.
52570
52571         New module 'posix_spawnattr_setpgroup'.
52572         * modules/posix_spawnattr_setpgroup: New file.
52573         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52574         modifications.
52575         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52576         module.
52577
52578         New module 'posix_spawnattr_getpgroup'.
52579         * modules/posix_spawnattr_getpgroup: New file.
52580         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52581         modifications.
52582         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52583         module.
52584
52585         New module 'posix_spawnattr_setflags'.
52586         * modules/posix_spawnattr_setflags: New file.
52587         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52588         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52589         module.
52590
52591         New module 'posix_spawnattr_getflags'.
52592         * modules/posix_spawnattr_getflags: New file.
52593         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52594         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52595         module.
52596
52597         New module 'posix_spawnattr_init'.
52598         * modules/posix_spawnattr_init: New file.
52599         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52600         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52601         module.
52602
52603         New module 'posix_spawn_file_actions_destroy'.
52604         * modules/posix_spawn_file_actions_destroy: New file.
52605         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52606         modifications.
52607         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52608         the new module.
52609
52610         New module 'posix_spawn_file_actions_addopen'.
52611         * modules/posix_spawn_file_actions_addopen: New file.
52612         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52613         modifications.
52614         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52615         the new module.
52616
52617         New module 'posix_spawn_file_actions_adddup2'.
52618         * modules/posix_spawn_file_actions_adddup2: New file.
52619         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52620         modifications.
52621         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52622         the new module.
52623
52624         New module 'posix_spawn_file_actions_addclose'.
52625         * modules/posix_spawn_file_actions_addclose: New file.
52626         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52627         modifications.
52628         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52629         the new module.
52630
52631         New module 'posix_spawn_file_actions_init'.
52632         * modules/posix_spawn_file_actions_init: New file.
52633         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52634         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52635         new module.
52636
52637         New module 'posix_spawn-internal'.
52638         * modules/posix_spawn-internal: New file.
52639         * lib/spawn_int.h: New file, from GNU libc with modifications.
52640         * lib/spawni.c: New file, from GNU libc with modifications.
52641         * m4/posix_spawn.m4: New file.
52642
52643         New module 'spawn'.
52644         * modules/spawn: New file.
52645         * lib/spawn.in.h: New file, from GNU libc with modifications.
52646         * m4/spawn_h.m4: New file.
52647         * doc/posix-headers/spawn.texi: Mention the new module.
52648
52649 2008-09-28  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/sched-tests: New file.
52652         * tests/test-sched.c: New file.
52653
52654         New module 'sched'.
52655         * modules/sched: New file.
52656         * lib/sched.in.h: New file.
52657         * m4/sched_h.m4: New file.
52658         * doc/posix-headers/sched.texi: Mention the new module.
52659
52660 2008-09-27  Eric Blake  <ebb9@byu.net>
52661
52662         Fix previous patch, and tweak references to $0.
52663         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52664         (func_version, func_gnulib_dir): Don't call this program
52665         gnulib-tool.
52666         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52667         with using $0 in function.
52668         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52669         (func_fatal_error): Reuse the name the user invoked us with.
52670
52671 2008-09-27  Bruno Haible  <bruno@clisp.org>
52672
52673         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52674         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52675         (gl_ICONV_H): Not here.
52676         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52677         instead of assigning ICONV_H directly.
52678
52679         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52681         WCHAR_H directly.
52682
52683 2008-09-27  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52686         * modules/arpa_inet (Depends-on): Add link-warning.
52687         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52688         * modules/unistd (Makefile.am): Likewise.
52689
52690 2008-09-26  Bruno Haible  <bruno@clisp.org>
52691
52692         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52693         variables.
52694         (func_version): Essentially copied from gnulib-tool.
52695         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52696         func_readlink): Copied from gnulib-tool.
52697
52698 2008-09-26  Bruno Haible  <bruno@clisp.org>
52699
52700         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52701         invoking git-version-gen.
52702
52703 2008-09-26  Bruno Haible  <bruno@clisp.org>
52704
52705         * posix-modules: Update to directory names changed on 2008-01-19.
52706         Remove commas in output before splitting into words. No more need to
52707         avoid 'ftruncate' since 2007-02-19.
52708
52709 2008-09-26  Bruno Haible  <bruno@clisp.org>
52710
52711         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52712
52713 2008-09-26  Bruno Haible  <bruno@clisp.org>
52714
52715         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52716         * modules/fwriteerror (Depends-on): Add errno.
52717
52718 2008-09-26  Bruno Haible  <bruno@clisp.org>
52719
52720         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52721         * tests/test-vc-list-files-cvs.sh: Likewise.
52722
52723 2008-09-26  Bruno Haible  <bruno@clisp.org>
52724
52725         * doc/posix-headers/sys_resource.texi: Reorder items.
52726
52727 2008-09-26  Jim Meyering  <meyering@redhat.com>
52728
52729         fts: tweak inode comparison function
52730         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52731         inode numbers, as documented.
52732
52733         fts: sort dirent entries on inode number before traversing
52734         This avoids a quadratic, seek-related performance penalty when
52735         operating on a directory containing many entries (measurable at 10k;
52736         3.5 hours at 2 million entries with a cold cache) on certain types
52737         of file systems, including ext3 and ext4, but not tmpfs.
52738         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52739         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52740         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52741         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52742         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52743         (fts_build): Set the stat.st_ino member from D_INO.
52744         If it is likely to be useful, sort dirent entries on inode number.
52745
52746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52747         and the struct statfs.f_type member.
52748         * modules/fts (Depends-on): Add d-ino.
52749
52750 2008-09-26  Bruno Haible  <bruno@clisp.org>
52751
52752         * modules/sigpipe-die (Depends-on): Add sigpipe.
52753
52754         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52755         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52756         and GNULIB_STDIO_H_SIGPIPE are set.
52757         * lib/stdio-write.c: New file.
52758         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52759         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52760         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52761         REPLACE_STDIO_WRITE_FUNCS.
52762         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52763         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52764         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52765         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52766         * modules/stdio (Files): Add lib/stdio-write.c.
52767         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52768         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52769         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52770         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52771         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52772         REPLACE_FPRINTF_POSIX.
52773         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52774         REPLACE_PRINTF_POSIX.
52775         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52776         REPLACE_VFPRINTF_POSIX.
52777         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52778         REPLACE_VPRINTF_POSIX.
52779         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52780         SIGPIPE issue.
52781         * doc/posix-functions/fputc.texi: Likewise.
52782         * doc/posix-functions/fputs.texi: Likewise.
52783         * doc/posix-functions/fwrite.texi: Likewise.
52784         * doc/posix-functions/printf.texi: Likewise.
52785         * doc/posix-functions/putc.texi: Likewise.
52786         * doc/posix-functions/putchar.texi: Likewise.
52787         * doc/posix-functions/puts.texi: Likewise.
52788         * doc/posix-functions/vfprintf.texi: Likewise.
52789         * doc/posix-functions/vprintf.texi: Likewise.
52790
52791         * modules/safe-write (Depends-on): Add write.
52792
52793         * modules/sigpipe-tests: New file.
52794         * tests/test-sigpipe.c: New file.
52795         * tests/test-sigpipe.sh: New file.
52796
52797         * modules/write: New file.
52798         * lib/unistd.in.h: Include <sys/types.h>.
52799         (write): New declaration.
52800         * lib/write.c: New file.
52801         * m4/write.m4: New file.
52802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52803         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52804         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52805         GNULIB_WRITE, REPLACE_WRITE.
52806         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52807         and the SIGPIPE issue.
52808
52809         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52810         (raise): New declaration.
52811         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52812         (ext_signal): New function.
52813         (rpl_raise): New function.
52814         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52815         GNULIB_SIGNAL_H_SIGPIPE.
52816         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52817         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52818
52819         * modules/sigpipe: New file.
52820         * m4/sigpipe.m4: New file.
52821
52822 2008-09-25  Derek Price  <derek@ximbiot.com>
52823             Bruno Haible  <bruno@clisp.org>
52824
52825         * gnulib-tool (func_import): Report all license incompatibilities, not
52826         just the first one.
52827
52828 2008-09-25  Bruno Haible  <bruno@clisp.org>
52829
52830         * gnulib-tool (func_import): When computing the edits, consider not
52831         only the Makefile.ams that exist but also those that will be generated.
52832
52833 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52834
52835         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52836         fixes gnulib-tool --test warning about duplicate dependency.
52837
52838 2008-09-25  Bruno Haible  <bruno@clisp.org>
52839
52840         * gnulib-tool: Don't ask the user to perform edits in the generated
52841         Makefile.ams.
52842         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52843         apply to the Makefile.am being generated.
52844         (func_emit_tests_Makefile_am): Execute edits that apply to the
52845         Makefile.am being generated.
52846         (func_import): Setup list of Makefile.am edits before emitting the
52847         Makefile.ams, not at the end.
52848         (func_create_testdir): Update.
52849         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52850
52851 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52852
52853         * gnulib-tool (func_import): Store the --tests-base option in the
52854         comment in gnulib-cache.m4.
52855
52856 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52857
52858         * NEWS: Document increased portability that sys_select now provides.
52859
52860         * lib/sys_select.in.h: Install select wrapper.
52861         * lib/sys_socket.in.h: Use more descriptive name when there is no
52862         select wrapper.
52863         * lib/winsock-select.c: New.
52864         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52865         Require gl_HEADER_SYS_SOCKET.
52866         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52867         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52868         * tests/test-sys_select.c: Add functional tests.
52869
52870 2008-09-24  Eric Blake  <ebb9@byu.net>
52871
52872         open, fopen: close fd leak in last patch
52873         * lib/open.c (rpl_open): Close fd before returning error.
52874         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52875         * doc/posix-functions/open.texi (open): Document that Irix also
52876         has the bug.
52877         * doc/posix-functions/fopen.texi (fopen): Likewise.
52878         Reported by Paolo Bonzini.
52879
52880 2008-09-24  Bruno Haible  <bruno@clisp.org>
52881
52882         Ensure that a filename ending in a slash cannot be used to access a
52883         non-directory.
52884         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52885         to check whether it's really a directory.
52886         * lib/fopen.c: Include fcntl.h, unistd.h.
52887         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52888         and fdopen().
52889         * modules/fopen (Depends-on): Add unistd.
52890         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52891         * tests/test-fopen.c (main): Likewise.
52892         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52893         * doc/posix-functions/fopen.texi: Likewise.
52894         Reported by Eric Blake.
52895
52896 2008-09-23  Eric Blake  <ebb9@byu.net>
52897
52898         c-stack: avoid compiler optimizations when provoking overflow
52899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52900         recursion harder to optimize, to ensure a stack overflow occurs.
52901         * tests/test-c-stack.c (recurse): Likewise.
52902         Borrowed from libsigsegv.
52903
52904         c-stack: work around Irix sigaltstack bug
52905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52906         whether sigaltstack uses wrong end of stack_t (copied in part from
52907         libsigsegv).
52908         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52909         Irix bug, without requiring an over-allocation.
52910         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52911         bug.
52912
52913         fopen: document mingw bug on directories
52914         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52915         not allowing a stream visiting a directory, even though reading
52916         from such a stream is not portable.
52917
52918 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52919
52920         * lib/poll.c: Rewrite.
52921         * modules/poll: Depend on alloca.
52922
52923 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52924
52925         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52926         instead define prototypes for a full set of wrappers.  Ensure
52927         that Cygwin does not use the compatibility code, which is only
52928         for MinGW.
52929         * lib/winsock.c: New.
52930         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52931         * modules/sys_socket: Add lib/winsock.c.
52932
52933         * modules/poll-tests: Add errno and perror.
52934         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52935
52936 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52937
52938         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52939
52940 2008-09-23  Bruno Haible  <bruno@clisp.org>
52941
52942         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52943         * doc/glibc-functions/*: Likewise.
52944
52945 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52946
52947         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52948         success.
52949
52950 2008-09-22  Eric Blake  <ebb9@byu.net>
52951             Bruno Haible  <bruno@clisp.org>
52952
52953         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52954         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52955         supply %A but mishandle pseudo-NaN.
52956         Reported by Simon Josefsson.
52957
52958 2008-09-21  Bruno Haible  <bruno@clisp.org>
52959
52960         * tests/test-lock.c (main): Tweak skip message.
52961         * tests/test-tls.c (main): Likewise.
52962
52963 2008-09-21  Bruno Haible  <bruno@clisp.org>
52964
52965         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52966         whether 'struct sigaction' has sa_sigaction here...
52967         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52968         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52969
52970 2008-09-21  Bruno Haible  <bruno@clisp.org>
52971
52972         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52973         section.
52974         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52975         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52976         the new section.
52977         (Support for obsolete systems lacking POSIX:2001): New section.
52978         (String handling <string.h>): Move strdup to the new section.
52979         Suggested by Simon Josefsson and Paolo Bonzini.
52980
52981 2008-09-21  Bruno Haible  <bruno@clisp.org>
52982
52983         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52984         exponents in %e and %g results on 'long double'. Needed for mingw's
52985         improved *printf functions.
52986         * tests/test-vasprintf-posix.c (test_function): Likewise.
52987         * tests/test-snprintf-posix.h (test_function): Likewise.
52988         * tests/test-sprintf-posix.h (test_function): Likewise.
52989         Reported by Eric Blake.
52990
52991 2008-09-21  Bruno Haible  <bruno@clisp.org>
52992
52993         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52994         * tests/test-sprintf-posix.h (test_function): Likewise.
52995
52996 2008-09-21  Bruno Haible  <bruno@clisp.org>
52997
52998         * modules/getpass (Depends-on): Add strdup-posix.
52999
53000         New module 'strdup-posix'.
53001         * modules/strdup-posix: New file.
53002         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53003         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53005         REPLACE_STRDUP.
53006         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53007         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53008         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53009         strdup-posix.
53010
53011         * modules/strdup (Depends-on): Remove malloc-posix.
53012
53013 2008-09-20  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53016         Wildenhues.
53017
53018 2008-09-20  Bruno Haible  <bruno@clisp.org>
53019
53020         Ensure that wint_t gets defined on IRIX 5.3.
53021         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53022         * lib/wctype.in.h (wint_t): Likewise.
53023         (__wctype_wint_t): Remove type.
53024         (isw*): Use wint_t instead of __wctype_wint_t.
53025         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53026         * modules/wchar (Files): Add m4/wint_t.m4.
53027         (Makefile.am): Substitute HAVE_WINT_T.
53028         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53029         * tests/test-wctype.c: Check that wint_t is defined.
53030         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53031         * doc/posix-headers/wctype.texi: Likewise.
53032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53033
53034 2008-09-18  Bruno Haible  <bruno@clisp.org>
53035
53036         * gnulib-tool (func_exit): Update comment.
53037
53038 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53039
53040         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53041         assumes strdup exists and does not depend on strdup to return
53042         ENOMEM on out of memory conditions.
53043
53044 2008-09-18  Bruno Haible  <bruno@clisp.org>
53045
53046         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53047         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53048         digits for the exponent.
53049
53050 2008-09-18  Jim Meyering  <meyering@redhat.com>
53051             Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/vasnprintf.c (decimal_point_char): Define also if
53054         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53055
53056 2008-09-16  Bruno Haible  <bruno@clisp.org>
53057         and Eric Blake  <ebb9@byu.net>
53058
53059         vasnprintf: support Irix 5.3
53060         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53061         that mishandle long double infinity.
53062         Reported by Tom G. Christensen.
53063
53064 2008-09-16  Bruno Haible  <bruno@clisp.org>
53065
53066         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53067         Solaris 9.
53068         * doc/glibc-functions/alphasort.texi: Likewise.
53069         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53070
53071 2008-09-16  Jim Meyering  <meyering@redhat.com>
53072
53073         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53074         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53075         a umask modification leak out of a subshell.  Otherwise, the
53076         opensolaris /bin/sh would be accepted and thus cause unwarranted
53077         failures in the coreutils test suite.
53078
53079 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53080
53081         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53082         to succeed.
53083
53084 2008-09-16  Jim Meyering  <meyering@redhat.com>
53085
53086         avoid spurious test failure when library is built without ACL support
53087         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53088         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53089         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53090         * tests/test-copy-acl.sh: Likewise.
53091
53092 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53093
53094         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53095         based on character occurrence counts.
53096
53097 2008-09-15  Eric Blake  <ebb9@byu.net>
53098
53099         tests: avoid some compiler warnings
53100         * tests/test-memchr.c (main): Pass NULL indirectly.
53101         * tests/test-closein.c (main): Avoid unused variable.
53102
53103 2008-09-15  Bruno Haible  <bruno@clisp.org>
53104
53105         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53106         are missing on OpenBSD 4.0 individually.
53107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53108
53109 2008-09-15  Bruno Haible  <bruno@clisp.org>
53110
53111         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53112         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53113         * doc/posix-functions/perror.texi: Likewise.
53114         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53115         is missing.
53116         Reported by Eric Blake.
53117
53118         * lib/errno.in.h: Use replacement values >= 2000.
53119         Reported by Eric Blake.
53120
53121 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53122
53123         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53124         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53125         limit.
53126         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53127         compareseq was aborted.
53128
53129 2008-09-14  Bruno Haible  <bruno@clisp.org>
53130
53131         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53132         yvec_edit_count.
53133         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53134         (fstrcmp_bounded): Simplify result computation accordingly.
53135
53136 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53137
53138         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53139         (fstrcmp): Define in terms of fstrcmp_bounded.
53140         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53141         lower_bound argument.
53142         Return quickly if the result is certainly < lower_bound.
53143         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53144
53145 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53146
53147         * lib/diffseq.h (EARLY_ABORT): New macro.
53148         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53149         evaluates to true.
53150
53151 2008-09-14  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/perror-tests: New file.
53154         * tests/test-perror.sh: New file.
53155         * tests/test-perror.c: New file.
53156
53157         New module 'perror'.
53158         * lib/stdio.in.h (perror): New declaration.
53159         * lib/perror.c: New file.
53160         * m4/perror.m4: New file.
53161         * modules/perror: New file.
53162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53163         * doc/posix-functions/perror.texi: Mention the perror module.
53164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53165         REPLACE_PERROR.
53166         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53167         REPLACE_PERROR.
53168
53169 2008-09-14  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/stdio (Makefile.am): Reorder to match the order in
53172         lib/stdio.in.h.
53173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53174
53175 2008-09-13  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53178
53179 2008-09-13  Bruno Haible  <bruno@clisp.org>
53180
53181         Extend strerror to cover the added errno values.
53182         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53183         (rpl_strerror): Provide error messages for the added errno values and
53184         for the WSA* values.
53185         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53186         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53187         strerror.
53188         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53189         * modules/strerror (Depends-on): Add errno.
53190         * doc/posix-functions/strerror.texi: Document the change.
53191         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53192         and EOVERFLOW.
53193
53194 2008-09-13  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/EOVERFLOW: Remove file.
53197         * m4/eoverflow.m4: Remove file.
53198         * modules/EOVERFLOW-tests: Remove file.
53199         * tests/test-EOVERFLOW.c: Remove file.
53200         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53201         * modules/ftell (Depends-on): Likewise.
53202         * modules/getdelim (Depends-on): Likewise.
53203         * modules/getugroups (Depends-on): Likewise.
53204         * modules/poll (Depends-on): Likewise.
53205         * modules/snprintf (Depends-on): Likewise.
53206         * modules/sprintf-posix (Depends-on): Likewise.
53207         * modules/vasnprintf (Depends-on): Likewise.
53208         * modules/vasprintf (Depends-on): Likewise.
53209         * modules/vfprintf-posix (Depends-on): Likewise.
53210         * modules/vsnprintf (Depends-on): Likewise.
53211         * modules/vsprintf-posix (Depends-on): Likewise.
53212         * modules/xvasprintf (Depends-on): Likewise.
53213         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53214         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53215         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53216         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53218         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53219         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53220         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53222         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53223         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53224         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53226         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53227         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53228         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53229         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53230         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53231         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53232         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53233         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53234         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53235         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53236         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53237         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53238         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53239         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53240         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53241         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53242         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53243         * MODULES.html.sh: Remove EOVERFLOW.
53244         * NEWS: Mention the change.
53245
53246 2008-09-13  Bruno Haible  <bruno@clisp.org>
53247
53248         * modules/errno-tests: New file.
53249         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53250
53251         * lib/errno.in.h: New file.
53252         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53253         * modules/errno: New file.
53254         * doc/posix-headers/errno.texi: Update documentation.
53255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53256
53257 2008-09-13  Bruno Haible  <bruno@clisp.org>
53258
53259         * tests/test-poll.c: Use #if for native Windows, rather than testing
53260         __MSVCRT__.
53261
53262 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53263             Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/glob.c: Don't include <pwd.h> on native Windows.
53266         (WINDOWS32): New macro.
53267         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53268
53269 2008-09-13  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53272         (ETIMEDOUT): Remove macro.
53273         (glthread_cond_timedwait_multithreaded): New declaration.
53274         (glthread_cond_timedwait): Use it.
53275         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53276         (glthread_cond_timedwait_multithreaded): New function.
53277
53278 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53279
53280         * modules/poll-tests: Do not check for io.h.
53281         * tests/test-poll.c: Check for __MSVCRT__ instead.
53282
53283 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53284
53285         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53286         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53287         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53288
53289 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53290
53291         * modules/poll-tests: New.
53292         * tests/test-poll.c: New.
53293
53294 2008-09-12  Eric Blake  <ebb9@byu.net>
53295
53296         frexp: test for NetBSD failure on -0.0
53297         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53298         not all, bugs from NetBSD 3.0 have been fixed.
53299         * doc/posix-functions/frexp.texi (frexp): Document bug.
53300         Reported by Thomas Klausner.
53301
53302         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53303         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53304         literal -0.0.
53305         Reported by Jonathan C. Patschke <jp@centtech.com>.
53306
53307 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53308
53309         * lib/glthread/cond.h: Use dummy implementation also if
53310         USE_WIN32_THREADS.
53311
53312 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53313
53314         * modules/fnmatch-posix (License): Change to LGPLv2+.
53315         * modules/fnmatch-gnu (License): Likewise.
53316
53317 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53318
53319         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53320
53321 2008-09-11  Jim Meyering  <meyering@redhat.com>
53322
53323         * users.txt: Add gtk-vnc.
53324
53325 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53326
53327         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53328         rotate amounts.
53329
53330         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53331         required for 16-bit and 8-bit rotates.
53332         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53333         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53334         UINT8_MAX instead of hard-coded constants.
53335         Suggested by Paul Eggert.
53336
53337 2008-09-07  Bruno Haible  <bruno@clisp.org>
53338
53339         * tests/test-striconveh.c (main): Check behaviour when converting from
53340         UTF-7.
53341
53342         Make striconveh work better with stateful encodings.
53343         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53344         that iconv does not increment the inptr when returning -1/EINVAL.
53345
53346 2008-09-07  Bruno Haible  <bruno@clisp.org>
53347
53348         * build-aux/config.rpath: Update according to libtool-2.2.6.
53349         * build-aux/config.libpath: Likewise.
53350
53351 2008-09-06  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53354         * lib/freadptr.c (freadptr): Likewise.
53355         * lib/freadseek.c (freadptrinc): Likewise.
53356         Reported by Simon Josefsson.
53357
53358 2008-09-06  Bruno Haible  <bruno@clisp.org>
53359
53360         * modules/freadptr (License): Change to LGPLv2+.
53361         * modules/freadseek (License): Likewise.
53362         Suggested by Eric Blake.
53363
53364         * modules/memchr2 (License): Change to LGPLv2+.
53365         Approved by Eric Blake.
53366
53367 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53368             Bruno Haible  <bruno@clisp.org>
53369
53370         Make gnulib-tool work with native 'sed' on AIX.
53371         * gnulib-tool (sed_noop): New variable.
53372         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53373         func_add_or_update, func_create_testdir): Use it to initialize sed
53374         script variables.
53375         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53376
53377 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53378             Bruno Haible  <bruno@clisp.org>
53379
53380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53381         also works after #include directives.
53382
53383 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53384
53385         getdate.y: reject an out-of-range timezone value
53386         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53387         the range [-24...+24].  When specified with only one or two digits,
53388         * tests/test-getdate.c: Tests for the fix.
53389         * doc/getdate.texi: Document this change.
53390
53391 2008-09-03  Bruno Haible  <bruno@clisp.org>
53392
53393         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53394
53395 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53396
53397         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53398         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53399         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53400         Blake <ebb9@byu.net>.
53401
53402         * tests/test-bitrotate.c: Add more test vectors.
53403
53404 2008-09-02  Eric Blake  <ebb9@byu.net>
53405
53406         vasnprintf-posix: handle large precision via %.*d
53407         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53408         when handling it ourselves.
53409         * tests/test-vasnprintf-posix.c (test_function): Add test.
53410         * tests/test-snprintf-posix.h (test_function): Likewise.
53411         * tests/test-sprintf-posix.h (test_function): Likewise.
53412         * tests/test-vasprintf-posix.c (test_function): Likewise.
53413         Reported by Alain Guibert.
53414
53415 2008-09-01  Eric Blake  <ebb9@byu.net>
53416
53417         c-stack: make configure-time check more robust
53418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53419         successful sigaction call.
53420         Reported by Tom G. Christensen.
53421
53422 2008-09-01  Bruno Haible  <bruno@clisp.org>
53423
53424         New module 'findprog-lgpl'.
53425         * modules/findprog-lgpl: New file.
53426         * lib/findprog-lgpl.c: New file.
53427         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53428         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53429         to decide whether to use strdup or xstrdup, concatenated_filename or
53430         xconcatenated_filename.
53431
53432 2008-09-01  Bruno Haible  <bruno@clisp.org>
53433
53434         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53435         'xconcat-filename' (GPL).
53436         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53437         (License): Change to LGPLv2+.
53438         * modules/xconcat-filename: New file.
53439         * lib/concat-filename.h (concatenated_filename): Change specification.
53440         (xconcatenated_filename): New declaration.
53441         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53442         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53443         memory situations.
53444         * lib/xconcat-filename.c: New file.
53445         * NEWS: Mention the change.
53446         * lib/findprog.c: Include concat-filename.h, not filename.h.
53447         (find_in_path): Use xconcatenated_filename instead of
53448         concatenated_filename.
53449         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53450         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53451         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53452         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53453         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53454         instead of concatenated_filename.
53455         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53456         (execute_java_class): Use xconcatenated_filename instead of
53457         concatenated_filename.
53458         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53459         * modules/javacomp (Depends-on): Likewise.
53460         * modules/javaexec (Depends-on): Likewise.
53461
53462 2008-09-01  Bruno Haible  <bruno@clisp.org>
53463
53464         Split module 'filename' into 'filename' and 'concat-filename'.
53465         * modules/filename: Keep only lib/filename.h.
53466         (License): Change to LGPLv2+.
53467         * modules/concat-filename: New file, extracted from modules/filename.
53468         * lib/filename.h (concatenated_filename): Remove declaration.
53469         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53470         * lib/concat-filename.c: Include concat-filename.h.
53471         * NEWS: Mention the change.
53472
53473 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53474
53475         * lib/bitrotate.h (rotl8, rotr8): Add.
53476
53477         * modules/bitrotate (configure.ac): Need
53478         AC_REQUIRE([AC_C_INLINE]).
53479         (Description): Mention stdint.h.  Reported by Bruno Haible
53480         <bruno@clisp.org>.
53481
53482         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53483         Paolo Bonzini <bonzini@gnu.org>.
53484
53485 2008-08-31  Bruno Haible  <bruno@clisp.org>
53486
53487         Assume Solaris specific bi-arch conventions on Solaris systems.
53488         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53489         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53490         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53491         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53492         like acl_libdirstem.
53493         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53494         acl_libdirstem.
53495         * NEWS: Mention the change.
53496         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53497
53498 2008-08-31  Jim Meyering  <meyering@redhat.com>
53499
53500         * lib/strftime.h: Add comments describing the two added arguments.
53501
53502         remove duplicate #include directives
53503         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53504         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53505
53506 2008-08-31  Bruno Haible  <bruno@clisp.org>
53507
53508         New module 'sigpipe-die'.
53509         * modules/sigpipe-die: New file.
53510         * lib/sigpipe-die.h: New file.
53511         * lib/sigpipe-die.c: New file.
53512         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53513
53514 2008-08-31  Bruno Haible  <bruno@clisp.org>
53515
53516         Don't override previously installed signal handlers.
53517         * lib/fatal-signal.c (saved_sigactions): New variable.
53518         (uninstall_handlers): Reset the signal to the saved handler, not
53519         to SIG_DFL (except when ignored).
53520         (install_handlers): Save the previous handlers.
53521
53522 2008-08-30  Bruno Haible  <bruno@clisp.org>
53523
53524         * gnulib-tool (func_reset_sigpipe): New function.
53525         (func_get_automake_snippet, func_modules_transitive_closure,
53526         func_import): Invoke it before a join command that reads from stdin,
53527         to avoid "echo: write error: Broken pipe" error messages on stderr.
53528         Reported by Sam Steingold <sds@gnu.org>.
53529
53530 2008-08-30  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53533         Code copied from m4/open.m4.
53534         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53535         access and the filename ends in a slash. Code copied from lib/open.c.
53536         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53537         * tests/test-fopen.c (main): Check against bug with trailing slash.
53538
53539 2008-08-29  Bruno Haible  <bruno@clisp.org>
53540
53541         Avoid some "gcc -pedantic" warnings.
53542         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53543         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53544         * lib/dirent.in.h: Likewise.
53545         * lib/fcntl.in.h: Likewise.
53546         * lib/float.in.h: Likewise.
53547         * lib/iconv.in.h: Likewise.
53548         * lib/inttypes.in.h: Likewise.
53549         * lib/locale.in.h: Likewise.
53550         * lib/math.in.h: Likewise.
53551         * lib/netinet_in.in.h: Likewise.
53552         * lib/search.in.h: Likewise.
53553         * lib/signal.in.h: Likewise.
53554         * lib/stdarg.in.h: Likewise.
53555         * lib/stdint.in.h: Likewise.
53556         * lib/stdio.in.h: Likewise.
53557         * lib/stdlib.in.h: Likewise.
53558         * lib/string.in.h: Likewise.
53559         * lib/strings.in.h: Likewise.
53560         * lib/sys_select.in.h: Likewise.
53561         * lib/sys_socket.in.h: Likewise.
53562         * lib/sys_stat.in.h: Likewise.
53563         * lib/sys_time.in.h: Likewise.
53564         * lib/sysexits.in.h: Likewise.
53565         * lib/time.in.h: Likewise.
53566         * lib/unistd.in.h: Likewise.
53567         * lib/wchar.in.h: Likewise.
53568         * lib/wctype.in.h: Likewise.
53569         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53570         * modules/fchdir (Makefile.am): Likewise.
53571         * modules/fcntl (Makefile.am): Likewise.
53572         * modules/float (Makefile.am): Likewise.
53573         * modules/iconv_open (Makefile.am): Likewise.
53574         * modules/inttypes (Makefile.am): Likewise.
53575         * modules/locale (Makefile.am): Likewise.
53576         * modules/math (Makefile.am): Likewise.
53577         * modules/netinet_in (Makefile.am): Likewise.
53578         * modules/search (Makefile.am): Likewise.
53579         * modules/signal (Makefile.am): Likewise.
53580         * modules/stdarg (Makefile.am): Likewise.
53581         * modules/stdint (Makefile.am): Likewise.
53582         * modules/stdio (Makefile.am): Likewise.
53583         * modules/stdlib (Makefile.am): Likewise.
53584         * modules/string (Makefile.am): Likewise.
53585         * modules/strings (Makefile.am): Likewise.
53586         * modules/sys_select (Makefile.am): Likewise.
53587         * modules/sys_socket (Makefile.am): Likewise.
53588         * modules/sys_stat (Makefile.am): Likewise.
53589         * modules/sys_time (Makefile.am): Likewise.
53590         * modules/sysexits (Makefile.am): Likewise.
53591         * modules/time (Makefile.am): Likewise.
53592         * modules/unistd (Makefile.am): Likewise.
53593         * modules/wchar (Makefile.am): Likewise.
53594         * modules/wctype (Makefile.am): Likewise.
53595         Reported by Reuben Thomas <rrt@sc3d.org>.
53596
53597 2008-08-29  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53600         any more.
53601
53602 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53603
53604         * MODULES.html.sh (Misc): Add bitrotate.
53605
53606         * modules/bitrotate: New file.
53607
53608         * lib/bitrotate.h: New file.
53609
53610         * modules/bitrotate-tests: New file.
53611
53612         * tests/test-bitrotate.c: New file.
53613
53614         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53615         on the bitrotate module.
53616
53617         * lib/arctwo.c: Use new bitrotate module.
53618
53619 2008-08-29  Jim Meyering  <meyering@redhat.com>
53620
53621         bootstrap: merge changes from coreutils
53622         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53623         of copied files.  Remove a kludge, now that this is fixed.
53624         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53625         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53626         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53627
53628 2008-08-29  Bruno Haible  <bruno@clisp.org>
53629
53630         * MODULES.html.sh: Remove --cvs-urls option.
53631
53632 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53633
53634         maint.mk: adjust to file name change
53635         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53636
53637 2008-08-28  Jim Meyering  <meyering@redhat.com>
53638
53639         * modules/getndelim2 (License): Relicense to LGPLv2+.
53640         Approved by Richard Stallman for the version of 1995, and by
53641         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53642
53643 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53644
53645         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53646         dummy if one is not available.  Do not touch them if
53647         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53648         (getc_maybe_unlocked): New.
53649         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53650
53651 2008-08-26  Eric Blake  <ebb9@byu.net>
53652
53653         doc/INSTALL: resync from autoconf
53654         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53655         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53656         moving...
53657         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53658         * INSTALL: Regenerate.
53659         * INSTALL.ISO: New file.
53660         * INSTALL.UTF-8: Likewise.
53661
53662 2008-08-26  Jim Meyering  <meyering@redhat.com>
53663
53664         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53665         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53666         these definitions conditional, so that they may be overridden, too.
53667
53668 2008-08-26  Bruno Haible  <bruno@clisp.org>
53669
53670         Generate INSTALL file variants with prettier quotes.
53671         * doc/Makefile (INSTALL_PRELUDE): New macro.
53672         (INSTALL): Use it.
53673         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53674
53675 2008-08-26  Bruno Haible  <bruno@clisp.org>
53676
53677         Run makeinfo in an English locale.
53678         * doc/Makefile (MAKEINFO): New variable.
53679
53680 2008-08-26  Bruno Haible  <bruno@clisp.org>
53681
53682         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53683         Suggested by Eric Blake.
53684
53685 2008-08-25  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53688
53689 2008-08-25  Eric Blake  <ebb9@byu.net>
53690
53691         c-stack: test that stack overflow can be caught
53692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53693         that platform allows handling stack overflow; at least OS/2 EMX
53694         has sigaltstack, but crashes before transferring control to
53695         handler on stack overflow.
53696         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53697         check for HAVE_STACK_OVERFLOW_HANDLING.
53698         Reported by Elbert Pol.
53699
53700 2008-08-25  Bruno Haible  <bruno@clisp.org>
53701
53702         * doc/posix-functions/strftime.texi: Fix description of strftime
53703         module.
53704
53705 2008-08-24  Bruno Haible  <bruno@clisp.org>
53706
53707         * tests/uniwidth/test-uc_width2.c: New file.
53708         * tests/uniwidth/test-uc_width2.sh: New file.
53709         * modules/uniwidth/width-tests (Files): Add the new files.
53710         (TESTS): Add uniwidth/test-uc_width2.sh.
53711         (TESTS_ENVIRONMENT): New variable.
53712         (check_PROGRAMS): Add test-uc_width2.
53713         (test_uc_width2_SOURCES): New variable.
53714
53715         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53716         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53717         not 0x00AB.
53718         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53719
53720 2008-08-22  Eric Blake  <ebb9@byu.net>
53721
53722         test-lock, test-tls: mention why a test is skipped
53723         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53724         skipped.
53725         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53726
53727         count-one-bits: relax license
53728         * modules/count-one-bits (License): Relicense to LGPLv2+.
53729         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53730
53731 2008-08-22  Andreas Schwab  <schwab@suse.de>
53732
53733         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53734         Remove spurious space in assignment.
53735
53736 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53737
53738         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53739         Paul Eggert <eggert@CS.UCLA.EDU>.
53740
53741 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53742
53743         * modules/gettext: Add m4/threadlib.m4.
53744
53745 2008-08-19  Eric Blake  <ebb9@byu.net>
53746
53747         test-c-stack: fix compilation failure on FreeBSD 5.0
53748         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53749         headers before <sys/resource.h>.
53750         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53751         the bug.
53752         Reported by Nelson H. F. Beebe.
53753
53754         strverscmp: migrate from "strverscmp.h" to <string.h>
53755         * modules/string (Makefile.am): Add new hooks.
53756         * modules/strverscmp (Files): Remove strverscmp.h.
53757         (Depends-on): Add string.
53758         (configure.ac): Add indicator.
53759         (Include): Mention new header.
53760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53761         defaults.
53762         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53763         results.
53764         * lib/strverscmp.h: Delete.
53765         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53766         * tests/test-strverscmp.c (includes): Adjust client.
53767         * lib/check-version.c (includes): Likewise.
53768         * NEWS: Document the change.
53769
53770         strverscmp: add unit test
53771         * modules/strverscmp-tests: New file.
53772         * tests/test-strverscmp.c: Likewise.
53773
53774 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53775
53776         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53777         regarding Windows crypto stuff, from Mono.
53778
53779 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53780
53781         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53782         if present, for intel RND.  Return error on failures.
53783
53784 2008-08-18  Ben Pfaff  <blp@gnu.org>
53785
53786         gitlog-to-changelog: give better diagnostic for failed pipe-open
53787         * build-aux/gitlog-to-changelog: Improve error message: suggest
53788         that the version of Git may be too old.
53789
53790 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53791
53792         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53793         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53794
53795 2008-08-18  Bruno Haible  <bruno@clisp.org>
53796
53797         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53798         pthread_in_use().
53799
53800 2008-08-18  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/glthread/threadlib.c: Include <pthread.h>.
53803
53804 2008-08-18  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53807         glthread_recursive_lock_* macros.
53808         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53809         Fix syntax error.
53810
53811 2008-08-18  Bruno Haible  <bruno@clisp.org>
53812
53813         * lib/glthread/thread.c: Avoid forcing a context switch right after
53814         thread creation.
53815
53816 2008-08-17  Bruno Haible  <bruno@clisp.org>
53817
53818         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53819         * lib/glthread/thread.h: Provide Win32 specific implementation.
53820         * modules/thread (Files): Add lib/glthread/thread.c.
53821         (Depends-on): Add lock.
53822         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53823
53824 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53825
53826         New module 'yield'.
53827         * modules/yield: New file.
53828         * lib/glthread/yield.h: New file.
53829         * m4/yield.m4: New file.
53830         * MODULES.html.sh (Multithreading): Add yield.
53831
53832 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53833
53834         New module 'thread'.
53835         * modules/thread: New file.
53836         * lib/glthread/thread.h: New file.
53837         * m4/thread.m4: New file.
53838         * MODULES.html.sh (Multithreading): Add thread.
53839
53840 2008-08-17  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/glthread/lock.h: Include <stdlib.h> always.
53843         * lib/glthread/tls.h: Likewise.
53844         * lib/glthread/cond.h: Likewise.
53845
53846 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53847
53848         New module 'cond'.
53849         * modules/cond: New file.
53850         * lib/glthread/cond.h: New file.
53851         * lib/glthread/cond.c: New file.
53852         * m4/cond.m4: New file.
53853         * MODULES.html.sh (Multithreading): Add cond.
53854
53855 2008-08-16  Eric Blake  <ebb9@byu.net>
53856
53857         c-stack: fix regression on Irix 5.3 from 2008-06-21
53858         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53859         sa_sigaction...
53860         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53861         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53862         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53863         * modules/signal (Makefile.am): Use the value.
53864         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53865         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53866         * doc/posix-headers/signal.texi (signal.h): Document this
53867         portability issue.
53868         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53869         Reported by Tom G. Christensen.
53870
53871 2008-08-17  Bruno Haible  <bruno@clisp.org>
53872
53873         New module 'threadlib'.
53874         * modules/threadlib: New file.
53875         * lib/glthread/threadlib.c: New file, extracted from
53876         lib/glthread/lock.c.
53877         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53878         functions.
53879         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53880         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53881         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53882         macros.
53883         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53884         (gl_DISABLE_THREADS): Remove macro.
53885         * modules/lock (Files): Remove build-aux/config.rpath.
53886         (Depends-on): Remove havelib. Add threadlib.
53887         (configure.ac-early): Remove section.
53888         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53889         * modules/tls (Depends-on): Remove lock. Add threadlib.
53890         (Link): New section, copied from threadlib.
53891         * MODULES.html.sh (Multithreading): Add threadlib.
53892
53893 2008-08-14  Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53896         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53897         glthread_rwlock_unlock, glthread_rwlock_destroy,
53898         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53899         glthread_recursive_lock_destroy): Define as macros always.
53900         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53901         glthread_lock_lock.
53902         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53903         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53904         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53905         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53906         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53907         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53908         (glthread_recursive_lock_lock_func): Renamed from
53909         glthread_recursive_lock_lock.
53910         (glthread_recursive_lock_unlock_func): Renamed from
53911         glthread_recursive_lock_unlock.
53912         (glthread_recursive_lock_destroy_func): Renamed from
53913         glthread_recursive_lock_destroy.
53914
53915 2008-08-14  Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/glthread/lock.h: Renamed from lib/lock.h.
53918         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53919         * lib/glthread/tls.h: Renamed from lib/tls.h.
53920         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53921         * lib/fstrcmp.c: Update includes.
53922         * lib/strsignal.c: Update includes.
53923         * modules/lock (Files, Makefile.am): Update.
53924         (Include): Change to "glthread/lock.h".
53925         * modules/tls (Files, Makefile.am): Update.
53926         (Include): Change to "glthread/tls.h".
53927         * tests/test-lock.c: Update includes.
53928         * tests/test-tls.c: Update includes.
53929         * NEWS: Mention the renamed header files.
53930
53931 2008-08-11  Jim Meyering  <meyering@redhat.com>
53932
53933         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53934
53935 2008-08-11  Eric Blake  <ebb9@byu.net>
53936
53937         test-c-stack: avoid C99-ism
53938         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53939         before statement.
53940         Reported by Alain Guibert.
53941
53942 2008-08-10  Jim Meyering  <meyering@redhat.com>
53943
53944         ensure that return value of uinttostr et al are not ignored
53945         * lib/inttostr.h (__GNUC_PREREQ): Define.
53946         (__attribute_warn_unused_result__): Define.
53947         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53948
53949 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53950
53951         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53952         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53953
53954 2008-08-07  Jim Meyering  <meyering@redhat.com>
53955
53956         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53957
53958         * modules/mkstemp (License): Relicense under LGPLv2+.
53959         * modules/tempname (License): Likewise.
53960
53961 2008-08-06  Bruno Haible  <bruno@clisp.org>
53962
53963         * lib/poll.c (poll): Further micro-optimization.
53964
53965 2008-08-06  Jim Meyering  <meyering@redhat.com>
53966
53967         inet_pton.c: use locale-independent tolower
53968         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53969         (inet_pton6): Use c_tolower rather than tolower.
53970         * modules/inet_pton (Depends-on): Add c-ctype.
53971
53972 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53973
53974         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53975         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53976
53977 2008-08-06  Jim Meyering  <meyering@redhat.com>
53978
53979         * modules/inet_pton (License): Relicense under LGPLv2+.
53980
53981 2008-08-03  Bruno Haible  <bruno@clisp.org>
53982
53983         Additional non-aborting API for lock and tls.
53984         * lib/lock.h: Include <errno.h>.
53985         (glthread_lock_init): New macro/function.
53986         (gl_lock_init): Define as wrapper around glthread_lock_init.
53987         (glthread_lock_lock): New macro/function.
53988         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53989         (glthread_lock_unlock): New macro/function.
53990         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53991         (glthread_lock_destroy): New macro/function.
53992         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53993         (glthread_rwlock_init): New macro/function.
53994         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53995         (glthread_rwlock_rdlock): New macro/function.
53996         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53997         (glthread_rwlock_wrlock): New macro/function.
53998         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53999         (glthread_rwlock_unlock): New macro/function.
54000         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54001         (glthread_rwlock_destroy): New macro/function.
54002         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54003         (glthread_recursive_lock_init): New macro/function.
54004         (gl_recursive_lock_init): Define as wrapper around
54005         glthread_recursive_lock_init.
54006         (glthread_recursive_lock_lock): New macro/function.
54007         (gl_recursive_lock_lock): Define as wrapper around
54008         glthread_recursive_lock_lock.
54009         (glthread_recursive_lock_unlock): New macro/function.
54010         (gl_recursive_lock_unlock): Define as wrapper around
54011         glthread_recursive_lock_unlock.
54012         (glthread_recursive_lock_destroy): New macro/function.
54013         (gl_recursive_lock_destroy): Define as wrapper around
54014         glthread_recursive_lock_destroy.
54015         (glthread_once): New macro/function.
54016         (gl_once): Define as wrapper around glthread_once.
54017         Update function declarations.
54018         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54019         glthread_rwlock_init. Return error code.
54020         (glthread_rwlock_rdlock_multithreaded): Renamed from
54021         glthread_rwlock_rdlock. Return error code.
54022         (glthread_rwlock_wrlock_multithreaded): Renamed from
54023         glthread_rwlock_wrlock. Return error code.
54024         (glthread_rwlock_unlock_multithreaded): Renamed from
54025         glthread_rwlock_unlock. Return error code.
54026         (glthread_rwlock_destroy_multithreaded): Renamed from
54027         glthread_rwlock_destroy. Return error code.
54028         (glthread_recursive_lock_init_multithreaded): Renamed from
54029         glthread_recursive_lock_init. Return error code.
54030         (glthread_recursive_lock_lock_multithreaded): Renamed from
54031         glthread_recursive_lock_lock. Return error code.
54032         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54033         glthread_recursive_lock_unlock. Return error code.
54034         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54035         glthread_recursive_lock_destroy. Return error code.
54036         (glthread_once_call): Make static.
54037         (glthread_once_multithreaded): Renamed from glthread_once.
54038         * lib/tls.h: Include <errno.h>.
54039         (glthread_tls_key_init): New macro/function.
54040         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54041         (glthread_tls_set): New macro/function.
54042         (gl_tls_set): Define as wrapper around glthread_tls_set.
54043         (glthread_tls_key_destroy): New macro/function.
54044         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54045         Update function declarations.
54046         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54047         glthread_tls_get.
54048         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54049
54050 2008-08-04  Eric Blake  <ebb9@byu.net>
54051
54052         gnumakefile: use space, not TAB, outside of targets
54053         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54054
54055 2008-08-02  Jim Meyering  <meyering@redhat.com>
54056
54057         getdate.y: avoid locale-dependent date parsing failure
54058         In Turkish locales, getdate would fail to recognize keywords
54059         containing a lowercase "i".  The solution is not to rely on
54060         locale-sensitive case-conversion.
54061         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54062         (lookup_word): Use c_toupper in place of toupper.
54063         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54064         Reported by Vefa Bicakci <bicave@superonline.com> in
54065         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54066         * modules/getdate (Depends-on): Add c-ctype.
54067
54068 2008-08-02  Bruno Haible  <bruno@clisp.org>
54069
54070         * gnulib-tool (func_import): When updating or creating a .gitignore
54071         file, prepend each added line with a slash, and ignore leading slashes
54072         from the existing lines.
54073         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54074
54075 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54076
54077         Portability fix for GNU make 3.79.1.
54078         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54079         versions do not understand.
54080
54081 2008-08-01  Bruno Haible  <bruno@clisp.org>
54082
54083         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54084         * tests/test-isnanf.h (zero): New variable.
54085         (main): Avoid literal -0.0f.
54086         * tests/test-isnand.h (zero): New variable.
54087         (main): Avoid literal -0.0.
54088         * tests/test-isnanl.h (zero): New variable.
54089         (main): Avoid literal -0.0L.
54090         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54091         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54092         -0.0, -0.0L.
54093         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54094         (test_signbitd): Avoid literal -0.0.
54095         (test_signbitl): Avoid literal -0.0L.
54096         * tests/test-ceilf1.c (zero): New variable.
54097         (main): Avoid literal -0.0f.
54098         * tests/test-ceill.c (zero): New variable.
54099         (main): Avoid literal -0.0L.
54100         * tests/test-floorf1.c (zero): New variable.
54101         (main): Avoid literal -0.0f.
54102         * tests/test-floorl.c (zero): New variable.
54103         (main): Avoid literal -0.0L.
54104         * tests/test-roundf1.c (zero): New variable.
54105         (main): Avoid literal -0.0f.
54106         * tests/test-round1.c (zero): New variable.
54107         (main): Avoid literal -0.0.
54108         * tests/test-roundl.c (zero): New variable.
54109         (main): Avoid literal -0.0L.
54110         * tests/test-truncf1.c (zero): New variable.
54111         (main): Avoid literal -0.0f.
54112         * tests/test-trunc1.c (zero): New variable.
54113         (main): Avoid literal -0.0.
54114         * tests/test-truncl.c (zero): New variable.
54115         (main): Avoid literal -0.0L.
54116         * tests/test-frexp.c (zero): New variable.
54117         (main): Avoid literal -0.0.
54118         * tests/test-frexpl.c (zero): New variable.
54119         (main): Avoid literal -0.0L.
54120         * tests/test-ldexpl.c (zero): New variable.
54121         (main): Avoid literal -0.0L.
54122         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54123         (zerod, zerol): New variables.
54124         (test_function): Avoid literals -0.0, -0.0L.
54125         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54126         (zerod, zerol): New variables.
54127         (test_function): Avoid literals -0.0, -0.0L.
54128         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54129         (zerod, zerol): New variables.
54130         (test_function): Avoid literals -0.0, -0.0L.
54131         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54132         (zerod, zerol): New variables.
54133         (test_function): Avoid literals -0.0, -0.0L.
54134         * tests/test-strtod.c (zero): New variable.
54135         (main): Avoid literal -0.0.
54136         Reported by Jonathan C. Patschke <jp@centtech.com>.
54137
54138 2008-07-31  Jim Meyering  <meyering@redhat.com>
54139
54140         sha256.h: correct definition of SHA224_DIGEST_SIZE
54141         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54142         Reported by Paulie Pena IV <paulie4@gmail.com>.
54143         Define as 224 / 8, rather than as a literal.
54144         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54145         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54146         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54147
54148 2008-07-31  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54151         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54152         Reported by Jonathan Patschke <jp@centtech.com>.
54153
54154 2008-07-31  Bruno Haible  <bruno@clisp.org>
54155
54156         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54157         Reported by Paolo Bonzini <bonzini@gnu.org>.
54158
54159 2008-07-30  Eric Blake  <ebb9@byu.net>
54160
54161         test-strtod: allow compilation without -lm
54162         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54163         Reported by Dennis Clarke <blastwave@gmail.com>.
54164
54165 2008-07-28  Jim Meyering  <meyering@redhat.com>
54166
54167         bootstrap: work also when there are no .po files in po/
54168         * build-aux/bootstrap (update_po_files): Complete the change
54169         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54170
54171 2008-07-27  Jim Meyering  <meyering@redhat.com>
54172
54173         * users.txt: Add zile.
54174
54175 2008-07-26  Ben Pfaff  <blp@gnu.org>
54176
54177         Add missing dependencies on new m4/exponent[fdl].m4 files.
54178         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54179         * modules/isnand-nolibm: Add m4/exponentd.m4.
54180         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54181         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54182         m4/isnan[fdl].m4, because the macros actually used moved.
54183         Reported by Jim Meyering.
54184
54185 2008-07-14  Ben Pfaff  <blp@gnu.org>
54186
54187         Add isinf module.
54188         * lib/isinf.c: New file.
54189         * lib/math.in.h: Define isinf macro if we have decided to replace
54190         it.
54191         * m4/isinf.m4: New file.
54192         * m4/math_h.m4: Initialize and substitute variables for isinf
54193         module.
54194         * modules/isinf: New file.
54195         * modules/isinf-tests: New file.
54196         * modules/math: Add substitutions for new module.
54197         * tests/test-isinf.c: New file.
54198         * doc/posix-functions/isinf.texi: Mention new module.
54199         * MODULES.html.sh: Mention new module.
54200
54201 2008-07-14  Ben Pfaff  <blp@gnu.org>
54202
54203         Factor out some macros for use by additional modules.
54204         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54205         exponentf.m4.
54206         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54207         exponentd.m4.
54208         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54209         file exponentl.m4.
54210         * m4/exponentf.m4: New file.
54211         * m4/exponentd.m4: New file.
54212         * m4/exponentl.m4: New file.
54213         * modules/isnanf: Use new file m4/exponentf.m4.
54214         * modules/isnand: Use new file m4/exponentd.m4.
54215         * modules/isnanl: Use new file m4/exponentl.m4.
54216
54217 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54218
54219         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54220         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54221         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54222         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54223
54224         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54225         readlink on platforms without PATH_MAX.
54226
54227 2008-07-21  Eric Blake  <ebb9@byu.net>
54228
54229         Warn, not fail, on stale version.
54230         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54231
54232         Don't allow installation with stale devel version number.
54233         * top/GNUmakefile (_is-install-target): New macro.
54234         (_curr-ver): Forbid installation with stale version number.
54235
54236 2008-07-20  Bruno Haible  <bruno@clisp.org>
54237
54238         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54239         TESTS_ENVIRONMENT.
54240         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54241
54242 2008-07-20  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/c-stack.h (c_stack_action): Add documentation.
54245         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54246
54247 2008-07-20  Bruno Haible  <bruno@clisp.org>
54248
54249         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54250         * modules/readlink (License): Likewise.
54251
54252 2008-07-17  Eric Blake  <ebb9@byu.net>
54253
54254         * modules/c-stack (Link): Fix typo.
54255
54256         Make c-stack use libsigsegv, when available.
54257         * modules/c-stack (Depends-on): Add libsigsegv.
54258         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54259         needed.
54260         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54261         (segv_handler, overflow_handler, c_stack_action)
54262         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54263         implementation when libsigsegv is available, but only when using
54264         the library is necessary.
54265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54266         comment, explaining why XSI check fails on Linux.
54267         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54268         * tests/test-c-stack2.sh: Tweak skip message.
54269         * NEWS: Document new link-time requirements.
54270
54271 2008-07-16  Eric Blake  <ebb9@byu.net>
54272
54273         c-stack: Expose false positives when not using libsigsegv.
54274         * modules/c-stack-tests (Files): Expand test.
54275         * tests/test-c-stack.c (main): Add means to conditionally trigger
54276         non-overflow SIGSEGV.
54277         * tests/test-c-stack2.sh: New file.
54278
54279 2008-07-14  Bruno Haible  <bruno@clisp.org>
54280
54281         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54282         Reported by Eric Blake.
54283
54284 2008-07-14  Sam Steingold  <sds@gnu.org>
54285             Bruno Haible  <bruno@clisp.org>
54286
54287         New module libsigsegv.
54288         * modules/libsigsegv: New file.
54289         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54290         modifications.
54291         * MODULES.html.sh (Signal handling): New section.
54292
54293 2008-07-14  Bruno Haible  <bruno@clisp.org>
54294
54295         * modules/unictype/ctype-* (Description): Add the word "function".
54296         Improves the resulting doc in MODULES.html.
54297
54298 2008-07-12  Ben Pfaff  <blp@gnu.org>
54299
54300         Add longlong module.
54301         * modules/longlong: New file.
54302
54303 2008-07-12  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54306         to empty.
54307
54308 2008-07-10  Ben Pfaff  <blp@gnu.org>
54309
54310         Add isnan module.
54311         * doc/posix-functions/isnan.texi: Mention new module.
54312         * lib/math.in.h: Define isnan macro if we have decided to replace
54313         it.
54314         * m4/isnan.m4: New file.
54315         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54316         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54317         also.
54318         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54319         redundancy.
54320         * m4/math_h.m4: Initialize and substitute variables for isnan
54321         module.
54322         * modules/isnan: New file.
54323         * modules/isnan-tests: New file.
54324         * modules/math: Add substitutions for new module.
54325         * tests/test-isnan.c: New file.
54326         * MODULES.html.sh: Mention new module.
54327
54328 2008-07-10  Ben Pfaff  <blp@gnu.org>
54329
54330         Add isnanf module.
54331         * lib/isnanf.m4: New file.
54332         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54333         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54334         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54335         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54336         * modules/isnanf: New file.
54337         * modules/isnanf-tests: New file.
54338         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54339         files.
54340         * tests/test-isnanf-nolibm.c: factored most of its contents into
54341         new file tests/test-isnanf.h.
54342         * tests/test-isnanf.h: New file.
54343         * tests/test-isnanf.c: New file.
54344         * MODULES.html.sh: Mention new module.
54345         * doc/glibc-functions/isnanf.texi: Mention new module.
54346
54347 2008-07-10  Ben Pfaff  <blp@gnu.org>
54348
54349         Add isnand module.
54350         * lib/isnand.h: New file.
54351         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54352         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54353         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54354         functionality also.
54355         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54356         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54357         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54358         * modules/isnand: New file.
54359         * modules/isnand-tests: New file.
54360         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54361         files.
54362         * tests/test-isnand-nolibm.c: factored most of its contents into
54363         new file tests/test-isnand.h.
54364         * tests/test-isnand.h: New file.
54365         * tests/test-isnand.c: New file.
54366         * MODULES.html.sh: Mention new module.
54367
54368 2008-07-10  Ben Pfaff  <blp@gnu.org>
54369
54370         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54371         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54372         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54373         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54374         * modules/isnanf-nolibm: Update references to renamed files.
54375         * modules/isnand-nolibm: Likewise.
54376         * modules/isnanf-nolibm-tests: Likewise.
54377         * modules/isnand-nolibm-tests: Likewise.
54378         * lib/frexp.c: Likewise.
54379         * lib/isfinite.c: Likewise.
54380         * lib/signbitd.c: Likewise.
54381         * lib/signbitf.c: Likewise.
54382         * lib/vasnprintf.c: Likewise.
54383         * tests/test-ceilf1.c: Likewise.
54384         * tests/test-ceilf2.c: Likewise.
54385         * tests/test-floorf1.c: Likewise.
54386         * tests/test-floorf2.c: Likewise.
54387         * tests/test-frexp.c: Likewise.
54388         * tests/test-round1.c: Likewise.
54389         * tests/test-round2.c: Likewise.
54390         * tests/test-roundf1.c: Likewise.
54391         * tests/test-strtod.c: Likewise.
54392         * tests/test-trunc1.c: Likewise.
54393         * tests/test-trunc2.c: Likewise.
54394         * tests/test-truncf1.c: Likewise.
54395         * tests/test-truncf2.c: Likewise.
54396         * NEWS: Mention the renamed header files.
54397
54398 2008-07-11  Jim Meyering  <meyering@redhat.com>
54399
54400         vc-list-files: make the last-resort awk code more portable
54401         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54402         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54403         does not support it.
54404
54405 2008-07-10  Eric Blake  <ebb9@byu.net>
54406
54407         Work with tar's bootstrap.
54408         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54409         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54410         an m4 comment.
54411
54412 2008-07-09  Jim Meyering  <meyering@redhat.com>
54413
54414         posix-shell.m4: fix typo that made this test malfunction
54415         * m4/posix-shell.m4: Remove capitalization in variable name.
54416
54417 2008-07-08  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/onceonly.m4: Update comments.
54420         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54421
54422 2008-07-04  Jim Meyering  <meyering@redhat.com>
54423
54424         * users.txt: Add vc-dwim.
54425         (bison, coreutils): Use the gitweb URL.
54426
54427 2008-07-03  Jim Meyering  <meyering@redhat.com>
54428
54429         * users.txt: Add libffcall.  From Sam Steingold.
54430
54431 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54432
54433         getdate.y: do not ignore TZ with relative day, month or year offset
54434         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54435         relative-date-handling, since otherwise, the latter would clobber the
54436         sole output (an updated Start value) of the tz-handling block.
54437         * tests/test-getdate.c: Tests for the fix
54438
54439 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54440
54441         Recognize 'foo_LIBRARIES += libgnu.a'.
54442         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54443         makefile snippet has already specified an installation location,
54444         also using '+='.
54445
54446 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54447
54448         getdate.y: factor out common actions
54449         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54450         Use them in place of open-coded actions.
54451
54452 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54453
54454         Add self-test for getdate module.
54455         * modules/getdate-tests: New file.
54456         * tests/test-getdate.c: New file.
54457
54458 2008-06-29  Bruno Haible  <bruno@clisp.org>
54459
54460         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54461         .gitignore.
54462         Reported by Sylvain Beucler <beuc@beuc.net>.
54463
54464 2008-06-29  Bruno Haible  <bruno@clisp.org>
54465
54466         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54467         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54468
54469 2008-06-29  Bruno Haible  <bruno@clisp.org>
54470
54471         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54472         EXTRA_DIST.
54473         Reported by Sylvain Beucler <beuc@beuc.net>.
54474
54475 2008-06-26  Jim Meyering  <meyering@redhat.com>
54476
54477         make several modules depend on the "open" module
54478         This provides slightly increased consistency when opening-for-write
54479         the name of a non-directory spelled with a trailing slash.
54480         * modules/chdir-safer: Likewise.
54481         * modules/chown: Likewise.
54482         * modules/clean-temp: Likewise.
54483         * modules/copy-file: Likewise.
54484         * modules/fchdir: Likewise.
54485         * modules/fcntl-safer: Likewise.
54486         * modules/pipe: Likewise.
54487         * modules/utime: Likewise.
54488         Prompted by Eric Blake and Bruno Haible.
54489
54490 2008-06-24  Andreas Schwab  <schwab@suse.de>
54491
54492         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54493         literals can be used as initializers for global variables.
54494
54495 2008-06-23  Eric Blake  <ebb9@byu.net>
54496
54497         Make gnulib-cache.m4 easier to diff.
54498         * gnulib-tool (func_import): Allow newlines when reading cached
54499         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54500
54501 2008-06-23  Bruno Haible  <bruno@clisp.org>
54502
54503         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54504         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54505         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54506         m4/signalblocking.m4.
54507         (gl_PREREQ_SIGACTION): Don't invoke it.
54508         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54509         gl_PREREQ_SIG_HANDLER_H.
54510         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54511         Don't check for sigaction here.
54512
54513 2008-06-23  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54516         (install_handlers): Don't set the SA_RESETHAND flag.
54517
54518 2008-06-23  Bruno Haible  <bruno@clisp.org>
54519
54520         * m4/sigaction.m4: Comment fixes.
54521         * lib/signal.in.h: Likewise.
54522
54523 2008-06-23  Eric Blake  <ebb9@byu.net>
54524
54525         Fix typo.
54526         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54527
54528         Avoid SA_ namespace.
54529         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54530         Reported by Ralf Wildenhues.
54531
54532         Avoid test failure due to SA_RESTORER.
54533         * tests/test-sigaction.c (SA_MASK): New macro.
54534         (main): Avoid failing due to extension flags being set.
54535         Reported by Jim Meyering.
54536
54537         Revert use of sig-handler.h in sigprocmask.c.
54538         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54539         it requires the existence of struct sigaction.
54540         * lib/sigprocmask.c (handler_t): Restore typedef.
54541         (rpl_signal, old_handlers): Use local type.
54542
54543 2008-06-22  Bruno Haible  <bruno@clisp.org>
54544
54545         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54546         conditionally.
54547         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54548
54549 2008-06-22  Bruno Haible  <bruno@clisp.org>
54550
54551         * doc/posix-functions/siginterrupt.texi: Move note.
54552
54553         * lib/signal.in.h (SA_RESTART): New macro.
54554         * lib/sigaction.c: Update comment.
54555
54556         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54557
54558         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54559         (gl_PREREQ_SIGPROCMASK): Invoke it.
54560         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54561
54562         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54563
54564         * lib/sigprocmask.c: Update a comment.
54565
54566 2008-06-21  Eric Blake  <ebb9@byu.net>
54567
54568         Use sigaction module rather than signal().
54569         * modules/c-stack (Depends-on): Add sigaction.
54570         * modules/fatal-signal (Depends-on): Likewise.
54571         * modules/nanosleep (Depends-on): Likewise.
54572         * modules/sigprocmask (Files): Add sig-handler.h.
54573         * modules/sigaction (Files): Likewise.
54574         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54575         Eggert.
54576         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54577         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54578         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54579         (init_fatal_signals): Likewise.
54580         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54581         (siginterrupt): Delete fallback.
54582         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54583         instead.
54584         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54585         siginterrupt.
54586
54587         New module sigaction, for mingw.
54588         * modules/sigaction: New module...
54589         * modules/sigaction-tests: ...and its test.
54590         * m4/sigaction.m4: New file.
54591         * lib/sigaction.c: Likewise.
54592         * tests/test-sigaction.c: Likewise.
54593         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54594         * modules/signal (Makefile.am): Likewise.
54595         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54596         needed.
54597         * doc/posix-headers/signal.texi (signal.h): Mention provided
54598         types.
54599         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54600         that sigaction is preferable.
54601         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54602         module.
54603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54604         sigaction.
54605
54606         Improve robustness of sigprocmask by overriding signal.
54607         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54608         is in use.
54609         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54610         (SIGKILL, SIGSTOP): Provide fallbacks.
54611         (rpl_signal): Implement.
54612         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54613         signal can be called inside handlers.
54614
54615         Fix nanosleep module on mingw.
54616         * modules/nanosleep (Depends-on): Add sys_select.
54617         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54618
54619         Fix licensing of sigprocmask.
54620         * modules/raise (License): Relicense as LGPL.
54621
54622 2008-06-21  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54625         result if it contains question marks.
54626         Reported by Michael Geng <linux@michaelgeng.de>.
54627
54628 2008-06-19  Bruno Haible  <bruno@clisp.org>
54629
54630         Fix CVS-ism.
54631         * doc/gnulib.texi: Include updated-stamp.texi.
54632         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54633         (updated-stamp.texi): New rule.
54634         (gnulib.info): Depend on it.
54635         * doc/.gitignore: Add updated-stamp.texi.
54636         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54637
54638 2008-06-19  Bruno Haible  <bruno@clisp.org>
54639
54640         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54641         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54642
54643 2008-06-19  Eric Blake  <ebb9@byu.net>
54644
54645         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54646         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54647         Reported by Stepan Kasal.
54648
54649 2008-06-18  Bruno Haible  <bruno@clisp.org>
54650
54651         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54652         Reported by Eric Blake.
54653
54654 2008-06-18  Eric Blake  <ebb9@byu.net>
54655
54656         Work around cygwin 1.5.25 strsignal bug.
54657         * tests/test-strsignal.c: Allow for const char *.
54658         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54659
54660 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54661
54662         * users.txt: Update URL to article and add author/date
54663         information.
54664
54665 2008-06-17  Bruno Haible  <bruno@clisp.org>
54666
54667         New macro gl_DISABLE_THREADS.
54668         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54669         if the user did not pass --enable-threads or --disable-threads option.
54670         (gl_DISABLE_THREADS): New macro.
54671         Reported by Eric Blake <ebb9@byu.net>.
54672
54673 2008-06-17  Bruno Haible  <bruno@clisp.org>
54674
54675         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54676         when the macro ignores it.
54677         Based on a patch by Eric Blake <ebb9@byu.net>.
54678
54679 2008-06-17  Bruno Haible  <bruno@clisp.org>
54680
54681         * modules/tls (License): Change to LGPLv2+.
54682         Reported by Eric Blake.
54683
54684 2008-06-17  Eric Blake  <ebb9@byu.net>
54685
54686         Simplify c-stack prerequisites.
54687         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54689         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54690         check.
54691         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54692         <sys/resource.h>.
54693
54694         Move c-stack test into testsuite.
54695         * modules/c-stack-tests: New file.
54696         * lib/c-stack.c [DEBUG]: Move test program...
54697         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54698         fail test if sigaltstack is lacking.
54699         * tests/test-c-stack.sh: New driver file.
54700
54701 2008-06-16  Eric Blake  <ebb9@byu.net>
54702
54703         Use raise module consistently.
54704         * modules/fatal-signal (Depends-on): Add raise.
54705         * modules/sigprocmask (Depends-on): Likewise.
54706         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54707         * lib/sigprocmask.c (sigprocmask): Likewise.
54708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54709         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54710
54711         Fix compliance bug in sigpending.
54712         * lib/sigprocmask.c (sigpending): Return pending array via
54713         parameter, not return value.
54714
54715 2008-06-14  Eric Blake  <ebb9@byu.net>
54716
54717         Improve obstack-printf test code.
54718         * tests/test-obstack-printf.c (test_function): Fix comment, and
54719         simplify usage of obstack_* in macros.  Add a test for coverage.
54720         Reported by Bruno Haible.
54721
54722 2008-06-14  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54725         array size as a constant, not as a const variable.
54726         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54727         AC_USE_SYSTEM_EXTENSIONS.
54728         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54729         Test whether the obstack_printf function actually exists.
54730         * modules/obstack-printf (Depends-on): Add extensions.
54731         (Include): Remove obstack.h.
54732         * modules/obstack-printf-posix (Depends-on): Add extensions.
54733         (Include): Remove obstack.h.
54734
54735 2008-06-13  Eric Blake  <ebb9@byu.net>
54736
54737         Add obstack-printf and obstack-printf-posix modules.
54738         * modules/obstack-printf: New file.
54739         * modules/obstack-printf-posix: Likewise.
54740         * MODULES.html.sh (Misc): Mention them.
54741         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54742         Likewise.
54743         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54744         Likewise.
54745         * modules/stdio (Makefile.am): Accomodate new modules.
54746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54747         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54748         Declare.
54749         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54750         functions.
54751         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54752         (gl_REPLACE_OBSTACK_PRINTF): New macros
54753         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54754         * tests/test-obstack-printf.c: New file.
54755         * modules/obstack-printf-tests: Likewise.
54756         * modules/obstack-printf-posix-tests: Likewise.
54757
54758 2008-06-11  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54761         * lib/open.c: Include errno.h.
54762         (open): Fail when attempting to write to a file that has a trailing
54763         slash.
54764         * tests/test-open.c (main): Test against trailing slash bug.
54765         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54766
54767 2008-06-10  Bruno Haible  <bruno@clisp.org>
54768
54769         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54770         for $? to work inside the trap command, with various /bin/sh-s.
54771         * tests/test-vc-list-files-cvs.sh: Likewise.
54772
54773 2008-06-10  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/acl-internal.h: Don't include gettext.h here.
54776         * lib/set-mode-acl.c: Include gettext.h here.
54777         * lib/copy-acl.c: Likewise.
54778
54779 2008-06-10  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54782         * lib/wait-process.c (wait_subprocess): Likewise.
54783         * lib/execute.h (execute): Add termsigp argument.
54784         * lib/execute.c (execute): Likewise.
54785         * lib/csharpcomp.c (compile_csharp_using_pnet,
54786         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54787         * lib/csharpexec.c (execute_csharp_using_pnet,
54788         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54789         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54790         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54791         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54792         is_jikes_present): Update.
54793         * lib/javaexec.c (execute_java_class): Update.
54794         * lib/javaversion.c (execute_and_read_line): Update.
54795         * NEWS: Document the changes.
54796         Reported by Eric Blake.
54797
54798 2008-06-10  Eric Blake  <ebb9@byu.net>
54799
54800         Add missing include.
54801         * tests/test-strstr.c (includes): Add <signal.h>.
54802         * tests/test-strcasestr.c (includes): Likewise.
54803         * tests/test-memmem.c (includes): Likewise.
54804
54805 2008-06-10  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/wait-process.c (wait_subprocess): Add an assertion.
54808
54809 2008-06-10  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54812
54813 2008-06-10  Bruno Haible  <bruno@clisp.org>
54814
54815         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54816         using alarm().
54817         * tests/test-strcasestr.c (main): Likewise.
54818         * tests/test-strstr.c (main): Likewise.
54819
54820 2008-06-09  Bruno Haible  <bruno@clisp.org>
54821
54822         Work around the Solaris 10 ACE ACLs ABI change.
54823         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54824         declare if ACL_NO_TRIVIAL is present.
54825         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54826         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54827         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54828         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54829         define if ACL_NO_TRIVIAL is present.
54830         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54831         and use the current ABI.
54832         (file_has_acl): Use same #if condition as elsewhere.
54833         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54834         in use, and use the current ABI.
54835         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54836         Reported by Jim Meyering.
54837
54838 2008-06-09  Eric Blake  <ebb9@byu.net>
54839
54840         Work around environments that (stupidly) ignore SIGALRM.
54841         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54842         before using alarm().
54843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54845         Reported by Ian Beckwith <ianb@erislabs.net>.
54846
54847         Produce autobuild blurb earlier in log.
54848         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54849
54850 2008-06-09  Jim Meyering  <meyering@redhat.com>
54851         and Ondřej Vašík  <ovasik@redhat.com>
54852
54853         utimens.c: correct kernel bug work-around
54854         Ondřej Vašík found that the invalid return value of 280 indicates
54855         failure, not success, and the kernel bug we're trying to work
54856         around affects not just the utimensat call, but also the fallback
54857         futimens call.
54858         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54859         not success.
54860         [HAVE_FUTIMENS]: Use the same work-around, here.
54861
54862 2008-06-09  Jim Meyering  <meyering@redhat.com>
54863
54864         add more guards around definition of ACE_-related code
54865         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54866         ALLOW and ACE_OWNER are also defined.
54867
54868 2008-06-08  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/acl-internal.h: Add me as co-author.
54871         * lib/file-has-acl.c: Likewise.
54872         * lib/set-mode-acl.c: Likewise.
54873         * lib/copy-acl.c: Likewise.
54874
54875 2008-06-08  Bruno Haible  <bruno@clisp.org>
54876
54877         Add support for AIX ACLs.
54878         * lib/acl-internal.h (acl_nontrivial): New declaration.
54879         * lib/file-has-acl.c (acl_nontrivial): New function.
54880         (file_has_acl): Add implementation using AIX 4 ACL API.
54881         * lib/set-mode-acl.c (qset_acl): Likewise.
54882         * lib/copy-acl.c (qcopy_acl): Likewise.
54883
54884 2008-06-08  Bruno Haible  <bruno@clisp.org>
54885
54886         Add support for HP-UX ACLs.
54887         * lib/acl-internal.h (acl_nontrivial): New declaration.
54888         * lib/file-has-acl.c (acl_nontrivial): New function.
54889         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54890         * lib/set-mode-acl.c (qset_acl): Likewise.
54891         * lib/copy-acl.c (qcopy_acl): Likewise.
54892
54893 2008-06-08  Bruno Haible  <bruno@clisp.org>
54894
54895         Add support for Cygwin ACLs.
54896         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54897         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54898         the chmod_or_fchmod call.
54899         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54900
54901 2008-06-08  Bruno Haible  <bruno@clisp.org>
54902
54903         Fix bug with setuid modes in Solaris 10+ code.
54904         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54905         succeeded, when the mode contains some special bits.
54906
54907 2008-06-08  Bruno Haible  <bruno@clisp.org>
54908
54909         Add support for Solaris 7..10 ACLs.
54910         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54911         declarations.
54912         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54913         functions.
54914         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54915         * lib/set-mode-acl.c (qset_acl): Likewise.
54916         * lib/copy-acl.c (qcopy_acl): Likewise.
54917
54918 2008-06-08  Bruno Haible  <bruno@clisp.org>
54919
54920         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54921         declaration.
54922         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54923         (acl_access_nontrivial): Remove MacOS X case.
54924         (file_has_acl): Use acl_extended_nontrivial.
54925         * lib/copy-acl.c (qcopy_acl): Likewise.
54926
54927 2008-06-08  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54930
54931 2008-06-08  Jim Meyering  <meyering@redhat.com>
54932
54933         * modules/acl (Maintainer): Add Bruno Haible.
54934
54935 2008-06-07  Bruno Haible  <bruno@clisp.org>
54936
54937         Improve support for Tru64 ACLs.
54938         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54939         ACL on OSF/1.
54940
54941 2008-06-07  Bruno Haible  <bruno@clisp.org>
54942
54943         Add support for MacOS X ACLs.
54944         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54945         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54946         * lib/set-mode-acl.c (qset_acl): Likewise.
54947         * lib/copy-acl.c (qcopy_acl): Likewise.
54948
54949 2008-06-07  Bruno Haible  <bruno@clisp.org>
54950
54951         Fix memory leak introduced on 2008-05-22.
54952         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54953         use.
54954
54955 2008-06-07  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54958         to construct an empty ACL.
54959
54960 2008-06-07  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54963         precisely.
54964         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54965
54966 2008-06-07  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54969         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54970
54971 2008-06-07  Bruno Haible  <bruno@clisp.org>
54972
54973         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54974         regardless of POSIX.
54975         * doc/posix-functions/_longjmp.texi: Likewise.
54976         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54977         SystemV platform in this case.
54978
54979 2008-06-06  Eric Blake  <ebb9@byu.net>
54980
54981         Document abort() bugs.
54982         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54983
54984         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54985         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54986         sigsetjmp.
54987         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54988         siglongjmp, but only as a macro.
54989         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54990         is obsolete.
54991         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54992
54993         Tweak documentation to cover cygwin argz bugs.
54994         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54995         argz bug fix; no code change needed since no cygwin releases
54996         occurred between the last fix and the bug being tested.
54997         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54998         module and recently fixed cygwin bugs.
54999         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55000         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55001         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55002         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55003         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55004         Likewise.
55005         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55006         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55007         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55008         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55009         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55010         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55011         Likewise.
55012
55013         Avoid gcc warning on cygwin.
55014         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55015         !ACL_NO_TRIVIAL]: Avoid unused variable.
55016
55017 2008-06-05  Eric Blake  <ebb9@byu.net>
55018
55019         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55020         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55021         git-version-gen fails to come up with a version.
55022         Reported by Simon Josefsson.
55023
55024 2008-06-05  Jim Meyering  <meyering@redhat.com>
55025             Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         utimens.c: work around a probable Linux kernel bug
55028         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55029         appears to be a kernel bug that causes utimensat to return 280
55030         instead of 0, indicating success.
55031
55032 2008-06-04  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55035         2008-06-01 commit.
55036
55037 2008-06-04  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55040         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55041         (file_has_acl): Use it. Save errno afterwards.
55042         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55043
55044 2008-06-03  Bruno Haible  <bruno@clisp.org>
55045
55046         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55047         draft code. Simplify #ifs.
55048         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55049         Put Solaris code after POSIX-draft code. Fix comments regarding
55050         Solaris 10, HP-UX. Mention Cygwin.
55051         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55052
55053 2008-06-03  Eric Blake  <ebb9@byu.net>
55054
55055         Provide fallback for older kernels.
55056         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55057         Provide runtime fallback if kernel lacks support.
55058         Reported by Mike Frysinger.
55059
55060 2008-06-02  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55063         it exists.
55064
55065 2008-06-02  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55068         * lib/copy-acl.c (qcopy_acl): Update comment.
55069
55070 2008-06-02  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55073         like ACL APIs.
55074
55075 2008-06-02  Bruno Haible  <bruno@clisp.org>
55076
55077         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55078         * tests/test-set-mode-acl.sh: Likewise.
55079         * tests/test-copy-acl.sh: Likewise.
55080         * tests/test-copy-file.sh: Likewise.
55081
55082 2008-06-02  Bruno Haible  <bruno@clisp.org>
55083
55084         * tests/test-file-has-acl.sh: Remove unused code.
55085
55086 2008-06-01  Bruno Haible  <bruno@clisp.org>
55087
55088         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55089         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55090         messages.
55091         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55092
55093 2008-06-01  Bruno Haible  <bruno@clisp.org>
55094
55095         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55096         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55097         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55098         APIs.
55099         * modules/acl-tests (configure.ac): Remove tests now contained in
55100         m4/acl.m4.
55101
55102 2008-06-02  Jim Meyering  <meyering@redhat.com>
55103
55104         announce-gen: use a better key-server host name
55105         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55106         it may be more consistently reliable.  Suggested by Werner Koch
55107         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55108
55109 2008-06-01  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55112         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55113
55114 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55115
55116         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55117
55118 2008-06-01  Bruno Haible  <bruno@clisp.org>
55119
55120         New ACL tests.
55121         * tests/test-file-has-acl.sh: New file.
55122         * tests/test-file-has-acl.c: New file.
55123         * tests/test-set-mode-acl.sh: New file.
55124         * tests/test-set-mode-acl.c: New file.
55125         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55126         * tests/test-copy-acl.c: New file.
55127         * modules/acl-tests: New file, based on modules/copy-file-tests.
55128         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55129         (Depends-on): Add acl-tests.
55130         (configure.ac): Remove checks.
55131         (Makefile.am): Don't create test-sameacls program here any more.
55132
55133 2008-06-01  Bruno Haible  <bruno@clisp.org>
55134
55135         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55136         * tests/test-sameacls.c: Include progname.h.
55137         (main): Invoke set_program_name. Portability fixes for MacOS X,
55138         Solaris, HP-UX.
55139
55140 2008-06-01  Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55143         function.
55144         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55145
55146 2008-06-01  Bruno Haible  <bruno@clisp.org>
55147
55148         * modules/rpmatch (Depends-on): Add strdup.
55149
55150 2008-06-01  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/pipe.c: Include unistd-safer.h.
55153         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55154         * modules/pipe (Depends-on): Add unistd-safer.
55155
55156 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55157
55158         * modules/autobuild (configure.ac): Call AB_INIT.
55159
55160 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55161
55162         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55163         Suggested by Bruno Haible <bruno@clisp.org>.
55164
55165 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55166
55167         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55168         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55169         <bruno@clisp.org>.
55170
55171 2008-05-29  Eric Blake  <ebb9@byu.net>
55172
55173         Prefer new POSIX 200x interfaces over futimesat.
55174         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55175         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55176         when available.
55177         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55178
55179 2008-05-28  Bruno Haible  <bruno@clisp.org>
55180
55181         * modules/stpcpy (License): Change to LGPLv2+.
55182         Requested by David Lutterkort <dlutter@redhat.com>.
55183
55184 2008-05-27  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55187         current mingw.
55188         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55189
55190 2008-05-27  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/iconv_open (Link): New section, from module 'iconv'.
55193         * modules/striconv (Link): Likewise.
55194         * modules/striconveh (Link): Likewise.
55195         * modules/xstriconv (Link): Likewise.
55196         * modules/unicodeio (Link): Likewise.
55197         * modules/propername (Link): Likewise.
55198         Reported by Jim Meyering.
55199
55200 2008-05-26  Jim Meyering  <meyering@redhat.com>
55201
55202         sha256: do not artificially restrict buffer length to be < 2^32
55203         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55204         uint32_t to size_t.
55205         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55206         to match.
55207
55208         avoid unaligned access errors, e.g., on sparc
55209         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55210         direct access through a possibly-unaligned uint64* pointer.
55211         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55212         direct access through a possibly-unaligned uint32* pointer.
55213         Prompted by this patch from Tom "spot" Callaway:
55214         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55215
55216         sha512.c: fix typo in comment
55217         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55218
55219 2008-05-25  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55222         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55223         (Makefile.am): Update lib_SOURCES.
55224
55225 2008-05-25  Bruno Haible  <bruno@clisp.org>
55226
55227         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55228
55229 2008-05-25  Jim Meyering  <meyering@redhat.com>
55230
55231         useless-if-before-free: freed expr may have white-space differences
55232         * build-aux/useless-if-before-free: Recognize cases in which the
55233         freed expression differs from the tested one in embedded white
55234         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55235         $1 was used, so we can't make any regexp shy.  Improved tests now
55236         detect this.
55237
55238         useless-if-before-free: accept white space in the expression.
55239         * build-aux/useless-if-before-free: For now, any white space
55240         in the expression must be identical in the free argument.
55241
55242         useless-if-before-free: efficiency tweak
55243         * build-aux/useless-if-before-free: Make the expression-matching
55244         regexp "shy".
55245         Make the *outer* regexp shy, not the expr-matching one.
55246
55247         update code-in-comment to accept cast of free arg
55248         * build-aux/useless-if-before-free: Update regexp.
55249
55250 2008-05-25  Bruno Haible  <bruno@clisp.org>
55251
55252         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55253         * modules/copy-file-tests (Files, Makefile.am): Update.
55254         * tests/test-copy-file.c (func_test_copy): Update.
55255
55256 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55257
55258         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55259
55260 2008-05-23  Bruno Haible  <bruno@clisp.org>
55261
55262         Improve support for ACLs on OSF/1.
55263         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55264         Remove fallback for unknown flavors of ACLs.
55265
55266 2008-05-22  Bruno Haible  <bruno@clisp.org>
55267
55268         Add support for ACLs on OSF/1.
55269         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55270         replacements.
55271         (acl_free_text): New macro fallback.
55272         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55273         acl_free.
55274         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55275         acl_free_text function. Require AC_C_INLINE.
55276
55277 2008-05-22  Bruno Haible  <bruno@clisp.org>
55278
55279         Make copy_acl work on MacOS X 10.5.
55280         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55281         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55282         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55283         If MODE_INSIDE_ACL, don't assume that every system has the same text
55284         representation for ACLs as FreeBSD.
55285         * lib/copy-acl.c (copy_acl): Add support for platforms with
55286         !MODE_INSIDE_ACL.
55287         * lib/file-has-acl.c (file_has_acl): Likewise.
55288         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55289         FreeBSD, MacOS X, or IRIX, respectively.
55290
55291 2008-05-22  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/acl.h: Don't include <sys/acl.h>.
55294         (GETACLCNT): Move fallback to lib/acl-internal.h.
55295         * lib/acl-internal.h: Include <sys/acl.h> here.
55296         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55297
55298 2008-05-22  Bruno Haible  <bruno@clisp.org>
55299
55300         Split off copy_acl function to separate file.
55301         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55302         * lib/acl.c (copy_acl): Moved function to separate file.
55303         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55304         * modules/acl (Files): Add lib/copy-acl.c.
55305         (Makefiles.am): Augment lib_SOURCES.
55306
55307 2008-05-22  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/copy-file-tests: New file.
55310         * tests/test-copy-file.sh: New file.
55311         * tests/test-copy-file.c: New file.
55312         * tests/test-copy-file-sameacls.c: New file.
55313
55314 2008-05-22  Eric Blake  <ebb9@byu.net>
55315
55316         Avoid gcc warning.
55317         * tests/test-memcmp.c (main): Pass NULL indirectly.
55318
55319 2008-05-21  Bruno Haible  <bruno@clisp.org>
55320
55321         Add reference doc about ACLs.
55322         * doc/acl-resources.txt: New file.
55323         * doc/acl-cygwin.txt: New file.
55324
55325 2008-05-21  Bruno Haible  <bruno@clisp.org>
55326
55327         Avoid one more warning from gcc.
55328         * lib/vasnprintf.c (IF_LINT): Update comments.
55329         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55330
55331 2008-05-21  Jim Meyering  <meyering@redhat.com>
55332
55333         avoid a warning from gcc
55334         * lib/vasnprintf.c (IF_LINT): Define.
55335         (scale10_round_decimal_long_double):
55336         Use it to avoid a "may be used uninitialized" warning.
55337         (scale10_round_decimal_double): Likewise.
55338
55339 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55340
55341         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55342         declared.
55343
55344 2008-05-20  Bruno Haible  <bruno@clisp.org>
55345
55346         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55347         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55348
55349 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55350
55351         * modules/memcmp-tests: New file.
55352         * tests/test-memcmp.c: New file.
55353
55354 2008-05-19  Bruno Haible  <bruno@clisp.org>
55355
55356         * modules/propername (Notice, configure.ac): Put quoted "..." into
55357         --keyword option.
55358         * lib/propername.h: Update comments accordingly.
55359         Reported by Eric Blake.
55360
55361 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55362
55363         * modules/getpass-gnu (Depends-on): Add fseeko.
55364
55365 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55366
55367         * modules/base64-tests: New file.
55368
55369 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55370
55371         * lib/base64.c (base64_decode_ctx): If a decode context structure
55372         was passed in use it to ignore newlines.  If a context structure
55373         was _not_ passed in, continue to treat newlines as garbage (this
55374         is the historical behavior).  Formerly base64_decode.
55375         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55376         takes a decode context structure.
55377         * lib/base64.h (base64_decode): Macro for four-argument calls.
55378         (base64_decode_alloc): Likewise.
55379         * lib/base64.c (base64_decode_ctx): If a decode context structure
55380         was passed in use it to ignore newlines.  If a context structure
55381         was _not_ passed in, continue to treat newlines as garbage (this
55382         is the historical behavior).  Formerly base64_decode.
55383         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55384         takes a decode context structure.
55385         * lib/base64.h (base64_decode): Macro for four-argument calls.
55386         (base64_decode_alloc): Likewise.
55387
55388 2008-05-19  Jim Meyering  <meyering@redhat.com>
55389
55390         avoid a warning from gcc
55391         * lib/trim.c (IF_LINT): Define.
55392         (trim2): Use it to avoid a "may be used uninitialized" warning.
55393
55394         Fix doc typo.
55395         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55396
55397 2008-05-19  Bruno Haible  <bruno@clisp.org>
55398
55399         * doc/glibc-functions/getpass.texi: Document limits of other
55400         implementations.
55401
55402 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55403             Bruno Haible <bruno@clisp.org>
55404
55405         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55406
55407 2008-05-18  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/propername: New file, from GNU gettext.
55410         * lib/propername.h: New file, from GNU gettext.
55411         * lib/propername.c: New file, from GNU gettext.
55412         * MODULES.html.sh (Internationalization functions): Add propername.
55413
55414 2008-05-16  Jim Meyering  <meyering@redhat.com>
55415             Bruno Haible  <bruno@clisp.org>
55416
55417         Avoid some warnings from "gcc -Wshadow".
55418         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55419
55420 2008-05-15  Eric Blake  <ebb9@byu.net>
55421
55422         Extend previous patch to cygwin 1.7.0.
55423         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55424         fast implementation in cygwin >= 1.7.0.
55425         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55427
55428 2008-05-15  Bruno Haible  <bruno@clisp.org>
55429
55430         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55431         implementation in glibc >= 2.9.
55432         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55434
55435 2008-05-15  Bruno Haible  <bruno@clisp.org>
55436
55437         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55438         (Unicode string functions): Add unilbrk/*.
55439         Reported by Karl Berry.
55440
55441 2008-05-15  Eric Blake  <ebb9@byu.net>
55442
55443         Fix violation of <stdbool.h> replacement in regex.
55444         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55445         * lib/regexec.c (re_search_internal): Likewise.
55446         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55447
55448 2008-05-15  Jim Meyering  <meyering@redhat.com>
55449
55450         avoid distracting test output when git or cvs is not found
55451         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55452         * tests/test-vc-list-files-git.sh: Likewise.
55453
55454 2008-05-15  Eric Blake  <ebb9@byu.net>
55455
55456         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55457         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55458         glibc version.
55459         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55460         * doc/posix-functions/strstr.texi (strstr): Likewise.
55461         * lib/str-two-way.h (MAX): Sychronize with glibc.
55462
55463 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55464
55465         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55466         opr.ctx_type.
55467         (calc_first): Initialize constraint field.
55468         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55469         Fix grammar.
55470         (duplicate_node): Merge constraint field for all node types.
55471         (calc_eclosure_iter): Look at constraint field for all node types.
55472         * lib/regex_internal.c (create_cd_newstate): Don't look at
55473         opr.ctx_type.
55474
55475 2008-05-14  Bruno Haible  <bruno@clisp.org>
55476
55477         Help GCC to do better code generation.
55478         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55479         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55480         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55481         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55482         Declare with attribute 'malloc' if supported.
55483
55484 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55485
55486         use "echo STR|wc -c" rather than unportable "expr length STR"
55487         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55488         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55489
55490 2008-05-14  Jim Meyering  <meyering@redhat.com>
55491
55492         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55493         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55494         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55495         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55496         via Collin Lasse.
55497
55498 2008-05-14  Eric Blake  <ebb9@byu.net>
55499
55500         Avoid quadratic growth in gl_LIBSOURCES.
55501         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55502         Suggested by Bruno Haible.
55503
55504         Test xmemdup0.
55505         * modules/xmemdup0-tests: New file.
55506         * tests/test-xmemdup0.c: Likewise.
55507
55508 2008-05-13  Eric Blake  <ebb9@byu.net>
55509
55510         Split xmemdup0 into its own module.
55511         * modules/xmemdup0: New file.
55512         * lib/xmemdup0.h: Likewise.
55513         * lib/xmemdup0.c: Likewise.
55514         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55515         * lib/xalloc.h (xmemdup0): Remove.
55516         * lib/xmalloc.c (xmemdup0): Likewise.
55517
55518 2008-05-13  Eric Blake  <ebb9@byu.net>
55519             Bruno Haible  <bruno@clisp.org>
55520
55521         Reduce number of forks required during autoconf.
55522         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55523         and gl_LIBSOURCES_DIR.
55524         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55525         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55526         m4_syscmd per file.
55527         <m4_foreach_w>: Move...
55528         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55529
55530 2008-05-13  Eric Blake  <ebb9@byu.net>
55531
55532         * gnulib-tool: Fix various comment typos.
55533
55534 2008-05-12  Bruno Haible  <bruno@clisp.org>
55535
55536         Tailor the linebreaking algorithm.
55537         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55538
55539 2008-05-12  Bruno Haible  <bruno@clisp.org>
55540
55541         Update to Unicode 5.0.0.
55542         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55543         LBP_JV, LBP_JT. Redistribute values.
55544         (unilbrk_table): Change size.
55545         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55546         Unicode TR#14 rev. 22.
55547         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55548         LBP_JV, LBP_JT. Redistribute values.
55549         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55550         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55551         Update.
55552         * lib/unilbrk/lbrkprop1.h: Regenerated.
55553         * lib/unilbrk/lbrkprop2.h: Regenerated.
55554         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55555         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55556         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55557         Likewise.
55558         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55559         Likewise.
55560         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55561         result.
55562         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55563         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55564         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55565         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55566         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55567         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55568
55569 2008-05-11  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55572
55573 2008-05-11  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55576         * modules/unilbrk/gen-lbrk: New file.
55577
55578 2008-05-11  Bruno Haible  <bruno@clisp.org>
55579
55580         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55581         * m4/sha512.m4 (gl_SHA512): Likewise.
55582
55583 2008-05-11  Jim Meyering  <meyering@redhat.com>
55584
55585         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55586         * modules/crypto/sha256: New file.
55587         * modules/crypto/sha512: Likewise.
55588         * lib/sha256.c: Likewise.
55589         * lib/sha256.h: Likewise.
55590         * lib/sha512.c: Likewise.
55591         * lib/sha512.h: Likewise.
55592         * lib/u64.h: Likewise.
55593         * m4/sha256.m4: Likewise.
55594         * m4/sha512.m4: Likewise.
55595         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55596
55597 2008-05-10  Bruno Haible  <bruno@clisp.org>
55598
55599         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55600         (Input/Output <stdio.h>): Add xprintf.
55601         (Signal handling <signal.h>): Add strsignal.
55602         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55603         (Core language properties): Add func.
55604         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55605         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55606         strings.
55607         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55608         (Input/output): New section.
55609         (File system functions): Add openat-die, stat-macros.
55610         (Networking functions): Add sockets.
55611         (Unicode string functions): Add unictype/*.
55612         (Support for building libraries and executables): Add gperf.
55613         (Support for building documentation): Add agpl-3.0.
55614         (Misc): Add nocrash.
55615
55616 2008-05-10  Bruno Haible  <bruno@clisp.org>
55617
55618         * modules/unictype/gen-ctype: New file.
55619
55620 2008-05-10  Jim Meyering  <meyering@redhat.com>
55621
55622         Make chdir-safer.c more efficient on a system with no symlinks.
55623         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55624         also if ELOOP is zero.  Suggested by Bruno Haible.
55625
55626         Make chdir-safer.c slightly safer.
55627         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55628         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55629
55630         Avoid compile failure on systems without ELOOP (like mingw).
55631         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55632         Reported by Bruno Haible.
55633
55634 2008-05-10  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55637         (is_utf8_encoding): Use a case-insensitive comparison.
55638         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55639         streq.
55640
55641 2008-05-10  Bruno Haible  <bruno@clisp.org>
55642
55643         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55644         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55645         * lib/unilbrk/ulc-common.h (iconv_string_length,
55646         iconv_string_keeping_offsets): Remove declarations.
55647         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55648         Don't include <iconv.h>, streq.h, xsize.h.
55649         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55650         conversion.
55651         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55652         <iconv.h>, streq.h, xsize.h.
55653         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55654         conversion.
55655         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55656         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55657         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55658         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55659
55660 2008-05-10  Bruno Haible  <bruno@clisp.org>
55661
55662         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55663         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55664
55665         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55666         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55667
55668         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55669         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55670
55671         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55672         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55673
55674         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55675         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55676
55677         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55678         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55679
55680         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55681         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55682
55683         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55684         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55685
55686 2008-05-10  Bruno Haible  <bruno@clisp.org>
55687
55688         Split up 'linebreak' module.
55689         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55690         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55691         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55692         modifications.
55693         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55694         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55695         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55696         lib/linebreak.c.
55697         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55698         lib/linebreak.c.
55699         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55700         lib/linebreak.c.
55701         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55702         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55703         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55704         lib/linebreak.c.
55705         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55706         lib/linebreak.c.
55707         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55708         lib/linebreak.c.
55709         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55710         lib/linebreak.c.
55711         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55712         lib/linebreak.c.
55713         * modules/unilbrk/base: New file.
55714         * modules/unilbrk/tables: New file.
55715         * modules/unilbrk/u8-possible-linebreaks: New file.
55716         * modules/unilbrk/u16-possible-linebreaks: New file.
55717         * modules/unilbrk/u32-possible-linebreaks: New file.
55718         * modules/unilbrk/ulc-common: New file.
55719         * modules/unilbrk/ulc-possible-linebreaks: New file.
55720         * modules/unilbrk/u8-width-linebreaks: New file.
55721         * modules/unilbrk/u16-width-linebreaks: New file.
55722         * modules/unilbrk/u32-width-linebreaks: New file.
55723         * modules/unilbrk/ulc-width-linebreaks: New file.
55724         * lib/linebreak.h: Remove file.
55725         * lib/linebreak.c: Remove file.
55726         * m4/linebreak.m4: Remove file.
55727         * modules/linebreak: Remove file.
55728         * NEWS: Mention the changes.
55729
55730 2008-05-09  Eric Blake  <ebb9@byu.net>
55731
55732         Add xmemdup0.
55733         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55734         implementation.
55735         * lib/xmalloc.c (xmemdup0): New C implementation.
55736
55737 2008-05-08  Bruno Haible  <bruno@clisp.org>
55738
55739         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55740
55741 2008-05-07  Eric Blake  <ebb9@byu.net>
55742
55743         Support cross-compilation of <wctype.h>.
55744         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55745         AC_CACHE_CHECK.
55746
55747 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55748
55749         * build-aux/vc-list-files: Add support for bzr.
55750
55751 2008-05-03  Jim Meyering  <meyering@redhat.com>
55752
55753         avoid failed assertion with tight malloc
55754         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55755
55756 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55757
55758         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55759         are needed from arpa/inet.h.
55760         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55761         Reported by Bruno Haible.
55762
55763 2008-05-02  Jim Meyering  <meyering@redhat.com>
55764
55765         avoid compilation error on FreeBSD 6
55766         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55767
55768 2008-05-01  Jim Meyering  <meyering@redhat.com>
55769
55770         useless-if-before-free: correct --help's exit status description
55771         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55772         for one or more matches, etc.  Reported by Bruno Haible.
55773
55774         vc-list-files: make the stand-alone gnulib test work
55775         * modules/vc-list-files-tests (configure.ac):
55776         Define and AC_SUBST abs_aux_dir.
55777         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55778         $(abs_top_srcdir) to each script and having each of them
55779         duplicate the work of setting PATH, set PATH here, using
55780         the new variable, abs_aux_dir instead.
55781         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55782         * tests/test-vc-list-files-git.sh: Likewise.
55783         Reported by Bruno Haible.
55784
55785 2008-05-01  Bruno Haible  <bruno@clisp.org>
55786
55787         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55788         reallocation. Rename 'done' to 'found_delimiter'.
55789
55790 2008-05-01  Jim Meyering  <meyering@redhat.com>
55791
55792         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55793         * build-aux/vc-list-files: Use `...`, not $(...).
55794
55795 2008-04-30  Jim Meyering  <meyering@redhat.com>
55796
55797         add tests for vc-list-files
55798         * modules/vc-list-files-tests: New module.
55799         * tests/test-vc-list-files-cvs.sh: New file.
55800         * tests/test-vc-list-files-git.sh: New file.
55801
55802         avoid a warning from gcc
55803         * lib/getndelim2.c (IF_LINT): Define.
55804         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55805
55806         vc-list-files: work properly with build-aux/cvsu, too
55807         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55808         to all cvs-based clauses.
55809
55810         vc-list-files: work properly in the CVS+awk case, too
55811         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55812
55813         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55814         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55815         take more than one file argument, so .  Add quotes, just in case $dir
55816         ever contains a shell meta-character.  Prompted by Soren Hansen in
55817         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55818
55819 2008-04-29  Eric Blake  <ebb9@byu.net>
55820
55821         Optimize getndelim2 to use block operations when possible.
55822         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55823         freadseek, and memchr2.
55824         * lib/getndelim2.c (getndelim2): Use them for block reads.
55825
55826 2008-04-29  Bruno Haible  <bruno@clisp.org>
55827
55828         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55830         * modules/inet_ntop (Depends-on): Add extensions.
55831         * modules/inet_pton (Depends-on): Likewise.
55832         Reported by Simon Josefsson.
55833
55834 2008-04-29  Jim Meyering  <meyering@redhat.com>
55835
55836         When the is more than one match in a block, match all of them.
55837         * build-aux/useless-if-before-free: Iterate through each block
55838         until there are no more matches.
55839
55840         Fix broken useless-if-before-free script.
55841         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55842         the expression to match cast of argument to free-like function.
55843
55844 2008-04-29  Eric Blake  <ebb9@byu.net>
55845
55846         Use new header.
55847         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55848
55849 2008-04-29  Jim Meyering  <meyering@redhat.com>
55850
55851         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55852         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55853         by gnulib to exist and to declare e.g., inet_ntop.
55854         Don't include "inet_ntop.h", now removed.
55855
55856         * m4/arpa_inet_h.m4: Remove trailing blanks.
55857
55858 2008-04-29  Eric Blake  <ebb9@byu.net>
55859
55860         Silence valgrind on safe reads beyond potential array bounds.
55861         * lib/rawmemchr.valgrind: New file.
55862         * lib/strchrnul.valgrind: Likewise.
55863         * modules/rawmemchr (Files): Distribute new file.
55864         * modules/strchrnul (Files): Likewise.
55865         Suggested by Bruno Haible.
55866
55867 2008-04-29  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55870         (inet_ntop, inet_pton): Change portability warning's wording.
55871         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55872         Invoke gl_CHECK_NEXT_HEADERS.
55873         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55874         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55875         set ARPA_INET_H.
55876         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55877         * modules/arpa_inet (Description): No longer only for systems that
55878         lack it.
55879         (Depends-on): Add include_next.
55880         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55881         HAVE_ARPA_INET_H.
55882
55883 2008-04-29  Jim Meyering  <meyering@redhat.com>
55884
55885         * modules/mkdir (License): Re-license as LGPLv2+.
55886
55887 2008-04-29  Bruno Haible  <bruno@clisp.org>
55888
55889         * modules/rawmemchr (Maintainer): Set to Eric.
55890         * modules/strchrnul (Maintainer): Likewise.
55891
55892 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55893
55894         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55895         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55896
55897         * modules/arpa_inet (arpa/inet.h): Use them.
55898
55899 2008-04-28  Eric Blake  <ebb9@byu.net>
55900
55901         Test getndelim2.
55902         * modules/getndelim2-tests: New file.
55903         * tests/test-getndelim2.c: Likewise.
55904         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55905         stream.
55906         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55907
55908         * MODULES.html.sh: Document new module.
55909
55910 2008-04-20  Bruno Haible  <bruno@clisp.org>
55911
55912         * lib/c-stack.c (die): Use raise.
55913         * modules/c-stack (Depends-on): Add raise.
55914
55915 2008-04-28  Bruno Haible  <bruno@clisp.org>
55916
55917         Expect rpmatch to be declared.
55918         * lib/yesno.c (rpmatch): Remove declaration.
55919
55920         Declare rpmatch.
55921         * lib/stdlib.in.h (rpmatch): New declaration.
55922         * lib/rpmatch.c: Include <stdlib.h> first.
55923         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55924         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55926         HAVE_RPMATCH.
55927         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55928         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55929         (Include): Set to <stdlib.h>.
55930         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55931         HAVE_RPMATCH.
55932         * NEWS: Document the change.
55933
55934 2008-04-28  Bruno Haible  <bruno@clisp.org>
55935
55936         Change rpmatch to use nl_langinfo when appropriate.
55937         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55938         (N_): New macro.
55939         (localized_pattern): New function/macro.
55940         (try): Remove match, nomatch arguments. Copy the pattern into safe
55941         memory before caching it.
55942         (rpmatch): Use localized_pattern. Add translator comments.
55943         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55944         Suggested by Eric Blake.
55945         * modules/rpmatch (Depends-on): Add stdbool.
55946
55947 2008-04-28  Eric Blake  <ebb9@byu.net>
55948
55949         Add rawmemchr module, matching glibc.
55950         * modules/string (Makefile.am): New indicator.
55951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55952         * lib/string.in.h (rawmemchr): Declare when appropriate.
55953         * modules/rawmemchr: New file.
55954         * m4/rawmemchr.m4: Likewise.
55955         * lib/rawmemchr.c: Likewise.
55956         * modules/rawmemchr-tests: Likewise.
55957         * tests/test-rawmemchr.c: Likewise.
55958         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55959         module.
55960         * modules/strchrnul (Depends-on): Add rawmemchr.
55961         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55962
55963         Whitespace cleanup.
55964         * tests/test-strchrnul.c: Reindent.
55965         * lib/strchrnul.c: Likewise.
55966
55967         Optimize and test strchrnul.
55968         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55969         * modules/strchrnul-tests: New file.
55970         * tests/test-strchrnul.c: Likewise.
55971
55972         Remove intprops dependency.
55973         * modules/memchr (Depends-on): Remove intprops.
55974         * modules/memrchr (Depends-on): Likewise.
55975         * modules/memchr2 (Depends-on): Likewise.
55976         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55977         * lib/memrchr.c (__memrchr): Likewise.
55978         * lib/memrchr2.c (memchr2): Likewise.
55979         Reported by Simon Josefsson.
55980
55981 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55982
55983         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55984         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55985
55986 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55987
55988         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55989
55990         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55991
55992         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55993
55994         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55995         declarations.
55996         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55997
55998         * m4/inet_pton.m4: Don't check for header files.
55999
56000         * m4/inet_ntop.m4: Don't check for header files.
56001
56002 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56003
56004         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56005         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56006         trigger for cygwin).
56007         Reported by Bruno Haible  <bruno@clisp.org>.
56008
56009 2008-04-28  Bruno Haible  <bruno@clisp.org>
56010
56011         * doc/posix-functions/strdup.texi: Mention mingw problem.
56012
56013 2008-04-27  Bruno Haible  <bruno@clisp.org>
56014
56015         * modules/stat-time-tests (Depends-on): Add sleep.
56016         * tests/test-stat-time.c (force_unlink): New function.
56017         (cleanup): Use it.
56018         (test_mtime): Remove the ctime related tests.
56019         (test_ctime): New function, containing the ctime related tests.
56020         (main): Call test_ctime, except on native Windows platforms.
56021
56022 2008-04-27  Bruno Haible  <bruno@clisp.org>
56023
56024         * lib/rpmatch.c (rpmatch): Add some comments.
56025         Reported by James Youngman <jay@gnu.org>.
56026
56027 2008-04-27  Bruno Haible  <bruno@clisp.org>
56028
56029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56030         quiet NaNs.
56031
56032 2008-04-27  Bruno Haible  <bruno@clisp.org>
56033
56034         Make test-yesno.sh work on mingw.
56035         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56036         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56037         (main): Set stdin to binary mode.
56038         * modules/yesno-tests (Depends-on): Add binary-io.
56039
56040 2008-04-27  Bruno Haible  <bruno@clisp.org>
56041
56042         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56043         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56044         argument that lie outside the IEEE 854 domain.
56045         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56046         (gl_ISFINITE): Use it.
56047         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56048
56049 2008-04-27  Bruno Haible  <bruno@clisp.org>
56050
56051         Allow local renaming in config.h.
56052         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56053
56054 2008-04-27  Bruno Haible  <bruno@clisp.org>
56055
56056         * lib/memchr.c (__memchr): Change type of 'i'.
56057         * lib/memchr2.c (memchr2): Likewise.
56058
56059 2008-04-26  Eric Blake  <ebb9@byu.net>
56060         and Bruno Haible  <bruno@clisp.org>
56061
56062         Optimize and test memrchr.
56063         * modules/memrchr (Depends-on): Add intprops.
56064         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56065         * modules/memrchr-tests: New file.
56066         * tests/test-memrchr.c: New file.
56067
56068 2008-04-26  Bruno Haible  <bruno@clisp.org>
56069
56070         Add tentative support for DragonFly BSD.
56071         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56072         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56073         fp.
56074         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56075         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56076         * lib/fpurge.c (fpurge): Likewise.
56077         * lib/freadable.c (freaadable): Likewise.
56078         * lib/freadahead.c (freadahead): Likewise.
56079         * lib/freading.c (freading): Likewise.
56080         * lib/freadptr.c (freadptr): Likewise.
56081         * lib/freadseek.c (freadptrinc): Likewise.
56082         * lib/fseeko.c (fseeko): Likewise.
56083         * lib/fseterr.c (fseterr): Likewise.
56084         * lib/fwritable.c (fwritable): Likewise.
56085         * lib/fwriting.c (fwriting): Likewise.
56086
56087 2008-04-26  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/stdio-impl.h: New file.
56090         * lib/fbufmode.c: Include stdio-impl.h.
56091         (fbufmode): Use fp_, remove redundant #defines.
56092         * lib/fflush.c: Include stdio-impl.h.
56093         (clear_ungetc_buffer): Remove redundant #defines.
56094         * lib/fpurge.c: Include stdio-impl.h.
56095         (fpurge): Remove redundant #defines.
56096         * lib/freadable.c: Include stdio-impl.h.
56097         (freadable): Remove redundant #defines.
56098         * lib/freadahead.c: Include stdio-impl.h.
56099         (freadahead): Remove redundant #defines.
56100         * lib/freading.c: Include stdio-impl.h.
56101         (freading): Remove redundant #defines.
56102         * lib/freadptr.c: Include stdio-impl.h.
56103         (freadptr): Remove redundant #defines.
56104         * lib/freadseek.c: Include stdio-impl.h.
56105         (freadptrinc): Remove redundant #defines.
56106         * lib/fseeko.c: Include stdio-impl.h.
56107         (rpl_fseeko): Remove redundant #defines.
56108         * lib/fseterr.c: Include stdio-impl.h.
56109         (fseterr): Remove redundant #defines.
56110         * lib/fwritable.c: Include stdio-impl.h.
56111         (fwritable: Remove redundant #defines.
56112         * lib/fwriting.c: Include stdio-impl.h.
56113         (fwriting): Remove redundant #defines.
56114         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56115         * modules/fflush (Files): Likewise.
56116         * modules/fpurge (Files): Likewise.
56117         * modules/freadable (Files): Likewise.
56118         * modules/freadahead (Files): Likewise.
56119         * modules/freading (Files): Likewise.
56120         * modules/freadptr (Files): Likewise.
56121         * modules/freadseek (Files): Likewise.
56122         * modules/fseeko (Files): Likewise.
56123         * modules/fseterr (Files): Likewise.
56124         * modules/fwritable (Files): Likewise.
56125         * modules/fwriting (Files): Likewise.
56126
56127 2008-04-26  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56130         restore_seek_optimization, update_fpos_cache): New functions, extracted
56131         from rpl_fflush.
56132         (rpl_fflush): Use them.
56133         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56134         (gl_REPLACE_FFLUSH): Use it.
56135
56136 2008-04-26  Bruno Haible  <bruno@clisp.org>
56137
56138         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56139         on Solaris.
56140         * tests/test-xstrtoimax.sh: Likewise.
56141         * tests/test-xstrtoumax.sh: Likewise.
56142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56143
56144 2008-04-26  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/memchr-tests: New file.
56147         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56148
56149 2008-04-26  Eric Blake  <ebb9@byu.net>
56150             Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/memchr.c: Include intprops.h.
56153         (__memchr): Optimize parallel detection of matching bytes. Rename local
56154         variables. Add explanatory comments.
56155
56156 2008-04-26  Bruno Haible  <bruno@clisp.org>
56157
56158         Fix module 'memchr', broken since 2000-10-28.
56159         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56160
56161 2008-04-26  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56164         comments.
56165
56166 2008-04-25  Eric Blake  <ebb9@byu.net>
56167
56168         Use native fstatat on cygwin 1.7.0.
56169         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56170         first.
56171
56172 2008-04-23  Eric Blake  <ebb9@byu.net>
56173
56174         Improve memchr2 performance.
56175         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56176         NUL bytes.
56177         * modules/memchr2 (Depends-on): Use intprops.h.
56178
56179 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56180
56181         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56182         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56183         <blp@cs.stanford.edu>.
56184
56185 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56186
56187         * lib/arpa_inet.in.h: New file.
56188
56189         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56190         (Makefile.am): Sed in substitute header file.
56191
56192         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56193         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56194
56195         * modules/inet_ntop (configure.ac): Use
56196         gl_ARPA_INET_MODULE_INDICATOR.
56197
56198         * modules/inet_pton (configure.ac): Use
56199         gl_ARPA_INET_MODULE_INDICATOR.
56200
56201 2008-04-22  Jim Meyering  <meyering@redhat.com>
56202
56203         * modules/verify (License): Re-license as LGPLv2+.
56204
56205 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56206
56207         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56208         parameter to void* as per POSIX standard (MinGW uses char*).
56209
56210 2008-04-21  Bruno Haible  <bruno@clisp.org>
56211
56212         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56213         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56214         Define to replacements if REPLACE_ISWCNTRL is 1.
56215         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56216         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56217         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56218         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56219         what it fixes.
56220         * doc/posix-functions/iswalpha.texi: Likewise.
56221         * doc/posix-functions/iswblank.texi: Likewise.
56222         * doc/posix-functions/iswcntrl.texi: Likewise.
56223         * doc/posix-functions/iswdigit.texi: Likewise.
56224         * doc/posix-functions/iswgraph.texi: Likewise.
56225         * doc/posix-functions/iswlower.texi: Likewise.
56226         * doc/posix-functions/iswprint.texi: Likewise.
56227         * doc/posix-functions/iswpunct.texi: Likewise.
56228         * doc/posix-functions/iswspace.texi: Likewise.
56229         * doc/posix-functions/iswupper.texi: Likewise.
56230         * doc/posix-functions/iswxdigit.texi: Likewise.
56231         Reported by Alain Guibert.
56232
56233 2008-04-21  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56236         Patch by Alain Guibert.
56237
56238 2008-04-21  Bruno Haible  <bruno@clisp.org>
56239
56240         Fix test failures on mingw.
56241         * tests/test-xstrtol.c (print_no_progname): New function.
56242         (main): Install it in error_print_progname hook.
56243         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56244         * tests/test-xstrtoimax.sh: Likewise.
56245         * tests/test-xstrtoumax.sh: Likewise.
56246
56247 2008-04-21  Bruno Haible  <bruno@clisp.org>
56248
56249         Fix test failure on mingw.
56250         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56251
56252 2008-04-21  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56255         Actually assign a value.
56256
56257 2008-04-20  Bruno Haible  <bruno@clisp.org>
56258
56259         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56260         take 2.
56261         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56262         'canonicalize-lgpl' module is also used.
56263         * lib/canonicalize-lgpl.c: Undo last change.
56264         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56265
56266 2008-04-20  Bruno Haible  <bruno@clisp.org>
56267
56268         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56269         config.h. Provide _mkdir based fallback for mingw.
56270         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56271         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56272         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56273         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56274         rather than defining mkdir in config.h.
56275         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56276         (gl_SYS_STAT_H_DEFAULTS): New macro.
56277         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56278         HAVE_IO_H any more.
56279         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56280         HAVE_DECL_MKDIR and HAVE_IO_H.
56281
56282 2008-04-20  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/isapipe.c: Port to native Windows platforms.
56285
56286 2008-04-20  Bruno Haible  <bruno@clisp.org>
56287
56288         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56289
56290 2008-04-21  Eric Blake  <ebb9@byu.net>
56291
56292         Work around preprocessors that don't handle UINTMAX_MAX.
56293         * lib/memchr2.c (memchr2): Avoid embedded #if.
56294         Reported by Alain Guibert, fix suggested by Bruno Haible.
56295
56296 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56297
56298         * doc/posix-functions/strftime.texi (strftime): Explain better
56299         Windows incompatibility.  Suggested by Micah Cowan
56300         <micah@cowan.name>.
56301
56302 2008-04-20  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56305         unistr/u8-mblen.
56306
56307 2008-04-20  Bruno Haible  <bruno@clisp.org>
56308
56309         Fix test failure on platforms with non-GNU iconv.
56310         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56311         (U_TO_U8): Use it, rather than u16_to_u8.
56312         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56313         units at the end of the input string.
56314         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56315
56316 2008-04-20  Bruno Haible  <bruno@clisp.org>
56317
56318         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56319         when the resulting length is 0.
56320         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56321
56322 2008-04-20  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56325         works.
56326         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56327
56328 2008-04-20  Bruno Haible  <bruno@clisp.org>
56329
56330         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56331         * modules/tsearch-tests (configure.ac): Test for initstate function.
56332
56333 2008-04-20  Bruno Haible  <bruno@clisp.org>
56334
56335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56336         for nlink_t if missing.
56337         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56338
56339 2008-04-19  Bruno Haible  <bruno@clisp.org>
56340
56341         Work around snprintf bug on Linux libc5.
56342         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56344         gl_SNPRINTF_SIZE1.
56345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56346         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56347         that test failed.
56348         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56349         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56350         * modules/snprintf (Files): Add m4/printf.m4.
56351         * modules/vsnprintf (Files): Likewise.
56352         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56353         * doc/posix-functions/vsnprintf.texi: Likewise.
56354
56355 2008-04-19  Bruno Haible  <bruno@clisp.org>
56356
56357         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56358         from 0.0058 to less than 10^-7.
56359
56360 2008-04-19  Bruno Haible  <bruno@clisp.org>
56361
56362         Fix rounding when a precision is given.
56363         * lib/vasnprintf.c (is_borderline): New function.
56364         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56365         9...9x.
56366         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56367         %e, %g.
56368         * tests/test-vasprintf-posix.c (test_function): Likewise.
56369         * tests/test-snprintf-posix.h (test_function): Likewise.
56370         * tests/test-sprintf-posix.h (test_function): Likewise.
56371         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56372         * tests/test-printf-posix.h (test_function): Likewise.
56373         * tests/test-printf-posix.output: Update.
56374         Reported by John Darrington <john@darrington.wattle.id.au> via
56375         Ben Pfaff <blp@cs.stanford.edu>.
56376
56377 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56378
56379         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56380         Suggested by Bruno Haible <bruno@clisp.org>.
56381
56382 2008-04-17  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56385         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56386         implementation.
56387         Patch by Bruce Merry <bmerry@gmail.com>.
56388
56389 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56390
56391         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56392         doesn't work under Windows.
56393
56394 2008-04-16  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56397         New macros.
56398         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56399         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56400         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56401         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56402         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56403         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56404         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56405         macros.
56406         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56407         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56408         Northern Sotho, Uighur.
56409
56410 2008-04-16  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56413         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56414         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56415         Reported by Daniel Bergström <daniel@octocode.com>.
56416
56417 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56418             Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56421         function.
56422         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56423         New functions, mostly extracted from gl_locale_name_default.
56424         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56425
56426 2008-04-16  Eric Blake  <ebb9@byu.net>
56427
56428         Adjust strtod detection to catch glibc 2.7 bug.
56429         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56430         Reported by John Gatewood Ham.
56431
56432 2008-04-16  Bruno Haible  <bruno@clisp.org>
56433
56434         Add tentative support for Linux libc5.
56435         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56436         * lib/fpurge.c (fpurge): Likewise.
56437         * lib/freadable.c (freadable): Likewise.
56438         * lib/freadahead.c (freadahead): Likewise.
56439         * lib/freading.c (freading): Likewise.
56440         * lib/freadptr.c (freadptr): Likewise.
56441         * lib/freadseek.c (freadptrinc): Likewise.
56442         * lib/fseeko.c (rpl_fseeko): Likewise.
56443         * lib/fseterr.c (fseterr): Likewise.
56444         * lib/fwritable.c (fwritable): Likewise.
56445         * lib/fwriting.c (fwriting): Likewise.
56446         Reported by Alain Guibert <alguibert+bts@free.fr>.
56447
56448 2008-04-15  Bruno Haible  <bruno@clisp.org>
56449
56450         * modules/mathl (configure.ac): Define module indicator.
56451
56452 2008-04-15  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/logl.c (logl): Remove unused variables.
56455
56456 2008-04-15  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56459         fails.
56460
56461 2008-04-15  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/trim.c (trim2): Fix argument of isspace() macro.
56464
56465 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56466
56467         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56468         to 0.
56469         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56470
56471 2008-04-14  Bruno Haible  <bruno@clisp.org>
56472
56473         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56474         AC_LANG_PROGRAM argument.
56475         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56476         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56479         * m4/math_h.m4 (gl_MATH_H): Likewise.
56480         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56482         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56483         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56484         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56485         * m4/regex.m4 (gl_REGEX): Likewise.
56486         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56487         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56490         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56491         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56494
56495 2008-04-14  Jim Meyering  <meyering@redhat.com>
56496
56497         test-strtod: fix typos: s/abs/fabs/
56498         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56499
56500 2008-04-13  Bruno Haible  <bruno@clisp.org>
56501
56502         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56503         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56504         module is also used and while not building the reloc-wrapper.
56505
56506 2008-04-13  Bruno Haible  <bruno@clisp.org>
56507
56508         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56509
56510 2008-04-13  Bruno Haible  <bruno@clisp.org>
56511
56512         Fix AIX compilation failure introduced on 2008-04-02.
56513         * tests/test-frexp.c (exp): Undefine before redefining.
56514         * tests/test-frexpl.c (exp): Likewise.
56515
56516 2008-04-13  Bruno Haible  <bruno@clisp.org>
56517
56518         Work around a HP-UX stdio bug.
56519         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56520         * tests/test-ftello.c (main): Likewise.
56521         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56522         * doc/posix-functions/ftello.texi: Likewise.
56523
56524 2008-04-13  Bruno Haible  <bruno@clisp.org>
56525
56526         Make test-signbit pass on HP-UX/hppa.
56527         * tests/test-signbit.c (minus_zerol): New variable.
56528         (test_signbitl): Use it.
56529
56530 2008-04-13  Bruno Haible  <bruno@clisp.org>
56531
56532         Make truncl work on OSF/1 4.0.
56533         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56534         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56535         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56537         HAVE_DECL_TRUNCL.
56538         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56539         HAVE_DECL_TRUNCL.
56540         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56541
56542 2008-04-13  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56545
56546 2008-04-13  Bruno Haible  <bruno@clisp.org>
56547
56548         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56549         expression, so as to avoid HP-UX 11 cc compiler bug.
56550
56551 2008-04-13  Bruno Haible  <bruno@clisp.org>
56552
56553         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56554
56555 2008-04-13  Bruno Haible  <bruno@clisp.org>
56556
56557         * lib/git-merge-changelog.c: Remove empty declaration outside of
56558         functions.
56559
56560 2008-04-13  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56563
56564 2008-04-13  Bruno Haible  <bruno@clisp.org>
56565
56566         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56567         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56568         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56569         also if it exists but lacks definitions of the SHUT_* macros.
56570         * modules/sys_socket (Description): Update.
56571         Reported by Elbert Pol <e.pol@chello.nl>.
56572
56573 2008-04-13  Bruno Haible  <bruno@clisp.org>
56574
56575         * lib/localcharset.c (OS2): Don't redefine if already defined.
56576         Reported by Elbert Pol <e.pol@chello.nl>.
56577
56578 2008-04-13  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/binary-io.h [__EMX__]: Include <io.h>.
56581         Reported by Elbert Pol <e.pol@chello.nl>.
56582
56583 2008-04-12  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/fpucw.h: Enable the definitions also for x86_64.
56586         Needed for NetBSD/x86_64.
56587         Reported by Thomas Klausner <tk@giga.or.at>.
56588
56589 2008-04-12  Bruno Haible  <bruno@clisp.org>
56590
56591         * tests/test-strtod.c: Include isnand.h.
56592         (main): Use isnand instead of isnan.
56593         Reported by Jim Meyering.
56594
56595 2008-04-12  Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56598         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56599
56600 2008-04-12  Jim Meyering  <meyering@redhat.com>
56601
56602         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56603
56604 2008-04-12  Bruno Haible  <bruno@clisp.org>
56605
56606         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56607         Reported by Elbert Pol <e.pol@chello.nl>.
56608
56609 2008-04-12  Eric Blake  <ebb9@byu.net>
56610
56611         Work around Solaris 10 math.h bug.
56612         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56613         (gl_MATH_H_DEFAULTS): Set up default.
56614         * modules/math (Makefile.am): Replace new indicators.
56615         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56616         * tests/test-math.c (main): Test this.
56617         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56618         * doc/posix-headers/math.texi (math.h): Mention bug.
56619         Reported by Nelson H. F. Beebe and Jim Meyering.
56620
56621 2008-04-11  Bruno Haible  <bruno@clisp.org>
56622
56623         Adapt to future versions of Apple GCC.
56624         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56625         Reported by Peter O'Gorman <peter@pogma.com>.
56626
56627 2008-04-11  Bruno Haible  <bruno@clisp.org>
56628
56629         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56630
56631 2008-04-11  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56634
56635         * modules/getaddrinfo-tests (Makefile.am): Define
56636         test_getaddrinfo_LDADD.
56637
56638 2008-04-11  Bruno Haible  <bruno@clisp.org>
56639
56640         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56641         (init): Fix syntax error.
56642         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56643         is declared.
56644
56645 2008-04-11  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56648         * modules/glob (Depends-on): Add stdbool.
56649
56650 2008-04-11  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/trim.c: Include <string.h>.
56653
56654 2008-04-11  Eric Blake  <ebb9@byu.net>
56655
56656         Avoid compile failure on OS/2.
56657         * lib/regex_internal.h (internal_function): Disable optimization
56658         on OS/2 (__EMX__), where it caused compiler error.
56659         Reported by Elbert Pol.
56660
56661 2008-04-11  Bruno Haible  <bruno@clisp.org>
56662
56663         Flush the standard error stream before aborting. Needed on mingw.
56664         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56665         * tests/test-array_list.c (ASSERT): Likewise.
56666         * tests/test-array_oset.c (ASSERT): Likewise.
56667         * tests/test-avltree_list.c (ASSERT): Likewise.
56668         * tests/test-avltree_oset.c (ASSERT): Likewise.
56669         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56670         * tests/test-binary-io.c (ASSERT): Likewise.
56671         * tests/test-byteswap.c (ASSERT): Likewise.
56672         * tests/test-c-ctype.c (ASSERT): Likewise.
56673         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56674         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56675         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56676         * tests/test-c-strstr.c (ASSERT): Likewise.
56677         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56678         * tests/test-canonicalize.c (ASSERT): Likewise.
56679         * tests/test-carray_list.c (ASSERT): Likewise.
56680         * tests/test-ceilf1.c (ASSERT): Likewise.
56681         * tests/test-ceilf2.c (ASSERT): Likewise.
56682         * tests/test-ceill.c (ASSERT): Likewise.
56683         * tests/test-count-one-bits.c (ASSERT): Likewise.
56684         * tests/test-fbufmode.c (ASSERT): Likewise.
56685         * tests/test-fflush2.c (ASSERT): Likewise.
56686         * tests/test-floorf1.c (ASSERT): Likewise.
56687         * tests/test-floorf2.c (ASSERT): Likewise.
56688         * tests/test-floorl.c (ASSERT): Likewise.
56689         * tests/test-fopen.c (ASSERT): Likewise.
56690         * tests/test-fpending.c (ASSERT): Likewise.
56691         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56692         * tests/test-fpurge.c (ASSERT): Likewise.
56693         * tests/test-freadable.c (ASSERT): Likewise.
56694         * tests/test-freadahead.c (ASSERT): Likewise.
56695         * tests/test-freading.c (ASSERT): Likewise.
56696         * tests/test-freadptr.c (ASSERT): Likewise.
56697         * tests/test-freadptr2.c (ASSERT): Likewise.
56698         * tests/test-freadseek.c (ASSERT): Likewise.
56699         * tests/test-freopen.c (ASSERT): Likewise.
56700         * tests/test-frexp.c (ASSERT): Likewise.
56701         * tests/test-frexpl.c (ASSERT): Likewise.
56702         * tests/test-fseek.c (ASSERT): Likewise.
56703         * tests/test-fseeko.c (ASSERT): Likewise.
56704         * tests/test-fstrcmp.c (ASSERT): Likewise.
56705         * tests/test-ftell.c (ASSERT): Likewise.
56706         * tests/test-ftello.c (ASSERT): Likewise.
56707         * tests/test-func.c (ASSERT): Likewise.
56708         * tests/test-fwritable.c (ASSERT): Likewise.
56709         * tests/test-fwriting.c (ASSERT): Likewise.
56710         * tests/test-getdelim.c (ASSERT): Likewise.
56711         * tests/test-getline.c (ASSERT): Likewise.
56712         * tests/test-i-ring.c (ASSERT): Likewise.
56713         * tests/test-iconv-utf.c (ASSERT): Likewise.
56714         * tests/test-iconv.c (ASSERT): Likewise.
56715         * tests/test-isfinite.c (ASSERT): Likewise.
56716         * tests/test-isnand.c (ASSERT): Likewise.
56717         * tests/test-isnanf.c (ASSERT): Likewise.
56718         * tests/test-isnanl.h (ASSERT): Likewise.
56719         * tests/test-ldexpl.c (ASSERT): Likewise.
56720         * tests/test-linked_list.c (ASSERT): Likewise.
56721         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56722         * tests/test-localename.c (ASSERT): Likewise.
56723         * tests/test-lseek.c (ASSERT): Likewise.
56724         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56725         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56726         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56727         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56728         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56729         * tests/test-mbschr.c (ASSERT): Likewise.
56730         * tests/test-mbscspn.c (ASSERT): Likewise.
56731         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56732         * tests/test-mbspbrk.c (ASSERT): Likewise.
56733         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56734         * tests/test-mbsrchr.c (ASSERT): Likewise.
56735         * tests/test-mbsspn.c (ASSERT): Likewise.
56736         * tests/test-mbsstr1.c (ASSERT): Likewise.
56737         * tests/test-mbsstr2.c (ASSERT): Likewise.
56738         * tests/test-mbsstr3.c (ASSERT): Likewise.
56739         * tests/test-memchr2.c (ASSERT): Likewise.
56740         * tests/test-memmem.c (ASSERT): Likewise.
56741         * tests/test-open.c (ASSERT): Likewise.
56742         * tests/test-printf-frexp.c (ASSERT): Likewise.
56743         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56744         * tests/test-printf-posix.c (ASSERT): Likewise.
56745         * tests/test-quotearg.c (ASSERT): Likewise.
56746         * tests/test-rbtree_list.c (ASSERT): Likewise.
56747         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56748         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56749         * tests/test-round1.c (ASSERT): Likewise.
56750         * tests/test-roundf1.c (ASSERT): Likewise.
56751         * tests/test-roundl.c (ASSERT): Likewise.
56752         * tests/test-signbit.c (ASSERT): Likewise.
56753         * tests/test-sleep.c (ASSERT): Likewise.
56754         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56755         * tests/test-snprintf.c (ASSERT): Likewise.
56756         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56757         * tests/test-stat-time.c (ASSERT): Likewise.
56758         * tests/test-strcasestr.c (ASSERT): Likewise.
56759         * tests/test-strerror.c (ASSERT): Likewise.
56760         * tests/test-striconv.c (ASSERT): Likewise.
56761         * tests/test-striconveh.c (ASSERT): Likewise.
56762         * tests/test-striconveha.c (ASSERT): Likewise.
56763         * tests/test-strsignal.c (ASSERT): Likewise.
56764         * tests/test-strstr.c (ASSERT): Likewise.
56765         * tests/test-strtod.c (ASSERT): Likewise.
56766         * tests/test-trunc1.c (ASSERT): Likewise.
56767         * tests/test-trunc2.c (ASSERT): Likewise.
56768         * tests/test-truncf1.c (ASSERT): Likewise.
56769         * tests/test-truncf2.c (ASSERT): Likewise.
56770         * tests/test-truncl.c (ASSERT): Likewise.
56771         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56772         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56773         * tests/test-vasnprintf.c (ASSERT): Likewise.
56774         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56775         * tests/test-vasprintf.c (ASSERT): Likewise.
56776         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56777         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56778         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56779         * tests/test-vsnprintf.c (ASSERT): Likewise.
56780         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56781         * tests/test-wcwidth.c (ASSERT): Likewise.
56782         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56783         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56784         * tests/test-xvasprintf.c (ASSERT): Likewise.
56785         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56786         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56787         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56788         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56789         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56790         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56791         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56792         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56793         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56794         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56795         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56796         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56797         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56798         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56799         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56800         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56801         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56802         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56803         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56804         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56805         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56806         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56807         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56808         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56809         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56810         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56811         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56812         * tests/unictype/test-combining.c (ASSERT): Likewise.
56813         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56814         * tests/unictype/test-digit.c (ASSERT): Likewise.
56815         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56816         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56817         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56818         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56819         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56820         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56821         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56822         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56823         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56824         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56825         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56826         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56827         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56828         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56829         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56830         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56831         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56832         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56833         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56834         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56835         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56836         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56837         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56838         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56839         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56840         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56841         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56842         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56843         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56844         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56845         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56846         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56847         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56848         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56849         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56850         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56851         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56852         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56853         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56854         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56855         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56856         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56857         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56858         Reported by Eric Blake.
56859
56860 2008-04-11  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/wchar.in.h: Tweak comment.
56863
56864 2008-04-11  Bruno Haible  <bruno@clisp.org>
56865
56866         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56867         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56868         gl_COMMON.
56869         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56870
56871 2008-04-11  Bruno Haible  <bruno@clisp.org>
56872
56873         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56874
56875 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56876
56877         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56878         of attempting to use non-existing /dev/*random.  Based on patch
56879         from Adam Strzelecki <ono@java.pl> in
56880         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56881
56882 2008-04-08  Bruno Haible  <bruno@clisp.org>
56883
56884         Add tentative support for emx+gcc.
56885         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56886         * lib/fpurge.c (fpurge): Likewise.
56887         * lib/freadable.c (freadable): Likewise.
56888         * lib/freadahead.c (freadahead): Likewise.
56889         * lib/freading.c (freading): Likewise.
56890         * lib/freadptr.c (freadptr): Likewise.
56891         * lib/freadseek.c (freadptrinc): Likewise.
56892         * lib/fseeko.c (rpl_fseeko): Likewise.
56893         * lib/fseterr.c (fseterr): Likewise.
56894         * lib/fwritable.c (fwritable): Likewise.
56895         * lib/fwriting.c (fwriting): Likewise.
56896         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56897
56898 2008-04-09  Eric Blake  <ebb9@byu.net>
56899
56900         Avoid some autoconf warnings.
56901         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56902         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56903         * m4/afs.m4 (gl_AFS): Likewise.
56904         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56905         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56906         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56907         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56908         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56909         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56910         (AC_CHECK_DECLS_ONCE): Likewise.
56911         Rename file...
56912         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56913         gnulib-tool requires autoconf 2.59 or better.
56914         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56915
56916 2008-04-08  Eric Blake  <ebb9@byu.net>
56917
56918         Use 'git describe --match' if present (added in git 1.5.5).
56919         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56920         if possible.
56921
56922 2008-04-08  Bruno Haible  <bruno@clisp.org>
56923
56924         Add tentative support for OpenServer.
56925         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56926         _ptr, _cnt.
56927         * lib/fpurge.c (fpurge): Likewise.
56928         * lib/freadable.c (freadable): Likewise.
56929         * lib/freadahead.c (freadahead): Likewise.
56930         * lib/freading.c (freading): Likewise.
56931         * lib/freadptr.c (freadptr): Likewise.
56932         * lib/freadseek.c (freadptrinc): Likewise.
56933         * lib/fseeko.c (rpl_fseeko): Likewise.
56934         * lib/fseterr.c (fseterr): Likewise.
56935         * lib/fwritable.c (fwritable): Likewise.
56936         * lib/fwriting.c (fwriting): Likewise.
56937         Reported by Roger Cornelius <rac@tenzing.org> and
56938         Brian K. White <brian@aljex.com>.
56939
56940 2008-04-06  Jim Meyering  <meyering@redhat.com>
56941
56942         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56943
56944 2008-04-06  Bruno Haible  <bruno@clisp.org>
56945
56946         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56947         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56948         * tests/test-printf-posix.sh: Likewise.
56949         * tests/test-vfprintf-posix.sh: Likewise.
56950         * tests/test-vprintf-posix.sh: Likewise.
56951         * tests/test-xprintf-posix.sh: Likewise.
56952
56953 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56954
56955         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56956         hide error from 'ls', needed on OS/2.
56957         Report by Elbert Pol <elbert.pol@gmail.com>.
56958
56959 2008-04-04  Eric Blake  <ebb9@byu.net>
56960
56961         Make test-fseeko.c failures meaningful.
56962         * tests/test-fseeko.c: Print line number on failure.
56963         * tests/test-fseek.c: Likewise.
56964         Reported by Nelson H. F. Beebe.
56965
56966         Improve strtod bug detection check.
56967         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56968         required for Solaris 10.
56969         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56970
56971 2008-04-04  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56974         by m4/setenv.m4.
56975
56976 2008-04-03  Eric Blake  <ebb9@byu.net>
56977
56978         Ensure sane .version contents.
56979         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56980         version string.
56981         * build-aux/git-version-gen: Improve documentation.
56982
56983         Make GNU make output nicer.
56984         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56985         MAKECMDGOALS to enforce message for all command line targets.  Set
56986         srcdir for use in maint.mk.
56987
56988         Another maintainer tweak.
56989         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56990         a target that regenerates version.
56991
56992 2008-04-03  Jim Meyering  <meyering@redhat.com>
56993
56994         vc-list-files: don't cause coreutils "make po-check" failure
56995         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56996
56997 2008-04-03  Eric Blake  <ebb9@byu.net>
56998
56999         Allow VPATH usage of vc-list-files.
57000         * build-aux/vc-list-files (scriptversion): Add timestamp.
57001         (options): Add --help, --version, -C.
57002         (CVS): Support installed cvsu.
57003
57004 2008-04-02  Bruno Haible  <bruno@clisp.org>
57005
57006         Avoid some "statement with no effect" warnings from gcc.
57007         * tests/test-wctype.c (main): Explicitly ignore unused values.
57008         Reported by Jim Meyering.
57009
57010 2008-04-02  Jim Meyering  <meyering@redhat.com>
57011
57012         Avoid some warnings from "gcc -Wshadow".
57013         * tests/test-frexp.c (exp): Define to a different identifier.
57014         * tests/test-frexpl.c (exp): Likewise.
57015
57016 2008-04-03  Jim Meyering  <meyering@redhat.com>
57017
57018         bootstrap: remove dangling *.[ch] symlinks from lib
57019         * build-aux/bootstrap [dangling symlink removal]: Move find's
57020         -depth option to precede all others, to avoid a warning.
57021         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57022
57023 2008-04-02  Bruno Haible  <bruno@clisp.org>
57024
57025         Avoid some warnings from "gcc -Wshadow".
57026         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57027         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57028         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57029         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57030         Reported by Jim Meyering.
57031
57032 2008-04-01  Bruno Haible  <bruno@clisp.org>
57033
57034         Fix test to work on IRIX 6.5 with cc.
57035         * tests/test-math.c (numeric_equal): New function.
57036         (main): Use it.
57037
57038 2008-04-01  Bruno Haible  <bruno@clisp.org>
57039
57040         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57041
57042 2008-04-01  Bruno Haible  <bruno@clisp.org>
57043
57044         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57045         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57046         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57047         (Depends-on): Remove math.
57048
57049         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57050         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57051         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57052         (Depends-on): Remove math.
57053
57054         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57055         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57056         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57057         (Depends-on): Remove math.
57058         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57059         (Depends-on): Remove math.
57060
57061         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57062         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57063         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57064         (Depends-on): Remove math.
57065         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57066         (Depends-on): Remove math.
57067
57068         * tests/test-round1.c: Include nan.h.
57069         (main): Use NaNd instead of NAN.
57070         * modules/round-tests (Files): Add tests/nan.h.
57071
57072         * tests/test-trunc1.c: Include nan.h.
57073         (main): Use NaNd instead of NAN.
57074         * modules/trunc-tests (Files): Add tests/nan.h.
57075
57076         * tests/test-roundf1.c: Include nan.h.
57077         (main): Use NaNf instead of NAN.
57078         * modules/roundf-tests (Files): Add tests/nan.h.
57079
57080         * tests/test-truncf1.c: Include nan.h.
57081         (main): Use NaNf instead of NAN.
57082         * modules/truncf-tests (Files): Add tests/nan.h.
57083
57084         * tests/test-ceilf1.c: Include nan.h.
57085         (main): Use NaNf instead of NAN.
57086         * modules/ceilf-tests (Files): Add tests/nan.h.
57087
57088         * tests/test-floorf1.c: Include nan.h.
57089         (main): Use NaNf instead of NAN.
57090         * modules/floorf-tests (Files): Add tests/nan.h.
57091
57092         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57093         (main): Use NaNf instead of NAN.
57094         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57095
57096         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57097         (main): Use NaNd instead of NAN.
57098         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57099
57100         * tests/test-frexp.c: Include nan.h.
57101         (main): Use NaNd instead of NAN.
57102         * modules/frexp-tests (Files): Add tests/nan.h.
57103
57104         * lib/isnan.c: Don't include <math.h>.
57105         (FUNC): Don't use NAN macro.
57106         * modules/isnand-nolibm (Depends-on): Remove math.
57107         * modules/isnanf-nolibm (Depends-on): Remove math.
57108         * modules/isnanl (Depends-on): Remove math.
57109         * modules/isnanl-nolibm (Depends-on): Remove math.
57110
57111         * tests/nan.h: New file.
57112
57113 2008-04-01  Eric Blake  <ebb9@byu.net>
57114
57115         Fix typos.
57116         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57117         values to be the right type.
57118
57119         For now, cater to gnulib strtod inaccuracies.
57120         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57121         fractional results.  While not as nice from a QoI perspective, it
57122         is a quicker patch than correctly implementing decimal to binary
57123         rounding.
57124
57125 2008-03-31  Eric Blake  <ebb9@byu.net>
57126
57127         Guarantee a definition of NAN.
57128         * lib/math.in.h (NAN): Define if missing.
57129         * tests/test-math.c (main): Test it.
57130         * doc/posix-headers/math.texi (math.h): Document this.
57131         * lib/isnan.c (rpl_isnand): Use it.
57132         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57133         * tests/test-floorf1.c (NaN): Likewise.
57134         * tests/test-frexp.c (NaN): Likewise.
57135         * tests/test-isnand.c (NaN): Likewise.
57136         * tests/test-isnanf.c (NaN): Likewise.
57137         * tests/test-round1.c (NaN): Likewise.
57138         * tests/test-roundf1.c (NaN): Likewise.
57139         * tests/test-snprintf-posix.h (NaN): Likewise.
57140         * tests/test-sprintf-posix.h (NaN): Likewise.
57141         * tests/test-trunc1.c (NaN): Likewise.
57142         * tests/test-truncf1.c (NaN): Likewise.
57143         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57144         * tests/test-vasprintf-posix.c (NaN): Likewise.
57145         * modules/isnand-nolibm (Depends-on): Add math.
57146         * modules/isnanf-nolibm (Depends-on): Likewise.
57147         * modules/isnanl (Depends-on): Likewise.
57148         * modules/isnanl-nolibm (Depends-on): Likewise.
57149         * modules/snprintf-posix-tests (Depends-on): Likewise.
57150         * modules/sprintf-posix-tests (Depends-on): Likewise.
57151         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57152         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57153         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57154         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57155
57156 2008-03-31  Bruno Haible  <bruno@clisp.org>
57157
57158         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57159         * doc/posix-functions/strtod.texi: Likewise.
57160
57161 2008-03-31  Bruno Haible  <bruno@clisp.org>
57162
57163         * tests/test-strtod.c (main): Don't use C99 syntax.
57164
57165 2008-03-31  Bruno Haible  <bruno@clisp.org>
57166
57167         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57168         Reported by Eric Blake.
57169
57170 2008-03-31  Jim Meyering  <meyering@redhat.com>
57171
57172         Don't compare actual signbit return values.
57173         * tests/test-strtod.c (main): Rather, compare only their
57174         zero/non-zero nature.
57175
57176 2008-03-31  Eric Blake  <ebb9@byu.net>
57177
57178         More strtod documentation.
57179         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57180         failures as distinct bugs.
57181
57182 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57183
57184         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57185         Problem reported by Erik Benada in
57186         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57187
57188 2008-03-30  Bruno Haible  <bruno@clisp.org>
57189
57190         * tests/test-strtod.c: Add comments about which assertion fails on which
57191         platform.
57192         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57193
57194 2008-03-30  Eric Blake  <ebb9@byu.net>
57195
57196         Test signbit behavior on zeros.
57197         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57198         (test_signbitd, test_signbitl): Likewise.
57199
57200         More strtod touchups.
57201         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57202         sign of negative underflow, for now.  Use .5, not .1.
57203         * doc/posix-functions/strtod.texi (strtod): Mention these
57204         limitations.
57205         Reported by Jim Meyering.
57206
57207 2008-03-30  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57210         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57211
57212 2008-03-30  Bruno Haible  <bruno@clisp.org>
57213
57214         Avoid failure when attempting to return empty iconv results on some
57215         platforms.
57216         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57217         allocation, don't report ENOMEM when the resulting string is empty.
57218
57219 2008-03-30  Bruno Haible  <bruno@clisp.org>
57220
57221         Fix buffer overrun.
57222         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57223         Don't consider the width for tmp_length. Check count against tmp_length
57224         before doing the padding. Ensure enough allocation during padding.
57225
57226 2008-03-30  Eric Blake  <ebb9@byu.net>
57227
57228         strtod touchups.
57229         * lib/strtod.c (strtod): Avoid compiler warnings.
57230         Reported by Jim Meyering.
57231
57232 2008-03-30  Bruno Haible  <bruno@clisp.org>
57233
57234         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57235         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57236         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57237         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57238         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57239         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57240         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57241         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57242
57243         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57244         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57245         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57246         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57247         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57248         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57249         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57250         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57251
57252         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57253         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57254         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57255         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57256         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57257         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57258         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57259         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57260
57261         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57262         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57263
57264         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57265         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57266
57267         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57268         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57269
57270         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57272         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57273
57274         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57276         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57277
57278         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57280         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57281
57282         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57284         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57285
57286         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57287         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57289         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57290         (Depends-on): Add EOVERFLOW.
57291         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57292         (Depends-on): Add EOVERFLOW.
57293         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57294         (Depends-on): Add EOVERFLOW.
57295         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57296         (Depends-on): Add EOVERFLOW.
57297         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57298         (Depends-on): Add EOVERFLOW.
57299         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57300         (Depends-on): Add EOVERFLOW.
57301         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57302         (Depends-on): Add EOVERFLOW.
57303         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57304         (Depends-on): Add EOVERFLOW.
57305
57306         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57308         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57309
57310         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57312         * modules/snprintf (Depends-on): Add EOVERFLOW.
57313
57314         * lib/poll.c (EOVERFLOW): Remove fallback.
57315         * modules/poll (Depends-on): Add EOVERFLOW.
57316
57317         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57318         * modules/getugroups (Depends-on): Add EOVERFLOW.
57319
57320         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57321         * modules/getdelim (Depends-on): Add EOVERFLOW.
57322
57323         * lib/ftell.c (EOVERFLOW): Remove fallback.
57324         * modules/ftell (Depends-on): Add EOVERFLOW.
57325
57326         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57328         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57329
57330         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57331
57332         * modules/EOVERFLOW-tests: New file.
57333         * tests/test-EOVERFLOW.c: New file.
57334
57335         * modules/EOVERFLOW: New file.
57336         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57337
57338 2008-03-30  Bruno Haible  <bruno@clisp.org>
57339
57340         Fix bug introduced on 2007-06-10.
57341         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57342         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57343
57344 2008-03-30  Bruno Haible  <bruno@clisp.org>
57345
57346         Improve freadseek's efficiency after ungetc.
57347         * lib/freadseek.c: Include freadahead.h.
57348         (freadptrinc): New function, extracted from freadseek.
57349         (freadseek): Use it in a loop. Use freadahead to determine the number
57350         of loop iterations.
57351         * modules/freadseek (Depends-on): Add freadahead.
57352         (configure.ac): Require AC_C_INLINE.
57353
57354 2008-03-30  Bruno Haible  <bruno@clisp.org>
57355
57356         * lib/freadseek.c (freadseek): Don't ignore the return value of
57357         freadptr.
57358
57359 2008-03-29  Eric Blake  <ebb9@byu.net>
57360
57361         Add hex float support.
57362         * modules/strtod (Depends-on): Add c-ctype.
57363         (Link): Mention POW_LIB.
57364         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57365         whitespace between 'e' and exponent.
57366         * tests/test-strtod.c (main): Enable hex float tests.
57367         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57368         now provides.
57369
57370         Document various strtod bugs, with some fixes.
57371         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57372         "-0x", "inf", "nan", and hex constants.
57373         * doc/posix-functions/atof.texi (atof): Likewise.
57374         * modules/stdlib (Makefile.am): Support strtod.
57375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57376         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57377         detect additional strtod bugs.
57378         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57379         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57380         bool where appropriate.  Parse 'inf' and 'nan'.
57381         * tests/test-strtod.c: New file.
57382         * modules/strtod (Depends-on): Add stdbool, stdlib.
57383         (configure.ac): Turn on module indicator.
57384         * modules/strtod-tests: New module.
57385
57386 2008-03-29  Eric Blake  <ebb9@byu.net>
57387
57388         Fix ftell on mingw.
57389         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57390         * modules/ftell-tests (Depends-on): Add binary-io.
57391         * modules/ftello-tests (Depends-on): Likewise.
57392         * tests/test-ftell.c (main): Enhance test to cover behavior after
57393         ungetc.  Enforce binary mode.
57394         * tests/test-ftello.c (main): Likewise.
57395
57396         Pass test-freadseek on cygwin.
57397         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57398         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57399         ungetc buffer.
57400
57401         * tests/test-fflush2.c (main): Fix typo.
57402
57403 2008-03-29  Bruno Haible  <bruno@clisp.org>
57404
57405         * tests/test-fflush2.c (main): Temporarily disable the contents of
57406         this test.
57407         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57408         Reported by Eric Blake.
57409
57410 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57411
57412         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57413         (GC_SHA224_DIGEST_SIZE): Add.
57414
57415         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57416         (gc_hash_digest_length): Likewise.
57417         (gc_hash_buffer): Likewise.
57418
57419 2008-03-25  Bruno Haible  <bruno@clisp.org>
57420
57421         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57422         detail which gettext release to use.
57423         Reported by Simon Josefsson.
57424
57425 2008-03-26  Jim Meyering  <meyering@redhat.com>
57426
57427         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57428         * modules/gnumakefile (clean-GNUmakefile): Also, use
57429         test ... && ... || : syntax rather than if-then ... fi.
57430
57431         gnumakefile: Don't double-quote-expand $(VPATH) value.
57432         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57433
57434 2008-03-24  Eric Blake  <ebb9@byu.net>
57435
57436         Alter GNUmakefile to install into top directory.
57437         * modules/maintainer-makefile: Split, and add dependency...
57438         * modules/gnumakefile: to this new module.
57439         * build-aux/GNUmakefile: Move...
57440         * top/GNUmakefile: ...here.
57441         * build-aux/maint.mk: Move...
57442         * top/maint.mk: ...here.
57443         * MODULES.html.sh (Support for maintaining...): Document new
57444         module.
57445
57446 2008-03-23  Bruno Haible  <bruno@clisp.org>
57447
57448         * gnulib-tool: New options --vc-files, --no-vc-files.
57449         (func_usage): Document them.
57450         (vc_files): New variable.
57451         (func_import): Consider vc_files.
57452         (func_create_testdir): Set vc_files to empty.
57453         Suggested by Jim Meyering and Karl Berry.
57454
57455 2008-03-23  Bruno Haible  <bruno@clisp.org>
57456
57457         Fix regex compilation error on HP-UX 11.
57458         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57459         * modules/regex (Files): Add m4/mbstate_t.m4.
57460         Reported by Ton Voon <ton.voon@altinity.com>.
57461
57462 2008-03-23  Bruno Haible  <bruno@clisp.org>
57463
57464         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57465
57466 2008-03-23  Eric Blake  <ebb9@byu.net>
57467             Bruno Haible  <bruno@clisp.org>
57468
57469         Install files from top/ in the destination directory.
57470         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57471         augmentation also for the files from top/.
57472         (func_import, func_create_testdir): Rewrite file names:
57473         top/filename -> filename.
57474
57475 2008-03-23  Bruno Haible  <bruno@clisp.org>
57476
57477         Tweak "gnulib --version" output.
57478         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57479
57480 2008-03-23  Bruno Haible  <bruno@clisp.org>
57481
57482         Tweak "gnulib --version" output.
57483         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57484         rather than contents of ChangeLog, when possible.
57485
57486 2008-03-21  Eric Blake  <ebb9@byu.net>
57487
57488         More --version tweaks.
57489         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57490         date of last ChangeLog entry.
57491
57492 2008-03-21  Jim Meyering  <meyering@redhat.com>
57493
57494         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57495
57496 2008-03-20  Eric Blake  <ebb9@byu.net>
57497
57498         VPATH fix.
57499         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57500
57501 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57502
57503         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57504         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57505
57506 2008-03-20  Eric Blake  <ebb9@byu.net>
57507
57508         Sync GNUmakefile with coreutils.
57509         * build-aux/GNUmakefile (have-Makefile): Rename...
57510         (_have-Makefile): ...to this, for namespace consideration.
57511         (GNUmakefile.cfg): Include, if present.
57512         (_autoreconf): Define a default.
57513         (_is-dist-target): New rule for rebuilds to pick up intra-release
57514         version.
57515         (maint-cfg.mk): Rename...
57516         (cfg.mk): ...to this.
57517
57518 2008-03-18  Jim Meyering  <meyering@redhat.com>
57519
57520         New script and module: mktempd
57521         * MODULES.html.sh (maint+release support): Add mktempd.
57522         * build-aux/mktempd: New file.
57523         * modules/mktempd: New file.
57524
57525 2008-03-15  Jim Meyering  <meyering@redhat.com>
57526
57527         Undo last change.
57528         * lib/sha1.c, lib/md5.c: 63 != ~63.
57529         Reported by Andreas Schwab.
57530
57531         sha1.c, md5.c: Hoist a redundant expression.
57532         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57533         "ctx->buflen" only once, before calling *_process_block.
57534         * lib/md5.c (md5_process_bytes): Likewise.
57535
57536 2008-03-14  Eric Blake  <ebb9@byu.net>
57537
57538         Bump copyright year in files generated by gnulib-tool.
57539         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57540         gnulib-tool, rather than hard-coding it.
57541
57542         Fix 'gnulib-tool --version' output to work with git.
57543         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57544         (startup): ...here.
57545         (func_version): Use it to invoke git-version-gen, rather than
57546         relying on CVS keyword expansion.  Modernize wording.
57547         (cvsdatestamp, last_checkin_date, version): Kill unused
57548         variables.
57549
57550 2008-03-12  Jim Meyering  <meyering@redhat.com>
57551
57552         Recognize optional cast of the argument to free.
57553         * build-aux/useless-if-before-free: Update regexps.
57554
57555         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57556
57557 2008-03-11  Bruno Haible  <bruno@clisp.org>
57558
57559         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57560         by a single package.
57561         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57562         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57563         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57564         Reported by Sam Steingold <sds@gnu.org>.
57565
57566 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57567
57568         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57569         repositories.
57570
57571 2008-03-11  Bruno Haible  <bruno@clisp.org>
57572
57573         Avoid conflicts between local macro definitions.
57574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57575         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57576
57577 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57578             Bruno Haible  <bruno@clisp.org>
57579
57580         Make va_copy work with some version of xlc on AIX 5.1.
57581         * lib/stdarg.in.h: New file.
57582         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57583         On AIX, use a <stdarg.h> file substitute.
57584         * modules/stdarg (Files): Add lib/stdarg.in.h.
57585         (Depends-on): Add include_next.
57586         (Makefile.am): Build a stdarg.h substitute if requested.
57587         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57588
57589 2008-03-10  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57593         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57594
57595 2008-03-10  Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/stdlib (Depends-on): Add include_next, remove
57598         absolute-header.
57599
57600 2008-03-09  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/freadahead.h (freadahead): Document more precisely.
57603         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57604         the sum of both buffer sizes.
57605         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57606         * NEWS: Document the change.
57607
57608 2008-03-09  Bruno Haible  <bruno@clisp.org>
57609
57610         Extend freadptr to return also the buffer size.
57611         * lib/freadptr.h (freadptr): Add sizep argument.
57612         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57613         (freadptr): Add sizep argument. Determine buffer size like freadahead
57614         does.
57615         * tests/test-freadptr.c: Don't include freadahead.h.
57616         (main): Adapt for new calling convention of freadptr.
57617         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57618         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57619         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57620         tests/test-freadptr2.sh.
57621         (Depends): Remove freadahead.
57622         (TESTS): Add test-freadptr2.sh.
57623         (check_PROGRAMS): Add test-freadptr2.
57624
57625 2008-03-09  Bruno Haible  <bruno@clisp.org>
57626
57627         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57628         Report and solution by Simon Josefsson.
57629
57630 2008-03-06  Bruno Haible  <bruno@clisp.org>
57631
57632         Make fflush after ungetc work on BSD platforms.
57633         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57634         * tests/test-fflush2.c: New file.
57635         * tests/test-fflush2.sh: New file.
57636         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57637         tests/test-fflush2.c.
57638         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57639         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57640
57641 2008-03-06  Eric Blake  <ebb9@byu.net>
57642
57643         Likewise for ftello.
57644         * modules/ftello (Dependencies): Add extensions.
57645         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57646
57647 2008-03-06  Bruno Haible  <bruno@clisp.org>
57648
57649         * modules/fseeko (Dependencies): Add extensions.
57650         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57651         Needed on glibc systems.
57652
57653 2008-03-06  Bruno Haible  <bruno@clisp.org>
57654
57655         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57656         email address.
57657         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57658
57659 2008-03-06  Bruno Haible  <bruno@clisp.org>
57660
57661         * users.txt: Add libgnupdf.
57662
57663 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57664
57665         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57666         (Header File Substitutes, Function Substitutes,
57667         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57668         (Build robot for gnulib): Fix typo.
57669
57670 2008-03-06  Bruno Haible  <bruno@clisp.org>
57671
57672         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57673         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57674
57675 2008-03-06  Bruno Haible  <bruno@clisp.org>
57676
57677         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57678         * doc/gnulib.texi: Include it.
57679
57680 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57681
57682         * modules/func (License): Change license to unlimited; there was
57683         no LGPL parts in the module anyway.
57684
57685 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57686
57687         * modules/__func__: Renamed to modules/func.
57688         * modules/__func__-tests: Renamed to modules/func-tests.
57689         * tests/test-__func__.c: Renamed to tests/test-func.c.
57690         * m4/__func__.m4: Renamed to m4/func.m4.
57691         * doc/gnulib.texi (__func__): Section renamed to func.
57692         Suggested by Eric Blake <ebb9@byu.net>.
57693
57694 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57695
57696         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57697         about __func__.  Make example self-contained.  Suggested by Eric
57698         Blake <ebb9@byu.net>.
57699
57700         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57701         Suggested by Eric Blake <ebb9@byu.net>.
57702
57703 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57704
57705         * modules/__func__: New file.
57706         * modules/__func__-tests: New file.
57707         * tests/test-__func__.c: New file.
57708         * m4/__func__.m4: New file.
57709         * doc/gnulib.texi (__func__): Document __func__ module.
57710
57711 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57712
57713         * modules/byteswap (License): Re-license as LGPLv2+.
57714
57715 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57716
57717         * doc/Makefile: Add pdf target.
57718
57719 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57720
57721         * modules/inline (License): Use 'unlimited', since there are only
57722         *.m4 files in this module.
57723
57724 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57725             Bruno Haible  <bruno@clisp.org>
57726
57727         Add support for HP C 7.1 on OpenVMS 8.3.
57728         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57729
57730 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57731
57732         Update VMS specifics.
57733         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57734
57735 2008-03-02  Jim Meyering  <meyering@redhat.com>
57736
57737         Remove the last dependency on the "free" module.
57738         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57739         Reported by Bob Proulx.
57740
57741         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57742
57743         Remove useless "if" tests before free.  Deprecate "free" module.
57744         * doc/posix-functions/free.texi: Mention that this
57745         module is no longer useful.
57746         * modules/free (Notice): Say this module is obsolete.
57747         * modules/readutmp (Depends-on): Remove free.
57748         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57749         * lib/putenv.c (putenv): Likewise.
57750         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57751         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57752         * tests/test-c-strcasestr.c (main): Likewise.
57753         * tests/test-c-strstr.c (main): Likewise.
57754         * tests/test-mbscasestr1.c (main): Likewise.
57755         * tests/test-mbscasestr2.c (main): Likewise.
57756         * tests/test-mbsstr1.c (main): Likewise.
57757         * tests/test-mbsstr2.c (main): Likewise.
57758         * tests/test-memmem.c (main): Likewise.
57759         * tests/test-strcasestr.c (main): Likewise.
57760         * tests/test-striconv.c (main): Likewise.
57761         * tests/test-striconveh.c (main): Likewise.
57762         * tests/test-striconveha.c (main): Likewise.
57763         * tests/test-strstr.c (main): Likewise.
57764
57765         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57766
57767         bootstrap: sync from coreutils again
57768         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57769
57770 2008-03-01  Jim Meyering  <meyering@redhat.com>
57771
57772         bootstrap: sync from coreutils
57773         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57774         also when the target doesn't exist.
57775
57776 2008-03-01  Eric Blake  <ebb9@byu.net>
57777
57778         Fix bugs in last patch.
57779         * lib/memchr2.c (memchr2): Fix typo.
57780         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57781         extension.
57782         Reported by Bruce Korb.
57783
57784         New module 'memchr2'.
57785         * modules/memchr2: New file.
57786         * modules/memchr2-tests: Likewise.
57787         * lib/memchr2.h: Likewise.
57788         * lib/memchr2.c: Likewise, based on memchr.c.
57789         * tests/test-memchr2.c: New test.
57790         * MODULES.html.sh (String handling): Add memchr2.
57791
57792 2008-02-29  Bruno Haible  <bruno@clisp.org>
57793
57794         * modules/freadseek-tests: New file.
57795         * tests/test-freadseek.sh: New file.
57796         * tests/test-freadseek.c: New file.
57797
57798         New module 'freadseek'.
57799         * modules/freadseek: New file.
57800         * lib/freadseek.h: New file.
57801         * lib/freadseek.c: New file.
57802         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57803
57804 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57805
57806         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57807         wydawca.
57808
57809         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57810         program_invocation_name and program_invocation_short_name are
57811         present.
57812
57813 2008-02-28  Bruno Haible  <bruno@clisp.org>
57814
57815         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57816         * tests/test-freadptr.sh: Also test non-seekable stdin.
57817
57818 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57819
57820         * build-aux/bootstrap (source_base, m4_base)
57821         (doc_base, tests_base): New variables.
57822         (gnulib_tool_options): Do not hardcode base directories, use
57823         the above variables instead.
57824
57825 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57826
57827         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57828
57829 2008-02-28  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/freadptr-tests: New file.
57832         * tests/test-freadptr.sh: New file.
57833         * tests/test-freadptr.c: New file.
57834
57835         New module 'freadptr'.
57836         * modules/freadptr: New file.
57837         * lib/freadptr.h: New file.
57838         * lib/freadptr.c: New file.
57839         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57840
57841 2008-02-26  Karl Berry  <karl@freefriends.org>
57842
57843         Sync from Libtool:
57844         * libltdl/argz.c (argz_add, argz_count): New functions.
57845         * libltdl/argz.in.h: Declare them.
57846         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57847
57848 2008-02-22  Bruno Haible  <bruno@clisp.org>
57849
57850         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57851         is a pointer type.  Needed for HP-UX 10.
57852         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57853         * doc/posix-functions/gmtime_r.texi: Likewise.
57854         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57855
57856 2008-02-24  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/environ-tests: New file.
57859         * tests/test-environ.c: New file.
57860
57861         New module 'environ'.
57862         * modules/environ: New file.
57863         * lib/unistd.in.h (environ): New declaration.
57864         * m4/environ.m4: New file.
57865         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57866         after use.
57867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57868         HAVE_DECL_ENVIRON.
57869         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57870         HAVE_DECL_ENVIRON.
57871         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57872         wrong claim that 'environ' is missing on some systems.
57873         * modules/execute (Depends-on): Add environ.
57874         * lib/execute.c (environ): Remove fallback declaration.
57875         * modules/pipe (Depends-on): Add environ.
57876         * lib/pipe.c (environ): Remove fallback declaration.
57877         * modules/setenv (Depends-on): Add environ.
57878         * lib/setenv.c (environ): Remove fallback declaration.
57879         * modules/unsetenv (Depends-on): Add environ.
57880         * lib/unsetenv.c (environ): Remove fallback declaration.
57881         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57882         m4/environ.m4.
57883         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57884         (gl_PREREQ_UNSETENV): Likewise.
57885
57886 2008-02-24  Bruno Haible  <bruno@clisp.org>
57887
57888         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57889
57890 2008-02-20  Bob Proulx  <bob@proulx.com>
57891
57892         Enable use of older two part flavor 'git describe'.
57893         * build-aux/git-version-gen: If using the older two part flavor of
57894         git version then recreate the third part now present in the
57895         newer three part flavor of git describe.
57896
57897 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57898
57899         * lib/fts.c (fts_build): Typo correction to comment.
57900
57901 2008-02-17  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57904         generating no-op conflicts.
57905
57906 2008-02-17  Bruno Haible  <bruno@clisp.org>
57907
57908         Speed up by 10%.
57909         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57910         result_entries, rather than an index-based loop.
57911
57912 2008-02-17  Bruno Haible  <bruno@clisp.org>
57913
57914         Speed up by 25%.
57915         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57916         'hashcode_cached'.
57917         (entry_create): New function.
57918         (entry_hashcode): Use the cached hashcode if possible.
57919         (read_changelog_file, try_split_merged_entry): Use entry_create.
57920
57921 2008-02-17  Bruno Haible  <bruno@clisp.org>
57922
57923         Speed up from O(n^2) to O(n) for long ChangeLog files.
57924         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57925         (read_changelog_file): Change implementation of entries_reversed list
57926         to rbtreehash.
57927         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57928
57929 2008-02-17  Bruno Haible  <bruno@clisp.org>
57930
57931         New option --split-merged-entry.
57932         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57933         (find_paragraph_end, try_split_merged_entry): New functions.
57934         (long_options): Add option --split-merged-entry.
57935         (usage): Document option --split-merged-entry.
57936         (main): Implement option --split-merged-entry.
57937         Reported by Eric Blake.
57938
57939 2008-02-17  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/git-merge-changelog.c: Include c-strstr.h.
57942         (main): Support the "git pull --rebase" situation.
57943         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57944         Reported by Eric Blake.
57945
57946 2008-02-16  Eric Blake  <ebb9@byu.net>
57947
57948         Avoid doubling \ in common case of "c-maybe" quoting style.
57949         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57950         eliding outer quotes.
57951         * lib/quotearg.h: Document this.
57952         * tests/test-quotearg.c (result_strings, inputs, results_g)
57953         (flag_results, locale_results): Test it by adding a new string to
57954         each test group.
57955         (compare_strings): Test new string.
57956
57957 2008-02-13  Eric Blake  <ebb9@byu.net>
57958
57959         Avoid trigraph quoting in default output.
57960         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57961         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57962         unless explicitly requested.
57963         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57964
57965 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57966
57967         Don't rely on signed integer overflowing to negative value.
57968         * lib/getugroups.c (getugroups): Include <limits.h>.
57969         Instead, compare against INT_MAX, and increment only if the test passes.
57970
57971 2008-02-13  Jim Meyering  <meyering@redhat.com>
57972         and Eric Blake  <ebb9@byu.net>
57973
57974         Avoid shadowing warning and compile errors on Linux.
57975         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57976         forwarding macros on Linux.
57977         (dcgettext): Define a stub, for Linux.
57978         (results_g, main): Avoid warnings.
57979
57980 2008-02-12  Eric Blake  <ebb9@byu.net>
57981
57982         Silence warning in last patch.
57983         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57984
57985         Quotearg part 4: add tests, fix c-maybe colon quoting.
57986         * lib/quotearg.h: Improve documentation.
57987         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57988         escapes when adding outer quotes.  When quoting trigraphs, use
57989         valid C notation.  When quoting NUL, omit extra characters if next
57990         character is not digit.  Alter prototype.
57991         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57992         callers.
57993         * modules/quotearg-tests: New module.
57994         * tests/test-quotearg.c: New test.
57995
57996 2008-02-07  Eric Blake  <ebb9@byu.net>
57997
57998         Quotearg part 3: add flag to control outer quote elision.
57999         * lib/quotearg.h (c_maybe_quoting_style): New style.
58000         (enum quoting_flags): Better documentation of flags.
58001         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58002         c-maybe style.
58003         (quotearg_buffer_restyled): Handle new flag to elide outer
58004         quotes.
58005
58006         Quotearg part 2: add flag that can control NUL elision.
58007         * lib/quotearg.h (set_quoting_flags): New prototype.
58008         * lib/quotearg.c (struct quoting_options): Add flag field.
58009         (set_quoting_flags): New function.
58010         (quotearg_buffer_restyled): Add flags parameter.
58011         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58012         (quotearg_n_options): Set the flag, since length cannot be
58013         returned.
58014         (quoting_options_from_style): Default flags correctly.
58015
58016         Quotearg part 1: more wrappers, restore quotearg_char state.
58017         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58018         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58019         (quotearg_colon_mem): New wrappers.
58020         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58021         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58022         functions.
58023         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58024         (quotearg_colon_mem): New functions.
58025
58026 2008-02-11  Bruno Haible  <bruno@clisp.org>
58027
58028         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58029         library in the current directory: it does not work with parallel make.
58030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58031
58032 2008-02-11  Bruno Haible  <bruno@clisp.org>
58033
58034         * .gitattributes: New file.
58035
58036 2008-02-11  Jim Meyering  <meyering@redhat.com>
58037
58038         useless-if-before-free: Fix reversed exit values.
58039         * build-aux/useless-if-before-free: Use correct values
58040         for EXIT_MATCH and EXIT_NO_MATCH.
58041
58042         * build-aux/useless-if-before-free: Close stdout carefully.
58043
58044 2008-02-10  Bruno Haible  <bruno@clisp.org>
58045
58046         New module 'git-merge-changelog'.
58047         * modules/git-merge-changelog: New file.
58048         * lib/git-merge-changelog.c: New file.
58049
58050 2008-02-10  Jim Meyering  <meyering@redhat.com>
58051
58052         useless-if-before-free: New option: --list (-l).
58053
58054         useless-if-before-free: Don't exit immediately upon open failure.
58055         * build-aux/useless-if-before-free: Exit 2 for errors.
58056         Upon failure to open a file, don't exit immediately.
58057         Rather, just warn and continue with any remaining files.
58058
58059 2008-02-10  Bruno Haible  <bruno@clisp.org>
58060
58061         New abstract list operation 'node_set_value'.
58062         * lib/gl_list.h (gl_list_node_set_value): New function.
58063         (struct gl_list_implementation): New field node_set_value.
58064         * lib/gl_list.c (gl_list_node_set_value): New function.
58065         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58066         (gl_array_list_implementation): Update.
58067         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58068         (gl_carray_list_implementation): Update.
58069         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58070         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58071         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58072         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58073         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58074         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58075         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58076         Update.
58077         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58078         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58079         (gl_sublist_list_implementation): Update.
58080
58081 2008-02-10  Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58084         Needed when ELEMENT is #defined to 'some_type *'.
58085
58086 2008-02-10  Jim Meyering  <meyering@redhat.com>
58087
58088         New script and module: useless-if-before-free
58089         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58090         * build-aux/useless-if-before-free: New file.
58091         * modules/useless-if-before-free: New file.
58092
58093         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58094
58095         xstrtol_error: Fix typo.
58096         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58097         s/exit_failure/exit_status/.
58098
58099 2008-02-09  Jim Meyering  <meyering@redhat.com>
58100
58101         New script and module: gitlog-to-changelog
58102         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58103         * modules/gitlog-to-changelog: New file.
58104         * build-aux/gitlog-to-changelog: New file.
58105
58106 2008-02-08  Jim Meyering  <meyering@redhat.com>
58107
58108         Avoid two "parameter unused" warnings.
58109         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58110         Mark "st" as used.
58111
58112         Use "git COMMAND", not "git-COMMAND".
58113         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58114         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58115         * build-aux/git-version-gen: Use "git status", not "git-status".
58116
58117 2008-02-07  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58120         Avoids a crash on Windows Vista.
58121         Reported by Adam Strzelecki <ono@java.pl> via
58122         Simon Josefsson <simon@josefsson.org>.
58123
58124 2008-02-06  Bruno Haible  <bruno@clisp.org>
58125
58126         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58127         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58128         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58130         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58132         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58133         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58135         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58138         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58141         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58142         left-adjust flag.
58143         * tests/test-snprintf-posix.h (test_function): Likewise.
58144         * tests/test-sprintf-posix.h (test_function): Likewise.
58145         * tests/test-vasprintf-posix.c (test_function): Likewise.
58146         * doc/posix-functions/fprintf.texi: Update.
58147         * doc/posix-functions/printf.texi: Update.
58148         * doc/posix-functions/snprintf.texi: Update.
58149         * doc/posix-functions/sprintf.texi: Update.
58150         * doc/posix-functions/vfprintf.texi: Update.
58151         * doc/posix-functions/vprintf.texi: Update.
58152         * doc/posix-functions/vsnprintf.texi: Update.
58153         * doc/posix-functions/vsprintf.texi: Update.
58154         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58155
58156 2008-02-06  Bruno Haible  <bruno@clisp.org>
58157
58158         Fix bug introduced on 2008-01-26.
58159         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58160
58161 2008-02-06  Bruno Haible  <bruno@clisp.org>
58162
58163         Fix bug introduced on 2007-06-10.
58164         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58165         !NEED_PRINTF_FLAG_ZERO.
58166
58167 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58168
58169         getloadavg: use libperfstat on AIX5
58170         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58171
58172 2008-02-03  Bruno Haible  <bruno@clisp.org>
58173
58174         * lib/diffseq.h: Add comments about required #includes.
58175         Reported by Michael Biggs <gnulib@doubleplum.net>.
58176
58177 2008-02-01  Bruno Haible  <bruno@clisp.org>
58178
58179         * users.txt: Add gnuit.
58180
58181 2008-01-31  Bruno Haible  <bruno@clisp.org>
58182
58183         * lib/md4.c (set_uint32): Mark as inline.
58184         * lib/md5.c (set_uint32): Likewise.
58185         * lib/sha1.c (set_uint32): Likewise.
58186         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58187         * m4/md5.m4 (gl_MD5): Likewise.
58188         * m4/sha1.m4 (gl_SHA1): Likewise.
58189
58190 2008-01-31  Jim Meyering  <meyering@redhat.com>
58191
58192         Use "sizeof VAR", rather than a literal "4".
58193         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58194         * lib/md4.c (md4_read_ctx): Likewise.
58195         * lib/sha1.c (sha1_read_ctx): Likewise.
58196
58197 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58198
58199         * tests/test-sha1.c: New file, based on test-md5.c.
58200
58201         * modules/crypto/sha1-tests: New file.
58202
58203 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58204
58205         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58206
58207 2008-01-31  Jim Meyering  <meyering@redhat.com>
58208
58209         Prefer "sizeof v" over the equivalent "4".
58210         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58211         * lib/md5.c (set_uint32): Likewise.
58212         * lib/sha1.c (set_uint32): Likewise.
58213
58214 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58215
58216         * lib/sha1.c (set_uint32): Mark function as static.
58217
58218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58219
58220         md2: clarify comments to say that alignment is not required.
58221         * lib/md2.h: Remove warning about alignment in comment.
58222         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58223         never been required.
58224
58225 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58226
58227         md4: adapt alignment constraint fix from sha1.
58228         * lib/md4.c (set_uint32): New function, from sha1.c
58229         (md4_read_ctx): Use it.
58230         (md4_finish_ctx): Doc fix.
58231         * lib/md4.h: Doc fix.
58232
58233 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58234
58235         md5: adapt alignment constraint fix from sha1.
58236         * lib/md5.c (set_uint32): New function, from sha1.c
58237         (md5_read_ctx): Use it.
58238         (md5_finish_ctx): Doc fix.
58239         * lib/md5.h: Doc fix.
58240
58241 2008-01-30  Peter Palfrader  <weasel@debian.org>
58242
58243         sha1: remove the result buffer alignment constraint
58244         * lib/sha1.c (set_uint32): New function.
58245         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58246         constraint.
58247         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58248         * lib/sha1.h: Likewise.
58249
58250 2008-01-30  Andreas Schwab  <schwab@suse.de>
58251             Bruno Haible  <bruno@clisp.org>
58252
58253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58254         correct definition of LDBL_MIN_EXP.
58255
58256 2008-01-30  Karl Berry  <karl@gnu.org>
58257
58258         * config/srclist-update: try to preserve x bit on updates.
58259         * config/srclistvars.sh: update for karl.
58260
58261 2008-01-29  Jim Meyering  <meyering@redhat.com>
58262
58263         vasnprintf.c: Avoid warning about unused label
58264         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58265         "overflow" label definition and associated code with the
58266         same cpp condition that guards the sole use of that label.
58267
58268 2008-01-26  Bruno Haible  <bruno@clisp.org>
58269
58270         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58271         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58272         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58273         * lib/isnanl-nolibm.h (isnanl): Likewise.
58274         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58275
58276 2008-01-26  Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58279         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58280
58281 2008-01-26  Bruno Haible  <bruno@clisp.org>
58282
58283         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58284         GCC >= 4.0 built-in.
58285         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58286
58287 2008-01-26  Bruno Haible  <bruno@clisp.org>
58288
58289         Rename isnan, applicable to 'double' only, to isnand.
58290         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58291         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58292         (configure.ac): Update.
58293         (Include): Replace "isnan.h" with "isnand.h".
58294         * m4/isnand.m4: Renamed from m4/isnan.m4.
58295         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58296         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58297         instead of isnan.c.
58298         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58299         instead of HAVE_ISNAN_IN_LIBC.
58300         (isnand): Renamed from isnan.
58301         * lib/isnand.c: New file.
58302         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58303         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58304         (Makefile.am): Update.
58305         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58306         Include isnand.h instead of isnan.h.
58307         (main): Test isnand instead of isnan.
58308         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58309         isnan-nolibm.
58310         * modules/frexp (Depends-on): Likewise.
58311         * modules/frexp-tests (Depends-on): Likewise.
58312         * modules/frexp-nolibm (Depends-on): Likewise.
58313         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58314         * modules/isfinite (Depends-on): Likewise.
58315         * modules/round-tests (Depends-on): Likewise.
58316         * modules/signbit (Depends-on): Likewise.
58317         * modules/signbit-tests (Depends-on): Likewise.
58318         * modules/snprintf-posix (Depends-on): Likewise.
58319         * modules/sprintf-posix (Depends-on): Likewise.
58320         * modules/trunc-tests (Depends-on): Likewise.
58321         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58322         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58323         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58324         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58325         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58326         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58327         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58328         * modules/vasnprintf-posix (Depends-on): Likewise.
58329         * modules/vasprintf-posix (Depends-on): Likewise.
58330         * modules/vfprintf-posix (Depends-on): Likewise.
58331         * modules/vsnprintf-posix (Depends-on): Likewise.
58332         * modules/vsprintf-posix (Depends-on): Likewise.
58333         * lib/frexp.c: Include isnand.h instead of isnan.h.
58334         (ISNAN): Set to isnand instead of isnan.
58335         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58336         (gl_isfinited): Use isnand instead of isnan.
58337         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58338         (gl_signbitd): Use isnand instead of isnan.
58339         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58340         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58341         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58342         (main): Use isnand instead of isnan.
58343         * tests/test-round1.c: Include isnand.h.
58344         (main): Use isnand instead of isnan.
58345         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58346         (ISNAN): Set to isnand instead of isnan.
58347         * tests/test-trunc1.c: Include isnand.h.
58348         (main): Use isnand instead of isnan.
58349         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58350         (equal): Use isnand instead of isnan.
58351         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58352         isnand-nolibm.
58353         * NEWS: Mention the change.
58354
58355 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58356             Bruno Haible  <bruno@clisp.org>
58357
58358         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58359         the GCC builtins for signbits are present and set
58360         REPLACE_SIGNBIT_USING_GCC if so.
58361         * lib/math.in.h (signbit): Define using GCC builtins if
58362         REPLACE_SIGNBIT_USING_GCC is set.
58363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58364         REPLACE_SIGNBIT_USING_GCC.
58365         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58366
58367 2008-01-25  Jim Meyering  <meyering@redhat.com>
58368
58369         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58370         * lib/poll.c: Include <config.h>, not "config.h".
58371         * tests/test-getaddrinfo.c: Likewise.
58372
58373 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58374
58375         * modules/sockets-tests: New file.
58376
58377 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58378
58379         * modules/sockets: New module, can be used to call WSA_Startup and
58380         WSA_Cleanup when needed.
58381
58382         * lib/sockets.h, lib/sockets.c: New files.
58383
58384         * m4/sockets.m4: New file.
58385
58386         * tests/test-sockets.c: New file.
58387
58388 2008-01-19  Bruno Haible  <bruno@clisp.org>
58389
58390         * doc/posix-headers: Renamed from doc/headers.
58391         * doc/posix-functions: Renamed from doc/functions.
58392         * doc/gnulib.texi: Update.
58393
58394 2008-01-19  Bruno Haible  <bruno@clisp.org>
58395
58396         * doc/glibc-functions/strcasestr.texi: Include contents of
58397         doc/functions/strcasestr.texi, fixing the list of platforms.
58398         * doc/functions/strcasestr.texi: Remove file.
58399
58400 2008-01-19  Bruno Haible  <bruno@clisp.org>
58401
58402         * doc/glibc-functions/memmem.texi: Include contents of
58403         doc/functions/memmem.texi.
58404         * doc/functions/memmem.texi: Remove file.
58405
58406 2008-01-18  Bruno Haible  <bruno@clisp.org>
58407
58408         * doc/glibc-functions/*.texi: New files.
58409         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58410         to use the new files.
58411
58412 2008-01-17  Bruno Haible  <bruno@clisp.org>
58413
58414         * tests/test-gethostname.c (main): Fix printf statement.
58415
58416 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58417
58418         * modules/gethostname-tests: New file.
58419
58420         * tests/test-gethostname.c: New file.
58421
58422 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58423
58424         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58425         used by the UNAME case.  Reported by Bruno Haible
58426         <bruno@clisp.org>.
58427
58428 2008-01-17  Eric Blake  <ebb9@byu.net>
58429
58430         Convert c-strcasestr to be more efficient.
58431         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58432         (Depends-on): Add c-strcase, remove malloca, strnlen.
58433         * tests/test-c-strcasestr.c (main): Enhance test.
58434         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58435
58436 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58437
58438         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58439         Use it in creating po/Makevars.
58440
58441 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58442
58443         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58444         Applications that requires it should initialize libgcrypt
58445         manually.
58446
58447 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58448
58449         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58450
58451 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         Fix problem with getdate on mingw32 reported by Simon Josefsson
58454         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58455         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58456         tzname", when deciding whether to declare tzname.
58457         * lib/strftime.c (tzname): Likewise.
58458
58459 2008-01-15  Bruno Haible  <bruno@clisp.org>
58460
58461         Work around a MacOS X 10.5 bug in frexpl().
58462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58463         * doc/functions/frexpl.texi: Document the bug.
58464         Reported by Elias Pipping <pipping@gentoo.org>.
58465
58466 2008-01-14  Eric Blake  <ebb9@byu.net>
58467
58468         Touch up previous patch.
58469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58470         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58471
58472         Convert strcasestr module to use Two-Way algorithm.
58473         * modules/strcasestr-simple: New module, based on the old
58474         strcasestr, but with Two-Way rather than KMP.
58475         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58476         * lib/string.in.h (rpl_strcasestr): Declare.
58477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58478         performance.
58479         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58480         * modules/string (Makefile.am): Support strcasestr.
58481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58482         * modules/strcasestr-tests (Depends-on): Check for alarm.
58483         * tests/test-strcasestr.c: Augment test.
58484         * lib/str-two-way.h: Clean up stray macro.
58485         * NEWS: Document new module.
58486         * MODULES.html.sh (string handling): Likewise.
58487         * doc/functions/strcasestr.texi: New file.
58488         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58489         here, since it is not a POSIX function.
58490
58491 2008-01-14  Colin Watson  <cjwatson@debian.org>
58492             Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58495         works fine; if not, set REPLACE_STRSIGNAL.
58496         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58498         REPLACE_STRSIGNAL.
58499         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58500         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58501         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58502
58503 2008-01-14  Bruno Haible  <bruno@clisp.org>
58504
58505         * modules/strsignal (Include): Change to <string.h>.
58506
58507 2008-01-14  Colin Watson  <cjwatson@debian.org>
58508
58509         * modules/argp (Notice): Add a notice recommending to change
58510         XGETTEXT_OPTIONS.
58511         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58512
58513 2008-01-13  Colin Watson  <cjwatson@debian.org>
58514
58515         * modules/strsignal-tests: New file.
58516         * tests/test-strsignal.c: New file.
58517
58518         * lib/strsignal.c: New file, from glibc with modifications.
58519         * lib/siglist.h: New file, from glibc with modifications.
58520         * lib/string.in.h (strsignal): New declaration.
58521         * m4/strsignal.m4: New file.
58522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58523         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58524         * modules/strsignal: New file.
58525         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58526         HAVE_DECL_STRSIGNAL.
58527
58528 2008-01-13  Bruno Haible  <bruno@clisp.org>
58529
58530         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58531         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58534
58535 2008-01-13  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58538         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58539         * lib/argp.h (__attribute__): Likewise.
58540         * lib/c-stack.c (__attribute__): Likewise.
58541         * lib/error.h (__attribute__): Likewise.
58542         * lib/fts.c (__attribute__): Likewise.
58543         * lib/openat.h (__attribute__): Likewise.
58544         * lib/stdio.in.h (__attribute__): Likewise.
58545         * lib/string.in.h (__attribute__): Likewise.
58546         * lib/utimens.c (__attribute__): Likewise.
58547         * lib/vasnprintf.h (__attribute__): Likewise.
58548         * lib/xalloc.h (__attribute__): Likewise.
58549         * lib/xprintf.h (__attribute__): Likewise.
58550         * lib/xstrtol.h (__attribute__): Likewise.
58551         * lib/xvasprintf.h (__attribute__): Likewise.
58552
58553 2008-01-12  Bruno Haible  <bruno@clisp.org>
58554
58555         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58556         * doc/glibc-headers/a.out.texi: New file.
58557         * doc/glibc-headers/aliases.texi: New file.
58558         * doc/glibc-headers/alloca.texi: New file.
58559         * doc/glibc-headers/ar.texi: New file.
58560         * doc/glibc-headers/argp.texi: New file.
58561         * doc/glibc-headers/argz.texi: New file.
58562         * doc/glibc-headers/byteswap.texi: New file.
58563         * doc/glibc-headers/crypt.texi: New file.
58564         * doc/glibc-headers/endian.texi: New file.
58565         * doc/glibc-headers/envz.texi: New file.
58566         * doc/glibc-headers/err.texi: New file.
58567         * doc/glibc-headers/error.texi: New file.
58568         * doc/glibc-headers/execinfo.texi: New file.
58569         * doc/glibc-headers/fpu_control.texi: New file.
58570         * doc/glibc-headers/fstab.texi: New file.
58571         * doc/glibc-headers/fts.texi: New file.
58572         * doc/glibc-headers/getopt.texi: New file.
58573         * doc/glibc-headers/ieee754.texi: New file.
58574         * doc/glibc-headers/ifaddrs.texi: New file.
58575         * doc/glibc-headers/libintl.texi: New file.
58576         * doc/glibc-headers/mcheck.texi: New file.
58577         * doc/glibc-headers/mntent.texi: New file.
58578         * doc/glibc-headers/obstack.texi: New file.
58579         * doc/glibc-headers/paths.texi: New file.
58580         * doc/glibc-headers/printf.texi: New file.
58581         * doc/glibc-headers/pty.texi: New file.
58582         * doc/glibc-headers/resolv.texi: New file.
58583         * doc/glibc-headers/shadow.texi: New file.
58584         * doc/glibc-headers/sysexits.texi: New file.
58585         * doc/glibc-headers/ttyent.texi: New file.
58586
58587 2008-01-12  Jim Meyering  <meyering@redhat.com>
58588
58589         announce-gen: emit Gnulib's git-based version string.
58590         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58591         New option --gnulib-version=V, where V is expected to be
58592         the output of running git describe in the gnulib directory.
58593         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58594         not useful, and plan to stop publishing an xdelta file with each
58595         coreutils release.
58596
58597         * build-aux/announce-gen: Also check for lzma-compressed files.
58598
58599 2008-01-11  Bruno Haible  <bruno@clisp.org>
58600
58601         * tests/test-memmem.c (main): Increase maximum allowed time.
58602         * tests/test-strstr.c (main): Likewise.
58603
58604 2008-01-11  Bruno Haible  <bruno@clisp.org>
58605
58606         * doc/functions/memmem.texi: Add more precisions about platforms.
58607         * doc/functions/strstr.texi: Likewise.
58608
58609 2008-01-10  Eric Blake  <ebb9@byu.net>
58610
58611         * m4/strstr.m4: Delete cruft from copy-n-paste.
58612         Reported by Bruno Haible.
58613
58614 2008-01-10  Bruno Haible  <bruno@clisp.org>
58615
58616         Make c-strstr rely on strstr.
58617         * lib/c-strstr.c: Don't include str-kmp.h.
58618         (c_strstr): Define in terms of strstr.
58619         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58620         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58621
58622 2008-01-10  Bruno Haible  <bruno@clisp.org>
58623
58624         * doc/gnulib.texi (String Functions in C Locale): New section.
58625         * doc/c-ctype.texi: New file.
58626         * doc/c-strcase.texi: New file.
58627         * doc/c-strcaseeq.texi: New file.
58628         * doc/c-strcasestr.texi: New file.
58629         * doc/c-strstr.texi: New file.
58630         * doc/c-strtod.texi: New file.
58631         * doc/c-strtold.texi: New file.
58632
58633 2008-01-10  Eric Blake  <ebb9@byu.net>
58634
58635         * lib/relocatable.h: Fix a comment.
58636
58637 2008-01-10  Eric Blake  <ebb9@byu.net>
58638
58639         Share two-way algorithm.
58640         * lib/str-two-way.h: New file, merged from...
58641         * lib/memmem.c: ...here...
58642         * lib/strstr.c: ...and here.
58643         * modules/memmem (Files): Use it.
58644         * modules/strstr (Files): Likewise.
58645
58646         Avoid quadratic strstr implementations.
58647         * lib/strstr.c: New file.
58648         * m4/strstr.m4: Likewise.
58649         * modules/strstr: Likewise.
58650         * modules/strstr-tests: Likewise.
58651         * tests/test-strstr.c: Likewise.
58652         * lib/string.in.h (rpl_strstr): Declare.
58653         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58654         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58655         * modules/string (Makefile.am): Likewise.
58656         * MODULES.html.sh (string handling): Mention new module.
58657         * doc/functions/strstr.texi (strstr): Document the bug.
58658
58659 2008-01-10  Bruno Haible  <bruno@clisp.org>
58660
58661         * lib/relocatable.h (relocate): State whether result is freshly
58662         allocated or not.
58663         * lib/relocatable.c (relocate): Return a freshly allocated string
58664         instead of a pointer to a privately held string.
58665         Reported by Sylvain Beucler <beuc@gnu.org>.
58666
58667 2008-01-10  Colin Watson  <cjwatson@debian.org>
58668
58669         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58670         s/S_ISNLK/S_ISLNK/.
58671
58672 2008-01-09  Bruno Haible  <bruno@clisp.org>
58673
58674         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58675         and other files.
58676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58677         if it's only a guess.
58678         * modules/memmem: Simplify by depending on memmem-simple.
58679
58680 2008-01-09  Bruno Haible  <bruno@clisp.org>
58681
58682         Work around OpenBSD 4.0 tdelete() bug.
58683         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58684         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58685         macros and don't redefine the enum values.
58686         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58687         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58688         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58689
58690 2008-01-09  Bruno Haible  <bruno@clisp.org>
58691
58692         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58693         (main): Don't perform the tests if setlocale did not install a UTF-8
58694         locale. Needed on OpenBSD 4.0.
58695         * modules/wcwidth-tests (Depends-on): Add localcharset.
58696
58697 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58698
58699         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58700         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58701         * NEWS: announce this.
58702         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58703
58704 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58705         and Eric Blake  <ebb9@byu.net>
58706
58707         Add memmem-simple module.
58708         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58709         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58710         * modules/memmem-simple: New file.
58711         * modules/memmem (Description): Tweak.
58712         * MODULES.html.sh (string handling): Mention new module.
58713         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58714         addressed by memmem-simple.
58715         * NEWS: Document the difference.
58716
58717 2008-01-09  Eric Blake  <ebb9@byu.net>
58718
58719         Give gcc some memmem optimization hints.
58720         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58721         (strcasestr): Declare as pure.
58722         * modules/memmem (Maintainer): Claim my implementation.
58723
58724 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58725
58726         Support AIX 6.1 and higher.
58727         * build-aux/config.libpath: Likewise.
58728         * build-aux/config.rpath: Likewise.
58729
58730 2008-01-08  Jim Meyering  <meyering@redhat.com>
58731             Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58734         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58735         Reported by Peter Fales in
58736         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58737
58738 2008-01-08  Bruno Haible  <bruno@clisp.org>
58739
58740         * modules/unictype/category-of (Depends-on): Add
58741         unictype/category-none.
58742         * modules/unictype/category-and-tests (Depends-on): Add
58743         unictype/category-{L,N,Lu,Nd}.
58744         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58745         * modules/unictype/category-or-tests (Depends-on): Add
58746         unictype/category-{L,N}.
58747         * modules/unictype/category-name-tests (Depends-on): Add
58748         unictype/category-{Z,Nl}.
58749         Reported by Simon Josefsson.
58750
58751 2008-01-08  Bruno Haible  <bruno@clisp.org>
58752
58753         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58754         convention better.
58755         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58756         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58757         Reported by Peter Miller <millerp@canb.auug.org.au>.
58758
58759 2008-01-08  Eric Blake  <ebb9@byu.net>
58760
58761         Rewrite memmem to guarantee linear complexity without malloc.
58762         * lib/memmem.c (memmem): Use Two-Way rather than
58763         Knuth-Morris-Pratt, to allow O(1) space usage.
58764         (critical_factorization, two_way_short_needle)
58765         (two_way_long_needle): New functions.
58766         (knuth_morris_pratt): Delete.
58767         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58768         Add stdint.
58769         * tests/test-memmem.c (main): Add tests for periodic needle and
58770         sublinear performance.
58771         * doc/functions/memmem.texi (memmem): Document other deficiencies
58772         in cygwin and older glibc.
58773
58774 2008-01-08  Bruno Haible  <bruno@clisp.org>
58775
58776         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58777         augmentation.
58778
58779 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58780
58781         Add a configure time option: --disable-acl.
58782         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58783         AC_ARG_ENABLE(acl).
58784
58785 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58786
58787         * tests/test-localename.c: Don't include obsolete "setenv.h".
58788
58789         * modules/localename-tests (Depends-on): Need unsetenv.
58790
58791 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58792
58793         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58794
58795 2008-01-06  Colin Watson  <cjwatson@debian.org>
58796
58797         * users.txt: Add man-db.
58798
58799 2008-01-07  Bruno Haible  <bruno@clisp.org>
58800
58801         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58802         previous section name.
58803
58804 2008-01-07  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/progname.c (set_program_name): Don't strip off a leading
58807         "lt-" prefix outside a .libs directory.
58808         Suggested by Paul Eggert.
58809
58810 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58811             Bruno Haible  <bruno@clisp.org>
58812
58813         Improve memory cleanup in 'relocatable' module.
58814         * lib/relocatable.h (compute_curr_prefix): Change return type to
58815         'char *'.
58816         * lib/relocatable.c (compute_curr_prefix): Change return type to
58817         'char *'. Free curr_installdir after use.
58818         (relocate): Free curr_prefix_better after use.
58819         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58820
58821 2008-01-01  Bruno Haible  <bruno@clisp.org>
58822
58823         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58824         failure on older glibc systems.
58825         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58826
58827 2008-01-05  Eric Blake  <ebb9@byu.net>
58828
58829         Avoid quadratic system memmem.
58830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58831         Reported by Ralf Wildenhues.
58832
58833         Fix memmem test for mingw.
58834         * modules/memmem-tests (configure.ac): Check for alarm.
58835         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58836         it.
58837         * doc/functions/memmem.texi: New file.
58838         * doc/gnulib.texi (Function Substitutes): Add memmem.
58839         Reported by Bruno Haible.
58840
58841 2008-01-04  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58844         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58845         gl_HEADER_STRING_H_DEFAULTS.
58846
58847 2008-01-04  Eric Blake  <ebb9@byu.net>
58848
58849         Shorten duration of memmem test.
58850         * tests/test-memmem.c (main): Use alarm to declare failure if test
58851         is taking too long.
58852         Reported by Ralf Wildenhues.
58853
58854 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58855
58856         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58857         string, needed by strerror.
58858
58859 2008-01-03  Colin Watson  <cjwatson@debian.org>
58860             Bruno Haible  <bruno@clisp.org>
58861
58862         * doc/gnulib-tool.texi (Localization): New section.
58863
58864 2008-01-02  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58867         variables to 'unsigned char *' type.
58868         Reported by Paul Eggert.
58869
58870 2008-01-02  Jim Meyering  <jim@meyering.net>
58871
58872         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58873
58874 2007-12-31  Jim Meyering  <jim@meyering.net>
58875
58876         Avoid use of private FTS type name.
58877         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58878
58879 2007-12-30  Karl Berry  <karl@gnu.org>
58880
58881         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58882         work around defect in Texinfo and/or the standalone Info browser.
58883
58884 2007-12-30  Bruno Haible  <bruno@clisp.org>
58885
58886         Unify 5 copies of the KMP code.
58887         * lib/str-kmp.h: New file.
58888         * lib/c-strcasestr.c: Include str-kmp.h.
58889         (knuth_morris_pratt): Remove function.
58890         (c_strcasestr): Update.
58891         * lib/c-strstr.c: Include str-kmp.h.
58892         (knuth_morris_pratt): Remove function.
58893         (c_strcasestr): Update.
58894         * lib/mbscasestr.c: Include str-kmp.h.
58895         (knuth_morris_pratt_unibyte): Remove function.
58896         * lib/mbsstr.c: Include str-kmp.h.
58897         (knuth_morris_pratt_unibyte): Remove function.
58898         * lib/strcasestr.c: Include str-kmp.h.
58899         (knuth_morris_pratt): Remove function.
58900         (strcasestr): Update.
58901         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58902         * modules/c-strstr (Files): Likewise.
58903         * modules/mbscasestr (Files): Likewise.
58904         * modules/mbsstr (Files): Likewise.
58905         * modules/strcasestr (Files): Likewise.
58906         Suggested by Paul Eggert.
58907
58908 2007-12-30  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58911         defined.
58912
58913 2007-12-30  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/xmalloca.h: Include xalloc.h.
58916         (xnmalloca): New macro.
58917
58918 2007-12-30  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/malloca.h (nmalloca): New macro.
58921         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58922         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58923         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58924         knuth_morris_pratt_multibyte): Likewise.
58925         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58926         knuth_morris_pratt_multibyte): Likewise.
58927         * lib/memmem.c (knuth_morris_pratt): Likewise.
58928         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58929
58930 2007-12-25  Bruno Haible  <bruno@clisp.org>
58931
58932         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58933         * lib/glob.c: Don't include openat.h.
58934         (link_exists2_p): Add back the code that deals with the
58935         !GLOB_ALTDIRFUNC case.
58936         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58937         let it do the filename concatenation.
58938         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58939         * modules/glob (Depends-on): Remove openat.
58940
58941 2007-12-31  Bruno Haible  <bruno@clisp.org>
58942
58943         * modules/dirfd (License): Change to LGPLv2+.
58944         Approved by Jim Meyering.
58945
58946 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58949         when multiplying M by sizeof (size_t).
58950
58951 2007-12-10  Martin Lambers  <marlam@marlam.de>
58952
58953         Override getpagesize on mingw.
58954         * lib/getpagesize.c: New file.
58955         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58956         * modules/getpagesize (Files): Add lib/getpagesize.c.
58957         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58959         REPLACE_GETPAGESIZE.
58960         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58961
58962 2007-12-25  Bruno Haible  <bruno@clisp.org>
58963
58964         * modules/localcharset (Notice): New field.
58965         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58966         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58967
58968 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58969             Bruno Haible  <bruno@clisp.org>
58970
58971         Avoid using the syntax symbol() in formatted documentation.
58972         * MODULES.html.sh (func_module): When replacing symbol() with a
58973         hyperlink, remove the parentheses. Show an error if some remain.
58974         Recognize and render the '...' syntax.
58975         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58976         Rework. Add paragraph about GCC's inlining.
58977         * doc/alloca.texi: Likewise.
58978         * doc/error.texi: Remove parentheses from symbol reference.
58979         * doc/gnulib-intro.texi: Likewise.
58980         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58981         * modules/fnmatch (Description): Reword to say "the ... function".
58982         * modules/full-read (Description): Likewise.
58983         * modules/full-write (Description): Likewise.
58984         * modules/safe-read (Description): Likewise.
58985         * modules/safe-write (Description): Likewise.
58986         * modules/strchrnul (Description): Likewise.
58987         * modules/trim (Description): Likewise.
58988         * modules/error (Description): Remove parentheses from symbol
58989         references.
58990         * modules/verror (Description): Likewise.
58991         Reported by Karl Berry.
58992
58993 2007-12-25  Bruno Haible  <bruno@clisp.org>
58994
58995         Fixup after 2007-10-16 commit.
58996         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58997
58998 2007-12-24  Bruno Haible  <bruno@clisp.org>
58999
59000         Make --enable-relocatable work with DESTDIR.
59001         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59002         to compute installdir from destprog.
59003         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59004         also set the RELOC_DESTDIR variable.
59005         Reported by Левашев Иван <octagram@bluebottle.com>.
59006
59007 2007-12-24  Bruno Haible  <bruno@clisp.org>
59008
59009         Fix link error due to xalloc_die().
59010         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59011         of xreadlink.
59012         * lib/relocwrapper.c: Update comments.
59013         * build-aux/install-reloc: Remove xreadlink.c from file list.
59014         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59015         xreadlink.c.
59016         Reported by Левашев Иван <octagram@bluebottle.com>.
59017
59018 2007-12-24  Bruno Haible  <bruno@clisp.org>
59019
59020         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59021         * lib/setenv.h: Remove file.
59022         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59023         lib/setenv.h.
59024         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59025         (Depends-on): Add stdlib.
59026         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59027         gl_FUNC_UNSETENV.
59028         (Include): Replace setenv.h with <stdlib.h>.
59029         * modules/unsetenv: New file.
59030         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59031         * lib/unsetenv.c: Include <stdlib.h> first.
59032         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59033         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59034         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59035         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59036         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59037         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59039         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59040         * doc/functions/unsetenv.texi: Update.
59041         * modules/xsetenv (Depends-on): Add unsetenv.
59042         * modules/getdate (Depends-on): Likewise.
59043         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59044         * lib/xsetenv.c: Don't include setenv.h.
59045         * lib/getdate.y: Likewise.
59046         * lib/relocwrapper.c: Likewise.
59047         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59048         (Depends-on): Add stdlib.
59049         * NEWS: Mention the changes.
59050         Reported by Левашев Иван <octagram@bluebottle.com>.
59051
59052 2007-12-23  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59055         indentation.
59056
59057 2007-12-23  Bruno Haible  <bruno@clisp.org>
59058
59059         * lib/c-strcasestr.c: Add more comments.
59060         * lib/c-strstr.c: Likewise.
59061         * lib/mbscasestr.c: Likewise.
59062         * lib/mbsstr.c: Likewise.
59063         * lib/strcasestr.c: Likewise.
59064         * lib/memmem.c: Likewise.
59065
59066 2007-12-23  Bruno Haible  <bruno@clisp.org>
59067
59068         * tests/test-memmem.c: Include <string.h> first.
59069
59070 2007-12-22  Bruno Haible  <bruno@clisp.org>
59071
59072         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59073         the contents of $testsbase.
59074         Reported by Ralf Wildenhues.
59075
59076 2007-12-22  Bruno Haible  <bruno@clisp.org>
59077
59078         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59079         two variables local_ldadd_before, local_ldadd_last.
59080
59081 2007-12-20  Eric Blake  <ebb9@byu.net>
59082
59083         Work around circular library issue when cross-compiling.
59084         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59085         that progname.o does not need to pull in rpl_memcmp.
59086
59087 2007-12-19  Eric Blake  <ebb9@byu.net>
59088
59089         Fix memmem to avoid O(n^2) worst-case complexity.
59090         * lib/memmem.c (knuth_morris_pratt): New function.
59091         (memmem): Use it if first few naive iterations fail.
59092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59093         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59094         * modules/memchr (License): Likewise.
59095         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59096         malloca.
59097         * tests/test-memmem.c: Rewrite, borrowing ideas from
59098         test-mbsstr1.c; the old version wouldn't even compile!
59099         * modules/memmem-tests: New file.
59100         * lib/string.in.h (rpl_memmem): Add declaration.
59101         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59103         REPLACE_MEMMEM.
59104
59105 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59106
59107         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59108         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59109         before any system include files, and undef after them all.  This
59110         should fix a problem on VMS reported by John E. Malmberg in
59111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59112
59113 2007-12-17  Eric Blake  <ebb9@byu.net>
59114
59115         Revert addition of verify, for BSD/OS.
59116         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59117         can't handle large files, for the sake of obsolete platforms.
59118         * modules/fseeko (Depends-on): Remove verify.
59119         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59120         * doc/functions/ftello.texi (ftello): Likewise.
59121         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59122         Reported by Larry Jones.
59123
59124 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59125
59126         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59127         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59128
59129 2007-12-17  Jim Meyering  <meyering@redhat.com>
59130
59131         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59132         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59133         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59134         * modules/getcwd (Depends-on): Add openat.
59135         Reported by Petr Salinger.
59136
59137 2007-12-17  Bruno Haible  <bruno@clisp.org>
59138
59139         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59140         avoid a segmentation fault of the configure test on x86_64 systems.
59141
59142 2007-12-15  Jim Meyering  <meyering@redhat.com>
59143
59144         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59145
59146 2007-12-13  Eric Blake  <ebb9@byu.net>
59147
59148         Another fseek test.
59149         * tests/test-fseek.c (main): Also test ungetc handling.
59150         * tests/test-fseeko.c (main): Likewise.
59151         * modules/fseeko (Depends-on): Add verify.
59152         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59153         large.
59154         Reported by Larry Jones.
59155
59156         Fix fseeko on mingw.
59157         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59158         seek.
59159
59160         Beef up fseek tests.
59161         * tests/test-fseek.c (main): Also test eof handling.
59162         * tests/test-fseeko.c (main): Likewise.
59163         Reported by Larry Jones.
59164
59165 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59166
59167         Fix fseeko on BSD-based platforms.
59168         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59169         successful seek.
59170
59171 2007-12-12  Eric Blake  <ebb9@byu.net>
59172
59173         Allow circular dependency of separate libtests.a
59174         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59175         when use_libtests.
59176
59177 2007-12-11  Eric Blake  <ebb9@byu.net>
59178
59179         Fix bug with -0.0L in previous patch.
59180         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59181         * tests/test-isnan.c (main): Also test on zeroes.
59182         * tests/test-isnanf.c (main): Likewise.
59183         * tests/test-isnanl.h (main): Likewise.
59184
59185         Detect pseudo-denormals on x86 even when cross-compiling.
59186         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59187         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59188         invalid bit patterns that happen to satisfy ==.
59189
59190         Avoid link failures with separate libtests.a.
59191         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59192         last, to satisfy circular dependencies.
59193
59194 2007-12-11  Eric Blake  <ebb9@byu.net>
59195         and Bruno Haible  <bruno@clisp.org>
59196
59197         Fix OpenBSD 4.0 <float.h> handling of long double.
59198         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59199         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59200         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59201
59202 2007-12-11  Jim Meyering  <meyering@redhat.com>
59203
59204         * users.txt: Add libvirt.
59205
59206         Support versions of autoconf prior to 2.59c.
59207         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59208         if it is not already defined.
59209
59210 2007-12-09  Bruno Haible  <bruno@clisp.org>
59211
59212         Let 'gnulib-tool --import' collect sources needed for the tests in
59213         tests/ rather than in lib/.
59214         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59215         argument. If true, add rules to generate libtests.a, and put libtests.a
59216         into $(LDADD). Consider source files in subdirectories and set
59217         uses_subdirs.
59218         (func_emit_initmacro_start, func_emit_initmacro_end,
59219         func_emit_initmacro_done): Pass all arguments explicitly.
59220         (func_import): Determine two module lists main_modules,
59221         testsrelated_modules. Determine use_libtests. Determine two variables
59222         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59223         instead of just sed_transform_lib_file. Determine two variables
59224         main_files and testsrelated_files. Compute 'files' as the union of
59225         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59226         func_add_or_update. In the generated gnulib-comp.m4, collect the
59227         object files for tests/ in different variables than those for lib/.
59228         Substitute LIBTESTS_LIBDEPS.
59229         (func_create_testdir): Combine the uses_subdirs results from
59230         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59231
59232 2007-12-09  Bruno Haible  <bruno@clisp.org>
59233
59234         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59235         the build-aux directory.
59236
59237 2007-12-09  Bruno Haible  <bruno@clisp.org>
59238
59239         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59240         introduced on 2006-09-09.
59241
59242 2007-12-07  Jim Meyering  <meyering@redhat.com>
59243
59244         Let these macros work also with autoconf-2.59.
59245         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59246         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59248
59249 2007-12-06  Jim Meyering  <meyering@redhat.com>
59250
59251         Avoid a configure-time syntax error in gl_FUNC_ACL.
59252         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59253         function in each branch, before testing the cache variable.
59254
59255 2007-12-04  Eric Blake  <ebb9@byu.net>
59256
59257         Make scripts executable.
59258         * build-aux/config.guess: Add execute permissions.
59259         * build-aux/config.sub: Likewise.
59260         * build-aux/gendocs.sh: Likewise.
59261
59262         Fix frexp on mingw.
59263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59264         cross-compiling.
59265         * doc/functions/frexp.texi (frexp): Document the bug.
59266
59267         Make cygwin fseeko check more reliable.
59268         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59269         version numbers, rather than unrelated feature check.
59270         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59271         * doc/functions/ftello.texi (ftello): Likewise.
59272         Reported by Bruno Haible.
59273
59274         * m4/strerror.m4: Bump version number.
59275
59276 2007-12-03  Bruno Haible  <bruno@clisp.org>
59277
59278         * doc/functions/mprotect.texi: Mention the mingw problem.
59279
59280 2007-12-03  Eric Blake  <ebb9@byu.net>
59281
59282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59283         REPLACE_STRERROR is initialized before this macro.
59284
59285 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59288         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59289         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59290         put -lsec in even for programs other than 'ls'.  This fixes a problem
59291         for gettext reported by Bruno Haible in
59292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59293         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59294         Add support for Solaris 10.  This isn't efficient, but should get the
59295         job done for now.
59296
59297 2007-12-03  James Youngman  <jay@gnu.org>
59298
59299         * doc/regexprops-generic.texi: change "an close-group" to "a
59300         close-group" and "illegal" to "not allowed".
59301
59302 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59303
59304         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59305         pr_byname.h. Needed for the rare case when the maintainer has done
59306         "make maintainer-clean" in the source directory and then attempts a
59307         build outside the source directory.
59308         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59309         scripts_byname.h.
59310
59311 2007-12-02  Martin Lambers <marlam@marlam.de>
59312             Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/getpagesize.h: Remove file.
59315         * lib/unistd.in.h: Include declaration of getpagesize here.
59316         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59317         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59318         HAVE_SYS_PARAM_H.
59319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59320         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59321         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59322         (Depends-on): Add unistd.
59323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59324         (Include): Use <unistd.h> instead of getpagesize.h.
59325         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59326         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59327         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59328         gl_GETPAGESIZE invocation, already handled by module dependency.
59329         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59330
59331 2007-12-02  Bruno Haible  <bruno@clisp.org>
59332
59333         * modules/strings-tests: New file.
59334         * tests/test-strings.c: New file.
59335
59336         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59337         * lib/strings.in.h: New file.
59338         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59339         * m4/strings_h.m4: New file.
59340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59341         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59342         * modules/strings: New file.
59343         * modules/string (Makefile.am): Update.
59344         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59345         Reported by Karl Berry.
59346
59347 2007-12-01  Eric Blake  <ebb9@byu.net>
59348
59349         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59350         accomodate fix in cygwin 1.5.25.
59351
59352 2007-12-01  Jim Meyering  <meyering@redhat.com>
59353
59354         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59355         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59356         that would inhibit utf8-optimization of a regexp containing line-
59357         or buffer-anchors, e.g., `^', `$'.
59358
59359 2007-11-30  Bruno Haible  <bruno@clisp.org>
59360
59361         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59362         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59363         glthread_recursive_lock_init.
59364         * lib/lock.c (glthread_recursive_lock_init)
59365         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59366         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59367
59368 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         New function qset_acl, like set_acl but with syscall semantics.
59371         * lib/acl.h (qset_acl): New decl.
59372         * lib/acl.c (qset_acl): New function.
59373         (set_acl): Use new function.  Use more-consistent diagnostics.
59374
59375 2007-11-28  Jim Meyering  <meyering@redhat.com>
59376
59377         * modules/physmem (License): Change from GPL to LGPLv2+.
59378
59379 2007-11-26  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59382         'long double' type has excess precision.
59383         Reported by Jim Meyering in
59384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59385
59386 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59387
59388         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59389         Sync from <http://gnu.org/licenses>.
59390         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59391         with license text from same location.
59392         * doc/maintain.texi, doc/standards.texi:  Sync from
59393         <http://savannah.gnu.org/projects/gnustandards>.
59394
59395 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59396         and Jim Meyering  <meyering@redhat.com>
59397
59398         Adjust getdate' grammar to accept a slightly more regular language.
59399         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59400         Before, the former was rejected.
59401         * lib/getdate.y (digits_to_date_time): New function, factored
59402         out of ...
59403         (number): ...here.  Just call digits_to_date_time.
59404         (hybrid): New non-terminal to handle an <unsigned number,
59405         signed relative offset> sequence consistently.
59406
59407 2007-11-18  Jim Meyering  <meyering@redhat.com>
59408
59409         Pull my changes from coreutils:
59410         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59411         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59412         use of $gnulib_tool_option_extras, so that it's separated from the
59413         preceding argument.
59414
59415         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59416         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59417         parent destination directories before copying a file into place.
59418
59419 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59420
59421         bootstrap: work also with 4-argument variant of AC_INIT
59422         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59423
59424 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         Port test-getaddrinfo to Solaris.
59427         Problem reported by Bruno Haible in
59428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59429         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59430         explanation of setting 'hints'.
59431         Don't reject an implementation merely because it returns EAI_SERVICE.
59432         (EAI_SERVICE): Define to 0 if not defined.
59433
59434 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59435
59436         The license of gnu-make and posix-shell is now "GPLed build tool".
59437         * modules/gnu-make (License): Likewise.
59438         * modules/posix-shell (License): Likewise.
59439
59440         New module posix-shell, for determining a POSIX shell
59441         or perhaps something that is close enough to a POSIX shell.
59442         * m4/posix-shell.m4: New file.
59443         * modules/posix-shell: New file.
59444
59445         * MODULES.html.sh: Mention new module.
59446
59447         New module gnu-make, for determining whether we're using GNU Make.
59448         * m4/gnu-make.m4: New file.
59449         * modules/gnu-make: New file.
59450         * MODULES.html.sh: Mention new module.
59451
59452 2007-11-14  Jim Meyering  <meyering@redhat.com>
59453
59454         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59455         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59456         use this macro to create a function _definition_.
59457         Remove useless "#undef ARGMATCH_DIE".
59458
59459 2007-11-14  Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/config.charset: Update for OpenBSD 4.1.
59462         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59463
59464 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         Document 64-bit #if problems in stdint.texi.
59467         * doc/headers/stdint.texi (stdint.h): Mention problems with
59468         64-bit-#if, and how to work around them.
59469
59470         Don't insist on 'long long int' support in the preprocessor.  It
59471         breaks too many things.  For example, PRIdMAX still uses a 'long
59472         long int' format with the latest Sun compiler, even though
59473         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59474         preprocessor problem.  This causes the latest coreutils to dump
59475         core on Solaris 10 sparc with the Sun C compiler.
59476         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59477         the troublesome expressions at configure-time, not at #if-time.
59478         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59479         preprocessor.
59480         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59481         compile-time C checks, done at 'configure'-time.
59482         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59483         * modules/inttypes (Makefile): Substitute the new symbols that
59484         gl_INTTYPES_H now generates.
59485         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59486
59487 2007-11-12  Bruno Haible  <bruno@clisp.org>
59488
59489         Tests for Unicode character classification functions.
59490
59491         * modules/unictype/bidicategory-byname-tests: New file.
59492         * modules/unictype/bidicategory-name-tests: New file.
59493         * modules/unictype/bidicategory-of-tests: New file.
59494         * modules/unictype/bidicategory-test-tests: New file.
59495         * modules/unictype/block-list-tests: New file.
59496         * modules/unictype/block-of-tests: New file.
59497         * modules/unictype/block-test-tests: New file.
59498         * modules/unictype/category-C-tests: New file.
59499         * modules/unictype/category-Cc-tests: New file.
59500         * modules/unictype/category-Cf-tests: New file.
59501         * modules/unictype/category-Cn-tests: New file.
59502         * modules/unictype/category-Co-tests: New file.
59503         * modules/unictype/category-Cs-tests: New file.
59504         * modules/unictype/category-L-tests: New file.
59505         * modules/unictype/category-Ll-tests: New file.
59506         * modules/unictype/category-Lm-tests: New file.
59507         * modules/unictype/category-Lo-tests: New file.
59508         * modules/unictype/category-Lt-tests: New file.
59509         * modules/unictype/category-Lu-tests: New file.
59510         * modules/unictype/category-M-tests: New file.
59511         * modules/unictype/category-Mc-tests: New file.
59512         * modules/unictype/category-Me-tests: New file.
59513         * modules/unictype/category-Mn-tests: New file.
59514         * modules/unictype/category-N-tests: New file.
59515         * modules/unictype/category-Nd-tests: New file.
59516         * modules/unictype/category-Nl-tests: New file.
59517         * modules/unictype/category-No-tests: New file.
59518         * modules/unictype/category-P-tests: New file.
59519         * modules/unictype/category-Pc-tests: New file.
59520         * modules/unictype/category-Pd-tests: New file.
59521         * modules/unictype/category-Pe-tests: New file.
59522         * modules/unictype/category-Pf-tests: New file.
59523         * modules/unictype/category-Pi-tests: New file.
59524         * modules/unictype/category-Po-tests: New file.
59525         * modules/unictype/category-Ps-tests: New file.
59526         * modules/unictype/category-S-tests: New file.
59527         * modules/unictype/category-Sc-tests: New file.
59528         * modules/unictype/category-Sk-tests: New file.
59529         * modules/unictype/category-Sm-tests: New file.
59530         * modules/unictype/category-So-tests: New file.
59531         * modules/unictype/category-Z-tests: New file.
59532         * modules/unictype/category-Zl-tests: New file.
59533         * modules/unictype/category-Zp-tests: New file.
59534         * modules/unictype/category-Zs-tests: New file.
59535         * modules/unictype/category-and-not-tests: New file.
59536         * modules/unictype/category-and-tests: New file.
59537         * modules/unictype/category-byname-tests: New file.
59538         * modules/unictype/category-name-tests: New file.
59539         * modules/unictype/category-none-tests: New file.
59540         * modules/unictype/category-of-tests: New file.
59541         * modules/unictype/category-or-tests: New file.
59542         * modules/unictype/category-test-withtable-tests: New file.
59543         * modules/unictype/combining-class-tests: New file.
59544         * modules/unictype/ctype-alnum-tests: New file.
59545         * modules/unictype/ctype-alpha-tests: New file.
59546         * modules/unictype/ctype-blank-tests: New file.
59547         * modules/unictype/ctype-cntrl-tests: New file.
59548         * modules/unictype/ctype-digit-tests: New file.
59549         * modules/unictype/ctype-graph-tests: New file.
59550         * modules/unictype/ctype-lower-tests: New file.
59551         * modules/unictype/ctype-print-tests: New file.
59552         * modules/unictype/ctype-punct-tests: New file.
59553         * modules/unictype/ctype-space-tests: New file.
59554         * modules/unictype/ctype-upper-tests: New file.
59555         * modules/unictype/ctype-xdigit-tests: New file.
59556         * modules/unictype/decimal-digit-tests: New file.
59557         * modules/unictype/digit-tests: New file.
59558         * modules/unictype/mirror-tests: New file.
59559         * modules/unictype/numeric-tests: New file.
59560         * modules/unictype/property-alphabetic-tests: New file.
59561         * modules/unictype/property-ascii-hex-digit-tests: New file.
59562         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59563         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59564         * modules/unictype/property-bidi-block-separator-tests: New file.
59565         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59566         * modules/unictype/property-bidi-common-separator-tests: New file.
59567         * modules/unictype/property-bidi-control-tests: New file.
59568         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59569         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59570         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59571         * modules/unictype/property-bidi-european-digit-tests: New file.
59572         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59573         * modules/unictype/property-bidi-left-to-right-tests: New file.
59574         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59575         * modules/unictype/property-bidi-other-neutral-tests: New file.
59576         * modules/unictype/property-bidi-pdf-tests: New file.
59577         * modules/unictype/property-bidi-segment-separator-tests: New file.
59578         * modules/unictype/property-bidi-whitespace-tests: New file.
59579         * modules/unictype/property-byname-tests: New file.
59580         * modules/unictype/property-combining-tests: New file.
59581         * modules/unictype/property-composite-tests: New file.
59582         * modules/unictype/property-currency-symbol-tests: New file.
59583         * modules/unictype/property-dash-tests: New file.
59584         * modules/unictype/property-decimal-digit-tests: New file.
59585         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59586         * modules/unictype/property-deprecated-tests: New file.
59587         * modules/unictype/property-diacritic-tests: New file.
59588         * modules/unictype/property-extender-tests: New file.
59589         * modules/unictype/property-format-control-tests: New file.
59590         * modules/unictype/property-grapheme-base-tests: New file.
59591         * modules/unictype/property-grapheme-extend-tests: New file.
59592         * modules/unictype/property-grapheme-link-tests: New file.
59593         * modules/unictype/property-hex-digit-tests: New file.
59594         * modules/unictype/property-hyphen-tests: New file.
59595         * modules/unictype/property-id-continue-tests: New file.
59596         * modules/unictype/property-id-start-tests: New file.
59597         * modules/unictype/property-ideographic-tests: New file.
59598         * modules/unictype/property-ids-binary-operator-tests: New file.
59599         * modules/unictype/property-ids-trinary-operator-tests: New file.
59600         * modules/unictype/property-ignorable-control-tests: New file.
59601         * modules/unictype/property-iso-control-tests: New file.
59602         * modules/unictype/property-join-control-tests: New file.
59603         * modules/unictype/property-left-of-pair-tests: New file.
59604         * modules/unictype/property-line-separator-tests: New file.
59605         * modules/unictype/property-logical-order-exception-tests: New file.
59606         * modules/unictype/property-lowercase-tests: New file.
59607         * modules/unictype/property-math-tests: New file.
59608         * modules/unictype/property-non-break-tests: New file.
59609         * modules/unictype/property-not-a-character-tests: New file.
59610         * modules/unictype/property-numeric-tests: New file.
59611         * modules/unictype/property-other-alphabetic-tests: New file.
59612         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59613         * modules/unictype/property-other-grapheme-extend-tests: New file.
59614         * modules/unictype/property-other-id-continue-tests: New file.
59615         * modules/unictype/property-other-id-start-tests: New file.
59616         * modules/unictype/property-other-lowercase-tests: New file.
59617         * modules/unictype/property-other-math-tests: New file.
59618         * modules/unictype/property-other-uppercase-tests: New file.
59619         * modules/unictype/property-paired-punctuation-tests: New file.
59620         * modules/unictype/property-paragraph-separator-tests: New file.
59621         * modules/unictype/property-pattern-syntax-tests: New file.
59622         * modules/unictype/property-pattern-white-space-tests: New file.
59623         * modules/unictype/property-private-use-tests: New file.
59624         * modules/unictype/property-punctuation-tests: New file.
59625         * modules/unictype/property-quotation-mark-tests: New file.
59626         * modules/unictype/property-radical-tests: New file.
59627         * modules/unictype/property-sentence-terminal-tests: New file.
59628         * modules/unictype/property-soft-dotted-tests: New file.
59629         * modules/unictype/property-space-tests: New file.
59630         * modules/unictype/property-terminal-punctuation-tests: New file.
59631         * modules/unictype/property-test-tests: New file.
59632         * modules/unictype/property-titlecase-tests: New file.
59633         * modules/unictype/property-unassigned-code-value-tests: New file.
59634         * modules/unictype/property-unified-ideograph-tests: New file.
59635         * modules/unictype/property-uppercase-tests: New file.
59636         * modules/unictype/property-variation-selector-tests: New file.
59637         * modules/unictype/property-white-space-tests: New file.
59638         * modules/unictype/property-xid-continue-tests: New file.
59639         * modules/unictype/property-xid-start-tests: New file.
59640         * modules/unictype/property-zero-width-tests: New file.
59641         * modules/unictype/scripts-tests: New file.
59642         * modules/unictype/syntax-c-ident-tests: New file.
59643         * modules/unictype/syntax-c-whitespace-tests: New file.
59644         * modules/unictype/syntax-java-ident-tests: New file.
59645         * modules/unictype/syntax-java-whitespace-tests: New file.
59646         * tests/unictype/test-bidi_byname.c: New file.
59647         * tests/unictype/test-bidi_name.c: New file.
59648         * tests/unictype/test-bidi_of.c: New file.
59649         * tests/unictype/test-bidi_test.c: New file.
59650         * tests/unictype/test-block_list.c: New file.
59651         * tests/unictype/test-block_of.c: New file.
59652         * tests/unictype/test-block_test.c: New file.
59653         * tests/unictype/test-categ_and.c: New file.
59654         * tests/unictype/test-categ_and_not.c: New file.
59655         * tests/unictype/test-categ_byname.c: New file.
59656         * tests/unictype/test-categ_name.c: New file.
59657         * tests/unictype/test-categ_none.c: New file.
59658         * tests/unictype/test-categ_of.c: New file.
59659         * tests/unictype/test-categ_or.c: New file.
59660         * tests/unictype/test-categ_test_withtable.c: New file.
59661         * tests/unictype/test-combining.c: New file.
59662         * tests/unictype/test-decdigit.c: New file.
59663         * tests/unictype/test-digit.c: New file.
59664         * tests/unictype/test-mirror.c: New file.
59665         * tests/unictype/test-numeric.c: New file.
59666         * tests/unictype/test-pr_byname.c: New file.
59667         * tests/unictype/test-pr_test.c: New file.
59668         * tests/unictype/test-predicate-part1.h: New file.
59669         * tests/unictype/test-predicate-part2.h: New file.
59670         * tests/unictype/test-scripts.c: New file.
59671         * tests/unictype/test-sy_c_ident.c: New file.
59672         * tests/unictype/test-sy_java_ident.c: New file.
59673
59674         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59675         for Unicode 5.0.0.
59676         * tests/unictype/test-categ_Cc.c: Likewise.
59677         * tests/unictype/test-categ_Cf.c: Likewise.
59678         * tests/unictype/test-categ_Cn.c: Likewise.
59679         * tests/unictype/test-categ_Co.c: Likewise.
59680         * tests/unictype/test-categ_Cs.c: Likewise.
59681         * tests/unictype/test-categ_L.c: Likewise.
59682         * tests/unictype/test-categ_Ll.c: Likewise.
59683         * tests/unictype/test-categ_Lm.c: Likewise.
59684         * tests/unictype/test-categ_Lo.c: Likewise.
59685         * tests/unictype/test-categ_Lt.c: Likewise.
59686         * tests/unictype/test-categ_Lu.c: Likewise.
59687         * tests/unictype/test-categ_M.c: Likewise.
59688         * tests/unictype/test-categ_Mc.c: Likewise.
59689         * tests/unictype/test-categ_Me.c: Likewise.
59690         * tests/unictype/test-categ_Mn.c: Likewise.
59691         * tests/unictype/test-categ_N.c: Likewise.
59692         * tests/unictype/test-categ_Nd.c: Likewise.
59693         * tests/unictype/test-categ_Nl.c: Likewise.
59694         * tests/unictype/test-categ_No.c: Likewise.
59695         * tests/unictype/test-categ_P.c: Likewise.
59696         * tests/unictype/test-categ_Pc.c: Likewise.
59697         * tests/unictype/test-categ_Pd.c: Likewise.
59698         * tests/unictype/test-categ_Pe.c: Likewise.
59699         * tests/unictype/test-categ_Pf.c: Likewise.
59700         * tests/unictype/test-categ_Pi.c: Likewise.
59701         * tests/unictype/test-categ_Po.c: Likewise.
59702         * tests/unictype/test-categ_Ps.c: Likewise.
59703         * tests/unictype/test-categ_S.c: Likewise.
59704         * tests/unictype/test-categ_Sc.c: Likewise.
59705         * tests/unictype/test-categ_Sk.c: Likewise.
59706         * tests/unictype/test-categ_Sm.c: Likewise.
59707         * tests/unictype/test-categ_So.c: Likewise.
59708         * tests/unictype/test-categ_Z.c: Likewise.
59709         * tests/unictype/test-categ_Zl.c: Likewise.
59710         * tests/unictype/test-categ_Zp.c: Likewise.
59711         * tests/unictype/test-categ_Zs.c: Likewise.
59712         * tests/unictype/test-ctype_alnum.c: Likewise.
59713         * tests/unictype/test-ctype_alpha.c: Likewise.
59714         * tests/unictype/test-ctype_blank.c: Likewise.
59715         * tests/unictype/test-ctype_cntrl.c: Likewise.
59716         * tests/unictype/test-ctype_digit.c: Likewise.
59717         * tests/unictype/test-ctype_graph.c: Likewise.
59718         * tests/unictype/test-ctype_lower.c: Likewise.
59719         * tests/unictype/test-ctype_print.c: Likewise.
59720         * tests/unictype/test-ctype_punct.c: Likewise.
59721         * tests/unictype/test-ctype_space.c: Likewise.
59722         * tests/unictype/test-ctype_upper.c: Likewise.
59723         * tests/unictype/test-ctype_xdigit.c: Likewise.
59724         * tests/unictype/test-decdigit.h: Likewise.
59725         * tests/unictype/test-digit.h: Likewise.
59726         * tests/unictype/test-numeric.h: Likewise.
59727         * tests/unictype/test-pr_alphabetic.c: Likewise.
59728         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59729         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59730         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59731         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59732         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59733         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59734         * tests/unictype/test-pr_bidi_control.c: Likewise.
59735         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59736         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59737         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59738         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59739         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59740         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59741         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59742         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59743         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59744         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59745         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59746         * tests/unictype/test-pr_combining.c: Likewise.
59747         * tests/unictype/test-pr_composite.c: Likewise.
59748         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59749         * tests/unictype/test-pr_dash.c: Likewise.
59750         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59751         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59752         * tests/unictype/test-pr_deprecated.c: Likewise.
59753         * tests/unictype/test-pr_diacritic.c: Likewise.
59754         * tests/unictype/test-pr_extender.c: Likewise.
59755         * tests/unictype/test-pr_format_control.c: Likewise.
59756         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59757         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59758         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59759         * tests/unictype/test-pr_hex_digit.c: Likewise.
59760         * tests/unictype/test-pr_hyphen.c: Likewise.
59761         * tests/unictype/test-pr_id_continue.c: Likewise.
59762         * tests/unictype/test-pr_id_start.c: Likewise.
59763         * tests/unictype/test-pr_ideographic.c: Likewise.
59764         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59765         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59766         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59767         * tests/unictype/test-pr_iso_control.c: Likewise.
59768         * tests/unictype/test-pr_join_control.c: Likewise.
59769         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59770         * tests/unictype/test-pr_line_separator.c: Likewise.
59771         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59772         * tests/unictype/test-pr_lowercase.c: Likewise.
59773         * tests/unictype/test-pr_math.c: Likewise.
59774         * tests/unictype/test-pr_non_break.c: Likewise.
59775         * tests/unictype/test-pr_not_a_character.c: Likewise.
59776         * tests/unictype/test-pr_numeric.c: Likewise.
59777         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59778         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59779         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59780         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59781         * tests/unictype/test-pr_other_id_start.c: Likewise.
59782         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59783         * tests/unictype/test-pr_other_math.c: Likewise.
59784         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59785         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59786         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59787         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59788         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59789         * tests/unictype/test-pr_private_use.c: Likewise.
59790         * tests/unictype/test-pr_punctuation.c: Likewise.
59791         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59792         * tests/unictype/test-pr_radical.c: Likewise.
59793         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59794         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59795         * tests/unictype/test-pr_space.c: Likewise.
59796         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59797         * tests/unictype/test-pr_titlecase.c: Likewise.
59798         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59799         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59800         * tests/unictype/test-pr_uppercase.c: Likewise.
59801         * tests/unictype/test-pr_variation_selector.c: Likewise.
59802         * tests/unictype/test-pr_white_space.c: Likewise.
59803         * tests/unictype/test-pr_xid_continue.c: Likewise.
59804         * tests/unictype/test-pr_xid_start.c: Likewise.
59805         * tests/unictype/test-pr_zero_width.c: Likewise.
59806         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59807         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59808
59809 2007-11-12  Bruno Haible  <bruno@clisp.org>
59810
59811         Unicode character classification functions.
59812         * lib/unictype.h: New file.
59813         * modules/unictype/base: New file.
59814         * modules/unictype/category-L: New file.
59815         * modules/unictype/category-Lu: New file.
59816         * modules/unictype/category-Ll: New file.
59817         * modules/unictype/category-Lt: New file.
59818         * modules/unictype/category-Lm: New file.
59819         * modules/unictype/category-Lo: New file.
59820         * modules/unictype/category-M: New file.
59821         * modules/unictype/category-Mn: New file.
59822         * modules/unictype/category-Mc: New file.
59823         * modules/unictype/category-Me: New file.
59824         * modules/unictype/category-N: New file.
59825         * modules/unictype/category-Nd: New file.
59826         * modules/unictype/category-Nl: New file.
59827         * modules/unictype/category-No: New file.
59828         * modules/unictype/category-P: New file.
59829         * modules/unictype/category-Pc: New file.
59830         * modules/unictype/category-Pd: New file.
59831         * modules/unictype/category-Ps: New file.
59832         * modules/unictype/category-Pe: New file.
59833         * modules/unictype/category-Pi: New file.
59834         * modules/unictype/category-Pf: New file.
59835         * modules/unictype/category-Po: New file.
59836         * modules/unictype/category-S: New file.
59837         * modules/unictype/category-Sm: New file.
59838         * modules/unictype/category-Sc: New file.
59839         * modules/unictype/category-Sk: New file.
59840         * modules/unictype/category-So: New file.
59841         * modules/unictype/category-Z: New file.
59842         * modules/unictype/category-Zs: New file.
59843         * modules/unictype/category-Zl: New file.
59844         * modules/unictype/category-Zp: New file.
59845         * modules/unictype/category-C: New file.
59846         * modules/unictype/category-Cc: New file.
59847         * modules/unictype/category-Cf: New file.
59848         * modules/unictype/category-Cs: New file.
59849         * modules/unictype/category-Co: New file.
59850         * modules/unictype/category-Cn: New file.
59851         * modules/unictype/category-or: New file.
59852         * modules/unictype/category-of: New file.
59853         * modules/unictype/category-test: New file.
59854         * modules/unictype/category-test-withtable: New file.
59855         * modules/unictype/category-byname: New file.
59856         * modules/unictype/category-none: New file.
59857         * modules/unictype/category-and: New file.
59858         * modules/unictype/category-and-not: New file.
59859         * modules/unictype/category-name: New file.
59860         * modules/unictype/combining-class: New file.
59861         * modules/unictype/category-all: New file.
59862         * modules/unictype/bidicategory-all: New file.
59863         * modules/unictype/bidicategory-byname: New file.
59864         * modules/unictype/bidicategory-name: New file.
59865         * modules/unictype/bidicategory-of: New file.
59866         * modules/unictype/bidicategory-test: New file.
59867         * modules/unictype/decimal-digit: New file.
59868         * modules/unictype/digit: New file.
59869         * modules/unictype/numeric: New file.
59870         * modules/unictype/mirror: New file.
59871         * modules/unictype/property-white-space: New file.
59872         * modules/unictype/property-alphabetic: New file.
59873         * modules/unictype/property-other-alphabetic: New file.
59874         * modules/unictype/property-not-a-character: New file.
59875         * modules/unictype/property-default-ignorable-code-point: New file.
59876         * modules/unictype/property-other-default-ignorable-code-point: New
59877         file.
59878         * modules/unictype/property-deprecated: New file.
59879         * modules/unictype/property-logical-order-exception: New file.
59880         * modules/unictype/property-variation-selector: New file.
59881         * modules/unictype/property-private-use: New file.
59882         * modules/unictype/property-unassigned-code-value: New file.
59883         * modules/unictype/property-uppercase: New file.
59884         * modules/unictype/property-other-uppercase: New file.
59885         * modules/unictype/property-lowercase: New file.
59886         * modules/unictype/property-other-lowercase: New file.
59887         * modules/unictype/property-titlecase: New file.
59888         * modules/unictype/property-soft-dotted: New file.
59889         * modules/unictype/property-id-start: New file.
59890         * modules/unictype/property-other-id-start: New file.
59891         * modules/unictype/property-id-continue: New file.
59892         * modules/unictype/property-other-id-continue: New file.
59893         * modules/unictype/property-xid-start: New file.
59894         * modules/unictype/property-xid-continue: New file.
59895         * modules/unictype/property-pattern-white-space: New file.
59896         * modules/unictype/property-pattern-syntax: New file.
59897         * modules/unictype/property-join-control: New file.
59898         * modules/unictype/property-grapheme-base: New file.
59899         * modules/unictype/property-grapheme-extend: New file.
59900         * modules/unictype/property-other-grapheme-extend: New file.
59901         * modules/unictype/property-grapheme-link: New file.
59902         * modules/unictype/property-bidi-control: New file.
59903         * modules/unictype/property-bidi-left-to-right: New file.
59904         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59905         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59906         * modules/unictype/property-bidi-european-digit: New file.
59907         * modules/unictype/property-bidi-eur-num-separator: New file.
59908         * modules/unictype/property-bidi-eur-num-terminator: New file.
59909         * modules/unictype/property-bidi-arabic-digit: New file.
59910         * modules/unictype/property-bidi-common-separator: New file.
59911         * modules/unictype/property-bidi-block-separator: New file.
59912         * modules/unictype/property-bidi-segment-separator: New file.
59913         * modules/unictype/property-bidi-whitespace: New file.
59914         * modules/unictype/property-bidi-non-spacing-mark: New file.
59915         * modules/unictype/property-bidi-boundary-neutral: New file.
59916         * modules/unictype/property-bidi-pdf: New file.
59917         * modules/unictype/property-bidi-embedding-or-override: New file.
59918         * modules/unictype/property-bidi-other-neutral: New file.
59919         * modules/unictype/property-hex-digit: New file.
59920         * modules/unictype/property-ascii-hex-digit: New file.
59921         * modules/unictype/property-ideographic: New file.
59922         * modules/unictype/property-unified-ideograph: New file.
59923         * modules/unictype/property-radical: New file.
59924         * modules/unictype/property-ids-binary-operator: New file.
59925         * modules/unictype/property-ids-trinary-operator: New file.
59926         * modules/unictype/property-zero-width: New file.
59927         * modules/unictype/property-space: New file.
59928         * modules/unictype/property-non-break: New file.
59929         * modules/unictype/property-iso-control: New file.
59930         * modules/unictype/property-format-control: New file.
59931         * modules/unictype/property-dash: New file.
59932         * modules/unictype/property-hyphen: New file.
59933         * modules/unictype/property-punctuation: New file.
59934         * modules/unictype/property-line-separator: New file.
59935         * modules/unictype/property-paragraph-separator: New file.
59936         * modules/unictype/property-quotation-mark: New file.
59937         * modules/unictype/property-sentence-terminal: New file.
59938         * modules/unictype/property-terminal-punctuation: New file.
59939         * modules/unictype/property-currency-symbol: New file.
59940         * modules/unictype/property-math: New file.
59941         * modules/unictype/property-other-math: New file.
59942         * modules/unictype/property-paired-punctuation: New file.
59943         * modules/unictype/property-left-of-pair: New file.
59944         * modules/unictype/property-combining: New file.
59945         * modules/unictype/property-composite: New file.
59946         * modules/unictype/property-decimal-digit: New file.
59947         * modules/unictype/property-numeric: New file.
59948         * modules/unictype/property-diacritic: New file.
59949         * modules/unictype/property-extender: New file.
59950         * modules/unictype/property-ignorable-control: New file.
59951         * modules/unictype/property-test: New file.
59952         * modules/unictype/property-byname: New file.
59953         * modules/unictype/property-all: New file.
59954         * modules/unictype/scripts: New file.
59955         * modules/unictype/scripts-all: New file.
59956         * modules/unictype/block-of: New file.
59957         * modules/unictype/block-test: New file.
59958         * modules/unictype/block-list: New file.
59959         * modules/unictype/block-all: New file.
59960         * modules/unictype/syntax-c-whitespace: New file.
59961         * modules/unictype/syntax-java-whitespace: New file.
59962         * modules/unictype/syntax-c-ident: New file.
59963         * modules/unictype/syntax-java-ident: New file.
59964         * modules/unictype/ctype-alnum: New file.
59965         * modules/unictype/ctype-alpha: New file.
59966         * modules/unictype/ctype-cntrl: New file.
59967         * modules/unictype/ctype-digit: New file.
59968         * modules/unictype/ctype-graph: New file.
59969         * modules/unictype/ctype-lower: New file.
59970         * modules/unictype/ctype-print: New file.
59971         * modules/unictype/ctype-punct: New file.
59972         * modules/unictype/ctype-space: New file.
59973         * modules/unictype/ctype-upper: New file.
59974         * modules/unictype/ctype-xdigit: New file.
59975         * modules/unictype/ctype-blank: New file.
59976         * lib/unictype/bidi_byname.c: New file.
59977         * lib/unictype/bidi_name.c: New file.
59978         * lib/unictype/bidi_of.c: New file.
59979         * lib/unictype/bidi_test.c: New file.
59980         * lib/unictype/bitmap.h: New file.
59981         * lib/unictype/block_test.c: New file.
59982         * lib/unictype/blocks.c: New file.
59983         * lib/unictype/categ_C.c: New file.
59984         * lib/unictype/categ_Cc.c: New file.
59985         * lib/unictype/categ_Cf.c: New file.
59986         * lib/unictype/categ_Cn.c: New file.
59987         * lib/unictype/categ_Co.c: New file.
59988         * lib/unictype/categ_Cs.c: New file.
59989         * lib/unictype/categ_L.c: New file.
59990         * lib/unictype/categ_Ll.c: New file.
59991         * lib/unictype/categ_Lm.c: New file.
59992         * lib/unictype/categ_Lo.c: New file.
59993         * lib/unictype/categ_Lt.c: New file.
59994         * lib/unictype/categ_Lu.c: New file.
59995         * lib/unictype/categ_M.c: New file.
59996         * lib/unictype/categ_Mc.c: New file.
59997         * lib/unictype/categ_Me.c: New file.
59998         * lib/unictype/categ_Mn.c: New file.
59999         * lib/unictype/categ_N.c: New file.
60000         * lib/unictype/categ_Nd.c: New file.
60001         * lib/unictype/categ_Nl.c: New file.
60002         * lib/unictype/categ_No.c: New file.
60003         * lib/unictype/categ_P.c: New file.
60004         * lib/unictype/categ_Pc.c: New file.
60005         * lib/unictype/categ_Pd.c: New file.
60006         * lib/unictype/categ_Pe.c: New file.
60007         * lib/unictype/categ_Pf.c: New file.
60008         * lib/unictype/categ_Pi.c: New file.
60009         * lib/unictype/categ_Po.c: New file.
60010         * lib/unictype/categ_Ps.c: New file.
60011         * lib/unictype/categ_S.c: New file.
60012         * lib/unictype/categ_Sc.c: New file.
60013         * lib/unictype/categ_Sk.c: New file.
60014         * lib/unictype/categ_Sm.c: New file.
60015         * lib/unictype/categ_So.c: New file.
60016         * lib/unictype/categ_Z.c: New file.
60017         * lib/unictype/categ_Zl.c: New file.
60018         * lib/unictype/categ_Zp.c: New file.
60019         * lib/unictype/categ_Zs.c: New file.
60020         * lib/unictype/categ_and.c: New file.
60021         * lib/unictype/categ_and_not.c: New file.
60022         * lib/unictype/categ_byname.c: New file.
60023         * lib/unictype/categ_name.c: New file.
60024         * lib/unictype/categ_none.c: New file.
60025         * lib/unictype/categ_of.c: New file.
60026         * lib/unictype/categ_or.c: New file.
60027         * lib/unictype/categ_test.c: New file.
60028         * lib/unictype/combining.c: New file.
60029         * lib/unictype/ctype_alnum.c: New file.
60030         * lib/unictype/ctype_alpha.c: New file.
60031         * lib/unictype/ctype_blank.c: New file.
60032         * lib/unictype/ctype_cntrl.c: New file.
60033         * lib/unictype/ctype_digit.c: New file.
60034         * lib/unictype/ctype_graph.c: New file.
60035         * lib/unictype/ctype_lower.c: New file.
60036         * lib/unictype/ctype_print.c: New file.
60037         * lib/unictype/ctype_punct.c: New file.
60038         * lib/unictype/ctype_space.c: New file.
60039         * lib/unictype/ctype_upper.c: New file.
60040         * lib/unictype/ctype_xdigit.c: New file.
60041         * lib/unictype/decdigit.c: New file.
60042         * lib/unictype/digit.c: New file.
60043         * lib/unictype/identsyntaxmap.h: New file.
60044         * lib/unictype/mirror.c: New file.
60045         * lib/unictype/numeric.c: New file.
60046         * lib/unictype/pr_alphabetic.c: New file.
60047         * lib/unictype/pr_ascii_hex_digit.c: New file.
60048         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60049         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60050         * lib/unictype/pr_bidi_block_separator.c: New file.
60051         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60052         * lib/unictype/pr_bidi_common_separator.c: New file.
60053         * lib/unictype/pr_bidi_control.c: New file.
60054         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60055         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60056         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60057         * lib/unictype/pr_bidi_european_digit.c: New file.
60058         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60059         * lib/unictype/pr_bidi_left_to_right.c: New file.
60060         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60061         * lib/unictype/pr_bidi_other_neutral.c: New file.
60062         * lib/unictype/pr_bidi_pdf.c: New file.
60063         * lib/unictype/pr_bidi_segment_separator.c: New file.
60064         * lib/unictype/pr_bidi_whitespace.c: New file.
60065         * lib/unictype/pr_byname.c: New file.
60066         * lib/unictype/pr_byname.gperf: New file.
60067         * lib/unictype/pr_combining.c: New file.
60068         * lib/unictype/pr_composite.c: New file.
60069         * lib/unictype/pr_currency_symbol.c: New file.
60070         * lib/unictype/pr_dash.c: New file.
60071         * lib/unictype/pr_decimal_digit.c: New file.
60072         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60073         * lib/unictype/pr_deprecated.c: New file.
60074         * lib/unictype/pr_diacritic.c: New file.
60075         * lib/unictype/pr_extender.c: New file.
60076         * lib/unictype/pr_format_control.c: New file.
60077         * lib/unictype/pr_grapheme_base.c: New file.
60078         * lib/unictype/pr_grapheme_extend.c: New file.
60079         * lib/unictype/pr_grapheme_link.c: New file.
60080         * lib/unictype/pr_hex_digit.c: New file.
60081         * lib/unictype/pr_hyphen.c: New file.
60082         * lib/unictype/pr_id_continue.c: New file.
60083         * lib/unictype/pr_id_start.c: New file.
60084         * lib/unictype/pr_ideographic.c: New file.
60085         * lib/unictype/pr_ids_binary_operator.c: New file.
60086         * lib/unictype/pr_ids_trinary_operator.c: New file.
60087         * lib/unictype/pr_ignorable_control.c: New file.
60088         * lib/unictype/pr_iso_control.c: New file.
60089         * lib/unictype/pr_join_control.c: New file.
60090         * lib/unictype/pr_left_of_pair.c: New file.
60091         * lib/unictype/pr_line_separator.c: New file.
60092         * lib/unictype/pr_logical_order_exception.c: New file.
60093         * lib/unictype/pr_lowercase.c: New file.
60094         * lib/unictype/pr_math.c: New file.
60095         * lib/unictype/pr_non_break.c: New file.
60096         * lib/unictype/pr_not_a_character.c: New file.
60097         * lib/unictype/pr_numeric.c: New file.
60098         * lib/unictype/pr_other_alphabetic.c: New file.
60099         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60100         * lib/unictype/pr_other_grapheme_extend.c: New file.
60101         * lib/unictype/pr_other_id_continue.c: New file.
60102         * lib/unictype/pr_other_id_start.c: New file.
60103         * lib/unictype/pr_other_lowercase.c: New file.
60104         * lib/unictype/pr_other_math.c: New file.
60105         * lib/unictype/pr_other_uppercase.c: New file.
60106         * lib/unictype/pr_paired_punctuation.c: New file.
60107         * lib/unictype/pr_paragraph_separator.c: New file.
60108         * lib/unictype/pr_pattern_syntax.c: New file.
60109         * lib/unictype/pr_pattern_white_space.c: New file.
60110         * lib/unictype/pr_private_use.c: New file.
60111         * lib/unictype/pr_punctuation.c: New file.
60112         * lib/unictype/pr_quotation_mark.c: New file.
60113         * lib/unictype/pr_radical.c: New file.
60114         * lib/unictype/pr_sentence_terminal.c: New file.
60115         * lib/unictype/pr_soft_dotted.c: New file.
60116         * lib/unictype/pr_space.c: New file.
60117         * lib/unictype/pr_terminal_punctuation.c: New file.
60118         * lib/unictype/pr_test.c: New file.
60119         * lib/unictype/pr_titlecase.c: New file.
60120         * lib/unictype/pr_unassigned_code_value.c: New file.
60121         * lib/unictype/pr_unified_ideograph.c: New file.
60122         * lib/unictype/pr_uppercase.c: New file.
60123         * lib/unictype/pr_variation_selector.c: New file.
60124         * lib/unictype/pr_white_space.c: New file.
60125         * lib/unictype/pr_xid_continue.c: New file.
60126         * lib/unictype/pr_xid_start.c: New file.
60127         * lib/unictype/pr_zero_width.c: New file.
60128         * lib/unictype/scripts.c: New file.
60129         * lib/unictype/sy_c_ident.c: New file.
60130         * lib/unictype/sy_c_whitespace.c: New file.
60131         * lib/unictype/sy_java_ident.c: New file.
60132         * lib/unictype/sy_java_whitespace.c: New file.
60133
60134         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60135         Unicode 5.0.0.
60136         * lib/unictype/blocks.h: Likewise.
60137         * lib/unictype/categ_C.h: Likewise.
60138         * lib/unictype/categ_Cc.h: Likewise.
60139         * lib/unictype/categ_Cf.h: Likewise.
60140         * lib/unictype/categ_Cn.h: Likewise.
60141         * lib/unictype/categ_Co.h: Likewise.
60142         * lib/unictype/categ_Cs.h: Likewise.
60143         * lib/unictype/categ_L.h: Likewise.
60144         * lib/unictype/categ_Ll.h: Likewise.
60145         * lib/unictype/categ_Lm.h: Likewise.
60146         * lib/unictype/categ_Lo.h: Likewise.
60147         * lib/unictype/categ_Lt.h: Likewise.
60148         * lib/unictype/categ_Lu.h: Likewise.
60149         * lib/unictype/categ_M.h: Likewise.
60150         * lib/unictype/categ_Mc.h: Likewise.
60151         * lib/unictype/categ_Me.h: Likewise.
60152         * lib/unictype/categ_Mn.h: Likewise.
60153         * lib/unictype/categ_N.h: Likewise.
60154         * lib/unictype/categ_Nd.h: Likewise.
60155         * lib/unictype/categ_Nl.h: Likewise.
60156         * lib/unictype/categ_No.h: Likewise.
60157         * lib/unictype/categ_P.h: Likewise.
60158         * lib/unictype/categ_Pc.h: Likewise.
60159         * lib/unictype/categ_Pd.h: Likewise.
60160         * lib/unictype/categ_Pe.h: Likewise.
60161         * lib/unictype/categ_Pf.h: Likewise.
60162         * lib/unictype/categ_Pi.h: Likewise.
60163         * lib/unictype/categ_Po.h: Likewise.
60164         * lib/unictype/categ_Ps.h: Likewise.
60165         * lib/unictype/categ_S.h: Likewise.
60166         * lib/unictype/categ_Sc.h: Likewise.
60167         * lib/unictype/categ_Sk.h: Likewise.
60168         * lib/unictype/categ_Sm.h: Likewise.
60169         * lib/unictype/categ_So.h: Likewise.
60170         * lib/unictype/categ_Z.h: Likewise.
60171         * lib/unictype/categ_Zl.h: Likewise.
60172         * lib/unictype/categ_Zp.h: Likewise.
60173         * lib/unictype/categ_Zs.h: Likewise.
60174         * lib/unictype/categ_of.h: Likewise.
60175         * lib/unictype/combining.h: Likewise.
60176         * lib/unictype/ctype_alnum.h: Likewise.
60177         * lib/unictype/ctype_alpha.h: Likewise.
60178         * lib/unictype/ctype_blank.h: Likewise.
60179         * lib/unictype/ctype_cntrl.h: Likewise.
60180         * lib/unictype/ctype_digit.h: Likewise.
60181         * lib/unictype/ctype_graph.h: Likewise.
60182         * lib/unictype/ctype_lower.h: Likewise.
60183         * lib/unictype/ctype_print.h: Likewise.
60184         * lib/unictype/ctype_punct.h: Likewise.
60185         * lib/unictype/ctype_space.h: Likewise.
60186         * lib/unictype/ctype_upper.h: Likewise.
60187         * lib/unictype/ctype_xdigit.h: Likewise.
60188         * lib/unictype/decdigit.h: Likewise.
60189         * lib/unictype/digit.h: Likewise.
60190         * lib/unictype/mirror.h: Likewise.
60191         * lib/unictype/numeric.h: Likewise.
60192         * lib/unictype/pr_alphabetic.h: Likewise.
60193         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60194         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60195         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60196         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60197         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60198         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60199         * lib/unictype/pr_bidi_control.h: Likewise.
60200         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60201         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60202         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60203         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60204         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60205         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60206         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60207         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60208         * lib/unictype/pr_bidi_pdf.h: Likewise.
60209         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60210         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60211         * lib/unictype/pr_combining.h: Likewise.
60212         * lib/unictype/pr_composite.h: Likewise.
60213         * lib/unictype/pr_currency_symbol.h: Likewise.
60214         * lib/unictype/pr_dash.h: Likewise.
60215         * lib/unictype/pr_decimal_digit.h: Likewise.
60216         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60217         * lib/unictype/pr_deprecated.h: Likewise.
60218         * lib/unictype/pr_diacritic.h: Likewise.
60219         * lib/unictype/pr_extender.h: Likewise.
60220         * lib/unictype/pr_format_control.h: Likewise.
60221         * lib/unictype/pr_grapheme_base.h: Likewise.
60222         * lib/unictype/pr_grapheme_extend.h: Likewise.
60223         * lib/unictype/pr_grapheme_link.h: Likewise.
60224         * lib/unictype/pr_hex_digit.h: Likewise.
60225         * lib/unictype/pr_hyphen.h: Likewise.
60226         * lib/unictype/pr_id_continue.h: Likewise.
60227         * lib/unictype/pr_id_start.h: Likewise.
60228         * lib/unictype/pr_ideographic.h: Likewise.
60229         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60230         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60231         * lib/unictype/pr_ignorable_control.h: Likewise.
60232         * lib/unictype/pr_iso_control.h: Likewise.
60233         * lib/unictype/pr_join_control.h: Likewise.
60234         * lib/unictype/pr_left_of_pair.h: Likewise.
60235         * lib/unictype/pr_line_separator.h: Likewise.
60236         * lib/unictype/pr_logical_order_exception.h: Likewise.
60237         * lib/unictype/pr_lowercase.h: Likewise.
60238         * lib/unictype/pr_math.h: Likewise.
60239         * lib/unictype/pr_non_break.h: Likewise.
60240         * lib/unictype/pr_not_a_character.h: Likewise.
60241         * lib/unictype/pr_numeric.h: Likewise.
60242         * lib/unictype/pr_other_alphabetic.h: Likewise.
60243         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60244         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60245         * lib/unictype/pr_other_id_continue.h: Likewise.
60246         * lib/unictype/pr_other_id_start.h: Likewise.
60247         * lib/unictype/pr_other_lowercase.h: Likewise.
60248         * lib/unictype/pr_other_math.h: Likewise.
60249         * lib/unictype/pr_other_uppercase.h: Likewise.
60250         * lib/unictype/pr_paired_punctuation.h: Likewise.
60251         * lib/unictype/pr_paragraph_separator.h: Likewise.
60252         * lib/unictype/pr_pattern_syntax.h: Likewise.
60253         * lib/unictype/pr_pattern_white_space.h: Likewise.
60254         * lib/unictype/pr_private_use.h: Likewise.
60255         * lib/unictype/pr_punctuation.h: Likewise.
60256         * lib/unictype/pr_quotation_mark.h: Likewise.
60257         * lib/unictype/pr_radical.h: Likewise.
60258         * lib/unictype/pr_sentence_terminal.h: Likewise.
60259         * lib/unictype/pr_soft_dotted.h: Likewise.
60260         * lib/unictype/pr_space.h: Likewise.
60261         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60262         * lib/unictype/pr_titlecase.h: Likewise.
60263         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60264         * lib/unictype/pr_unified_ideograph.h: Likewise.
60265         * lib/unictype/pr_uppercase.h: Likewise.
60266         * lib/unictype/pr_variation_selector.h: Likewise.
60267         * lib/unictype/pr_white_space.h: Likewise.
60268         * lib/unictype/pr_xid_continue.h: Likewise.
60269         * lib/unictype/pr_xid_start.h: Likewise.
60270         * lib/unictype/pr_zero_width.h: Likewise.
60271         * lib/unictype/scripts.h: Likewise.
60272         * lib/unictype/scripts_byname.gperf: Likewise.
60273         * lib/unictype/sy_c_ident.h: Likewise.
60274         * lib/unictype/sy_c_whitespace.h: Likewise.
60275         * lib/unictype/sy_java_ident.h: Likewise.
60276         * lib/unictype/sy_java_whitespace.h: Likewise.
60277
60278         * lib/unictype/Makefile: New file.
60279         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60280         glibc.
60281         * lib/unictype/3level.h: New file, copied from glibc.
60282         * lib/unictype/3levelbit.h: New file.
60283
60284 2007-11-11  Bruno Haible  <bruno@clisp.org>
60285
60286         * modules/gperf: New file.
60287         * modules/iconv_open (Depends-on): Add it.
60288         (Makefile.am): Remove the GPERF definition.
60289
60290 2007-11-11  Bruno Haible  <bruno@clisp.org>
60291
60292         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60293         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60294
60295 2007-11-11  Bruno Haible  <bruno@clisp.org>
60296
60297         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60298         (usage): Remove function.
60299
60300 2007-11-11  Bruno Haible  <bruno@clisp.org>
60301
60302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60303         gl_FUNC_CEILF_LIBS.
60304         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60305         gl_FUNC_CEIL_LIBS.
60306         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60307         gl_FUNC_CEILL_LIBS.
60308         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60309         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60310         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60311
60312 2007-11-11  Bruno Haible  <bruno@clisp.org>
60313
60314         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60315         roundf were declared but do not exist on functions.
60316         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60317         roundl were declared but do not exist on functions.
60318         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60319         HAVE_FLOORL_AND_CEILL, respectively.
60320         Needed for Sun C on Solaris 10.
60321
60322 2007-11-11  Bruno Haible  <bruno@clisp.org>
60323
60324         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60325         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60326         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60327         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60328         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60329         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60330         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60331         HAVE_DECL_ROUNDF.
60332         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60333         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60335         of HAVE_DECL_ROUND*.
60336         * modules/math (Makefile.am): Update.
60337
60338 2007-11-10  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60341         ptrdiff_t as m4/intl.m4.
60342
60343 2007-11-10  Jim Meyering  <meyering@redhat.com>
60344
60345         Avoid link failure for the argmatch test.
60346         * tests/test-argmatch.c (usage): Define function to avoid a link
60347         failure: argmatch_die requires a usage function.
60348
60349 2007-11-09  Bruno Haible  <bruno@clisp.org>
60350
60351         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60352         * doc/functions/vsnprintf.texi: Likewise.
60353         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60354         with a size argument < 2.
60355
60356 2007-11-09  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60359         buffer. Fixes an inefficiency introduced on 2007-11-03.
60360
60361 2007-11-09  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60364         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60365
60366 2007-11-08  Jim Meyering  <meyering@redhat.com>
60367
60368         Change cache variable name prefix "jm_" to "gl_" everywhere.
60369         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60370         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60371         * m4/uptime.m4: s/gl_/jm_/
60372
60373 2007-11-07  Bruno Haible  <bruno@clisp.org>
60374
60375         Update to GNU gettext 0.17.
60376         * m4/intl.m4: Update to GNU gettext 0.17.
60377         * m4/po.m4: Likewise.
60378         * modules/gettext (Files): Remove m4/ulonglong.m4.
60379         (configure.ac): Require gettext infrastructure from version 0.17.
60380
60381 2007-11-06  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60384         symbolic values are not defined in a public header.
60385         * lib/freadable.c (freadable) [QNX]: Likewise.
60386         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60387         * lib/freading.c (freading) [QNX]: Likewise.
60388         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60389         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60390         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60391         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60392         Reported by Alain Magloire.
60393
60394         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60395
60396 2007-11-05  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60399         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60400         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60401         Reported by Eric Blake.
60402
60403 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60404             Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60407         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60408         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60409         (malloc): Undefine also before including <stdlib.h>.
60410         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60411         Needed on OSF/1 4.0.
60412
60413 2007-11-05  Jim Meyering  <meyering@redhat.com>
60414
60415         git-version-gen: sync from coreutils.
60416         * build-aux/git-version-gen: Add comments.
60417         Change the first '-' to '.' in the snapshot version string,
60418         e.g., 6.9-377-08144 -> 6.9.377-08144
60419         Remove first parameter.
60420         Don't declare a version "-dirty" merely because a time
60421         stamp has changed.
60422
60423 2007-11-04  Bruno Haible  <bruno@clisp.org>
60424
60425         * lib/lock.h: Protect all macro definitions containing an 'if'
60426         statement through a "do { ... } while (0)".
60427         * lib/tls.h: Likewise.
60428
60429 2007-11-04  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60432
60433 2007-11-04  Bruno Haible  <bruno@clisp.org>
60434
60435         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60436         * modules/fprintf-posix (Depends-on): Add nocrash.
60437         * modules/snprintf-posix (Depends-on): Likewise.
60438         * modules/sprintf-posix (Depends-on): Likewise.
60439         * modules/vasnprintf-posix (Depends-on): Likewise.
60440         * modules/vasprintf-posix (Depends-on): Likewise.
60441         * modules/vfprintf-posix (Depends-on): Likewise.
60442         * modules/vsnprintf-posix (Depends-on): Likewise.
60443         * modules/vsprintf-posix (Depends-on): Likewise.
60444         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60445         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60446         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60447         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60448         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60449         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60450         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60451
60452 2007-11-04  Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/nocrash: New file.
60455         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60456         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60457
60458 2007-11-04  Bruno Haible  <bruno@clisp.org>
60459
60460         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60461         precision handling.
60462         * tests/test-vasprintf-posix.c (test_function): Likewise.
60463         * tests/test-snprintf-posix.h (test_function): Likewise.
60464         * tests/test-sprintf-posix.h (test_function): Likewise.
60465
60466         Fix *printf behaviour for large precisions on mingw and BeOS.
60467         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60468         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60470         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60471         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60472         gl_PRINTF_PRECISION and test its result. Invoke
60473         gl_PREREQ_VASNPRINTF_PRECISION.
60474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60478         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60479         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60480         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60481         * doc/functions/fprintf.texi: Update.
60482         * doc/functions/printf.texi: Update.
60483         * doc/functions/snprintf.texi: Update.
60484         * doc/functions/sprintf.texi: Update.
60485         * doc/functions/vfprintf.texi: Update.
60486         * doc/functions/vprintf.texi: Update.
60487         * doc/functions/vsnprintf.texi: Update.
60488         * doc/functions/vsprintf.texi: Update.
60489
60490 2007-11-04  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60493
60494 2007-11-04  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60497         Reported by Sylvain Beucler <beuc@gnu.org>.
60498
60499 2007-11-03  Bruno Haible  <bruno@clisp.org>
60500
60501         * tests/test-fprintf-posix2.sh: New file.
60502         * tests/test-fprintf-posix2.c: New file.
60503         * modules/fprintf-posix-tests (Files): Add them.
60504         (TESTS): Add test-fprintf-posix2.sh.
60505         (configure.ac): Check for getrlimit and setrlimit.
60506         (check_PROGRAMS): Add test-fprintf-posix2.
60507
60508         * tests/test-printf-posix2.sh: New file.
60509         * tests/test-printf-posix2.c: New file.
60510         * modules/printf-posix-tests (Files): Add them.
60511         (TESTS): Add test-printf-posix2.sh.
60512         (configure.ac): Check for getrlimit and setrlimit.
60513         (check_PROGRAMS): Add test-printf-posix2.
60514
60515         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60516         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60517         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60518         (decode_double): New function, copied from decode_long_double.
60519         (scale10_round_decimal_decoded): New function, extracted from
60520         scale10_round_decimal_long_double.
60521         (scale10_round_decimal_long_double): Use it.
60522         (scale10_round_decimal_double): New function.
60523         (floorlog10): New function.
60524         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60526         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60528         gl_PRINTF_ENOMEM and test its result. Invoke
60529         gl_PREREQ_VASNPRINTF_ENOMEM.
60530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60537         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60538         * modules/snprintf-posix (Depends-on): Likewise.
60539         * modules/sprintf-posix (Depends-on): Likewise.
60540         * modules/vasnprintf-posix (Depends-on): Likewise.
60541         * modules/vasprintf-posix (Depends-on): Likewise.
60542         * modules/vfprintf-posix (Depends-on): Likewise.
60543         * modules/vsnprintf-posix (Depends-on): Likewise.
60544         * modules/vsprintf-posix (Depends-on): Likewise.
60545         * doc/functions/fprintf.texi: Update.
60546         * doc/functions/printf.texi: Update.
60547         * doc/functions/snprintf.texi: Update.
60548         * doc/functions/sprintf.texi: Update.
60549         * doc/functions/vfprintf.texi: Update.
60550         * doc/functions/vprintf.texi: Update.
60551         * doc/functions/vsnprintf.texi: Update.
60552         * doc/functions/vsprintf.texi: Update.
60553
60554 2007-11-03  Bruno Haible  <bruno@clisp.org>
60555
60556         * modules/frexp-nolibm-tests: New file.
60557
60558         * modules/frexp-nolibm: New file.
60559         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60560
60561 2007-11-03  Bruno Haible  <bruno@clisp.org>
60562
60563         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60564         value is C99 compliant.
60565         Needed for OSF/1 5.1.
60566
60567 2007-11-03  Bruno Haible  <bruno@clisp.org>
60568
60569         Fix out-of-memory handling of vasnprintf.
60570         * lib/printf-parse.c: Include <errno.h>.
60571         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60572         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60573         is already set.
60574
60575 2007-11-02  Eric Blake  <ebb9@byu.net>
60576
60577         Fix tests on cygwin.
60578         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60579
60580 2007-11-01  Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60583         warning.
60584         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60585         needed for POSIX compatibility.
60586
60587 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60588
60589         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60590         for compatibility with GNU.
60591
60592 2007-11-01  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60595         (putenv): Renamed from rpl_putenv. Change argument type from
60596         'const char *' to 'char *'.
60597         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60598         of defining putenv in config.h, just set REPLACE_PUTENV.
60599         * modules/putenv (Depends-on): Add stdlib.
60600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60601         (Include): Use <stdlib.h>.
60602         * lib/stdlib.in.h (putenv): New declaration.
60603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60604         REPLACE_PUTENV.
60605         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60606         REPLACE_PUTENV.
60607         Needed for MacOS X 10.5.0.
60608         Reported by Peter O'Gorman <peter@pogma.com>.
60609
60610 2007-11-01  Jim Meyering  <meyering@redhat.com>
60611
60612         Treat an empty date string exactly like "0".
60613         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60614         if the remaining date string (to be parsed) is empty, use "0".
60615         Reported by Mischa Molhoek and discussed in this thread:
60616         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60617
60618 2007-10-31  Bruno Haible  <bruno@clisp.org>
60619
60620         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60621         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60622         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60623         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60624         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60625         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60626
60627 2007-10-31  Bruno Haible  <bruno@clisp.org>
60628
60629         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60630         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60631         (AC_TYPE_LONG_LONG_INT): Use it.
60632         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60633         it as well.
60634         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60635         to m4/longlong.m4.
60636         * modules/stdint (Files): Remove m4/ulonglong.m4.
60637         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60638         m4/ulonglong.m4.
60639         * modules/strtoumax (Files): Likewise.
60640
60641 2007-10-30  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/xvasprintf-posix: New file.
60644         Suggested by Eric Blake.
60645
60646 2007-10-30  Bruno Haible  <bruno@clisp.org>
60647
60648         * modules/xprintf-posix-tests: New file.
60649         * tests/test-xprintf-posix.sh: New file.
60650         * tests/test-xprintf-posix.c: New file.
60651         * tests/test-xfprintf-posix.c: New file.
60652
60653         * modules/xprintf-posix: New file.
60654
60655 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60656
60657         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60658         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60659         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60660
60661 2007-10-29  Bruno Haible  <bruno@clisp.org>
60662
60663         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60664         contain the special marker '_cv_'.
60665         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60666         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60667         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60668         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60669         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60670         Reported by Ralf Wildenhues.
60671
60672 2007-10-29  Bruno Haible  <bruno@clisp.org>
60673
60674         * gnulib-tool (func_import): When --lgpl is not specified, set
60675         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60676         GPLv3.
60677         Reported by Simon Josefsson.
60678
60679 2007-10-28  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60682         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60683         HAVE_DECL_ISFINITE.
60684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60685         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60686         HAVE_DECL_ISFINITE.
60687
60688 2007-10-28  Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60691         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60692
60693 2007-10-28  Bruno Haible  <bruno@clisp.org>
60694
60695         Fix link errors with Sun C 5.0 on Solaris 10.
60696         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60697         function is declared but not present in the compiler's libm.
60698         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60699         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60700         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60701         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60702         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60703         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60704         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60706         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60707         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60708         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60709         HAVE_DECL_FLOORL.
60710
60711 2007-10-28  Bruno Haible  <bruno@clisp.org>
60712
60713         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60714         gl_FUNC_FLOORL. Cache the result.
60715         (gl_FUNC_FLOORL): Use it.
60716         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60717         gl_FUNC_CEILL. Cache the result.
60718         (gl_FUNC_CEILL): Use it.
60719
60720         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60721         gl_FUNC_FLOOR. Cache the result.
60722         (gl_FUNC_FLOOR): Use it.
60723         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60724         gl_FUNC_CEIL. Cache the result.
60725         (gl_FUNC_CEIL): Use it.
60726
60727         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60728         gl_FUNC_FLOORF. Cache the result.
60729         (gl_FUNC_FLOORF): Use it.
60730         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60731         gl_FUNC_CEILF. Cache the result.
60732         (gl_FUNC_CEILF): Use it.
60733
60734 2007-10-28  Bruno Haible  <bruno@clisp.org>
60735
60736         * gnulib-tool: Allow specifying the LGPL version number through
60737         --lgpl=2 or --lgpl=3.
60738         (func_usage): Document --lgpl with argument.
60739         Handle --lgpl=... arguments.
60740         (func_import): Recognize also gl_LGPL calls with an argument. When
60741         --lgpl=2 is used and the module's license is just LGPL, report an
60742         error. Set sed_transform_lib_file according to the lgpl variable. In
60743         the generated files, use --lgpl or gl_LGPL invocations with argument,
60744         if necessary.
60745         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60746         an LGPv2+ license.
60747         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60748         gl_LGPL macro.
60749
60750 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60751             Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60754         (u16_uctomb_aux): Likewise.
60755         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60756         !HAVE_INLINE.
60757         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60758
60759 2007-10-28  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60762         Invoke AM_GETTEXT_OPTION if it exists.
60763         * modules/vasprintf: Likewise.
60764         * modules/verror: Likewise.
60765         * modules/xprintf: Likewise.
60766         * modules/xvasprintf: Likewise.
60767
60768 2007-10-27  Ben Pfaff  <blp@gnu.org>
60769
60770         * lib/math.in.h: Define isfinite macro and prototypes for
60771         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60772         implementations.
60773         * m4/math_h.m4: New substitutions for isfinite module.
60774         * lib/isfinite.c: New file.
60775         * m4/isfinite.m4: New file.
60776         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60777         * modules/isfinite: New file.
60778         * modules/isfinite-tests: New file.
60779         * tests/tests-isfinite.c: New file.
60780         * doc/functions/isfinite.texi: Mention isfinite module.
60781         * MODULES.html.sh: Mention new module.
60782
60783 2007-10-27  Ben Pfaff  <blp@gnu.org>
60784
60785         Ralf Wildenhues reported that Tru64 4.0D declares the round
60786         functions but does not have definitions.
60787         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60788         cannot be found in any library, set the output variable to
60789         "missing" instead of "".
60790         * m4/round.m4: Also use our substitute if we cannot find round in
60791         any library, even if it is declared.
60792         * m4/roundf.m4: Likewise for roundf.
60793         * m4/roundl.m4: Likewise for roundl.
60794         * lib/math.in.h: Undefine roundf, round, roundl before defining
60795         their replacements, to allow for hypothetical systems where these
60796         may be defined as macros but not available in libraries.
60797
60798 2007-10-27  Bruno Haible  <bruno@clisp.org>
60799
60800         * doc/gnulib.texi: Invoke @firstparagraphindent.
60801         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60802         changes in gnulib.
60803         (Source changes): New section.
60804
60805 2007-10-26  Bruno Haible  <bruno@clisp.org>
60806
60807         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60808         borrowed from autoconf.
60809
60810 2007-10-26  Bruno Haible  <bruno@clisp.org>
60811
60812         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60813         strerror returned the empty string. Needed on HP-UX 11.00.
60814
60815 2007-10-24  Micah Cowan  <micah@cowan.name>
60816
60817         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60818         * build-aux/bootstrap: Remove support for now-unnecessary option,
60819         --cvs-user, and envvars CVS_USER, CVS_RSH.
60820
60821 2007-10-24  Jim Meyering  <meyering@redhat.com>
60822
60823         Avoid diagnostics from sha1sum when there is no cached checksum.
60824         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60825         if the po.s1 file hasn't been created yet.
60826
60827         * build-aux/bootstrap: Sync from coreutils:
60828         2007-10-24  Jim Meyering  <meyering@redhat.com>
60829         Get gnulib from the git repository, not from an obsolete cvs one.
60830         * build-aux/bootstrap: Suggestion from Micah Cowan.
60831         2007-10-04  Jim Meyering  <jim@meyering.net>
60832         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60833         (update_po_files): Work also when there are no .po files in po/.
60834
60835 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * README: Append ".git" to git and cg examples.
60838         Problem reported by Benoit Sigoure.
60839
60840 2007-10-23  Micah Cowan  <micah@cowan.name>
60841
60842         * users.txt: Add wget.
60843
60844 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60845
60846         Fix linking of some unistdio tests on FreeBSD.
60847         * modules/unistdio/u16-vsnprintf-tests
60848         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60849         * modules/unistdio/u16-vsprintf-tests
60850         (test_u16_vsnprintf1_LDADD): Likewise.
60851         * modules/unistdio/u32-vsnprintf-tests
60852         (test_u32_vsnprintf1_LDADD): Likewise.
60853         * modules/unistdio/u32-vsprintf-tests
60854         (test_u32_vsprintf1_LDADD): Likewise.
60855         * modules/unistdio/u8-vsnprintf-tests
60856         (test_u8_vsnprintf1_LDADD): Likewise.
60857         * modules/unistdio/u8-vsprintf-tests
60858         (test_u8_vsprintf1_LDADD): Likewise.
60859         * modules/unistdio/ulc-vsnprintf-tests
60860         (test_ulc_vsnprintf1_LDADD): Likewise.
60861         * modules/unistdio/ulc-vsprintf-tests
60862         (test_ulc_vsprintf1_LDADD): Likewise.
60863
60864         Fix linking of some uniconv tests on FreeBSD.
60865         * modules/uniconv/u16-conv-from-enc-tests
60866         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60867         * modules/uniconv/u16-conv-to-enc-tests
60868         (test_u16_conv_to_enc_LDADD): Likewise.
60869         * modules/uniconv/u16-strconv-from-enc-tests
60870         (test_u16_strconv_from_enc_LDADD): Likewise.
60871         * modules/uniconv/u16-strconv-to-enc-tests
60872         (test_u16_strconv_to_enc_LDADD): Likewise.
60873         * modules/uniconv/u32-conv-from-enc-tests
60874         (test_u32_conv_from_enc_LDADD): Likewise.
60875         * modules/uniconv/u32-conv-to-enc-tests
60876         (test_u32_conv_to_enc_LDADD): Likewise.
60877         * modules/uniconv/u32-strconv-from-enc-tests
60878         (test_u32_strconv_from_enc_LDADD): Likewise.
60879         * modules/uniconv/u32-strconv-to-enc-tests
60880         (test_u32_strconv_to_enc_LDADD): Likewise.
60881         * modules/uniconv/u8-conv-from-enc-tests
60882         (test_u8_conv_from_enc_LDADD): Likewise.
60883         * modules/uniconv/u8-conv-to-enc-tests
60884         (test_u8_conv_to_enc_LDADD): Likewise.
60885         * modules/uniconv/u8-strconv-from-enc-tests
60886         (test_u8_strconv_from_enc_LDADD): Likewise.
60887         * modules/uniconv/u8-strconv-to-enc-tests
60888         (test_u8_strconv_to_enc_LDADD): Likewise.
60889
60890 2007-10-22  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60893         size.
60894
60895 2007-10-22  Eric Blake  <ebb9@byu.net>
60896
60897         Tweak x*printf documentation.
60898         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60899         variable name and comments.
60900         Suggested by Bruno Haible.
60901
60902 2007-10-22  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/acl.c (copy_acl): Fix file name in comment.
60905
60906 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60907
60908         Fix Tru64 problem with stdbool.h.
60909         * lib/stdbool.in.h (false, true):
60910         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60911         Don't declare as an enum in this situation; it runs afoul of Tru64.
60912         Problem reported by Steven M. Schweda in
60913         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60914
60915 2007-10-22  Eric Blake  <ebb9@byu.net>
60916
60917         Also wrap vf?printf.
60918         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60919         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60920         (xvprintf, xvfprintf): New functions.
60921
60922 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60923
60924         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60925         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60926
60927         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60928         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60929
60930 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60933         by Bruno Haible.
60934
60935 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60936
60937         * lib/getloadavg.c
60938         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60939         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60940
60941         * tests/test-i-ring.c: Work for C89.
60942
60943 2007-10-22  Bruno Haible  <bruno@clisp.org>
60944
60945         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60946         -1u, in preprocessor expression, so that we don't test for the bug
60947         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60949
60950 2007-10-22  Eric Blake  <ebb9@byu.net>
60951
60952         * tests/test-yesno.sh: Silence stderr during test.
60953
60954 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60955
60956         * modules/crypto/gc-camellia: New file.
60957
60958         * m4/gc-camellia.m4: New file.
60959
60960         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60961
60962         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60963
60964 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60965
60966         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60967         --help to stdout.  Reported by sms@antinode.org (Steven
60968         M. Schweda).
60969
60970 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60971
60972         * users.txt: Fix link to libksba.
60973
60974 2007-10-21  Ben Pfaff  <blp@gnu.org>
60975
60976         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60977         round.c roundf implementation that depends on floorf and ceilf to
60978         be tested unconditionally.
60979
60980 2007-10-21  Ben Pfaff  <blp@gnu.org>
60981
60982         * m4/check-libm-func.m4: Removed.
60983         * m4/check-math-lib.m4: New file.
60984         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60985         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60986         definition and lack of AC_LIBOBJ([roundf]).
60987         * m4/roundl.m4: Ditto, and similarly for roundl.
60988         * modules/round: Reference new m4 file.
60989         * modules/roundf: Ditto.
60990         * modules/roundl: Ditto.
60991         * tests/test-round2.c (main): Use ROUND instead of round.
60992         Bug report from Bruno Haible.
60993
60994 2007-10-21  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60997         context.
60998
60999 2007-10-21  Bruno Haible  <bruno@clisp.org>
61000
61001         * tests/test-wcwidth.c (main): Allow negative result for some control
61002         characters.
61003
61004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61005         Needed on OSF/1 5.1.
61006
61007 2007-10-21  Bruno Haible  <bruno@clisp.org>
61008
61009         * tests/test-floorf1.c: Include isnanf.h.
61010         (main): Use isnanf() instead of isnan().
61011         * tests/test-ceilf1.c: Include isnanf.h.
61012         (main): Use isnanf() instead of isnan().
61013         * tests/test-truncf1.c: Include isnanf.h.
61014         (main): Use isnanf() instead of isnan().
61015         * tests/test-roundf1.c: Include isnanf.h.
61016         (main): Use isnanf() instead of isnan().
61017
61018 2007-10-21  Eric Blake  <ebb9@byu.net>
61019
61020         * users.txt: Update URL for m4.
61021
61022 2007-10-21  Bruno Haible  <bruno@clisp.org>
61023
61024         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61025
61026 2007-10-21  Bruno Haible  <bruno@clisp.org>
61027
61028         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61029         Git's management files if the CVS files are not present.
61030
61031 2007-10-20  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61034         gcc-3.4.x.
61035
61036 2007-10-20  Ben Pfaff  <blp@gnu.org>
61037
61038         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61039         implementations.
61040         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61041         * lib/round.c: New file.
61042         * lib/roundf.c: New file.
61043         * lib/roundl.c: New file.
61044         * m4/round.m4: New file.
61045         * m4/roundf.m4: New file.
61046         * m4/roundl.m4: New file.
61047         * m4/check-libm-func-m4: New file.
61048         * modules/math: Replace round, roundf, roundl related @VARS@ in
61049         math.in.h.
61050         * modules/round: New file.
61051         * modules/round-tests: New file.
61052         * modules/roundf: New file.
61053         * modules/roundf-tests: New file.
61054         * modules/roundl: New file.
61055         * modules/roundl-tests: New file.
61056         * tests/test-round1.c: New file.
61057         * tests/test-round2.c: New file.
61058         * tests/test-roundf1.c: New file.
61059         * tests/test-roundf2.c: New file.
61060         * tests/test-roundl.c: New file.
61061         * doc/functions/round.texi: Mention round module.
61062         * doc/functions/roundf.texi: Mention roundf module.
61063         * doc/functions/roundl.texi: Mention roundl module.
61064         * MODULES.html.sh: Mention new modules.
61065         Thanks to Bruno Haible for suggestions.
61066
61067 2007-10-20  Jim Meyering  <meyering@redhat.com>
61068
61069         * lib/xprintf.c: Include <config.h> unconditionally.
61070
61071         Change xprintf's license to GPL.
61072         * modules/xprintf (License): s/LGPL/GPL/, since this module
61073         depends on modules (exit and exitfail) which are GPL.
61074         Suggestion from Bruno Haible.
61075
61076         xprintf fixes.
61077         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61078         Use a clearer diagnostic.
61079         Patch from Bruno Haible.
61080
61081 2007-10-20  Bruno Haible  <bruno@clisp.org>
61082
61083         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61084         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61086
61087 2007-10-20  Bruno Haible  <bruno@clisp.org>
61088
61089         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61090         precision in the comparison result > x - 1 or similar.
61091         * tests/test-ceilf2.c (correct_result_p): Likewise.
61092         * tests/test-truncf2.c (correct_result_p): Likewise.
61093         * tests/test-trunc2.c (correct_result_p): Likewise.
61094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61095
61096 2007-10-20  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/ceil: New file.
61099         * m4/ceil.m4: New file.
61100         * doc/functions/ceil.texi: Mention the 'ceil' module.
61101
61102 2007-10-20  Bruno Haible  <bruno@clisp.org>
61103
61104         * modules/floor: New file.
61105         * m4/floor.m4: New file.
61106         * doc/functions/floor.texi: Mention the 'floor' module.
61107
61108 2007-10-20  Bruno Haible  <bruno@clisp.org>
61109
61110         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61111         of %a.
61112         * modules/floorf-tests (Depends-on): Likewise.
61113         * modules/truncf-tests (Depends-on): Likewise.
61114         * modules/trunc-tests (Depends-on): Likewise.
61115         Reported by Ben Pfaff.
61116
61117 2007-10-19  Jim Meyering  <meyering@redhat.com>
61118
61119         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61120         Don't bother testing specific errno values.  Just test ferror.
61121
61122         New module: xprintf
61123         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61124
61125 2007-10-19  Bruno Haible  <bruno@clisp.org>
61126
61127         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61128         syntax.
61129         * modules/javaexec (Makefile.am): Likewise.
61130         * modules/relocatable-prog (Makefile.am): Likewise.
61131         Suggested by Jim Meyering.
61132
61133 2007-10-18  Bruno Haible  <bruno@clisp.org>
61134
61135         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61136         Reported by Jim Meyering.
61137
61138 2007-10-18  Eric Blake  <ebb9@byu.net>
61139
61140         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61141
61142 2007-10-18  Bruno Haible  <bruno@clisp.org>
61143
61144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61145         the format string into writable memory. Needed in Fortify conditions.
61146
61147 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61148             Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61151         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61152         * modules/trim (Depends-on): Add mbchar.
61153         (configure.ac): Add gl_FUNC_MBRTOWC.
61154         (Makefile.am): Augment lib_SOURCES.
61155
61156 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61157
61158         Modify glob.c to use fstatat and dirfd, to simplify it.
61159         Suggested by Eric Blake.
61160         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61161         Don't include <stdbool.h>; not used.
61162         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61163         (link_exists_p): Simplify implementation, since we can now assume
61164         dirfd and fstatat.
61165         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61166
61167 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61168
61169         * gnulib-tool (func_get_dependencies): Fix sed script to
61170         match only tests.
61171
61172 2007-10-17  Bruno Haible  <bruno@clisp.org>
61173
61174         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61175         allow locale names without encoding suffix.
61176         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61177         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61178
61179 2007-10-16  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61182         * lib/getgroups.c (getgroups): Likewise.
61183         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61184
61185 2007-10-16  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61188         * modules/malloc-posix (License): Likewise.
61189         * modules/realloc-posix (License): Likewise.
61190         * modules/calloc-posix (License): Likewise.
61191         * modules/intprops (License): Change from GPL to LGPL, with
61192         Paul Eggert's approval.
61193
61194 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         Merge glibc changes into lib/glob.c.
61197
61198         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61199         2007-10-15 04:59:03 UTC.  Here are the changes:
61200
61201         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61202
61203         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61204
61205         * lib/glob.c: Add some branch prediction throughout.
61206
61207         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61208
61209         [BZ #5103]
61210         * lib/glob.c (glob): Recognize patterns starting \/.
61211
61212         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61213
61214         [BZ #3996]
61215         * lib/glob.c (attribute_hidden): Define if not defined.
61216         (glob): Unescape dirname, filename or username when needed and not
61217         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61218         is NULL.  Handle unescaped [ in pattern without closing ].
61219         Don't pass GLOB_CHECK down to recursive glob for directories.
61220         (__glob_pattern_type): New function.
61221         (__glob_pattern_p): Implement using __glob_pattern_type.
61222         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61223         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61224         Remove unreachable code.
61225
61226         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61227
61228         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61229         explain why there are no leaks.
61230
61231         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61232
61233         [BZ #3253]
61234         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61235         time, rather allocate increasingly bigger arrays of pointers, if
61236         possible with alloca, if too large with malloc.
61237
61238 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61241         Problem reported by H.Merijn Brand in
61242         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61243         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61244         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61245
61246 2007-10-15  Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61249         with explicit rpl_ prefix.
61250         * lib/fopen.c (fopen): Likewise.
61251         * lib/freopen.c (freopen): Likewise.
61252         * lib/iconv.c (iconv): Likewise.
61253         * lib/iconv_close.c (iconv_close): Likewise.
61254
61255 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61256
61257         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61258
61259 2007-10-15  Bruno Haible  <bruno@clisp.org>
61260
61261         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61262         <stddef.h> instead of <stdlib.h> since we only need NULL.
61263         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61264
61265 2007-10-15  Bruno Haible  <bruno@clisp.org>
61266
61267         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61268         Replace paragraph talking about LIBOBJS.
61269         Reported by Colin Watson <cjwatson@debian.org>.
61270
61271 2007-10-15  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61274         <stdlib.h> before using NULL.
61275
61276 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61277
61278         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61279         Reported by Albert Chin <china@thewrittenword.com>.
61280
61281 2007-10-14  Bruno Haible  <bruno@clisp.org>
61282
61283         * modules/iconv_open-utf-tests: New file.
61284         * tests/test-iconv-utf.c: New file.
61285
61286         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61287         * modules/iconv_open-utf: New file.
61288         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61289         (iconv, iconv_close): New declarations.
61290         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61291         be defined.
61292         (iconv_open): Add special handling of conversion between UTF-8 and
61293         UTF-{16,32}{BE,LE}.
61294         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61295         * lib/iconv_close.c: New file.
61296         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61297         gl_FUNC_ICONV_OPEN.
61298         (gl_FUNC_ICONV_OPEN): Use it.
61299         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61300         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61301         and REPLACE_ICONV_UTF.
61302         * modules/iconv_open (Depends-on): Add c-strcase.
61303         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61304         ICONV_CONST.
61305         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61306
61307 2007-10-13  Albert Chin  <china@thewrittenword.com>
61308             Bruno Haible  <bruno@clisp.org>
61309
61310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61311         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61312
61313 2007-10-13  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61316         defined, use the ISO C99 inline semantics.
61317         * lib/argp.h (ARGP_EI): Likewise.
61318
61319 2007-10-13  Bruno Haible  <bruno@clisp.org>
61320
61321         Handle 'inline' change in gcc 4.3.0.
61322         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61323         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61324         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61325         argp_fmtstream_point): Disable 'extern' declaration if the function
61326         definition is going to be provided inline.
61327         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61328         semantics, not the ISO C99 inline semantics.
61329         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61330         'extern' declaration if the function definition is going to be provided
61331         inline.
61332         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61333         the GNU C inline semantics, not the ISO C99 inline semantics. With
61334         GCC 4.2, avoid a warning.
61335
61336 2007-10-13  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/freading.h (freading): Enable the use of __freading for
61339         glibc >= 2.7.
61340         * lib/freading.c (freading): Likewise.
61341
61342 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61343
61344         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61345         "warning: C99 inline functions are not supported; using GNU89".
61346
61347 2007-10-12  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61350         of 2.
61351         * tests/test-ceilf2.c: New file.
61352         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61353
61354         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61355         * modules/ceilf-tests: Update.
61356
61357 2007-10-12  Bruno Haible  <bruno@clisp.org>
61358
61359         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61360         of 2.
61361         * tests/test-floorf2.c: New file.
61362         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61363
61364         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61365         * modules/floorf-tests: Update.
61366
61367 2007-10-12  Bruno Haible  <bruno@clisp.org>
61368
61369         * tests/test-trunc2.c: New file.
61370         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61371
61372         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61373         * modules/trunc-tests: Update.
61374
61375 2007-10-12  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61378         of 2.
61379         * tests/test-truncf2.c: New file.
61380         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61381
61382         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61383         * modules/truncf-tests: Update.
61384
61385 2007-10-11  Eric Blake  <ebb9@byu.net>
61386
61387         Don't claim strerror is broken on Interix.
61388         * doc/functions/strerror.texi (strerror): Known broken systems are
61389         now Solaris 8, and not Interix.
61390         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61391         Interix on cross-compile.
61392         Reported by Martin Koeppe in
61393         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61394
61395 2007-10-11  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/i-ring-tests: New file.
61398         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61399         instead of assert.
61400
61401 2007-10-11  Bruno Haible  <bruno@clisp.org>
61402
61403         * modules/filenamecat-tests: New file.
61404         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61405         * lib/filenamecat.c: Remove test code.
61406
61407 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61410
61411         * lib/strerror.c: Include <string.h> always, to test interface,
61412         and to remove the need for the dummy.
61413         Include intprops.h to compute width instead of doing it ourselves
61414         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61415         (strerror): Define it to return NULL if there's no system strerror.
61416         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61417         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61418         ancient pre-strerror Unix systems well any more.  Saying "unknown
61419         system error" is enough.
61420         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61421         simpler strerror.c implementation.
61422         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61423         Simplify the tests to reflect the simpler strerror implementation.
61424         * modules/strerror (Depends-on): Add intprops.
61425
61426 2007-10-09  Eric Blake  <ebb9@byu.net>
61427
61428         Silence test-fpending.
61429         * modules/fpending-tests (Files): Add wrapper script.
61430         * tests/test-fpending.sh: New file.
61431
61432 2007-10-09  Bruno Haible  <bruno@clisp.org>
61433
61434         * MODULES.html.sh (func_module): Don't create a hyperlink for
61435         function names like 'printf_frexp'.
61436         (Misc): Add crc, memxor.
61437         (Characteristics of floating types): New section.
61438         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61439         isnanf-nolibm, signbit, trunc, truncf, truncl.
61440         (Enhancements for ISO C 99 functions): New subsection Input/output.
61441         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61442         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61443         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61444         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61445         (Enhancements for POSIX:2001 functions): Add chdir-long.
61446         (File system functions): Add areadlink, chdir-safer, read-file.
61447         Remove cycle-check.
61448         (File system as inode set): New section.
61449         (Date and time): Add gethrxtime.
61450         (Multithreading): Add openmp.
61451         (Internationalization functions): Add localename.
61452         (Unicode string functions): Add unistr/u*-mbsnlen.
61453         (Support for maintaining and releasing projects): Add git-version-gen.
61454         (Lone files): Remove directories.
61455
61456 2007-10-08  Ben Pfaff  <blp@gnu.org>
61457
61458         * lib/xmalloca.h: Fix typo in comment.
61459
61460 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61463         when avoiding problems with integer overflow.  Use a portable test
61464         instead.
61465
61466 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61467
61468         * modules/dummy (License): Change to LGPLv2+.
61469         * modules/float (License): Likewise
61470         * modules/realloc (License): Likewise
61471         * modules/stdlib (License): Likewise
61472
61473 2007-10-07  Bruno Haible  <bruno@clisp.org>
61474
61475         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61476         * floor.c (TWO_MANT_DIG): Likewise.
61477         * ceil.c (TWO_MANT_DIG): Likewise.
61478         Reported by Ben Pfaff.
61479
61480 2007-10-07  Bruno Haible  <bruno@clisp.org>
61481
61482         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61483         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61484         * lib/frexp.c (FUNC): Likewise.
61485         * lib/printf-frexp.h (printf_frexp): Likewise.
61486         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61487         * lib/printf-frexp.c (FUNC): Likewise.
61488         Suggested by Jim Meyering.
61489
61490 2007-10-07  Jim Meyering  <meyering@redhat.com>
61491
61492         Make xnanosleep's integer overflow test more robust.
61493         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61494         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61495
61496 2007-10-07  Bruno Haible  <bruno@clisp.org>
61497
61498         * NEWS: Mention the license change.
61499
61500         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61501         abbreviations in the modules files.
61502
61503         Change copyright notice from GPLv2+ to GPLv3+.
61504         * README: Change copyright notice.
61505         * MODULES.html.sh: Likewise.
61506         * build-aux/bootstrap.conf: Likewise.
61507         * build-aux/config.libpath: Likewise.
61508         * build-aux/csharpcomp.sh.in: Likewise.
61509         * build-aux/csharpexec.sh.in: Likewise.
61510         * build-aux/install-reloc: Likewise.
61511         * build-aux/javacomp.sh.in: Likewise.
61512         * build-aux/javaexec.sh.in: Likewise.
61513         * build-aux/ldd.sh.in: Likewise.
61514         * build-aux/reloc-ldflags: Likewise.
61515         * build-aux/relocatable.sh.in: Likewise.
61516         * build-aux/x-to-1.in: Likewise.
61517         * check-module: Likewise.
61518         * config/srclistvars.sh: Likewise.
61519         * gnulib-tool: Likewise.
61520         * lib/acl-internal.h: Likewise.
61521         * lib/acl.c: Likewise.
61522         * lib/acl.h: Likewise.
61523         * lib/acl_entries.c: Likewise.
61524         * lib/areadlink-with-size.c: Likewise.
61525         * lib/areadlink.c: Likewise.
61526         * lib/areadlink.h: Likewise.
61527         * lib/argmatch.c: Likewise.
61528         * lib/argmatch.h: Likewise.
61529         * lib/argp-ba.c: Likewise.
61530         * lib/argp-eexst.c: Likewise.
61531         * lib/argp-fmtstream.c: Likewise.
61532         * lib/argp-fmtstream.h: Likewise.
61533         * lib/argp-fs-xinl.c: Likewise.
61534         * lib/argp-help.c: Likewise.
61535         * lib/argp-namefrob.h: Likewise.
61536         * lib/argp-parse.c: Likewise.
61537         * lib/argp-pin.c: Likewise.
61538         * lib/argp-pv.c: Likewise.
61539         * lib/argp-pvh.c: Likewise.
61540         * lib/argp-xinl.c: Likewise.
61541         * lib/argp.h: Likewise.
61542         * lib/at-func.c: Likewise.
61543         * lib/atanl.c: Likewise.
61544         * lib/backupfile.c: Likewise.
61545         * lib/backupfile.h: Likewise.
61546         * lib/basename.c: Likewise.
61547         * lib/binary-io.h: Likewise.
61548         * lib/byteswap.in.h: Likewise.
61549         * lib/c-stack.c: Likewise.
61550         * lib/c-stack.h: Likewise.
61551         * lib/c-strcasestr.c: Likewise.
61552         * lib/c-strcasestr.h: Likewise.
61553         * lib/c-strstr.c: Likewise.
61554         * lib/c-strstr.h: Likewise.
61555         * lib/c-strtod.c: Likewise.
61556         * lib/calloc.c: Likewise.
61557         * lib/canon-host.c: Likewise.
61558         * lib/canon-host.h: Likewise.
61559         * lib/canonicalize-lgpl.c: Likewise.
61560         * lib/canonicalize.c: Likewise.
61561         * lib/canonicalize.h: Likewise.
61562         * lib/ceil.c: Likewise.
61563         * lib/ceilf.c: Likewise.
61564         * lib/ceill.c: Likewise.
61565         * lib/chdir-long.c: Likewise.
61566         * lib/chdir-long.h: Likewise.
61567         * lib/chdir-safer.c: Likewise.
61568         * lib/chdir-safer.h: Likewise.
61569         * lib/chown.c: Likewise.
61570         * lib/classpath.c: Likewise.
61571         * lib/classpath.h: Likewise.
61572         * lib/clean-temp.c: Likewise.
61573         * lib/clean-temp.h: Likewise.
61574         * lib/cloexec.c: Likewise.
61575         * lib/close-stream.c: Likewise.
61576         * lib/closein.c: Likewise.
61577         * lib/closein.h: Likewise.
61578         * lib/closeout.c: Likewise.
61579         * lib/closeout.h: Likewise.
61580         * lib/concat-filename.c: Likewise.
61581         * lib/copy-file.c: Likewise.
61582         * lib/copy-file.h: Likewise.
61583         * lib/count-one-bits.h: Likewise.
61584         * lib/crc.c: Likewise.
61585         * lib/crc.h: Likewise.
61586         * lib/creat-safer.c: Likewise.
61587         * lib/csharpcomp.c: Likewise.
61588         * lib/csharpcomp.h: Likewise.
61589         * lib/csharpexec.c: Likewise.
61590         * lib/csharpexec.h: Likewise.
61591         * lib/cycle-check.c: Likewise.
61592         * lib/cycle-check.h: Likewise.
61593         * lib/diacrit.c: Likewise.
61594         * lib/diacrit.h: Likewise.
61595         * lib/diffseq.h: Likewise.
61596         * lib/dirchownmod.c: Likewise.
61597         * lib/dirent.in.h: Likewise.
61598         * lib/dirfd.c: Likewise.
61599         * lib/dirfd.h: Likewise.
61600         * lib/dirname.c: Likewise.
61601         * lib/dirname.h: Likewise.
61602         * lib/dummy.c: Likewise.
61603         * lib/dup-safer.c: Likewise.
61604         * lib/dup2.c: Likewise.
61605         * lib/eealloc.h: Likewise.
61606         * lib/error.c: Likewise.
61607         * lib/error.h: Likewise.
61608         * lib/euidaccess.c: Likewise.
61609         * lib/exclude.c: Likewise.
61610         * lib/exclude.h: Likewise.
61611         * lib/execute.c: Likewise.
61612         * lib/execute.h: Likewise.
61613         * lib/exitfail.c: Likewise.
61614         * lib/exitfail.h: Likewise.
61615         * lib/expl.c: Likewise.
61616         * lib/fatal-signal.c: Likewise.
61617         * lib/fatal-signal.h: Likewise.
61618         * lib/fbufmode.c: Likewise.
61619         * lib/fbufmode.h: Likewise.
61620         * lib/fchdir.c: Likewise.
61621         * lib/fchmodat.c: Likewise.
61622         * lib/fchownat.c: Likewise.
61623         * lib/fcntl--.h: Likewise.
61624         * lib/fcntl-safer.h: Likewise.
61625         * lib/fcntl.in.h: Likewise.
61626         * lib/fd-safer.c: Likewise.
61627         * lib/fflush.c: Likewise.
61628         * lib/file-has-acl.c: Likewise.
61629         * lib/file-set.c: Likewise.
61630         * lib/file-type.c: Likewise.
61631         * lib/file-type.h: Likewise.
61632         * lib/fileblocks.c: Likewise.
61633         * lib/filemode.c: Likewise.
61634         * lib/filemode.h: Likewise.
61635         * lib/filename.h: Likewise.
61636         * lib/filenamecat.c: Likewise.
61637         * lib/filenamecat.h: Likewise.
61638         * lib/findprog.c: Likewise.
61639         * lib/findprog.h: Likewise.
61640         * lib/float.in.h: Likewise.
61641         * lib/floor.c: Likewise.
61642         * lib/floorf.c: Likewise.
61643         * lib/floorl.c: Likewise.
61644         * lib/fopen-safer.c: Likewise.
61645         * lib/fopen.c: Likewise.
61646         * lib/fpending.c: Likewise.
61647         * lib/fpending.h: Likewise.
61648         * lib/fprintf.c: Likewise.
61649         * lib/fprintftime.h: Likewise.
61650         * lib/fpucw.h: Likewise.
61651         * lib/fpurge.c: Likewise.
61652         * lib/fpurge.h: Likewise.
61653         * lib/freadable.c: Likewise.
61654         * lib/freadable.h: Likewise.
61655         * lib/freadahead.c: Likewise.
61656         * lib/freadahead.h: Likewise.
61657         * lib/freading.c: Likewise.
61658         * lib/freading.h: Likewise.
61659         * lib/free.c: Likewise.
61660         * lib/freopen.c: Likewise.
61661         * lib/frexp.c: Likewise.
61662         * lib/frexpl.c: Likewise.
61663         * lib/fseek.c: Likewise.
61664         * lib/fseterr.c: Likewise.
61665         * lib/fseterr.h: Likewise.
61666         * lib/fstatat.c: Likewise.
61667         * lib/fstrcmp.c: Likewise.
61668         * lib/fstrcmp.h: Likewise.
61669         * lib/fsusage.c: Likewise.
61670         * lib/fsusage.h: Likewise.
61671         * lib/ftell.c: Likewise.
61672         * lib/ftello.c: Likewise.
61673         * lib/fts-cycle.c: Likewise.
61674         * lib/fts.c: Likewise.
61675         * lib/fts_.h: Likewise.
61676         * lib/full-read.c: Likewise.
61677         * lib/full-read.h: Likewise.
61678         * lib/full-write.c: Likewise.
61679         * lib/full-write.h: Likewise.
61680         * lib/fwritable.c: Likewise.
61681         * lib/fwritable.h: Likewise.
61682         * lib/fwriteerror.c: Likewise.
61683         * lib/fwriteerror.h: Likewise.
61684         * lib/fwriting.c: Likewise.
61685         * lib/fwriting.h: Likewise.
61686         * lib/gcd.c: Likewise.
61687         * lib/gcd.h: Likewise.
61688         * lib/getcwd.c: Likewise.
61689         * lib/getdate.h: Likewise.
61690         * lib/getdate.y: Likewise.
61691         * lib/getdomainname.c: Likewise.
61692         * lib/getdomainname.h: Likewise.
61693         * lib/getgroups.c: Likewise.
61694         * lib/gethostname.c: Likewise.
61695         * lib/gethrxtime.c: Likewise.
61696         * lib/gethrxtime.h: Likewise.
61697         * lib/getloadavg.c: Likewise.
61698         * lib/getndelim2.c: Likewise.
61699         * lib/getndelim2.h: Likewise.
61700         * lib/getnline.c: Likewise.
61701         * lib/getnline.h: Likewise.
61702         * lib/getopt.c: Likewise.
61703         * lib/getopt.in.h: Likewise.
61704         * lib/getopt1.c: Likewise.
61705         * lib/getopt_int.h: Likewise.
61706         * lib/getpagesize.h: Likewise.
61707         * lib/getsubopt.c: Likewise.
61708         * lib/gettime.c: Likewise.
61709         * lib/getugroups.c: Likewise.
61710         * lib/getugroups.h: Likewise.
61711         * lib/getusershell.c: Likewise.
61712         * lib/gl_anyavltree_list1.h: Likewise.
61713         * lib/gl_anyavltree_list2.h: Likewise.
61714         * lib/gl_anyhash_list1.h: Likewise.
61715         * lib/gl_anyhash_list2.h: Likewise.
61716         * lib/gl_anylinked_list1.h: Likewise.
61717         * lib/gl_anylinked_list2.h: Likewise.
61718         * lib/gl_anyrbtree_list1.h: Likewise.
61719         * lib/gl_anyrbtree_list2.h: Likewise.
61720         * lib/gl_anytree_list1.h: Likewise.
61721         * lib/gl_anytree_list2.h: Likewise.
61722         * lib/gl_anytree_oset.h: Likewise.
61723         * lib/gl_anytreehash_list1.h: Likewise.
61724         * lib/gl_anytreehash_list2.h: Likewise.
61725         * lib/gl_array_list.c: Likewise.
61726         * lib/gl_array_list.h: Likewise.
61727         * lib/gl_array_oset.c: Likewise.
61728         * lib/gl_array_oset.h: Likewise.
61729         * lib/gl_avltree_list.c: Likewise.
61730         * lib/gl_avltree_list.h: Likewise.
61731         * lib/gl_avltree_oset.c: Likewise.
61732         * lib/gl_avltree_oset.h: Likewise.
61733         * lib/gl_avltreehash_list.c: Likewise.
61734         * lib/gl_avltreehash_list.h: Likewise.
61735         * lib/gl_carray_list.c: Likewise.
61736         * lib/gl_carray_list.h: Likewise.
61737         * lib/gl_linked_list.c: Likewise.
61738         * lib/gl_linked_list.h: Likewise.
61739         * lib/gl_linkedhash_list.c: Likewise.
61740         * lib/gl_linkedhash_list.h: Likewise.
61741         * lib/gl_list.c: Likewise.
61742         * lib/gl_list.h: Likewise.
61743         * lib/gl_oset.c: Likewise.
61744         * lib/gl_oset.h: Likewise.
61745         * lib/gl_rbtree_list.c: Likewise.
61746         * lib/gl_rbtree_list.h: Likewise.
61747         * lib/gl_rbtree_oset.c: Likewise.
61748         * lib/gl_rbtree_oset.h: Likewise.
61749         * lib/gl_rbtreehash_list.c: Likewise.
61750         * lib/gl_rbtreehash_list.h: Likewise.
61751         * lib/gl_sublist.c: Likewise.
61752         * lib/gl_sublist.h: Likewise.
61753         * lib/group-member.c: Likewise.
61754         * lib/group-member.h: Likewise.
61755         * lib/hard-locale.c: Likewise.
61756         * lib/hard-locale.h: Likewise.
61757         * lib/hash-pjw.c: Likewise.
61758         * lib/hash-pjw.h: Likewise.
61759         * lib/hash-triple.c: Likewise.
61760         * lib/hash.c: Likewise.
61761         * lib/hash.h: Likewise.
61762         * lib/human.c: Likewise.
61763         * lib/human.h: Likewise.
61764         * lib/i-ring.c: Likewise.
61765         * lib/i-ring.h: Likewise.
61766         * lib/idcache.c: Likewise.
61767         * lib/imaxabs.c: Likewise.
61768         * lib/imaxdiv.c: Likewise.
61769         * lib/inet_pton.c: Likewise.
61770         * lib/inet_pton.h: Likewise.
61771         * lib/intprops.h: Likewise.
61772         * lib/inttostr.c: Likewise.
61773         * lib/inttostr.h: Likewise.
61774         * lib/inttypes.in.h: Likewise.
61775         * lib/isapipe.c: Likewise.
61776         * lib/isdir.c: Likewise.
61777         * lib/isnan.c: Likewise.
61778         * lib/isnan.h: Likewise.
61779         * lib/isnanf.c: Likewise.
61780         * lib/isnanf.h: Likewise.
61781         * lib/isnanl-nolibm.h: Likewise.
61782         * lib/isnanl.c: Likewise.
61783         * lib/isnanl.h: Likewise.
61784         * lib/javacomp.c: Likewise.
61785         * lib/javacomp.h: Likewise.
61786         * lib/javaexec.c: Likewise.
61787         * lib/javaexec.h: Likewise.
61788         * lib/javaversion.c: Likewise.
61789         * lib/javaversion.h: Likewise.
61790         * lib/javaversion.java: Likewise.
61791         * lib/lbrkprop.h: Likewise.
61792         * lib/lchmod.h: Likewise.
61793         * lib/lchown.c: Likewise.
61794         * lib/ldexpl.c: Likewise.
61795         * lib/linebreak.c: Likewise.
61796         * lib/linebreak.h: Likewise.
61797         * lib/linebuffer.c: Likewise.
61798         * lib/linebuffer.h: Likewise.
61799         * lib/locale.in.h: Likewise.
61800         * lib/logl.c: Likewise.
61801         * lib/long-options.c: Likewise.
61802         * lib/long-options.h: Likewise.
61803         * lib/lstat.c: Likewise.
61804         * lib/lstat.h: Likewise.
61805         * lib/math.in.h: Likewise.
61806         * lib/mbchar.c: Likewise.
61807         * lib/mbchar.h: Likewise.
61808         * lib/mbfile.h: Likewise.
61809         * lib/mbiter.h: Likewise.
61810         * lib/mbscasecmp.c: Likewise.
61811         * lib/mbscasestr.c: Likewise.
61812         * lib/mbschr.c: Likewise.
61813         * lib/mbscspn.c: Likewise.
61814         * lib/mbslen.c: Likewise.
61815         * lib/mbsncasecmp.c: Likewise.
61816         * lib/mbsnlen.c: Likewise.
61817         * lib/mbspbrk.c: Likewise.
61818         * lib/mbspcasecmp.c: Likewise.
61819         * lib/mbsrchr.c: Likewise.
61820         * lib/mbssep.c: Likewise.
61821         * lib/mbsspn.c: Likewise.
61822         * lib/mbsstr.c: Likewise.
61823         * lib/mbstok_r.c: Likewise.
61824         * lib/mbswidth.c: Likewise.
61825         * lib/mbswidth.h: Likewise.
61826         * lib/mbuiter.h: Likewise.
61827         * lib/memcasecmp.c: Likewise.
61828         * lib/memcasecmp.h: Likewise.
61829         * lib/memchr.c: Likewise.
61830         * lib/memcmp.c: Likewise.
61831         * lib/memcoll.c: Likewise.
61832         * lib/memcoll.h: Likewise.
61833         * lib/memcpy.c: Likewise.
61834         * lib/memrchr.c: Likewise.
61835         * lib/mkancesdirs.c: Likewise.
61836         * lib/mkdir-p.c: Likewise.
61837         * lib/mkdir-p.h: Likewise.
61838         * lib/mkdir.c: Likewise.
61839         * lib/mkdirat.c: Likewise.
61840         * lib/mkdtemp.c: Likewise.
61841         * lib/mkstemp-safer.c: Likewise.
61842         * lib/mkstemp.c: Likewise.
61843         * lib/modechange.c: Likewise.
61844         * lib/modechange.h: Likewise.
61845         * lib/mountlist.c: Likewise.
61846         * lib/mountlist.h: Likewise.
61847         * lib/mpsort.c: Likewise.
61848         * lib/nanosleep.c: Likewise.
61849         * lib/obstack.c: Likewise.
61850         * lib/obstack.h: Likewise.
61851         * lib/open-safer.c: Likewise.
61852         * lib/open.c: Likewise.
61853         * lib/openat-die.c: Likewise.
61854         * lib/openat-priv.h: Likewise.
61855         * lib/openat-proc.c: Likewise.
61856         * lib/openat.c: Likewise.
61857         * lib/openat.h: Likewise.
61858         * lib/pagealign_alloc.c: Likewise.
61859         * lib/pagealign_alloc.h: Likewise.
61860         * lib/physmem.c: Likewise.
61861         * lib/physmem.h: Likewise.
61862         * lib/pipe-safer.c: Likewise.
61863         * lib/pipe.c: Likewise.
61864         * lib/pipe.h: Likewise.
61865         * lib/posixtm.c: Likewise.
61866         * lib/posixtm.h: Likewise.
61867         * lib/posixver.c: Likewise.
61868         * lib/printf-frexp.c: Likewise.
61869         * lib/printf-frexp.h: Likewise.
61870         * lib/printf-frexpl.c: Likewise.
61871         * lib/printf-frexpl.h: Likewise.
61872         * lib/printf.c: Likewise.
61873         * lib/progname.c: Likewise.
61874         * lib/progname.h: Likewise.
61875         * lib/progreloc.c: Likewise.
61876         * lib/putenv.c: Likewise.
61877         * lib/quote.c: Likewise.
61878         * lib/quote.h: Likewise.
61879         * lib/quotearg.c: Likewise.
61880         * lib/quotearg.h: Likewise.
61881         * lib/raise.c: Likewise.
61882         * lib/readline.c: Likewise.
61883         * lib/readline.h: Likewise.
61884         * lib/readlink.c: Likewise.
61885         * lib/readtokens.c: Likewise.
61886         * lib/readtokens.h: Likewise.
61887         * lib/readtokens0.c: Likewise.
61888         * lib/readtokens0.h: Likewise.
61889         * lib/readutmp.c: Likewise.
61890         * lib/readutmp.h: Likewise.
61891         * lib/realloc.c: Likewise.
61892         * lib/relocwrapper.c: Likewise.
61893         * lib/rename-dest-slash.c: Likewise.
61894         * lib/rename.c: Likewise.
61895         * lib/rmdir.c: Likewise.
61896         * lib/rpmatch.c: Likewise.
61897         * lib/safe-read.c: Likewise.
61898         * lib/safe-read.h: Likewise.
61899         * lib/safe-write.c: Likewise.
61900         * lib/safe-write.h: Likewise.
61901         * lib/same-inode.h: Likewise.
61902         * lib/same.c: Likewise.
61903         * lib/same.h: Likewise.
61904         * lib/save-cwd.c: Likewise.
61905         * lib/save-cwd.h: Likewise.
61906         * lib/savedir.c: Likewise.
61907         * lib/savedir.h: Likewise.
61908         * lib/savewd.c: Likewise.
61909         * lib/savewd.h: Likewise.
61910         * lib/search.in.h: Likewise.
61911         * lib/setenv.c: Likewise.
61912         * lib/setenv.h: Likewise.
61913         * lib/settime.c: Likewise.
61914         * lib/sh-quote.c: Likewise.
61915         * lib/sh-quote.h: Likewise.
61916         * lib/sig2str.c: Likewise.
61917         * lib/sig2str.h: Likewise.
61918         * lib/signal.in.h: Likewise.
61919         * lib/signbitd.c: Likewise.
61920         * lib/signbitf.c: Likewise.
61921         * lib/signbitl.c: Likewise.
61922         * lib/sigprocmask.c: Likewise.
61923         * lib/sincosl.c: Likewise.
61924         * lib/sleep.c: Likewise.
61925         * lib/sprintf.c: Likewise.
61926         * lib/sqrtl.c: Likewise.
61927         * lib/stat-time.h: Likewise.
61928         * lib/stdio--.h: Likewise.
61929         * lib/stdio-safer.h: Likewise.
61930         * lib/stdlib--.h: Likewise.
61931         * lib/stdlib-safer.h: Likewise.
61932         * lib/stdlib.in.h: Likewise.
61933         * lib/stpcpy.c: Likewise.
61934         * lib/stpncpy.c: Likewise.
61935         * lib/strchrnul.c: Likewise.
61936         * lib/strcspn.c: Likewise.
61937         * lib/strerror.c: Likewise.
61938         * lib/strftime.c: Likewise.
61939         * lib/strftime.h: Likewise.
61940         * lib/striconveh.c: Likewise.
61941         * lib/striconveh.h: Likewise.
61942         * lib/striconveha.c: Likewise.
61943         * lib/striconveha.h: Likewise.
61944         * lib/stripslash.c: Likewise.
61945         * lib/strnlen1.c: Likewise.
61946         * lib/strnlen1.h: Likewise.
61947         * lib/strtod.c: Likewise.
61948         * lib/strtoimax.c: Likewise.
61949         * lib/strtok_r.c: Likewise.
61950         * lib/strtol.c: Likewise.
61951         * lib/strtoll.c: Likewise.
61952         * lib/strtoul.c: Likewise.
61953         * lib/strtoull.c: Likewise.
61954         * lib/sysexits.in.h: Likewise.
61955         * lib/tempname.c: Likewise.
61956         * lib/tempname.h: Likewise.
61957         * lib/timespec.h: Likewise.
61958         * lib/tls.c: Likewise.
61959         * lib/tls.h: Likewise.
61960         * lib/tmpdir.c: Likewise.
61961         * lib/tmpdir.h: Likewise.
61962         * lib/tmpfile-safer.c: Likewise.
61963         * lib/tmpfile.c: Likewise.
61964         * lib/trigl.c: Likewise.
61965         * lib/trigl.h: Likewise.
61966         * lib/trim.c: Likewise.
61967         * lib/trim.h: Likewise.
61968         * lib/trunc.c: Likewise.
61969         * lib/truncf.c: Likewise.
61970         * lib/truncl.c: Likewise.
61971         * lib/tsearch.c: Likewise.
61972         * lib/unicodeio.c: Likewise.
61973         * lib/unicodeio.h: Likewise.
61974         * lib/unistd--.h: Likewise.
61975         * lib/unistd-safer.h: Likewise.
61976         * lib/unistdio/ulc-fprintf.c: Likewise.
61977         * lib/unistdio/ulc-vfprintf.c: Likewise.
61978         * lib/unlinkdir.c: Likewise.
61979         * lib/unlinkdir.h: Likewise.
61980         * lib/unlocked-io.h: Likewise.
61981         * lib/unsetenv.c: Likewise.
61982         * lib/userspec.c: Likewise.
61983         * lib/utime.c: Likewise.
61984         * lib/utimecmp.c: Likewise.
61985         * lib/utimecmp.h: Likewise.
61986         * lib/utimens.c: Likewise.
61987         * lib/verify.h: Likewise.
61988         * lib/verror.c: Likewise.
61989         * lib/verror.h: Likewise.
61990         * lib/version-etc-fsf.c: Likewise.
61991         * lib/version-etc.c: Likewise.
61992         * lib/version-etc.h: Likewise.
61993         * lib/vfprintf.c: Likewise.
61994         * lib/vprintf.c: Likewise.
61995         * lib/vsprintf.c: Likewise.
61996         * lib/w32spawn.h: Likewise.
61997         * lib/wait-process.c: Likewise.
61998         * lib/wait-process.h: Likewise.
61999         * lib/wcwidth.c: Likewise.
62000         * lib/write-any-file.c: Likewise.
62001         * lib/xalloc-die.c: Likewise.
62002         * lib/xalloc.h: Likewise.
62003         * lib/xasprintf.c: Likewise.
62004         * lib/xgetcwd.c: Likewise.
62005         * lib/xgetcwd.h: Likewise.
62006         * lib/xgetdomainname.c: Likewise.
62007         * lib/xgetdomainname.h: Likewise.
62008         * lib/xgethostname.c: Likewise.
62009         * lib/xmalloc.c: Likewise.
62010         * lib/xmalloca.c: Likewise.
62011         * lib/xmalloca.h: Likewise.
62012         * lib/xmemcoll.c: Likewise.
62013         * lib/xnanosleep.c: Likewise.
62014         * lib/xreadlink.c: Likewise.
62015         * lib/xreadlink.h: Likewise.
62016         * lib/xsetenv.c: Likewise.
62017         * lib/xsetenv.h: Likewise.
62018         * lib/xstriconv.c: Likewise.
62019         * lib/xstriconv.h: Likewise.
62020         * lib/xstrndup.c: Likewise.
62021         * lib/xstrndup.h: Likewise.
62022         * lib/xstrtod.c: Likewise.
62023         * lib/xstrtod.h: Likewise.
62024         * lib/xstrtol-error.c: Likewise.
62025         * lib/xstrtol.c: Likewise.
62026         * lib/xstrtol.h: Likewise.
62027         * lib/xtime.h: Likewise.
62028         * lib/xvasprintf.c: Likewise.
62029         * lib/xvasprintf.h: Likewise.
62030         * lib/yesno.c: Likewise.
62031         * lib/yesno.h: Likewise.
62032         * posix-modules: Likewise.
62033         * tests/test-alloca-opt.c: Likewise.
62034         * tests/test-arcfour.c: Likewise.
62035         * tests/test-arctwo.c: Likewise.
62036         * tests/test-argmatch.c: Likewise.
62037         * tests/test-argp-2.sh: Likewise.
62038         * tests/test-argp.c: Likewise.
62039         * tests/test-arpa_inet.c: Likewise.
62040         * tests/test-array_list.c: Likewise.
62041         * tests/test-array_oset.c: Likewise.
62042         * tests/test-atexit.c: Likewise.
62043         * tests/test-avltree_list.c: Likewise.
62044         * tests/test-avltree_oset.c: Likewise.
62045         * tests/test-avltreehash_list.c: Likewise.
62046         * tests/test-base64.c: Likewise.
62047         * tests/test-binary-io.c: Likewise.
62048         * tests/test-byteswap.c: Likewise.
62049         * tests/test-c-ctype.c: Likewise.
62050         * tests/test-c-strcasecmp.c: Likewise.
62051         * tests/test-c-strcasestr.c: Likewise.
62052         * tests/test-c-strncasecmp.c: Likewise.
62053         * tests/test-c-strstr.c: Likewise.
62054         * tests/test-canonicalize-lgpl.c: Likewise.
62055         * tests/test-canonicalize.c: Likewise.
62056         * tests/test-carray_list.c: Likewise.
62057         * tests/test-ceilf.c: Likewise.
62058         * tests/test-ceill.c: Likewise.
62059         * tests/test-count-one-bits.c: Likewise.
62060         * tests/test-crc.c: Likewise.
62061         * tests/test-dirname.c: Likewise.
62062         * tests/test-fbufmode.c: Likewise.
62063         * tests/test-fcntl.c: Likewise.
62064         * tests/test-fflush.c: Likewise.
62065         * tests/test-floorf.c: Likewise.
62066         * tests/test-floorl.c: Likewise.
62067         * tests/test-fopen.c: Likewise.
62068         * tests/test-fprintf-posix.c: Likewise.
62069         * tests/test-fprintf-posix.h: Likewise.
62070         * tests/test-fpurge.c: Likewise.
62071         * tests/test-freadable.c: Likewise.
62072         * tests/test-freadahead.c: Likewise.
62073         * tests/test-freading.c: Likewise.
62074         * tests/test-freopen.c: Likewise.
62075         * tests/test-frexp.c: Likewise.
62076         * tests/test-frexpl.c: Likewise.
62077         * tests/test-fseek.c: Likewise.
62078         * tests/test-fseeko.c: Likewise.
62079         * tests/test-fseterr.c: Likewise.
62080         * tests/test-fstrcmp.c: Likewise.
62081         * tests/test-ftell.c: Likewise.
62082         * tests/test-ftello.c: Likewise.
62083         * tests/test-fwritable.c: Likewise.
62084         * tests/test-fwriting.c: Likewise.
62085         * tests/test-getaddrinfo.c: Likewise.
62086         * tests/test-getpass.c: Likewise.
62087         * tests/test-gettimeofday.c: Likewise.
62088         * tests/test-hmac-md5.c: Likewise.
62089         * tests/test-hmac-sha1.c: Likewise.
62090         * tests/test-iconv.c: Likewise.
62091         * tests/test-iconvme.c: Likewise.
62092         * tests/test-inttypes.c: Likewise.
62093         * tests/test-isnan.c: Likewise.
62094         * tests/test-isnanf.c: Likewise.
62095         * tests/test-isnanl-nolibm.c: Likewise.
62096         * tests/test-isnanl.c: Likewise.
62097         * tests/test-isnanl.h: Likewise.
62098         * tests/test-ldexpl.c: Likewise.
62099         * tests/test-linked_list.c: Likewise.
62100         * tests/test-linkedhash_list.c: Likewise.
62101         * tests/test-locale.c: Likewise.
62102         * tests/test-localename.c: Likewise.
62103         * tests/test-lock.c: Likewise.
62104         * tests/test-lseek.c: Likewise.
62105         * tests/test-malloca.c: Likewise.
62106         * tests/test-math.c: Likewise.
62107         * tests/test-mbscasecmp.c: Likewise.
62108         * tests/test-mbscasestr1.c: Likewise.
62109         * tests/test-mbscasestr2.c: Likewise.
62110         * tests/test-mbscasestr3.c: Likewise.
62111         * tests/test-mbscasestr4.c: Likewise.
62112         * tests/test-mbschr.c: Likewise.
62113         * tests/test-mbscspn.c: Likewise.
62114         * tests/test-mbsncasecmp.c: Likewise.
62115         * tests/test-mbspbrk.c: Likewise.
62116         * tests/test-mbspcasecmp.c: Likewise.
62117         * tests/test-mbsrchr.c: Likewise.
62118         * tests/test-mbsspn.c: Likewise.
62119         * tests/test-mbsstr1.c: Likewise.
62120         * tests/test-mbsstr2.c: Likewise.
62121         * tests/test-mbsstr3.c: Likewise.
62122         * tests/test-md5.c: Likewise.
62123         * tests/test-memmem.c: Likewise.
62124         * tests/test-netinet_in.c: Likewise.
62125         * tests/test-open.c: Likewise.
62126         * tests/test-printf-frexp.c: Likewise.
62127         * tests/test-printf-frexpl.c: Likewise.
62128         * tests/test-printf-posix.c: Likewise.
62129         * tests/test-printf-posix.h: Likewise.
62130         * tests/test-rbtree_list.c: Likewise.
62131         * tests/test-rbtree_oset.c: Likewise.
62132         * tests/test-rbtreehash_list.c: Likewise.
62133         * tests/test-read-file.c: Likewise.
62134         * tests/test-rijndael.c: Likewise.
62135         * tests/test-search.c: Likewise.
62136         * tests/test-signbit.c: Likewise.
62137         * tests/test-sleep.c: Likewise.
62138         * tests/test-snprintf-posix.c: Likewise.
62139         * tests/test-snprintf-posix.h: Likewise.
62140         * tests/test-snprintf.c: Likewise.
62141         * tests/test-sprintf-posix.c: Likewise.
62142         * tests/test-sprintf-posix.h: Likewise.
62143         * tests/test-stat-time.c: Likewise.
62144         * tests/test-stdbool.c: Likewise.
62145         * tests/test-stdint.c: Likewise.
62146         * tests/test-stdio.c: Likewise.
62147         * tests/test-stdlib.c: Likewise.
62148         * tests/test-stpncpy.c: Likewise.
62149         * tests/test-strcasestr.c: Likewise.
62150         * tests/test-striconv.c: Likewise.
62151         * tests/test-striconveh.c: Likewise.
62152         * tests/test-striconveha.c: Likewise.
62153         * tests/test-string.c: Likewise.
62154         * tests/test-sys_select.c: Likewise.
62155         * tests/test-sys_socket.c: Likewise.
62156         * tests/test-sys_stat.c: Likewise.
62157         * tests/test-sys_time.c: Likewise.
62158         * tests/test-sysexits.c: Likewise.
62159         * tests/test-time.c: Likewise.
62160         * tests/test-tls.c: Likewise.
62161         * tests/test-trunc.c: Likewise.
62162         * tests/test-truncf.c: Likewise.
62163         * tests/test-truncl.c: Likewise.
62164         * tests/test-unistd.c: Likewise.
62165         * tests/test-vasnprintf-posix.c: Likewise.
62166         * tests/test-vasnprintf-posix2.c: Likewise.
62167         * tests/test-vasnprintf.c: Likewise.
62168         * tests/test-vasprintf-posix.c: Likewise.
62169         * tests/test-vasprintf.c: Likewise.
62170         * tests/test-verify.c: Likewise.
62171         * tests/test-vfprintf-posix.c: Likewise.
62172         * tests/test-vprintf-posix.c: Likewise.
62173         * tests/test-vsnprintf-posix.c: Likewise.
62174         * tests/test-vsnprintf.c: Likewise.
62175         * tests/test-vsprintf-posix.c: Likewise.
62176         * tests/test-wchar.c: Likewise.
62177         * tests/test-wctype.c: Likewise.
62178         * tests/test-wcwidth.c: Likewise.
62179         * tests/test-xstrtol.c: Likewise.
62180         * tests/test-xvasprintf.c: Likewise.
62181         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62182         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62183         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62184         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62185         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62186         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62187         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62188         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62189         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62190         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62191         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62192         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62193         * tests/uniname/test-uninames.c: Likewise.
62194         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62195         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62196         * tests/unistdio/test-u16-printf1.h: Likewise.
62197         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62198         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62199         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62200         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62201         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62202         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62203         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62204         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62205         * tests/unistdio/test-u32-printf1.h: Likewise.
62206         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62207         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62208         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62209         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62210         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62211         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62212         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62213         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62214         * tests/unistdio/test-u8-printf1.h: Likewise.
62215         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62216         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62217         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62218         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62219         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62220         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62221         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62222         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62223         * tests/unistdio/test-ulc-printf1.h: Likewise.
62224         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62225         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62226         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62227         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62228         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62229         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62230         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62231         * tests/uniwidth/test-u16-width.c: Likewise.
62232         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62233         * tests/uniwidth/test-u32-width.c: Likewise.
62234         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62235         * tests/uniwidth/test-u8-width.c: Likewise.
62236         * tests/uniwidth/test-uc_width.c: Likewise.
62237         * config/srclist-update: Likewise.
62238         (fixlicense): Update to GPLv3+.
62239
62240         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62241         * tests/test-tsearch.c: Change copyright notice.
62242
62243         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62244         * lib/c-strcaseeq.h: Change copyright notice.
62245         * lib/streq.h: Likewise.
62246         * lib/uniconv.h: Likewise.
62247         * lib/uniconv/u-conv-from-enc.h: Likewise.
62248         * lib/uniconv/u-conv-to-enc.h: Likewise.
62249         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62250         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62251         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62252         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62253         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62254         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62255         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62256         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62257         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62258         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62259         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62260         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62261         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62262         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62263         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62264         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62265         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62266         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62267         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62268         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62269         * lib/uniname.h: Likewise.
62270         * lib/uniname/uniname.c: Likewise.
62271         * lib/unistdio.h: Likewise.
62272         * lib/unistdio/u-asnprintf.h: Likewise.
62273         * lib/unistdio/u-asprintf.h: Likewise.
62274         * lib/unistdio/u-printf-args.c: Likewise.
62275         * lib/unistdio/u-printf-args.h: Likewise.
62276         * lib/unistdio/u-printf-parse.h: Likewise.
62277         * lib/unistdio/u-snprintf.h: Likewise.
62278         * lib/unistdio/u-sprintf.h: Likewise.
62279         * lib/unistdio/u-vasprintf.h: Likewise.
62280         * lib/unistdio/u-vsnprintf.h: Likewise.
62281         * lib/unistdio/u-vsprintf.h: Likewise.
62282         * lib/unistdio/u16-asnprintf.c: Likewise.
62283         * lib/unistdio/u16-asprintf.c: Likewise.
62284         * lib/unistdio/u16-printf-parse.c: Likewise.
62285         * lib/unistdio/u16-snprintf.c: Likewise.
62286         * lib/unistdio/u16-sprintf.c: Likewise.
62287         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62288         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62289         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62290         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62291         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62292         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62293         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62294         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62295         * lib/unistdio/u16-vasnprintf.c: Likewise.
62296         * lib/unistdio/u16-vasprintf.c: Likewise.
62297         * lib/unistdio/u16-vsnprintf.c: Likewise.
62298         * lib/unistdio/u16-vsprintf.c: Likewise.
62299         * lib/unistdio/u32-asnprintf.c: Likewise.
62300         * lib/unistdio/u32-asprintf.c: Likewise.
62301         * lib/unistdio/u32-printf-parse.c: Likewise.
62302         * lib/unistdio/u32-snprintf.c: Likewise.
62303         * lib/unistdio/u32-sprintf.c: Likewise.
62304         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62305         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62306         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62307         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62308         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62309         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62310         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62311         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62312         * lib/unistdio/u32-vasnprintf.c: Likewise.
62313         * lib/unistdio/u32-vasprintf.c: Likewise.
62314         * lib/unistdio/u32-vsnprintf.c: Likewise.
62315         * lib/unistdio/u32-vsprintf.c: Likewise.
62316         * lib/unistdio/u8-asnprintf.c: Likewise.
62317         * lib/unistdio/u8-asprintf.c: Likewise.
62318         * lib/unistdio/u8-printf-parse.c: Likewise.
62319         * lib/unistdio/u8-snprintf.c: Likewise.
62320         * lib/unistdio/u8-sprintf.c: Likewise.
62321         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62322         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62323         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62324         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62325         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62326         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62327         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62328         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62329         * lib/unistdio/u8-vasnprintf.c: Likewise.
62330         * lib/unistdio/u8-vasprintf.c: Likewise.
62331         * lib/unistdio/u8-vsnprintf.c: Likewise.
62332         * lib/unistdio/u8-vsprintf.c: Likewise.
62333         * lib/unistdio/ulc-asnprintf.c: Likewise.
62334         * lib/unistdio/ulc-asprintf.c: Likewise.
62335         * lib/unistdio/ulc-printf-parse.c: Likewise.
62336         * lib/unistdio/ulc-snprintf.c: Likewise.
62337         * lib/unistdio/ulc-sprintf.c: Likewise.
62338         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62339         * lib/unistdio/ulc-vasprintf.c: Likewise.
62340         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62341         * lib/unistdio/ulc-vsprintf.c: Likewise.
62342         * lib/unistr.h: Likewise.
62343         * lib/unistr/u-cpy-alloc.h: Likewise.
62344         * lib/unistr/u-cpy.h: Likewise.
62345         * lib/unistr/u-endswith.h: Likewise.
62346         * lib/unistr/u-move.h: Likewise.
62347         * lib/unistr/u-set.h: Likewise.
62348         * lib/unistr/u-startswith.h: Likewise.
62349         * lib/unistr/u-stpcpy.h: Likewise.
62350         * lib/unistr/u-stpncpy.h: Likewise.
62351         * lib/unistr/u-strcat.h: Likewise.
62352         * lib/unistr/u-strcpy.h: Likewise.
62353         * lib/unistr/u-strcspn.h: Likewise.
62354         * lib/unistr/u-strdup.h: Likewise.
62355         * lib/unistr/u-strlen.h: Likewise.
62356         * lib/unistr/u-strncat.h: Likewise.
62357         * lib/unistr/u-strncpy.h: Likewise.
62358         * lib/unistr/u-strnlen.h: Likewise.
62359         * lib/unistr/u-strpbrk.h: Likewise.
62360         * lib/unistr/u-strspn.h: Likewise.
62361         * lib/unistr/u-strstr.h: Likewise.
62362         * lib/unistr/u-strtok.h: Likewise.
62363         * lib/unistr/u16-check.c: Likewise.
62364         * lib/unistr/u16-chr.c: Likewise.
62365         * lib/unistr/u16-cmp.c: Likewise.
62366         * lib/unistr/u16-cpy-alloc.c: Likewise.
62367         * lib/unistr/u16-cpy.c: Likewise.
62368         * lib/unistr/u16-endswith.c: Likewise.
62369         * lib/unistr/u16-mblen.c: Likewise.
62370         * lib/unistr/u16-mbsnlen.c: Likewise.
62371         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62372         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62373         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62374         * lib/unistr/u16-mbtouc.c: Likewise.
62375         * lib/unistr/u16-mbtoucr.c: Likewise.
62376         * lib/unistr/u16-move.c: Likewise.
62377         * lib/unistr/u16-next.c: Likewise.
62378         * lib/unistr/u16-prev.c: Likewise.
62379         * lib/unistr/u16-set.c: Likewise.
62380         * lib/unistr/u16-startswith.c: Likewise.
62381         * lib/unistr/u16-stpcpy.c: Likewise.
62382         * lib/unistr/u16-stpncpy.c: Likewise.
62383         * lib/unistr/u16-strcat.c: Likewise.
62384         * lib/unistr/u16-strchr.c: Likewise.
62385         * lib/unistr/u16-strcmp.c: Likewise.
62386         * lib/unistr/u16-strcpy.c: Likewise.
62387         * lib/unistr/u16-strcspn.c: Likewise.
62388         * lib/unistr/u16-strdup.c: Likewise.
62389         * lib/unistr/u16-strlen.c: Likewise.
62390         * lib/unistr/u16-strmblen.c: Likewise.
62391         * lib/unistr/u16-strmbtouc.c: Likewise.
62392         * lib/unistr/u16-strncat.c: Likewise.
62393         * lib/unistr/u16-strncmp.c: Likewise.
62394         * lib/unistr/u16-strncpy.c: Likewise.
62395         * lib/unistr/u16-strnlen.c: Likewise.
62396         * lib/unistr/u16-strpbrk.c: Likewise.
62397         * lib/unistr/u16-strrchr.c: Likewise.
62398         * lib/unistr/u16-strspn.c: Likewise.
62399         * lib/unistr/u16-strstr.c: Likewise.
62400         * lib/unistr/u16-strtok.c: Likewise.
62401         * lib/unistr/u16-to-u32.c: Likewise.
62402         * lib/unistr/u16-to-u8.c: Likewise.
62403         * lib/unistr/u16-uctomb-aux.c: Likewise.
62404         * lib/unistr/u16-uctomb.c: Likewise.
62405         * lib/unistr/u32-check.c: Likewise.
62406         * lib/unistr/u32-chr.c: Likewise.
62407         * lib/unistr/u32-cmp.c: Likewise.
62408         * lib/unistr/u32-cpy-alloc.c: Likewise.
62409         * lib/unistr/u32-cpy.c: Likewise.
62410         * lib/unistr/u32-endswith.c: Likewise.
62411         * lib/unistr/u32-mblen.c: Likewise.
62412         * lib/unistr/u32-mbsnlen.c: Likewise.
62413         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62414         * lib/unistr/u32-mbtouc.c: Likewise.
62415         * lib/unistr/u32-mbtoucr.c: Likewise.
62416         * lib/unistr/u32-move.c: Likewise.
62417         * lib/unistr/u32-next.c: Likewise.
62418         * lib/unistr/u32-prev.c: Likewise.
62419         * lib/unistr/u32-set.c: Likewise.
62420         * lib/unistr/u32-startswith.c: Likewise.
62421         * lib/unistr/u32-stpcpy.c: Likewise.
62422         * lib/unistr/u32-stpncpy.c: Likewise.
62423         * lib/unistr/u32-strcat.c: Likewise.
62424         * lib/unistr/u32-strchr.c: Likewise.
62425         * lib/unistr/u32-strcmp.c: Likewise.
62426         * lib/unistr/u32-strcpy.c: Likewise.
62427         * lib/unistr/u32-strcspn.c: Likewise.
62428         * lib/unistr/u32-strdup.c: Likewise.
62429         * lib/unistr/u32-strlen.c: Likewise.
62430         * lib/unistr/u32-strmblen.c: Likewise.
62431         * lib/unistr/u32-strmbtouc.c: Likewise.
62432         * lib/unistr/u32-strncat.c: Likewise.
62433         * lib/unistr/u32-strncmp.c: Likewise.
62434         * lib/unistr/u32-strncpy.c: Likewise.
62435         * lib/unistr/u32-strnlen.c: Likewise.
62436         * lib/unistr/u32-strpbrk.c: Likewise.
62437         * lib/unistr/u32-strrchr.c: Likewise.
62438         * lib/unistr/u32-strspn.c: Likewise.
62439         * lib/unistr/u32-strstr.c: Likewise.
62440         * lib/unistr/u32-strtok.c: Likewise.
62441         * lib/unistr/u32-to-u16.c: Likewise.
62442         * lib/unistr/u32-to-u8.c: Likewise.
62443         * lib/unistr/u32-uctomb.c: Likewise.
62444         * lib/unistr/u8-check.c: Likewise.
62445         * lib/unistr/u8-chr.c: Likewise.
62446         * lib/unistr/u8-cmp.c: Likewise.
62447         * lib/unistr/u8-cpy-alloc.c: Likewise.
62448         * lib/unistr/u8-cpy.c: Likewise.
62449         * lib/unistr/u8-endswith.c: Likewise.
62450         * lib/unistr/u8-mblen.c: Likewise.
62451         * lib/unistr/u8-mbsnlen.c: Likewise.
62452         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62453         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62454         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62455         * lib/unistr/u8-mbtouc.c: Likewise.
62456         * lib/unistr/u8-mbtoucr.c: Likewise.
62457         * lib/unistr/u8-move.c: Likewise.
62458         * lib/unistr/u8-next.c: Likewise.
62459         * lib/unistr/u8-prev.c: Likewise.
62460         * lib/unistr/u8-set.c: Likewise.
62461         * lib/unistr/u8-startswith.c: Likewise.
62462         * lib/unistr/u8-stpcpy.c: Likewise.
62463         * lib/unistr/u8-stpncpy.c: Likewise.
62464         * lib/unistr/u8-strcat.c: Likewise.
62465         * lib/unistr/u8-strchr.c: Likewise.
62466         * lib/unistr/u8-strcmp.c: Likewise.
62467         * lib/unistr/u8-strcpy.c: Likewise.
62468         * lib/unistr/u8-strcspn.c: Likewise.
62469         * lib/unistr/u8-strdup.c: Likewise.
62470         * lib/unistr/u8-strlen.c: Likewise.
62471         * lib/unistr/u8-strmblen.c: Likewise.
62472         * lib/unistr/u8-strmbtouc.c: Likewise.
62473         * lib/unistr/u8-strncat.c: Likewise.
62474         * lib/unistr/u8-strncmp.c: Likewise.
62475         * lib/unistr/u8-strncpy.c: Likewise.
62476         * lib/unistr/u8-strnlen.c: Likewise.
62477         * lib/unistr/u8-strpbrk.c: Likewise.
62478         * lib/unistr/u8-strrchr.c: Likewise.
62479         * lib/unistr/u8-strspn.c: Likewise.
62480         * lib/unistr/u8-strstr.c: Likewise.
62481         * lib/unistr/u8-strtok.c: Likewise.
62482         * lib/unistr/u8-to-u16.c: Likewise.
62483         * lib/unistr/u8-to-u32.c: Likewise.
62484         * lib/unistr/u8-uctomb-aux.c: Likewise.
62485         * lib/unistr/u8-uctomb.c: Likewise.
62486         * lib/unitypes.h: Likewise.
62487         * lib/uniwidth.h: Likewise.
62488         * lib/uniwidth/cjk.h: Likewise.
62489         * lib/uniwidth/u16-strwidth.c: Likewise.
62490         * lib/uniwidth/u16-width.c: Likewise.
62491         * lib/uniwidth/u32-strwidth.c: Likewise.
62492         * lib/uniwidth/u32-width.c: Likewise.
62493         * lib/uniwidth/u8-strwidth.c: Likewise.
62494         * lib/uniwidth/u8-width.c: Likewise.
62495         * lib/uniwidth/width.c: Likewise.
62496
62497 2007-10-07  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62500         The file is still under LGPL (see modules/inttypes).
62501
62502 2007-10-06  Bruno Haible  <bruno@clisp.org>
62503
62504         * modules/trunc (Dependencies): Add 'extensions'.
62505         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62506         Reported by Ben Pfaff <blp@gnu.org>.
62507
62508 2007-10-06  Bruno Haible  <bruno@clisp.org>
62509
62510         * modules/freopen-tests: New file.
62511         * tests/test-freopen.c: New file.
62512
62513         * modules/fopen-tests: New file.
62514         * tests/test-fopen.c: New file.
62515
62516         * modules/fopen: New file.
62517         * lib/fopen.c: New file.
62518         * m4/fopen.m4: New file.
62519         * modules/freopen: New file.
62520         * lib/freopen.c: New file.
62521         * m4/freopen.m4: New file.
62522         * lib/stdio.in.h (fopen, freopen): New declarations.
62523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62524         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62525         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62526         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62527         * doc/functions/fopen.texi: Mention the 'fopen' module.
62528         * doc/functions/freopen.texi: Mention the 'freopen' module.
62529
62530 2007-10-06  Bruno Haible  <bruno@clisp.org>
62531
62532         * modules/open-tests: New file.
62533         * tests/test-open.c: New file.
62534
62535         * modules/open: New file.
62536         * lib/open.c: New file.
62537         * m4/open.m4: New file.
62538         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62539         lib/open.c does.
62540         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62541         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62542         macros.
62543         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62544         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62545         REPLACE_OPEN.
62546         * doc/functions/open.texi: Mention the 'open' module.
62547
62548 2007-10-04  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/ceill-tests: New file.
62551         * tests/test-ceill.c: New file.
62552
62553         * modules/ceill: New file.
62554         * lib/ceill.c: Replace entire file.
62555         * m4/ceill.m4: New file.
62556         * lib/math.in.h (ceill): Replace declaration.
62557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62558         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62559         * doc/functions/ceill.texi: Mention the 'ceill' module.
62560         * modules/mathl (Files): Remove lib/ceill.c.
62561         (Depends-on): Add ceill.
62562
62563 2007-10-04  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/ceilf-tests: New file.
62566         * tests/test-ceilf.c: New file.
62567
62568         * modules/ceilf: New file.
62569         * lib/ceil.c: New file.
62570         * lib/ceilf.c: New file.
62571         * m4/ceilf.m4: New file.
62572         * lib/math.in.h (ceilf): New declaration.
62573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62574         HAVE_DECL_CEILF.
62575         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62576         HAVE_DECL_CEILF.
62577         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62578
62579 2007-10-04  Bruno Haible  <bruno@clisp.org>
62580
62581         * modules/floorl-tests: New file.
62582         * tests/test-floorl.c: New file.
62583
62584         * modules/floorl: New file.
62585         * lib/floorl.c: Replace entire file.
62586         * m4/floorl.m4: New file.
62587         * lib/math.in.h (floorl): Replace declaration.
62588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62589         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62590         * doc/functions/floorl.texi: Mention the 'floorl' module.
62591         * modules/mathl (Files): Remove lib/floorl.c.
62592         (Depends-on): Add floorl.
62593
62594 2007-10-04  Bruno Haible  <bruno@clisp.org>
62595
62596         * modules/floorf-tests: New file.
62597         * tests/test-floorf.c: New file.
62598
62599         * modules/floorf: New file.
62600         * lib/floor.c: New file.
62601         * lib/floorf.c: New file.
62602         * m4/floorf.m4: New file.
62603         * lib/math.in.h (floorf): New declaration.
62604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62605         HAVE_DECL_FLOORF.
62606         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62607         HAVE_DECL_FLOORF.
62608         * doc/functions/floorf.texi: Mention the 'floorf' module.
62609
62610 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62611             Bruno Haible  <bruno@clisp.org>
62612
62613         Advertise for the Git server instead of the CVS server.
62614         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62615         repository instead of the CVS one.
62616         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62617         about all VCS systems generically.
62618         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62619
62620 2007-10-04  Bruno Haible  <bruno@clisp.org>
62621
62622         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62623         means.
62624         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62625
62626 2007-10-04  Bruno Haible  <bruno@clisp.org>
62627
62628         * modules/truncl-tests: New file.
62629         * tests/test-truncl.c: New file.
62630
62631         * modules/truncl: New file.
62632         * lib/truncl.c: New file.
62633         * m4/truncl.m4: New file.
62634         * lib/math.in.h (truncl): New declaration.
62635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62636         HAVE_DECL_TRUNCL.
62637         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62638         HAVE_DECL_TRUNCL.
62639         * doc/functions/truncl.texi: Mention the 'truncl' module.
62640
62641 2007-10-04  Bruno Haible  <bruno@clisp.org>
62642
62643         * modules/truncf-tests: New file.
62644         * tests/test-truncf.c: New file.
62645
62646         * modules/truncf: New file.
62647         * lib/trunc.c: Make paramerizable through USE_* macros.
62648         * lib/truncf.c: New file.
62649         * m4/truncf.m4: New file.
62650         * lib/math.in.h (truncf): New declaration.
62651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62652         HAVE_DECL_TRUNCF.
62653         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62654         HAVE_DECL_TRUNCF.
62655         * doc/functions/truncf.texi: Mention the 'truncf' module.
62656
62657 2007-10-03  Bruno Haible  <bruno@clisp.org>
62658
62659         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62660         augmentation also for tests modules.
62661         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62662         * modules/atexit-tests (Makefile.am): Likewise.
62663         * modules/binary-io-tests (Makefile.am): Likewise.
62664         * modules/c-strcase-tests (Makefile.am): Likewise.
62665         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62666         * modules/canonicalize-tests (Makefile.am): Likewise.
62667         * modules/closein-tests (Makefile.am): Likewise.
62668         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62669         * modules/freadahead-tests (Makefile.am): Likewise.
62670         * modules/fseek-tests (Makefile.am): Likewise.
62671         * modules/fseeko-tests (Makefile.am): Likewise.
62672         * modules/ftell-tests (Makefile.am): Likewise.
62673         * modules/ftello-tests (Makefile.am): Likewise.
62674         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62675         * modules/isnanl-tests (Makefile.am): Likewise.
62676         * modules/lseek-tests (Makefile.am): Likewise.
62677         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62678         * modules/mbscasestr-tests (Makefile.am): Likewise.
62679         * modules/mbschr-tests (Makefile.am): Likewise.
62680         * modules/mbscspn-tests (Makefile.am): Likewise.
62681         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62682         * modules/mbspbrk-tests (Makefile.am): Likewise.
62683         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62684         * modules/mbsrchr-tests (Makefile.am): Likewise.
62685         * modules/mbsspn-tests (Makefile.am): Likewise.
62686         * modules/mbsstr-tests (Makefile.am): Likewise.
62687         * modules/printf-posix-tests (Makefile.am): Likewise.
62688         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62689         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62690         * modules/tsearch-tests (Makefile.am): Likewise.
62691         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62692         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62693         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62694         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62695         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62696         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62697         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62698         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62699         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62700         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62701         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62702         * modules/xstrtol-tests (Makefile.am): Likewise.
62703         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62704         * modules/yesno-tests (Makefile.am): Likewise.
62705
62706 2007-10-03  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/trunc-tests: New file.
62709         * tests/test-trunc.c: New file.
62710
62711         * modules/trunc: New file.
62712         * lib/trunc.c: New file.
62713         * m4/trunc.m4: New file.
62714         * lib/math.in.h (trunc): New declaration.
62715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62716         HAVE_DECL_TRUNC.
62717         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62718         HAVE_DECL_TRUNC.
62719         * doc/functions/trunc.texi: Mention the 'trunc' module.
62720
62721 2007-10-03  Bruno Haible  <bruno@clisp.org>
62722
62723         * tests/test-fpending.c: New file, mostly copied
62724         from coreutils/lib/t-fpending.c.
62725         * modules/fpending-tests: New file.
62726
62727 2007-10-03  Bruno Haible  <bruno@clisp.org>
62728
62729         Port the stdio extensions to QNX (untested).
62730         * lib/fseterr.c (fseterr): Add support for QNX.
62731         * lib/fbufmode.c (fbufmode): Likewise.
62732         * lib/freadable.c (freadable): Likewise.
62733         * lib/fwritable.c (fwritable): Likewise.
62734         * lib/freading.c (freading): Likewise.
62735         * lib/fwriting.c (fwriting): Likewise.
62736         * lib/freadahead.c (freadahed): Likewise.
62737         * lib/fpurge.c (fpurge): Likewise.
62738         * lib/fseeko.c (rpl_fseeko): Likewise.
62739
62740 2007-10-03  Bruno Haible  <bruno@clisp.org>
62741             Jim Meyering  <jim@meyering.net>
62742             Eric Blake  <ebb9@byu.net>
62743
62744         * doc/relocatable.texi: Use @command instead of @program.
62745
62746 2007-10-02  Jim Meyering  <jim@meyering.net>
62747
62748         Perform one more "_.h" -> ".in.h" substitution.
62749         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62750         instead of unistd_.h here, too.
62751
62752 2007-10-01  Bruno Haible  <bruno@clisp.org>
62753
62754         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62755         Needed for the alloca-opt module.
62756
62757 2007-09-30  Bruno Haible  <bruno@clisp.org>
62758
62759         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62760         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62761         alloca_.h.
62762         * lib/argz.in.h: Renamed from lib/argz_.h.
62763         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62764         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62765         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62766         byteswap_.h.
62767         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62768         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62769         dirent_.h.
62770         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62771         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62772         fcntl_.h.
62773         * lib/float.in.h: Renamed from lib/float_.h.
62774         * modules/float (Files, Makefile.am): Use float.in.h instead of
62775         float_.h.
62776         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62777         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62778         fnmatch_.h.
62779         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62780         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62781         getopt_.h.
62782         * lib/glob.in.h: Renamed from lib/glob_.h.
62783         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62784         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62785         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62786         iconv_.h.
62787         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62788         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62789         inttypes_.h.
62790         * lib/locale.in.h: Renamed from lib/locale_.h.
62791         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62792         locale_.h.
62793         * lib/math.in.h: Renamed from lib/math_.h.
62794         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62795         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62796         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62797         of netinet_in_.h. Add dependency.
62798         * lib/poll.in.h: Renamed from lib/poll_.h.
62799         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62800         * lib/search.in.h: Renamed from lib/search_.h.
62801         * modules/search (Files, Makefile.am): Use search.in.h instead of
62802         search_.h.
62803         * lib/signal.in.h: Renamed from lib/signal_.h.
62804         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62805         _signal.h.
62806         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62807         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62808         stdbool_.h.
62809         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62810         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62811         stdint_.h.
62812         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62813         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62814         stdio_.h.
62815         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62816         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62817         stdlib_.h.
62818         * lib/string.in.h: Renamed from lib/string_.h.
62819         * modules/string (Files, Makefile.am): Use string.in.h instead of
62820         string_.h.
62821         * doc/gnulib-tool.texi (Initial import): Update.
62822         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62823         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62824         of sys_select_.h. Add dependency.
62825         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62826         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62827         of sys_socket_.h.
62828         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62829         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62830         sys_stat_.h.
62831         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62832         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62833         sys_time_.h.
62834         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62835         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62836         sysexits_.h.
62837         * lib/time.in.h: Renamed from lib/time_.h.
62838         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62839         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62840         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62841         unistd_.h.
62842         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62843         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62844         wchar_.h.
62845         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62846         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62847         wctype_.h.
62848         * build-aux/bootstrap (slurp): Update.
62849         * lib/.cppi-disable: Update.
62850
62851 2007-09-30  Bruno Haible  <bruno@clisp.org>
62852
62853         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62854         Needed on BeOS.
62855
62856 2007-09-30  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62859
62860 2007-09-29  Bruno Haible  <bruno@clisp.org>
62861
62862         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62863
62864 2007-09-29  Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62867         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62868         * build-aux/install-reloc: Compile also areadlink.c.
62869         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62870
62871 2007-09-29  Bruno Haible  <bruno@clisp.org>
62872
62873         * gnulib-tool (func_emit_initmacro_done): Indentation.
62874
62875 2007-09-29  Bruno Haible  <bruno@clisp.org>
62876
62877         * README: Add CVS checkout update instructions.
62878         Info from Bob Proulx <bob@proulx.com>.
62879
62880 2007-09-28  Eric Blake  <ebb9@byu.net>
62881
62882         Provide move-if-change.
62883         * build-aux/move-if-change: New file, based on best practice
62884         rather than any canonical upstream location.
62885
62886 2007-09-28  Jim Meyering  <jim@meyering.net>
62887
62888         Fix canonicalize loop-detection corner case.
62889         Do not attempt to stat the symlink values stored via seen_triple.
62890         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62891         on linux-2.6.18, (but not 2.6.22).
62892         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62893         triple_compare.  The former compares dev,ino,filename, while the latter
62894         would actually stat dirname(filename) when dev and ino were equal.
62895         * lib/hash-triple.c: Install <string.h>.
62896         (STREQ): Define.
62897         (triple_compare_ino_str): New function.
62898         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62899
62900 2007-09-28  Eric Blake  <ebb9@byu.net>
62901
62902         Enforce that AC_REPLACE_FUNCS files exist.
62903         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62904         override check for typos.
62905
62906         Fix test-closein on Solaris 10.
62907         * tests/test-closein.c (main): Don't assume stdin can be inherited
62908         closed on all systems.
62909         * tests/test-closein.sh: Likewise.
62910         Reported by Piotr Tarnowski.
62911
62912 2007-09-28  Jim Meyering  <jim@meyering.net>
62913
62914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62915
62916 2007-09-27  Jim Meyering  <jim@meyering.net>
62917
62918         canonicalize: Avoid a false-positive cycle failure.
62919         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62920         Sort.  Remove cycle-check.
62921         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62922         not cycle-check.h.
62923         (seen_triple): New function.
62924         (canonicalize_filename_mode): Use it instead of cycle-check.
62925         * tests/test-canonicalize.c: Add a test for this bug.
62926         * tests/test-canonicalize.sh: Set up and run the test.
62927
62928         New module, file-set, from coreutils.
62929         * modules/file-set: Define it.
62930         * lib/file-set.c, lib/file-set.h: Implement.
62931
62932         New module, hash-triple, from coreutils.
62933         * modules/hash-triple: Define it.
62934         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62935
62936 2007-09-25  Eric Blake  <ebb9@byu.net>
62937
62938         Fix strerror on Interix.
62939         * lib/string_.h (strerror): Declare replacement.
62940         * doc/functions/strerror.texi (strerror): Document the Interix
62941         shortcoming.
62942         * modules/string (Makefile.am): Support new hooks.
62943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62944         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62945         gl_FUNC_STRERROR_SEPARATE.
62946         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62947         * lib/strerror.c (rpl_strerror): Provide replacement.
62948         * modules/strerror (Depends-on): Add string.
62949         (configure.ac): Detect use of module.
62950         * tests/test-strerror.c: New file.
62951         * modules/strerror-tests: New test module.
62952         * modules/argp (Depends-on): Add strerror.
62953         * modules/error (Depends-on): Likewise.
62954         Reported by Martin Koeppe.
62955
62956 2007-09-24  Bruno Haible  <bruno@clisp.org>
62957
62958         * README: Update git instructions.
62959
62960 2007-09-24  Eric Blake  <ebb9@byu.net>
62961
62962         Revert fpending breakage from 2007-09-08.
62963         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62964         __fpending.c.
62965
62966 2007-09-24  Jim Meyering  <jim@meyering.net>
62967
62968         filenamecat.c: Add a test.
62969         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62970         showing how the function works when DIR is the empty string.
62971
62972 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62973
62974         * tests/test-canonicalize.sh: Turn on executable bit.
62975
62976 2007-09-19  Eric Blake  <ebb9@byu.net>
62977
62978         * README: Update CVS instructions.
62979
62980 2007-09-18  Bruno Haible  <bruno@clisp.org>
62981
62982         * modules/areadlink: New file.
62983         * lib/areadlink.h (areadlink): New declaration.
62984         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62985
62986 2007-09-17  Jim Meyering  <jim@meyering.net>
62987
62988         * lib/savewd.c (ESTALE) [!defined]: Define.
62989         Reported to be required on Interix by Martin Koeppe.
62990
62991 2007-09-17  Bruno Haible  <bruno@clisp.org>
62992
62993         * gnulib-tool (func_version): Use $version.
62994
62995 2007-09-16  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62998         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62999         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63000         Reported by Greg Schafer <gschafer@zip.com.au>.
63001
63002 2007-09-15  Bruno Haible  <bruno@clisp.org>
63003
63004         * gnulib-tool (sed): Try a little harder to make bash understand the
63005         alias.
63006         Reported by Bruce Korb <bruce.korb@gmail.com>.
63007
63008 2007-09-13  Eric Blake  <ebb9@byu.net>
63009
63010         * ChangeLog: Remove conflict markers.
63011
63012 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63013
63014         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63015         Reported by Bruno Haible <bruno@clisp.org>.
63016
63017 2007-09-12  Bruno Haible  <bruno@clisp.org>
63018
63019         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63020         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63021         is not defined.
63022
63023 2007-09-12  Eric Blake  <ebb9@byu.net>
63024
63025         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63026         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63027         Autoconf definition.
63028         * modules/euidaccess (Depends-on): Add extensions, for
63029         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63030         * modules/fnmatch (Depends-on): Likewise.
63031         * modules/getaddrinfo (Depends-on): Likewise.
63032         * modules/getdelim (Depends-on): Likewise.
63033         * modules/getline (Depends-on): Likewise.
63034         * modules/getsubopt (Depends-on): Likewise.
63035         * modules/gettext (Depends-on): Likewise.
63036         * modules/group-member (Depends-on): Likewise.
63037         * modules/mbchar (Depends-on): Likewise.
63038         * modules/memmem (Depends-on): Likewise.
63039         * modules/mempcpy (Depends-on): Likewise.
63040         * modules/memrchr (Depends-on): Likewise.
63041         * modules/pagealign_alloc (Depends-on): Likewise.
63042         * modules/readutmp (Depends-on): Likewise.
63043         * modules/stpcpy (Depends-on): Likewise.
63044         * modules/stpncpy (Depends-on): Likewise.
63045         * modules/strchrnul (Depends-on): Likewise.
63046         * modules/strndup (Depends-on): Likewise.
63047         * modules/strsep (Depends-on): Likewise.
63048         * modules/strverscmp (Depends-on): Likewise.
63049         * modules/vasprintf (Depends-on): Likewise.
63050         * modules/wcwidth (Depends-on): Likewise.
63051         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63052         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63053         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63054         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63055         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63056         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63057         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63058         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63059         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63060         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63062         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63063         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63064         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63065         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63066         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63067         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63068         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63071         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63072         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63073         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63074         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63075         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63077         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63078         so that lock.m4 can be used in gettext without extensions module.
63079
63080 2007-09-11  Bruno Haible  <bruno@clisp.org>
63081
63082         * m4/isc-posix.m4: Remove file.
63083         Suggested by Eric Blake.
63084
63085 2007-09-11  Eric Blake  <ebb9@byu.net>
63086
63087         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63088
63089 2007-09-10  Bruno Haible  <bruno@clisp.org>
63090
63091         * posix-modules: Fix typo in error message.
63092         Reported by Matt <mkraai@beckman.com>.
63093
63094 2007-09-09  Bruno Haible  <bruno@clisp.org>
63095
63096         * doc/functions/getdelim.texi: Update list of platforms lacking the
63097         function.
63098         * doc/functions/getline.texi: Likewise.
63099
63100 2007-09-09  Jim Meyering  <jim@meyering.net>
63101
63102         * lib/hash.c (hash_initialize): Detect calloc failure.
63103         Reported by Bruno Haible.
63104
63105 2007-09-09  Bruno Haible  <bruno@clisp.org>
63106
63107         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63108         malloc or realloc fails.
63109
63110 2007-09-09  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/getcwd (Depends-on): Add malloc-posix.
63113         * modules/glob (Depends-on): Likewise.
63114         * modules/putenv (Depends-on): Likewise.
63115         * modules/strdup (Depends-on): Likewise.
63116         * modules/getdelim (Depends-on): Add realloc-posix.
63117         * modules/read-file (Depends-on): Likewise.
63118
63119 2007-09-09  Bruno Haible  <bruno@clisp.org>
63120
63121         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63122         (gl_FUNC_MALLOC_POSIX): Require it.
63123         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63124         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63125         * modules/realloc (Files): Add m4/malloc.m4.
63126         * modules/calloc (Files): Likewise.
63127
63128 2007-09-09  Bruno Haible  <bruno@clisp.org>
63129
63130         * modules/malloc-posix: New file.
63131         * modules/malloc (Depends-on): Add malloc-posix.
63132         * lib/malloc.c: Include errno.h.
63133         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63134         and a POSIX-compatible malloc into a single function. Set ENOMEM
63135         when returning NULL.
63136         * m4/malloc.m4: New file.
63137         * doc/functions/malloc.texi: Mention the malloc-posix module.
63138         * lib/stdlib_.h (malloc): New declaration.
63139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63140         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63141         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63142         and HAVE_MALLOC_POSIX.
63143
63144 2007-09-09  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/realloc-posix: New file.
63147         * modules/realloc (Depends-on): Add realloc-posix.
63148         * lib/realloc.c: Include errno.h.
63149         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63150         and a POSIX-compatible realloc into a single function. Set ENOMEM
63151         when returning NULL.
63152         * m4/realloc.m4: New file.
63153         * doc/functions/realloc.texi: Mention the realloc-posix module.
63154         * lib/stdlib_.h (realloc): New declaration.
63155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63156         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63157         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63158         and HAVE_REALLOC_POSIX.
63159
63160 2007-09-09  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/calloc-posix: New file.
63163         * modules/calloc (Depends-on): Add calloc-posix.
63164         * lib/calloc.c: Include errno.h.
63165         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63166         and a POSIX-compatible calloc into a single function. Set ENOMEM
63167         when returning NULL.
63168         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63169         * doc/functions/calloc.texi: Mention the calloc-posix module.
63170         * lib/stdlib_.h (calloc): New declaration.
63171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63172         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63173         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63174         and HAVE_CALLOC_POSIX.
63175
63176 2007-09-09  Bruno Haible  <bruno@clisp.org>
63177
63178         Allow for modules to show an arbitrary notice.
63179         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63180         * gnulib-tool: New option --extract-notice.
63181         (func_usage): Document it.
63182         (sed_extract_prog): Update.
63183         (func_get_notice): New function.
63184         (func_modules_notice): New function.
63185         (func_import, func_create_testdir): Invoke it.
63186         Suggested by Jim Meyering.
63187
63188 2007-09-09  Bruno Haible  <bruno@clisp.org>
63189
63190         * gnulib-tool: New options --verbose, --quiet.
63191         (func_usage): Document them.
63192         (verbose): New variable.
63193         (func_execute_command): New function.
63194         (func_import): Don't show the module list and the file list if
63195         $verbose < 0.
63196         (func_create_testdir): Likewise. Use func_execute_command.
63197         (func_create_megatestdir): Use func_execute_command.
63198
63199 2007-09-08  Bruno Haible  <bruno@clisp.org>
63200
63201         * gnulib-tool (func_import): Prefer rsync over wget when available,
63202         for fetching the PO files.
63203
63204 2007-09-08  Bruno Haible  <bruno@clisp.org>
63205
63206         * posix-modules: New file. Portions copied from gnulib-tool.
63207         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63208
63209 2007-09-08  Jim Meyering  <jim@meyering.net>
63210
63211         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63212         * lib/fpending.h: Rename from __fpending.h.
63213         * lib/fpending.c: Rename from __fpending.c.
63214         Include "fpending.h", not "__fpending.h".
63215         * lib/__fpending.h, lib/__fpending.c: Remove files.
63216         * modules/fpending (Files): Reflect new file names.
63217         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63218
63219 2007-09-08  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/inttypes-h.m4: Remove stub file.
63222
63223 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63224
63225         * doc/headers/stdint.texi: Discuss #include_next issue.
63226
63227 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63228
63229         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63230
63231 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63232
63233         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63234         in variable name.
63235
63236 2007-09-03  Jim Meyering  <jim@meyering.net>
63237
63238         New module: git-version-gen.
63239         * modules/git-version-gen: New file.
63240
63241         Import changes from coreutils for bootstrap script.
63242
63243         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63244
63245         bootstrap: uses rsync to download the .po files
63246         * build-aux/bootstrap (po_download_command_format): New global.
63247         (download_po_files): Use rsync.
63248         (update_po_files): Don't remove .po files after download,
63249         so future rsync runs can take advantage of the copies.
63250
63251         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63252
63253         Solve the unnecessary-.po-file-regeneration problem once and for all.
63254         * build-aux/bootstrap (download_po_files): New function, renamed from
63255         get_translations.  Now, downloads, but doesn't update LINGUAS.
63256         (update_po_files): New function.
63257
63258         bootstrap: Ignore more.
63259         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63260         uniwidth to e.g., lib/.gitignore.
63261         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63262
63263         * build-aux/bootstrap: New setting: vc_ignore.
63264         (insert_sorted_if_absent): Create $file if absent.
63265         Adapt to new, possibly empty, list: $vc_ignore.
63266
63267         bootstrap: generate more ignorable names
63268         * build-aux/bootstrap (slurp): When generating ignorable names,
63269         also map .sin to .sed, .gperf to .c, and .y to .c.
63270
63271 2007-09-03  Jim Meyering  <jim@meyering.net>
63272
63273         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63274         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63275
63276 2007-09-02  Bruno Haible  <bruno@clisp.org>
63277
63278         Fix mis-recognition of 'mcs' on QNX 6.
63279         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63280         output contains the string "Mono".
63281         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63282         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63283
63284 2007-09-01  Bruno Haible  <bruno@clisp.org>
63285
63286         Fix collision between uniwidth/* and linebreak modules.
63287         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63288         u32_width): Remove declarations.
63289         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63290         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63291         streq3, streq2, streq1, streq0): Remove functions.
63292         (STREQ): Remove macro.
63293         (is_cjk_encoding): Remove function.
63294         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63295         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63296         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63297         * NEWS: Document the change.
63298
63299 2007-09-01  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/streq.h: Add double-inclusion guard.
63302
63303 2007-09-01  Karl Berry  <karl@gnu.org>
63304
63305         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63306
63307 2007-08-28  Jim Meyering  <jim@meyering.net>
63308
63309         Rename mreadlink_with_size to areadlink_with_size.
63310         * NEWS: Document the change.
63311         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63312         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63313         * lib/mreadlink.h: Rename this to...
63314         * lib/areadlink.h: ...this.
63315         * modules/mreadlink-with-size: Rename this to...
63316         * modules/areadlink-with-size: ...this.
63317         * lib/canonicalize.c: Reflect the renaming.
63318         * modules/canonicalize: Likewise.
63319
63320 2007-08-26  Bruno Haible  <bruno@clisp.org>
63321
63322         * gnulib-tool (func_import): When deciding which files to remove,
63323         consider also dangling symbolic links.
63324         Reported by Eric Blake.
63325
63326 2007-08-26  Bruno Haible  <bruno@clisp.org>
63327
63328         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63329
63330 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63331
63332         * lib/readline.c: Don't include getline.h, the prototype is now
63333         found in stdio.h.
63334
63335 2007-08-23  Jim Meyering  <jim@meyering.net>
63336
63337         Getdelim touchup.
63338         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63339         around the funlockfile call, since funlockfile never sets errno.
63340         Don't set errno upon failed realloc.
63341
63342 2007-08-22  Eric Blake  <ebb9@byu.net>
63343
63344         Getline touchups.
63345         * lib/getdelim.c (getdelim): Revert regression that required *n to
63346         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63348         getdelim, rather than whether implementation is missing.
63349         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63350         * lib/stdio_.h (getline): Also declare if replacement is
63351         required.
63352         * doc/functions/getdelim.texi: New file.
63353         * doc/functions/getline.texi: Likewise.
63354         * doc/gnulib.texi (Function Substitutes): Add new files.
63355         Reported by Bruno Haible.
63356
63357 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63358
63359         * users.txt: Add Guile.
63360
63361 2007-08-22  Eric Blake  <ebb9@byu.net>
63362
63363         * tests/test-getdelim.c (main): Use remove, not unlink.
63364         * tests/test-getline.c (main): Likewise.
63365
63366         Move getline and getdelim into stdio.h, per POSIX 200x.
63367         * modules/getline (Files): Remove getline.h.
63368         (Depends-on): Add stdio.
63369         (configure.ac): Add module indicator.
63370         * modules/getdelim (Files): Remove getdelim.h.
63371         (Depends-on): Add stdio.
63372         (configure.ac): Add module indicator.
63373         * modules/stdio (Makefile.am): Work with new indicators.
63374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63376         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63377         * lib/getdelim.h: Delete.
63378         * lib/getline.h: Delete.
63379         * lib/stdio_.h (getdelim, getline): Declare.
63380         * modules/getdelim-tests: New module.
63381         * modules/getline-tests: Likewise.
63382         * tests/test-getdelim.c: New file.
63383         * tests/test-getline.c: Likewise.
63384         * NEWS: Document the change.
63385         * lib/getline.c: Update choice of header.
63386         * lib/csharpcomp.c: Likewise.
63387         * lib/getpass.c: Likewise.
63388         * lib/javacomp.c: Likewise.
63389         * lib/javaversion.c: Likewise.
63390         * lib/yesno.c: Likewise.
63391         * lib/getdelim.c: Likewise.
63392         (getdelim): Set errno on failure, and avoid memory leak.
63393
63394 2007-08-19  Bruno Haible  <bruno@clisp.org>
63395
63396         * modules/closein (Depends-on): Add freadahead.
63397         * lib/closein.c: Include freadahead.h.
63398         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63399         is zero.
63400
63401 2007-08-19  Bruno Haible  <bruno@clisp.org>
63402
63403         * modules/freadahead-tests: New file.
63404         * tests/test-freadahead.sh: New file.
63405         * tests/test-freadahead.c: New file.
63406
63407         * modules/freadahead: New file.
63408         * lib/freadahead.h: New file.
63409         * lib/freadahead.c: New file.
63410         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63411         fbufmode, fpurge, freadable, fwritable.
63412
63413 2007-08-19  Eric Blake  <ebb9@byu.net>
63414
63415         Test yesno in combination with closein.
63416         * lib/yesno.c (yesno): Document use of stdin.
63417         * modules/yesno-tests (Files): New module.
63418         * tests/test-yesno.c (main): New file.
63419         * tests/test-yesno.sh: Likewise.
63420
63421 2007-08-19  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63424         * lib/fseeko.c (rpl_fseeko): Likewise.
63425         * lib/fseterr.c (fseterr): Likewise.
63426
63427 2007-08-19  Bruno Haible  <bruno@clisp.org>
63428
63429         * tests/test-lseek.c (main): Disable a test for BeOS.
63430         * doc/functions/lseek.texi: Document the BeOS bug.
63431
63432 2007-08-19  Bruno Haible  <bruno@clisp.org>
63433             Eric Blake  <ebb9@byu.net>
63434
63435         * lib/lseek.c: Include <sys/stat.h>.
63436         (rpl_lseek): Add workaround code also for Unix platforms.
63437         Needed for BeOS.
63438         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63439         * doc/functions/lseek.texi: Document BeOS definiency.
63440
63441 2007-08-18  Bruno Haible  <bruno@clisp.org>
63442
63443         * modules/fstrcmp-tests: New file.
63444         * tests/test-fstrcmp.c: New file.
63445
63446 2007-08-18  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/fstrcmp: New file, from GNU gettext with modifications.
63449         * lib/fstrcmp.h: New file, from GNU gettext.
63450         * lib/fstrcmp.c: New file, from GNU gettext.
63451         * MODULES.html.sh (String handling): Add fstrcmp.
63452
63453 2007-08-18  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63456         'bool'.
63457         (diag, compareseq): Remove const from the ctxt argument.
63458         (USE_HEURISTIC): Undefine at the end.
63459
63460 2007-08-18  Jim Meyering  <jim@meyering.net>
63461
63462         New file: lib/idcache.h
63463         * NEWS: Mention the addition.
63464         * modules/idcache (Files): Add lib/idcache.h
63465         * lib/idcache.c: Include "idcache.h".
63466         Don't include <sys/types.h>.
63467         Add a FIXME comment.
63468         Move file-scoped "static" declarations to the top.
63469         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63470
63471 2007-08-17  Bruno Haible  <bruno@clisp.org>
63472         and Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * MODULES.html.sh: Add diffseq.
63475         * modules/diffseq: New file.
63476         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63477         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63478
63479 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         Import changes from coreutils for bootstrap script.
63482
63483         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63484
63485         * build-aux/bootstrap (slurp): Work even in environments where
63486         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63487         current code does not slurp files whose names start with ".", and
63488         this looks like it might be a troublesome area.
63489
63490         2007-07-11  Jim Meyering  <jim@meyering.net>
63491
63492         If there's a GPL vN copyright comment, require that N == 3.
63493
63494         2007-07-08  Jim Meyering  <jim@meyering.net>
63495
63496         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63497         * build-aux/bootstrap (mam_template): Move definition out of loop.
63498
63499         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63500
63501         * build-aux/bootstrap (symlink_to_dir): Rename function from
63502         symlink_to_gnulib.  Add a directory parameter.  Update all
63503         callers.
63504         (cp_mark_as_generated): Also check for -- and link to -- files in
63505         gl/.
63506
63507         2007-07-08  Jim Meyering  <jim@meyering.net>
63508
63509         Adapt to deeper hierarchy in gnulib.
63510         * build-aux/bootstrap (symlink_to_dir): If the destination
63511         directory doesn't exist, create it. This is required at least for
63512         "lib/uniwidth/cjk.h".
63513
63514         2007-05-15  Jim Meyering  <jim@meyering.net>
63515
63516         * build-aux/bootstrap: Now that generated Makefile.am files
63517         are no longer under version control, they must be created at
63518         bootstrap time.
63519
63520 2007-08-14  Ben Pfaff  <blp@gnu.org>
63521
63522         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63523
63524 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63527         given the changes below.
63528         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63529         even on hosts that have padding bits beyond the supported 64.
63530
63531 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63534         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63535         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63536         depends on it.
63537         (xstrtol_error): Remove.
63538         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63539         but with a different signature.
63540         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63541         * lib/xstrtol-error.c: Include exitfail.h.
63542         (xstrtol_fatal): New function, with a different signature from the
63543         old xstrtol_error, so that the caller need not worry about passing
63544         in an exit status, or about storage management of the option argument.
63545         (xstrtol_error): Now a static function.  Redo signature to
63546         implement xstrtol_fatal.  Output the correct number of hyphens in
63547         front of the option so that the caller need not worry about
63548         storage management.
63549         (N_): New macro.
63550         (_): Remove; not used now.
63551         * modules/xstrtol: Depend on getopt.
63552         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63553         of old STRTOL_FATAL_ERROR macro.
63554         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63555         of test program.
63556         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63557         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63558
63559 2007-08-08  Eric Blake  <ebb9@byu.net>
63560
63561         * lib/xstrtol-error.c: Add missing include.
63562
63563         Move xstrtol messages into gnulib domain, when --pobase is used.
63564         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63565         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63566         * modules/xstrtol (Files): Distribute new file.
63567         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63568         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63569         * tests/test-xstrtol.c: ...into new file.
63570         * tests/test-xstrtoul.c: Also test xstrtoul.
63571         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63572         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63573         * tests/test-xstrtol.sh: Drive the tests.
63574         * tests/test-xstrtoimax.sh: Likewise.
63575         * tests/test-xstrtoumax.sh: Likewise.
63576         * modules/xstrtol-tests: New module.
63577         * modules/xstrtoimax-tests: Likewise.
63578         * modules/xstrtoumax-tests: Likewise.
63579
63580 2007-08-08  Jim Meyering  <jim@meyering.net>
63581
63582         New function: mfile_name_concat.
63583         * lib/filenamecat.c (mfile_name_concat): New function, just like
63584         file_name_concat, but return NULL upon failure rather than exiting
63585         with a diagnostic.
63586         * lib/filenamecat.h: Declare it.
63587
63588 2007-08-07  Bruno Haible  <bruno@clisp.org>
63589
63590         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63591         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63592         warning from gcc.
63593         Reported by Eric Blake.
63594
63595 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63596
63597         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63598         * modules/crypto/arcfour (License): Likewise.
63599         * modules/crypto/des-tests (License): Likewise.
63600         * modules/crypto/gc-arctwo-tests (License): Likewise.
63601         * modules/crypto/gc-des-tests (License): Likewise.
63602         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63603         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63604         * modules/crypto/gc-md2-tests (License): Likewise.
63605         * modules/crypto/gc-md4-tests (License): Likewise.
63606         * modules/crypto/gc-md5-tests (License): Likewise.
63607         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63608         * modules/crypto/gc-rijndael-tests (License): Likewise.
63609         * modules/crypto/gc-sha1-tests (License): Likewise.
63610         * modules/crypto/gc-tests (License): Likewise.
63611         * modules/crypto/hmac-md5 (License): Likewise.
63612         * modules/crypto/hmac-sha1 (License): Likewise.
63613         * modules/crypto/md2-tests (License): Likewise.
63614         * modules/crypto/md4-tests (License): Likewise.
63615         * modules/crypto/md5 (License): Likewise.
63616         * modules/crypto/rijndael (License): Likewise.
63617         * modules/crypto/sha1 (License): Likewise.
63618         * modules/memxor (License): Likewise.
63619
63620 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63621         and Bruno Haible  <bruno@clisp.org>
63622
63623         * NEWS: Describe interface changes to human, xstrtol.
63624         * lib/human.h: Include <xstrtol.h>.
63625         (human_options): Return enum strtol_error, not int.  Remove
63626         bool arg; take int * instead.
63627         * lib/human.c: Don't include "gettext.h".
63628         (_): Remove; no longer used.
63629         Don't include <xstrtol.h>, since human.h does it.
63630         (human_options): Adjust to abovementioned interface changes.
63631         Do not report error to stderr; that's now the caller's
63632         responsibility.
63633         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63634         interface change.
63635         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63636         Str, Argument_type_string.  All uses changed.  Put " argument"
63637         in diagnostics to make them clearer.  Change wording of suffix
63638         message for clarity.
63639         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63640         Argument_type_string.
63641         (STRTOL_FATAL_WARN): Remove; no longer used.
63642         * modules/human (Depends-on): Remove gettext-h.
63643
63644 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63645
63646         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63647
63648 2007-07-31  Bruno Haible  <bruno@clisp.org>
63649
63650         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63651         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63652         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63653
63654 2007-07-31  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63657         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63658
63659 2007-07-30  Bruno Haible  <bruno@clisp.org>
63660
63661         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63662         * modules/c-ctype (License): Likewise.
63663         * modules/c-strcase (License): Likewise.
63664         * modules/check-version (License): Likewise.
63665         * modules/iconv (License): Likewise.
63666         * modules/iconv_open (License): Likewise.
63667         * modules/read-file (License): Likewise.
63668         * modules/striconv (License): Likewise.
63669         * modules/strverscmp (License): Likewise.
63670         * modules/vasprintf (License): Likewise.
63671         * modules/crypto/des (License): Likewise.
63672         * modules/crypto/gc (License): Likewise.
63673         * modules/crypto/gc-arcfour (License): Likewise.
63674         * modules/crypto/gc-arctwo (License): Likewise.
63675         * modules/crypto/gc-des (License): Likewise.
63676         * modules/crypto/gc-hmac-md5 (License): Likewise.
63677         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63678         * modules/crypto/gc-md2 (License): Likewise.
63679         * modules/crypto/gc-md4 (License): Likewise.
63680         * modules/crypto/gc-md5 (License): Likewise.
63681         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63682         * modules/crypto/gc-random (License): Likewise.
63683         * modules/crypto/gc-rijndael (License): Likewise.
63684         * modules/crypto/gc-sha1 (License): Likewise.
63685         * modules/crypto/md2 (License): Likewise.
63686         * modules/crypto/md4 (License): Likewise.
63687
63688 2007-07-30  Jim Meyering  <jim@meyering.net>
63689
63690         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63691         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63692         it has valid stat data.  This bug would cause du not to count the
63693         sizes of inaccessible directories.
63694         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63695         in <http://bugzilla.redhat.com/250077>.
63696
63697 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63698             Bruno Haible  <bruno@clisp.org>
63699
63700         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63701         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63702         #include_next, gives a diagnostic about it, but reports no error in
63703         the exit code.
63704         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63705
63706 2007-07-24  Ben Pfaff  <blp@gnu.org>
63707
63708         Improve name: "count-one-bits" is better than "popcount".
63709         * MODULES.html.sh: Update name.
63710         * lib/popcount.h: Renamed lib/count-one-bits.h.
63711         (popcount): Renamed count_one_bits.
63712         (popcountl): Renamed count_one_bits_l.
63713         (popcountll): Renamed count_one_bits_ll.
63714         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63715         * modules/popcount: Renamed module/count-one-bits.
63716         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63717         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63718
63719 2007-07-23  Ben Pfaff  <blp@gnu.org>
63720
63721         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63722         better code generation, and add U to large constants to avoid
63723         warnings, in non-GCC case.
63724         Suggested by Bruno Haible.
63725
63726 2007-07-23  Ben Pfaff  <blp@gnu.org>
63727
63728         * lib/popcount.h: Use verify_true instead of if...abort.
63729         * modules/popcount: Depend on verify module.
63730         Suggested by Jim Meyering.
63731
63732 2007-07-23  Bruno Haible  <bruno@clisp.org>
63733
63734         * gnulib-tool (func_import): Create a .cvsignore file also when the
63735         directory is not yet in CVS but the toplevel directory is. When
63736         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63737         Reported by Karl Berry.
63738
63739 2007-07-22  Ben Pfaff  <blp@gnu.org>
63740
63741         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63742         case.
63743         Suggested by Eric Blake.
63744
63745 2007-07-22  Ben Pfaff  <blp@gnu.org>
63746
63747         New module: popcount.
63748         * MODULES.html.sh: Add popcount.
63749         * modules/popcount: New file.
63750         * modules/popcount-tests: New file.
63751         * tests/test-popcount.c: New file.
63752         * lib/popcount.h: New file.
63753         * m4/popcount.m4: New file.
63754
63755 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63756
63757         * build-aux/announce-gen: Update to GPLv3.
63758
63759         * build-aux/config.guess: Update from config.
63760
63761 2007-07-21  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63764         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63765
63766 2007-07-20  Jim Meyering  <jim@meyering.net>
63767
63768         * check-module: Diagnose a self-dependency.
63769
63770 2007-07-19  Bruno Haible  <bruno@clisp.org>
63771
63772         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63773         empty.
63774         Reported by Eric Blake.
63775
63776 2007-07-18  Bruno Haible  <bruno@clisp.org>
63777
63778         * gnulib-tool: New options --po-base, --po-domain.
63779         (func_usage): Document them.
63780         (pobase, po_domain): New variables.
63781         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63782         DEFAULT_TEXT_DOMAIN.
63783         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63784         (func_import): Consider pobase and po_domain. Create a po/ directory.
63785         (func_create_testdir): Set pobase and po_domain to empty.
63786         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63787         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63788
63789 2007-07-18  Bruno Haible  <bruno@clisp.org>
63790
63791         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63792         EXTRA_DIST augmentation for files in build-aux/.
63793
63794 2007-07-16  Bruno Haible  <bruno@clisp.org>
63795
63796         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63797         * modules/getdelim (License): Likewise.
63798
63799 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63800
63801         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63802         * modules/d-type (License): Likewise.
63803         * modules/extensions (License): Likewise.
63804         * modules/fnmatch (License): Likewise.
63805         * modules/fseeko (License): Likewise.
63806         * modules/getaddrinfo (License): Likewise.
63807         * modules/getline (License): Likewise.
63808         * modules/getlogin_r (License): Likewise.
63809         * modules/getpass (License): Likewise.
63810         * modules/gettimeofday (License): Likewise.
63811         * modules/glob (License): Likewise.
63812         * modules/inet_ntop (License): Likewise.
63813         * modules/malloc (License): Likewise.
63814         * modules/malloca (License): Likewise.
63815         * modules/memmem (License): Likewise.
63816         * modules/mempcpy (License): Likewise.
63817         * modules/memset (License): Likewise.
63818         * modules/minmax (License): Likewise.
63819         * modules/mktime (License): Likewise.
63820         * modules/netinet_in (License): Likewise.
63821         * modules/pathmax (License): Likewise.
63822         * modules/poll (License): Likewise.
63823         * modules/regex (License): Likewise.
63824         * modules/snprintf (License): Likewise.
63825         * modules/stdbool (License): Likewise.
63826         * modules/stdint (License): Likewise.
63827         * modules/stdio (License): Likewise.
63828         * modules/strcase (License): Likewise.
63829         * modules/strcasestr (License): Likewise.
63830         * modules/strdup (License): Likewise.
63831         * modules/string (License): Likewise.
63832         * modules/strndup (License): Likewise.
63833         * modules/strnlen (License): Likewise.
63834         * modules/strpbrk (License): Likewise.
63835         * modules/strptime (License): Likewise.
63836         * modules/strsep (License): Likewise.
63837         * modules/sys_select (License): Likewise.
63838         * modules/sys_socket (License): Likewise.
63839         * modules/sys_stat (License): Likewise.
63840         * modules/sys_time (License): Likewise.
63841         * modules/time (License): Likewise.
63842         * modules/time_r (License): Likewise.
63843         * modules/timegm (License): Likewise.
63844         * modules/unistd (License): Likewise.
63845         * modules/vsnprintf (License): Likewise.
63846         * modules/wctype (License): Likewise.
63847
63848 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63849
63850         * modules/argz (License): LGPLv2+.
63851
63852 2007-07-15  Karl Berry  <karl@gnu.org>
63853
63854         * doc/gnulib.texi: revise node structure per new fdl.texi.
63855
63856 2007-07-14  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63859         the output file.
63860         * lib/uniname/uninames.h: Regenerated.
63861
63862 2007-07-14  Karl Berry  <karl@gnu.org>
63863
63864         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63865         omitting sectioning and index commands.
63866
63867 2007-07-13  Bruno Haible  <bruno@clisp.org>
63868
63869         New gnulib-tool option --more-symlinks.
63870         * gnulib-tool (func_usage): Document --more-symlinks.
63871         (do_copyrights): New variable.
63872         Recognize option --more-symlinks.
63873         (func_import): Don't add a copyright notice transform to
63874         sed_transform_lib_file if do_copyrights is empty.
63875
63876 2007-07-13  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/vasnprintf.c (decimal_point_char): Define also if
63879         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63880         && !NEED_PRINTF_DIRECTIVE_A.
63881         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63882         Gary V. Vaughan <gary@gnu.org>.
63883
63884 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63885
63886         * lib/inttypes_.h: Undo previous change, since it was fixed
63887         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63888
63889 2007-07-13  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63892         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63893
63894 2007-07-13  Jim Meyering  <jim@meyering.net>
63895
63896         df: Don't fail for Tru64's "file-on-file mount".
63897         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63898         so we fall through and use statfs instead.  Details here:
63899         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63900         Reported by Albert Chin.
63901
63902 2007-07-13  Bruno Haible  <bruno@clisp.org>
63903
63904         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63905         * modules/configmake (License): Likewise.
63906         * modules/gettext (License): Likewise.
63907         * modules/gettext-h (License): Likewise.
63908         * modules/include_next (License): Likewise.
63909         * modules/link-warning (License): Likewise.
63910         * modules/localcharset (License): Likewise.
63911         * modules/localename (License): Likewise.
63912         * modules/lock (License): Likewise.
63913         * modules/relocatable-lib-lgpl (License): Likewise.
63914         * modules/size_max (License): Likewise.
63915         * modules/vasnprintf (License): Likewise.
63916         * modules/wchar (License): Likewise.
63917         * modules/xsize (License): Likewise.
63918
63919 2007-07-13  Bruno Haible  <bruno@clisp.org>
63920
63921         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63922         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63923
63924 2007-07-12  Bruno Haible  <bruno@clisp.org>
63925
63926         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63927         in the modules files.
63928
63929 2007-07-11  Karl Berry  <karl@gnu.org>
63930
63931         * MODULES.html.sh (func_module): use
63932          sed -e '\|^'"${includefile}"'$|d'
63933          instead of /.../d, to avoid errors on $includefile's containing /.
63934
63935 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63936
63937         * gnulib-tool (func_import): Avoid duplication of --avoid
63938         statements
63939         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63940         names to `_' in variable names.
63941
63942 2007-07-10  Eric Blake  <ebb9@byu.net>
63943
63944         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63945         * NEWS: Document this change.
63946
63947 2007-07-08  Bruno Haible  <bruno@clisp.org>
63948
63949         Update to Unicode 5.0.
63950         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63951         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63952         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63953         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63954         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63955         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63956         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63957         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63958         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63959         U+10A3F, U+1D242..U+1D244.
63960         (nonspacing_table_ind): Update.
63961         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63962         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63963
63964 2007-07-08  Bruno Haible  <bruno@clisp.org>
63965
63966         Update to Unicode 5.0.
63967         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63968         code transform. Extend the name index field of unicode_name_to_code and
63969         unicode_code_to_name from 16 to 24 bits.
63970         * lib/uniname/uniname.c (unicode_character_name,
63971         unicode_name_character): Add the range 0x12xxx to the code transform.
63972         * lib/uniname/uninames.h: Regenerated.
63973         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63974
63975 2007-07-07  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/wcwidth-tests: New file.
63978         * tests/test-wcwidth.c: New file.
63979
63980         Work around MacOS X wcwidth() bug.
63981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63982         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63983         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63984         original wcwidth in non-UTF-8 locales.
63985         * modules/wcwidth (Depends-on): Add localcharset, streq,
63986         uniwidth/width.
63987         * doc/functions/wcwidth.texi: Update.
63988
63989 2007-07-07  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63992         (wcwidth): New declaration.
63993         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63994         macros.
63995         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63996         here. Prepare for creating <wchar.h> unconditionally.
63997         * modules/wchar (Depends-on): Add link-warning.
63998         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63999         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64000         * lib/wcwidth.h: Remove file.
64001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64002         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64003         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64004         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64005         (Include): Replace wcwidth.h with <wchar.h>.
64006         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64007         * lib/mbchar.h: Don't include wcwidth.h.
64008         * lib/mbswidth.c: Likewise.
64009         * NEWS: Mention the change.
64010
64011 2007-07-07  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64014         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64015         definition with an external declaration.
64016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64017         defined as a function. Remove AC_C_INLINE requirement.
64018         * modules/wcwidth (Files): Add lib/wcwidth.c.
64019         (Makefile.am): Remove redundant statement.
64020
64021 2007-07-07  Bruno Haible  <bruno@clisp.org>
64022
64023         * MODULES.html.sh (Unicode string functions): Add the new modules.
64024
64025         * tests/uniwidth/test-u32-strwidth.c: New file.
64026         * modules/uniwidth/u32-strwidth-tests: New file.
64027
64028         * lib/uniwidth/u32-strwidth.c: New file.
64029         * modules/uniwidth/u32-strwidth: New file.
64030
64031         * tests/uniwidth/test-u16-strwidth.c: New file.
64032         * modules/uniwidth/u16-strwidth-tests: New file.
64033
64034         * lib/uniwidth/u16-strwidth.c: New file.
64035         * modules/uniwidth/u16-strwidth: New file.
64036
64037         * tests/uniwidth/test-u8-strwidth.c: New file.
64038         * modules/uniwidth/u8-strwidth-tests: New file.
64039
64040         * lib/uniwidth/u8-strwidth.c: New file.
64041         * modules/uniwidth/u8-strwidth: New file.
64042
64043         * tests/uniwidth/test-u32-width.c: New file.
64044         * modules/uniwidth/u32-width-tests: New file.
64045
64046         * lib/uniwidth/u32-width.c: New file.
64047         * modules/uniwidth/u32-width: New file.
64048
64049         * tests/uniwidth/test-u16-width.c: New file.
64050         * modules/uniwidth/u16-width-tests: New file.
64051
64052         * lib/uniwidth/u16-width.c: New file.
64053         * modules/uniwidth/u16-width: New file.
64054
64055         * tests/uniwidth/test-u8-width.c: New file.
64056         * modules/uniwidth/u8-width-tests: New file.
64057
64058         * lib/uniwidth/u8-width.c: New file.
64059         * modules/uniwidth/u8-width: New file.
64060
64061         * tests/uniwidth/test-uc_width.c: New file.
64062         * modules/uniwidth/width-tests: New file.
64063
64064         * lib/uniwidth/width.c: New file, from GNU libiconv.
64065         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64066         * modules/uniwidth/width: New file.
64067
64068         * lib/uniwidth.h: New file, from GNU libiconv.
64069         * modules/uniwidth/base: New file.
64070
64071 2007-07-07  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/uniname.h: New file, from GNU gettext.
64074         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64075         * lib/uniname/uninames.h: New file, from GNU gettext.
64076         * lib/uniname/uniname.c: New file, from GNU gettext.
64077         * tests/uniname/test-uninames.sh: New file.
64078         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64079         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64080         * modules/uniname/base: New file.
64081         * modules/uniname/uniname: New file.
64082         * modules/uniname/uniname-tests: New file.
64083         * MODULES.html.sh (Unicode string functions): Add the new modules.
64084
64085 2007-07-06  Bruno Haible  <bruno@clisp.org>
64086
64087         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64088
64089 2007-07-06  Bruno Haible  <bruno@clisp.org>
64090
64091         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64092         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64093         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64094         include <sys/time.h>.
64095         Reported by Eric Blake.
64096
64097 2007-07-06  Eric Blake  <ebb9@byu.net>
64098
64099         Fix testing canonicalize on cygwin.
64100         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64101         Revert patch from 2007-06-19.
64102         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64103         canonicalize module is also in use.
64104         * tests/test-canonicalize.c: New file.
64105         * tests/test-canonicalize.sh: Likewise.
64106         * modules/canonicalize-tests: Likewise.
64107
64108 2007-07-06  Jim Meyering  <jim@meyering.net>
64109
64110         * lib/getugroups.c (getugroups): Detect getgrent failure.
64111         Adjust comment to reflect reality: this function may return -1.
64112
64113 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64114
64115         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64116         the new TP address.
64117         (usage): Fix typo
64118         (gnulib_mk): New variable.
64119
64120 2007-07-05  Jim Meyering  <jim@meyering.net>
64121
64122         Don't let endgrent clobber errno, no matter how improbable.
64123         * lib/getugroups.c (getugroups): Save and restore errno around
64124         endgrent call.
64125
64126         Close the group DB even when failing with 2^31 or more members.
64127         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64128
64129 2007-07-04  Jim Meyering  <jim@meyering.net>
64130
64131         * lib/getugroups.h: New file.
64132         * lib/getugroups.c: Include "getugroups.h".
64133         Remove uses of "register" keyword.
64134         Move local variable, "cp", down into scope where used.
64135         Give "username" parameter the "const" attribute.
64136         * modules/getugroups (Files): Add lib/getugroups.h
64137
64138 2007-07-04  Karl Berry  <karl@gnu.org>
64139
64140         * MODULES.html.sh (func_all_modules): Complete rename of
64141         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64142
64143 2007-07-02  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64146         mode, when inttypes.h comes from gnulib.
64147         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64148
64149 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64150
64151         * NEWS: Mention lgpl module name change.
64152
64153         * modules/lgpl-2.1: Renamed from lgpl.
64154
64155         * NEWS: Mention gpl module name change.
64156
64157         * modules/gpl-3.0: New file, based on gpl-2.0.
64158
64159         * modules/gpl-2.0: Renamed from gpl.
64160
64161         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64162         doc/gpl-2.0.texi.
64163
64164 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64167         #define __STDC_LIMIT_MACROS temporarily while including
64168         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64169         Problem reported by Joel E. Denny in
64170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64171
64172 2007-07-01  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/unistdio.h: New file.
64175         * lib/unistdio/u-asnprintf.h: New file.
64176         * lib/unistdio/u-asprintf.h: New file.
64177         * lib/unistdio/u-printf-args.c: New file.
64178         * lib/unistdio/u-printf-args.h: New file.
64179         * lib/unistdio/u-printf-parse.h: New file.
64180         * lib/unistdio/u-snprintf.h: New file.
64181         * lib/unistdio/u-sprintf.h: New file.
64182         * lib/unistdio/u-vasprintf.h: New file.
64183         * lib/unistdio/u-vsnprintf.h: New file.
64184         * lib/unistdio/u-vsprintf.h: New file.
64185         * lib/unistdio/ulc-asnprintf.c: New file.
64186         * lib/unistdio/ulc-asprintf.c: New file.
64187         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64188         * lib/unistdio/ulc-printf-parse.c: New file.
64189         * lib/unistdio/ulc-snprintf.c: New file.
64190         * lib/unistdio/ulc-sprintf.c: New file.
64191         * lib/unistdio/ulc-vasnprintf.c: New file.
64192         * lib/unistdio/ulc-vasprintf.c: New file.
64193         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64194         * lib/unistdio/ulc-vsnprintf.c: New file.
64195         * lib/unistdio/ulc-vsprintf.c: New file.
64196         * lib/unistdio/u8-asnprintf.c: New file.
64197         * lib/unistdio/u8-asprintf.c: New file.
64198         * lib/unistdio/u8-printf-parse.c: New file.
64199         * lib/unistdio/u8-snprintf.c: New file.
64200         * lib/unistdio/u8-sprintf.c: New file.
64201         * lib/unistdio/u8-vasnprintf.c: New file.
64202         * lib/unistdio/u8-vasprintf.c: New file.
64203         * lib/unistdio/u8-vsnprintf.c: New file.
64204         * lib/unistdio/u8-vsprintf.c: New file.
64205         * lib/unistdio/u8-u8-asnprintf.c: New file.
64206         * lib/unistdio/u8-u8-asprintf.c: New file.
64207         * lib/unistdio/u8-u8-snprintf.c: New file.
64208         * lib/unistdio/u8-u8-sprintf.c: New file.
64209         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64210         * lib/unistdio/u8-u8-vasprintf.c: New file.
64211         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64212         * lib/unistdio/u8-u8-vsprintf.c: New file.
64213         * lib/unistdio/u16-asnprintf.c: New file.
64214         * lib/unistdio/u16-asprintf.c: New file.
64215         * lib/unistdio/u16-printf-parse.c: New file.
64216         * lib/unistdio/u16-snprintf.c: New file.
64217         * lib/unistdio/u16-sprintf.c: New file.
64218         * lib/unistdio/u16-vasnprintf.c: New file.
64219         * lib/unistdio/u16-vasprintf.c: New file.
64220         * lib/unistdio/u16-vsnprintf.c: New file.
64221         * lib/unistdio/u16-vsprintf.c: New file.
64222         * lib/unistdio/u16-u16-asnprintf.c: New file.
64223         * lib/unistdio/u16-u16-asprintf.c: New file.
64224         * lib/unistdio/u16-u16-snprintf.c: New file.
64225         * lib/unistdio/u16-u16-sprintf.c: New file.
64226         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64227         * lib/unistdio/u16-u16-vasprintf.c: New file.
64228         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64229         * lib/unistdio/u16-u16-vsprintf.c: New file.
64230         * lib/unistdio/u32-asnprintf.c: New file.
64231         * lib/unistdio/u32-asprintf.c: New file.
64232         * lib/unistdio/u32-printf-parse.c: New file.
64233         * lib/unistdio/u32-snprintf.c: New file.
64234         * lib/unistdio/u32-sprintf.c: New file.
64235         * lib/unistdio/u32-vasnprintf.c: New file.
64236         * lib/unistdio/u32-vasprintf.c: New file.
64237         * lib/unistdio/u32-vsnprintf.c: New file.
64238         * lib/unistdio/u32-vsprintf.c: New file.
64239         * lib/unistdio/u32-u32-asnprintf.c: New file.
64240         * lib/unistdio/u32-u32-asprintf.c: New file.
64241         * lib/unistdio/u32-u32-snprintf.c: New file.
64242         * lib/unistdio/u32-u32-sprintf.c: New file.
64243         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64244         * lib/unistdio/u32-u32-vasprintf.c: New file.
64245         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64246         * lib/unistdio/u32-u32-vsprintf.c: New file.
64247         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64248         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64249         * tests/unistdio/test-ulc-printf1.h: New file.
64250         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64251         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64252         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64253         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64254         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64255         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64256         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64257         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64258         * tests/unistdio/test-u8-asnprintf1.c: New file.
64259         * tests/unistdio/test-u8-asnprintf1.h: New file.
64260         * tests/unistdio/test-u8-printf1.h: New file.
64261         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64262         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64263         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64264         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64265         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64266         * tests/unistdio/test-u8-vasprintf1.c: New file.
64267         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64268         * tests/unistdio/test-u8-vsprintf1.c: New file.
64269         * tests/unistdio/test-u16-asnprintf1.c: New file.
64270         * tests/unistdio/test-u16-asnprintf1.h: New file.
64271         * tests/unistdio/test-u16-printf1.h: New file.
64272         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64273         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64274         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64275         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64276         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64277         * tests/unistdio/test-u16-vasprintf1.c: New file.
64278         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64279         * tests/unistdio/test-u16-vsprintf1.c: New file.
64280         * tests/unistdio/test-u32-asnprintf1.c: New file.
64281         * tests/unistdio/test-u32-asnprintf1.h: New file.
64282         * tests/unistdio/test-u32-printf1.h: New file.
64283         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64284         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64285         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64286         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64287         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64288         * tests/unistdio/test-u32-vasprintf1.c: New file.
64289         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64290         * tests/unistdio/test-u32-vsprintf1.c: New file.
64291         * modules/unistdio/base: New file.
64292         * modules/unistdio/u-printf-args: New file.
64293         * modules/unistdio/ulc-asnprintf: New file.
64294         * modules/unistdio/ulc-asprintf: New file.
64295         * modules/unistdio/ulc-fprintf: New file.
64296         * modules/unistdio/ulc-printf-parse: New file.
64297         * modules/unistdio/ulc-snprintf: New file.
64298         * modules/unistdio/ulc-sprintf: New file.
64299         * modules/unistdio/ulc-vasnprintf: New file.
64300         * modules/unistdio/ulc-vasprintf: New file.
64301         * modules/unistdio/ulc-vfprintf: New file.
64302         * modules/unistdio/ulc-vsnprintf: New file.
64303         * modules/unistdio/ulc-vsprintf: New file.
64304         * modules/unistdio/u8-asnprintf: New file.
64305         * modules/unistdio/u8-asprintf: New file.
64306         * modules/unistdio/u8-printf-parse: New file.
64307         * modules/unistdio/u8-snprintf: New file.
64308         * modules/unistdio/u8-sprintf: New file.
64309         * modules/unistdio/u8-vasnprintf: New file.
64310         * modules/unistdio/u8-vasprintf: New file.
64311         * modules/unistdio/u8-vsnprintf: New file.
64312         * modules/unistdio/u8-vsprintf: New file.
64313         * modules/unistdio/u8-u8-asnprintf: New file.
64314         * modules/unistdio/u8-u8-asprintf: New file.
64315         * modules/unistdio/u8-u8-snprintf: New file.
64316         * modules/unistdio/u8-u8-sprintf: New file.
64317         * modules/unistdio/u8-u8-vasnprintf: New file.
64318         * modules/unistdio/u8-u8-vasprintf: New file.
64319         * modules/unistdio/u8-u8-vsnprintf: New file.
64320         * modules/unistdio/u8-u8-vsprintf: New file.
64321         * modules/unistdio/u16-asnprintf: New file.
64322         * modules/unistdio/u16-asprintf: New file.
64323         * modules/unistdio/u16-printf-parse: New file.
64324         * modules/unistdio/u16-snprintf: New file.
64325         * modules/unistdio/u16-sprintf: New file.
64326         * modules/unistdio/u16-vasnprintf: New file.
64327         * modules/unistdio/u16-vasprintf: New file.
64328         * modules/unistdio/u16-vsnprintf: New file.
64329         * modules/unistdio/u16-vsprintf: New file.
64330         * modules/unistdio/u16-u16-asnprintf: New file.
64331         * modules/unistdio/u16-u16-asprintf: New file.
64332         * modules/unistdio/u16-u16-snprintf: New file.
64333         * modules/unistdio/u16-u16-sprintf: New file.
64334         * modules/unistdio/u16-u16-vasnprintf: New file.
64335         * modules/unistdio/u16-u16-vasprintf: New file.
64336         * modules/unistdio/u16-u16-vsnprintf: New file.
64337         * modules/unistdio/u16-u16-vsprintf: New file.
64338         * modules/unistdio/u32-asnprintf: New file.
64339         * modules/unistdio/u32-asprintf: New file.
64340         * modules/unistdio/u32-printf-parse: New file.
64341         * modules/unistdio/u32-snprintf: New file.
64342         * modules/unistdio/u32-sprintf: New file.
64343         * modules/unistdio/u32-vasnprintf: New file.
64344         * modules/unistdio/u32-vasprintf: New file.
64345         * modules/unistdio/u32-vsnprintf: New file.
64346         * modules/unistdio/u32-vsprintf: New file.
64347         * modules/unistdio/u32-u32-asnprintf: New file.
64348         * modules/unistdio/u32-u32-asprintf: New file.
64349         * modules/unistdio/u32-u32-snprintf: New file.
64350         * modules/unistdio/u32-u32-sprintf: New file.
64351         * modules/unistdio/u32-u32-vasnprintf: New file.
64352         * modules/unistdio/u32-u32-vasprintf: New file.
64353         * modules/unistdio/u32-u32-vsnprintf: New file.
64354         * modules/unistdio/u32-u32-vsprintf: New file.
64355         * modules/unistdio/ulc-asnprintf-tests: New file.
64356         * modules/unistdio/ulc-vasnprintf-tests: New file.
64357         * modules/unistdio/ulc-vasprintf-tests: New file.
64358         * modules/unistdio/ulc-vsnprintf-tests: New file.
64359         * modules/unistdio/ulc-vsprintf-tests: New file.
64360         * modules/unistdio/u8-asnprintf-tests: New file.
64361         * modules/unistdio/u8-vasnprintf-tests: New file.
64362         * modules/unistdio/u8-vasprintf-tests: New file.
64363         * modules/unistdio/u8-vsnprintf-tests: New file.
64364         * modules/unistdio/u8-vsprintf-tests: New file.
64365         * modules/unistdio/u16-asnprintf-tests: New file.
64366         * modules/unistdio/u16-vasnprintf-tests: New file.
64367         * modules/unistdio/u16-vasprintf-tests: New file.
64368         * modules/unistdio/u16-vsnprintf-tests: New file.
64369         * modules/unistdio/u16-vsprintf-tests: New file.
64370         * modules/unistdio/u32-asnprintf-tests: New file.
64371         * modules/unistdio/u32-vasnprintf-tests: New file.
64372         * modules/unistdio/u32-vasprintf-tests: New file.
64373         * modules/unistdio/u32-vsnprintf-tests: New file.
64374         * modules/unistdio/u32-vsprintf-tests: New file.
64375         * MODULES.html.sh (Unicode string functions): Add the new modules.
64376
64377 2007-07-01  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/sprintf.c (sprintf): Limit the available length estimation,
64380         to avoid address wraparound.
64381         * lib/vsprintf.c (vsprintf): Likewise.
64382         * modules/sprintf-posix (Dependencies): Add stdint.
64383         * modules/vsprintf-posix (Dependencies): Likewise.
64384
64385 2007-07-01  Bruno Haible  <bruno@clisp.org>
64386
64387         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64388         Windows PATH as well. Conservative double-quoting. Comments.
64389
64390 2007-07-01  Bruno Haible  <bruno@clisp.org>
64391             Eric Blake  <ebb9@byu.net>
64392             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64393
64394         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64395         empty components in $PATH, denoting '.'.
64396
64397 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64398
64399         * gnulib-tool: Fix indentation.
64400         (func_create_megatestdir): Likewise.
64401         Report by Bruno Haible.
64402
64403 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64404
64405         Sync from Automake.
64406         * build-aux/gnupload: Fix shell portability issues with for loops.
64407         Report by Karl Berry.
64408
64409 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64410
64411         * build-aux/maint.mk (POURL): Use translationproject.org.
64412
64413 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64414             Bruno Haible  <bruno@clisp.org>
64415
64416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64417         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64418         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64419         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64420         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64421
64422 2007-06-27  Bruno Haible  <bruno@clisp.org>
64423
64424         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64425         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64426
64427 2007-06-26  Karl Berry  <karl@gnu.org>
64428
64429         * MODULES.html.sh: remove xreadlink-with-size.
64430
64431 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64432
64433         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64434         method that I hope also handles the double-include problem noted
64435         by Bruno Haible in
64436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64437
64438 2007-06-23  Bruno Haible  <bruno@clisp.org>
64439
64440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64441         Don't let the 'mostlyclean' target fail if the last subdirectory could
64442         not be removed.
64443         Reported by Karl Berry.
64444
64445 2007-06-23  Bruno Haible  <bruno@clisp.org>
64446
64447         * gnulib-tool (echo): Add a speedier workaround for ksh.
64448         * tests/test-echo.sh: Likewise.
64449
64450 2007-06-23  Bruno Haible  <bruno@clisp.org>
64451
64452         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64453         * tests/test-echo.sh: Likewise.
64454
64455 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64456
64457         * gnulib-tool (IFS): Initialize early, so we don't set it to
64458         empty later.
64459         (self_abspathname): Rewrite algorithm to set it, reindent.
64460         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64461         (func_create_megatestdir): Merge some sed scripts.
64462
64463 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64466         exposed by Sun Studio 11 cc on Solaris 8.
64467
64468 2007-06-22  Bruno Haible  <bruno@clisp.org>
64469
64470         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64471         backslashes.
64472         * tests/test-echo.sh: New file.
64473
64474 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64475
64476         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64477         simplify `sed_replace_build_aux' scripts, they are portable but
64478         echoing them with `echo' is not.
64479         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64480
64481 2007-06-21  Karl Berry  <karl@gnu.org>
64482
64483         * config/srclist.txt: guess we can't handle the licenses via
64484         srclist at the moment.
64485
64486 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64487
64488         * MODULES.html.sh: Add include_next.
64489         * modules/include_next: New file.
64490
64491 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64494         INCLUDE_NEXT.
64495         (gl_CHECK_NEXT_HEADERS): New macro.
64496         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64497         the obsolescent gl_ABSOLUTE_HEADER.
64498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64499         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64500         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64501         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64502         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64503         * m4/math_h.m4 (gl_MATH_H): Likewise.
64504         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64505         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64506         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64507         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64508         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64509         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64510         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64512         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64514         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64515         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64516         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64517         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64518         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64519         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64520         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64521         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64522         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64523         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64524         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64525         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64526         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64527         * lib/float_.h: Likewise.
64528         * lib/inttypes_.h: Likewise.
64529         * lib/math_.h: Likewise.
64530         * lib/search_.h: Likewise.
64531         * lib/signal_.h: Likewise.
64532         * lib/stdint_.h: Likewise.
64533         * lib/stdio_.h: Likewise.
64534         * lib/stdlib_.h: Likewise.
64535         * lib/string_.h: Likewise.
64536         * lib/sys_stat_.h: Likewise.
64537         * lib/sys_time_.h: Likewise.
64538         * lib/time_.h: Likewise.
64539         * lib/unistd_.h: Likewise.
64540         * lib/wchar_.h: Likewise.
64541         * lib/wctype_.h: Likewise.
64542         * lib/dirent_.h: Likewise.
64543         * lib/iconv_.h: Likewise.
64544         * lib/locale_.h: Likewise.
64545         * lib/netinet_in_.h: Likewise.
64546         * lib/sys_select_.h: Likewise.
64547         * lib/sys_socket_.h: Likewise.
64548         * lib/sysexits_.h: Likewise.
64549         * modules/fcntl (Depends-on): Depend on include_next, not
64550         absolute_header.
64551         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64552         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64553         * modules/fchdir: Likewise.
64554         * modules/float: Likewise.
64555         * modules/iconv_open: Likewise.
64556         * modules/inttypes: Likewise.
64557         * modules/locale: Likewise.
64558         * modules/math: Likewise.
64559         * modules/netinet_in: Likewise.
64560         * modules/search: Likewise.
64561         * modules/signal: Likewise.
64562         * modules/stdint: Likewise.
64563         * modules/stdio: Likewise.
64564         * modules/stdlib: Likewise.
64565         * modules/string: Likewise.
64566         * modules/sys_select: Likewise.
64567         * modules/sys_socket: Likewise.
64568         * modules/sys_stat: Likewise.
64569         * modules/sys_time: Likewise.
64570         * modules/sysexits: Likewise.
64571         * modules/time: Likewise.
64572         * modules/unistd: Likewise.
64573         * modules/wchar: Likewise.
64574         * modules/wctype: Likewise.
64575         * modules/sys_stat: Change maintainer to "all".
64576         * modules/unistd: Likewise.
64577
64578 2007-06-20  Karl Berry  <karl@gnu.org>
64579
64580         * config/srclist.txt: track www changes in license files.
64581
64582 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64583
64584         * build-aux/bootstrap: Remove stray dot.
64585         Make sure build_aux settings are honored when linking
64586         gnulib_extra_files.
64587
64588 2007-06-19  Eric Blake  <ebb9@byu.net>
64589
64590         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64591         Allow compilation on cygwin.
64592
64593 2007-06-19  Jim Meyering  <jim@meyering.net>
64594
64595         xreadlink-with-size: Remove module.  No longer used.
64596         Ex-callers now use xreadlink or mreadlink-with-size.
64597         * modules/xreadlink-with-size: Remove module.
64598         * lib/xreadlink-with-size.c: Remove file.
64599         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64600         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64601         just before the function definition *is* accurate.
64602
64603         Eliminate one way canonicalize_filename_mode could exit.
64604         * lib/canonicalize.c (canonicalize_filename_mode):
64605         Use mreadlink_with_size, not xreadlink_with_size.
64606
64607 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         Detect porting problems to FreeBSD/arm, which has time_t wider than
64610         long int.  Original problem reported for GNU diff by Xin Li in
64611         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64612         * modules/getdate (Depends-on): Add intprops, verify.
64613         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64614         is an integer type no wider than long int.
64615
64616 2007-06-18  Jim Meyering  <jim@meyering.net>
64617
64618         New module: mreadlink-with-size.
64619         * MODULES.html.sh: Add mreadlink-with-size.
64620         * modules/mreadlink-with-size: New module
64621         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64622         not xreadlink-with-size.
64623         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64624
64625 2007-06-16  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64628         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64629         Reported by Gary V. Vaughan <gary@gnu.org>.
64630
64631 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         Revamp lchown so that it lives in unistd.h where it belongs.
64634         * lib/lchown.h: Remove.
64635         * lib/dirchownmod.c: Don't include lib/lchown.h.
64636         * lib/fchownat.c: Likewise.
64637         * lib/openat.c: Likewise.
64638         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64639         does not follow symlinks.
64640         (EOPNOTSUPP): Define if not defined.
64641         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64642         is defined to 0.
64643         (lchown): New decl.
64644         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64645         Do not check for lchown decl.
64646         Set REPLACE_LCHOWN.
64647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64648         REPLACE_LCHOWN.
64649         * modules/chown: Make it clear it follows symlinks.
64650         * modules/lchown: Make it clear it doesn't follow symlinks.
64651         (Files): Remove lib/lchown.h
64652         (Depends-on): Add unistd.
64653         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64654         (Include): Include <unistd.h>, not "lchown.h".
64655         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64656         REPLACE_LCHOWN.
64657
64658 2007-06-15  Jim Meyering  <jim@meyering.net>
64659
64660         Change license (GPL to LGPL) of fsusage and dependents.
64661         * modules/fsusage (License): Change to LGPL.
64662         * modules/full-read (License): Likewise.
64663         * modules/full-write (License): Likewise.
64664         * modules/safe-read (License): Likewise.
64665         * modules/safe-write (License): Likewise.
64666
64667 2007-06-14  Ben Pfaff  <blp@gnu.org>
64668
64669         Missing part of allocsa -> malloca transition.
64670         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64671         gl_MALLOCA.
64672
64673 2007-06-12  Bruno Haible  <bruno@clisp.org>
64674
64675         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64676         to ia64, x86_64, i386.
64677         Reported by Eric Blake.
64678
64679 2007-06-12  Bruno Haible  <bruno@clisp.org>
64680
64681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64682         cross-compiling to x86_64.
64683
64684 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64687         glitch reported by Ralf Wildenhues in
64688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64689
64690         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64691         Vin Shelton.
64692
64693 2007-06-11  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64696         replacement string.
64697         Reported by Eric Blake.
64698
64699 2007-06-10  Bruno Haible  <bruno@clisp.org>
64700
64701         Prepare vasnprintf code for use with Unicode strings.
64702         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64703         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64704         TYPE_U32_STRING.
64705         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64706         a_u32_string variants.
64707         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64708         * lib/printf-args.c: Don't include config.h and the specification
64709         header if PRINTF_FETCHARGS is already defined.
64710         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64711         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64712         TYPE_U16_STRING, TYPE_U32_STRING.
64713         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64714         u16_directive, u16_directives, u32_directive, u32_directives): New
64715         types.
64716         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64717         New declarations.
64718         * lib/printf-parse.c: Don't include config.h and the specification
64719         header if PRINTF_PARSE is already defined. Eliminate the set of
64720         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64721         them now. Include c-ctype.h.
64722         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64723         directive and CHAR_T_ONLY_ASCII.
64724         * lib/vasnprintf.c: Don't include config.h and the specification header
64725         if VASNPRINTF is already defined.
64726         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64727         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64728         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64729         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64730         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64731         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64732         code accordingly.
64733         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64734         pad_ourselves also in this case, with the 'c' and 's' directives, and
64735         with a different notion of "width".
64736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64737
64738 2007-06-10  Bruno Haible  <bruno@clisp.org>
64739
64740         * modules/unistr/u32-mbsnlen: New file.
64741         * lib/unistr/u32-mbsnlen.c: New file.
64742
64743         * modules/unistr/u16-mbsnlen: New file.
64744         * lib/unistr/u16-mbsnlen.c: New file.
64745
64746         * modules/unistr/u8-mbsnlen: New file.
64747         * lib/unistr/u8-mbsnlen.c: New file.
64748
64749         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64750         declarations.
64751
64752 2007-06-10  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/string_.h (mbsnlen): New declaration.
64755         * lib/mbsnlen.c: New file.
64756         * m4/mbsnlen.m4: New file.
64757         * modules/mbsnlen: New file.
64758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64759         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64760         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64761
64762 2007-06-10  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64765
64766 2007-06-10  Bruno Haible  <bruno@clisp.org>
64767
64768         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64769         * lib/mbuiter.h: Likewise.
64770
64771 2007-06-10  Bruno Haible  <bruno@clisp.org>
64772
64773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64774         declaration.
64775
64776 2007-06-10  Karl Berry  <karl@gnu.org>
64777
64778         * config/srclist.txt: remove gettext entries, Bruno prefers
64779         to update individually.
64780
64781 2007-06-10  Bruno Haible  <bruno@clisp.org>
64782
64783         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64784         'maxlen'. Ensure only length + width bytes are allocated, not
64785         length + 1 + width.
64786
64787 2007-06-09  Bruno Haible  <bruno@clisp.org>
64788
64789         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64790         (CHAR_T): Remove macro.
64791         (VASNPRINTF): Update.
64792
64793 2007-06-09  Bruno Haible  <bruno@clisp.org>
64794
64795         * MODULES.html.sh (Unicode string functions): Add the new modules.
64796
64797         * modules/uniconv/u32-conv-to-enc: New file.
64798         * lib/uniconv/u32-conv-to-enc.c: New file.
64799         * modules/uniconv/u32-conv-to-enc-tests: New file.
64800         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64801
64802         * modules/uniconv/u16-conv-to-enc: New file.
64803         * lib/uniconv/u16-conv-to-enc.c: New file.
64804         * lib/uniconv/u-conv-to-enc.h: New file.
64805         * modules/uniconv/u16-conv-to-enc-tests: New file.
64806         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64807
64808         * modules/uniconv/u8-conv-to-enc: New file.
64809         * lib/uniconv/u8-conv-to-enc.c: New file.
64810         * modules/uniconv/u8-conv-to-enc-tests: New file.
64811         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64812
64813         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64814         u32_conv_to_encoding): New declarations.
64815
64816 2007-06-09  Bruno Haible  <bruno@clisp.org>
64817
64818         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64819
64820 2007-06-09  Bruno Haible  <bruno@clisp.org>
64821
64822         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64823         * modules/malloca: Renamed from modules/allocsa, updated.
64824         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64825         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64826         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64827         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64828         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64829         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64830         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64831         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64832         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64833         * modules/c-strcasestr (Depends-on): Update.
64834         * lib/c-strcasestr.c: Update.
64835         * modules/c-strstr (Depends-on): Update.
64836         * lib/c-strstr.c: Update.
64837         * modules/canonicalize-lgpl (Depends-on): Update.
64838         * lib/canonicalize-lgpl.c: Update.
64839         * modules/clean-temp (Depends-on): Update.
64840         * lib/clean-temp.c: Update.
64841         * modules/csharpcomp (Depends-on): Update.
64842         * lib/csharpcomp.c: Update.
64843         * modules/csharpexec (Depends-on): Update.
64844         * lib/csharpexec.c: Update.
64845         * modules/javacomp (Depends-on): Update.
64846         * lib/javacomp.c: Update.
64847         * modules/javaexec (Depends-on): Update.
64848         * lib/javaexec.c: Update.
64849         * modules/mbscasestr (Depends-on): Update.
64850         * lib/mbscasestr.c: Update.
64851         * modules/mbsstr (Depends-on): Update.
64852         * lib/mbsstr.c: Update.
64853         * modules/setenv (Depends-on): Update.
64854         * lib/setenv.c: Update.
64855         * modules/strcasestr (Depends-on): Update.
64856         * lib/strcasestr.c: Update.
64857         * modules/striconveha (Depends-on): Update.
64858         * lib/striconveha.c: Update.
64859         * modules/relocatable-prog-wrapper (Files): Update.
64860         * lib/relocwrapper.c: Update.
64861         * build-aux/install-reloc: Update.
64862         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64863
64864 2007-06-08  Bruno Haible  <bruno@clisp.org>
64865
64866         Port to uClibc.
64867         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64868         * lib/fpurge.c (fpurge): Likewise.
64869         * lib/freading.c (freading): Likewise.
64870         * lib/fseeko.c (rpl_fseeko): Likewise.
64871         * lib/fseterr.c (fseterr): Likewise.
64872         * lib/fwriting.c (fwriting): Likewise.
64873         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64874
64875 2007-06-08  Bruno Haible  <bruno@clisp.org>
64876
64877         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64878         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64879         * modules/gettext (Files): Add m4/intlmacosx.m4.
64880
64881 2007-06-07  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/localename-tests: New file.
64884         * tests/test-localename.c: New file.
64885
64886         New module 'localename'.
64887         * lib/localename.h: New file.
64888         * lib/localename.c: New file, from GNU gettext.
64889         * m4/localename.m4: New file.
64890         * modules/localename: New file.
64891
64892 2007-06-07  Bruno Haible  <bruno@clisp.org>
64893
64894         Work around the lack of <wchar.h> on some builds of uClibc.
64895         * doc/headers/wchar.texi: Update.
64896         * lib/wchar_.h: Include <wchar.h> only if it exists.
64897         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64898         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64899         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64900         doesn't exist.
64901         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64902         * modules/mbfile (Depends-on): Add wchar.
64903         * modules/mbiter (Depends-on): Likewise.
64904         * modules/mbuiter (Depends-on): Likewise.
64905         Reported by Simon Josefsson.
64906
64907 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         Work around problem reported by Steven M. Schweda in
64910         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64911         Tru64 5.1B with the Compaq compiler environment installed declares
64912         an 'isblank' function but does not define it in the C library.
64913         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64914         * lib/regex_internal.h (isblank): Likewise.
64915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64916         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64917
64918 2007-06-05  Bruno Haible  <bruno@clisp.org>
64919
64920         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64921         ia64.
64922         * modules/printf-safe: New file.
64923         * modules/fprintf-posix (Depends-on): Add printf-safe.
64924         * modules/printf-posix (Depends-on): Likewise.
64925         * modules/snprintf-posix (Depends-on): Likewise.
64926         * modules/sprintf-posix (Depends-on): Likewise.
64927         * modules/vasnprintf-posix (Depends-on): Likewise.
64928         * modules/vasprintf-posix (Depends-on): Likewise.
64929         * modules/vfprintf-posix (Depends-on): Likewise.
64930         * modules/vprintf-posix (Depends-on): Likewise.
64931         * modules/vsnprintf-posix (Depends-on): Likewise.
64932         * modules/vsprintf-posix (Depends-on): Likewise.
64933         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64934         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64935         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64936         "no" on i386, x86_64, ia64.
64937         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64938         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64939         on i386, x86_64, ia64.
64940         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64941         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64942         on i386, x86_64, ia64.
64943         * tests/test-vasnprintf-posix.c: Include float.h.
64944         (LDBL80_WORDS): New macro.
64945         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64946         on i386, x86_64, ia64.
64947         * tests/test-vasprintf-posix.c: Include float.h.
64948         (LDBL80_WORDS): New macro.
64949         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64950         on i386, x86_64, ia64.
64951         * tests/test-snprintf-posix.c: Include float.h.
64952         * tests/test-sprintf-posix.c: Likewise.
64953         * tests/test-vsnprintf-posix.c: Likewise.
64954         * tests/test-vsprintf-posix.c: Likewise.
64955
64956 2007-06-05  Bruno Haible  <bruno@clisp.org>
64957
64958         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64960         non-IEEE numbers on i386, x86_64, ia64.
64961         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64962         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64963         * tests/test-isnanl.h: Include float.h.
64964         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64965
64966 2007-06-05  Bruno Haible  <bruno@clisp.org>
64967
64968         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64969         also the %a / %A. Handle the %a / %A code before this extra handling.
64970
64971 2007-06-05  Bruno Haible  <bruno@clisp.org>
64972
64973         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64974         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64975
64976 2007-06-05  Bruno Haible  <bruno@clisp.org>
64977
64978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64979         typo in variable name.
64980
64981 2007-06-05  Eric Blake  <ebb9@byu.net>
64982
64983         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64984         Reported by Simon Josefsson.
64985
64986 2007-06-04  Bruno Haible  <bruno@clisp.org>
64987
64988         Avoid test failures on some PowerPC platforms.
64989         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64990         Define differently for PowerPC.
64991         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64992         Reported by Gary V. Vaughan <gary@gnu.org>.
64993
64994 2007-06-02  Bruno Haible  <bruno@clisp.org>
64995
64996         Fix test-stdint failure on FreeBSD/ia64.
64997         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64998         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64999         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65000         * doc/headers/stdint.texi: Update.
65001
65002 2007-06-01  Bruno Haible  <bruno@clisp.org>
65003
65004         * tests/test-binary-io.c (main): Pass a third argument to open().
65005         Reported by Gary V. Vaughan <gary@gnu.org>.
65006
65007 2007-06-01  Bruno Haible  <bruno@clisp.org>
65008
65009         * doc/functions/frexpl.texi: Update for mingw.
65010
65011 2007-06-01  Bruno Haible  <bruno@clisp.org>
65012
65013         * tests/test-lseek.c (main): Disable test of errno for invalid third
65014         argument.
65015         * doc/functions/lseek.texi: Update.
65016         Reported by Gary V. Vaughan <gary@gnu.org>.
65017
65018 2007-05-28  Bruno Haible  <bruno@clisp.org>
65019
65020         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65021
65022 2007-05-31  Eric Blake  <ebb9@byu.net>
65023
65024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65025         cross compiling.
65026
65027 2007-05-30  Eric Blake  <ebb9@byu.net>
65028         and Bruno Haible  <bruno@clisp.org>
65029
65030         Work around mingw test failures exposed by m4-1.4.9b.
65031         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65032         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65033         moment.
65034
65035 2007-05-30  Bruno Haible  <bruno@clisp.org>
65036
65037         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65038         assuming that they are closed. Needed on HP-UX 11.
65039
65040 2007-05-29  Bruno Haible  <bruno@clisp.org>
65041
65042         Fix a problem with #include_next.
65043         * lib/dirent_.h: Split the double-inclusion guard.
65044         * lib/fcntl_.h: Likewise.
65045         * lib/float_.h: Likewise.
65046         * lib/iconv_.h: Likewise.
65047         * lib/inttypes_.h: Likewise.
65048         * lib/locale_.h: Likewise.
65049         * lib/math_.h: Likewise.
65050         * lib/netinet_in_.h: Likewise.
65051         * lib/search_.h: Likewise.
65052         * lib/signal_.h: Likewise.
65053         * lib/stdint_.h: Likewise.
65054         * lib/stdio_.h: Likewise.
65055         * lib/stdlib_.h: Likewise.
65056         * lib/string_.h: Likewise.
65057         * lib/sys_select_.h: Likewise.
65058         * lib/sys_socket_.h: Likewise.
65059         * lib/sys_stat_.h: Likewise.
65060         * lib/sys_time_.h: Likewise.
65061         * lib/sysexits_.h: Likewise.
65062         * lib/time_.h: Likewise.
65063         * lib/unistd_.h: Likewise.
65064         * lib/wchar_.h: Likewise.
65065         * lib/wctype_.h: Likewise.
65066
65067 2007-05-29  Bruno Haible  <bruno@clisp.org>
65068
65069         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65070         for the moment.
65071
65072 2007-05-29  Bruno Haible  <bruno@clisp.org>
65073
65074         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65075         invocation.
65076         Reported by Eric Blake.
65077
65078 2007-05-29  Bruno Haible  <bruno@clisp.org>
65079
65080         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65081         compiling case.
65082
65083 2007-05-29  Eric Blake  <ebb9@byu.net>
65084             Bruno Haible  <bruno@clisp.org>
65085
65086         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65087         cross compiles.
65088
65089 2007-05-28  Eric Blake  <ebb9@byu.net>
65090
65091         * modules/closein-tests (test_closein_LDADD): Support test on
65092         cygwin with libtool.
65093
65094 2007-05-28  Bruno Haible  <bruno@clisp.org>
65095
65096         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65097         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65098         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65099         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65100         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65101         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65102         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65103         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65104         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65105
65106 2007-05-28  Eric Blake  <ebb9@byu.net>
65107
65108         Unconditionally include <config.h> in unit tests.
65109         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65110         * tests/test-allocsa.c, tests/test-arcfour.c,
65111         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65112         tests/test-array_list.c, tests/test-array_oset.c,
65113         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65114         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65115         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65116         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65117         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65118         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65119         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65120         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65121         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65122         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65123         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65124         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65125         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65126         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65127         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65128         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65129         test-md5.c, test-memmem.c, test-printf-posix.c,
65130         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65131         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65132         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65133         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65134         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65135         test-vasnprintf-posix2.c, test-vasnprintf.c,
65136         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65137         test-vfprintf-posix.c, test-vprintf-posix.c,
65138         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65139         test-xvasprintf.c: Likewise.
65140
65141 2007-05-28  Bruno Haible  <bruno@clisp.org>
65142
65143         * gnulib-tool (func_import): Remember the --with-tests command-line
65144         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65145         Reported by Eric Blake.
65146
65147 2007-05-28  Bruno Haible  <bruno@clisp.org>
65148
65149         * modules/ftell-tests: New file.
65150         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65151         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65152
65153         * lib/ftell.c: New file.
65154         * modules/ftell: New file.
65155         * m4/ftell.m4: New file.
65156         * doc/functions/ftell.texi: Update.
65157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65158         REPLACE_FTELL.
65159         * lib/stdio_.h (rpl_ftell): New declaration.
65160         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65161         REPLACE_FTELL.
65162
65163 2007-05-28  Eric Blake  <ebb9@byu.net>
65164
65165         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65166
65167 2007-05-28  Bruno Haible  <bruno@clisp.org>
65168
65169         * modules/fseek-tests: New file.
65170         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65171         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65172
65173         * lib/fseek.c: New file.
65174         * modules/fseek: New file.
65175         * m4/fseek.m4: New file.
65176         * doc/functions/fseek.texi: Update.
65177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65178         REPLACE_FSEEK.
65179         * lib/stdio_.h (rpl_fseek): New declaration.
65180         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65181         REPLACE_FSEEK.
65182
65183 2007-05-28  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/stdio_.h (fflush): More comments.
65186
65187 2007-05-28  Bruno Haible  <bruno@clisp.org>
65188
65189         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65190         runtime test.
65191
65192 2007-05-28  Eric Blake  <ebb9@byu.net>
65193
65194         Improve lseek module.
65195         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65196         * lib/unistd_.h (lseek): Scale back link warning message.
65197         * tests/test-lseek.c: Beef up test.
65198         * tests/test-lseek.sh: Exercise more facets of lseek.
65199         Reported by Bruno Haible.
65200
65201 2007-05-28  Bruno Haible  <bruno@clisp.org>
65202
65203         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65204         to define.
65205
65206 2007-05-27  Bruno Haible  <bruno@clisp.org>
65207
65208         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65209
65210 2007-05-27  Bruno Haible  <bruno@clisp.org>
65211
65212         * modules/openmp: New file.
65213         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65214         Noah Misch.
65215
65216 2007-05-26  Bruno Haible  <bruno@clisp.org>
65217
65218         * modules/chdir-long (Depends-on): Add fchdir.
65219         * modules/chdir-safer (Depends-on): Likewise.
65220         * modules/fts (Depends-on): Likewise.
65221         * modules/fts-lgpl (Depends-on): Likewise.
65222         * modules/openat (Depends-on): Likewise.
65223         * modules/savewd (Depends-on): Likewise.
65224
65225 2007-05-24  Eric Blake  <ebb9@byu.net>
65226
65227         Fix lseek on mingw.
65228         * modules/lseek: New module.
65229         * m4/lseek.m4: New file.
65230         * lib/lseek.c: New file.
65231         * modules/lseek-tests: New file.
65232         * tests/test-lseek.c: New file.
65233         * tests/test-lseek.sh: New file.
65234         * MODULES.html.sh: Document lseek module.
65235         * modules/fflush (Depends-on): Add lseek, fseeko.
65236         * modules/fseeko (Depends-on): Likewise.
65237         * modules/ftello (Depends-on): Likewise.
65238         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65239         broken.
65240         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65241         broken.
65242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65243         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65244         * lib/ftello.c (rpl_ftello): Likewise.
65245         * tests/test-fseeko.c (main): Test this.
65246         * tests/test-fseeko.sh: Likewise.
65247         * tests/test-ftello.c (main): Likewise.
65248         * tests/test-ftello.sh: Likewise.
65249         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65250         implies replacing fseek.
65251         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65252         HAVE_FTELLO.
65253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65254         * modules/unistd (Makefile.am): Likewise.
65255         * lib/unistd_.h (lseek): Declare a replacement.
65256         * doc/functions/lseek.texi (lseek): Document this fix.
65257         * doc/functions/fseek.texi (fseek): Likewise.
65258         * doc/functions/ftell.texi (ftell): Likewise.
65259
65260 2007-05-24  Bruno Haible  <bruno@clisp.org>
65261
65262         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65263         in the printed representation of a NaN.
65264         * tests/test-vasprintf-posix.c (test_function): Likewise.
65265         * tests/test-snprintf-posix.h (test_function): Likewise.
65266         * tests/test-sprintf-posix.h (test_function): Likewise.
65267         Reported by Eric Blake.
65268
65269 2007-05-23  Eric Blake  <ebb9@byu.net>
65270
65271         Fix fseeko/ftello on cygwin 1.5.24.
65272         * doc/functions/fseeko.texi (fseeko): Document the fix.
65273         * doc/functions/ftello.texi (ftello): Document the fix.
65274         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65275         * doc/functions/stdout.text (stdout): New file.
65276         * doc/functions/stderr.text (stderr): New file.
65277         * doc/gnulib.texi (Function Substitutes): Use new files.
65278         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65279         prior to 1.7.0.
65280         * tests/test-ftello.c (main): Likewise for ftello.
65281         * tests/test-fseeko.sh: New file.
65282         * tests/test-ftello.sh: New file.
65283         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65284         with seekable stdin.
65285         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65286         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65287         (gl_REPLACE_FSEEKO): New macro.
65288         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65289         * modules/fseeko (Files): Distribute fseeko.c.
65290         * modules/ftello (Files): Distribute ftello.c.
65291         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65292         mode.
65293         * lib/ftello.c (rpl_ftello): New file.
65294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65295         fseeko, ftello.
65296         (gl_STDIN_LARGE_OFFSET): New macro.
65297         * modules/stdio (Makefile.am): Perform the replacement.
65298         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65299
65300 2007-05-23  Bruno Haible  <bruno@clisp.org>
65301
65302         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65303         GNULIB_POSIXCHECK is defined.
65304
65305 2007-05-21  Bruno Haible  <bruno@clisp.org>
65306
65307         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65308         Check also the output for NaN arguments. When cross-compiling, guess
65309         no on IRIX.
65310         * lib/vasnprintf.c: Update comments.
65311         * tests/test-vasnprintf-posix.c (strisnan): New function.
65312         (test_function): Use it.
65313         * tests/test-vasprintf-posix.c (strisnan): New function.
65314         (test_function): Use it.
65315         * tests/test-snprintf-posix.h (strisnan): New function.
65316         (test_function): Use it.
65317         * tests/test-sprintf-posix.h (strisnan): New function.
65318         (test_function): Use it.
65319         Reported by Eric Blake.
65320
65321 2007-05-20  Bruno Haible  <bruno@clisp.org>
65322
65323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65324         numbers that fails on BeOS.
65325         * doc/functions/frexpl.texi: Update.
65326
65327 2007-05-20  Jim Meyering  <jim@meyering.net>
65328
65329         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65330         forced upon us by glibc-2.6.
65331
65332 2007-05-20  Bruno Haible  <bruno@clisp.org>
65333
65334         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65335         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65336         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65337         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65338         NEED_PRINTF_INFINITE.
65339         (is_infinitel): New function.
65340         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65342         gl_PREREQ_VASNPRINTF_INFINITE.
65343         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65345         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65346         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65347         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65348         gl_PREREQ_VASNPRINTF_INFINITE.
65349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65350         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65352         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65356         * doc/functions/fprintf.texi: Update.
65357         * doc/functions/printf.texi: Update.
65358         * doc/functions/snprintf.texi: Update.
65359         * doc/functions/sprintf.texi: Update.
65360         * doc/functions/vfprintf.texi: Update.
65361         * doc/functions/vprintf.texi: Update.
65362         * doc/functions/vsnprintf.texi: Update.
65363         * doc/functions/vsprintf.texi: Update.
65364
65365 2007-05-20  Bruno Haible  <bruno@clisp.org>
65366
65367         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65368         was not found in libc.
65369         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65370
65371 2007-05-20  Bruno Haible  <bruno@clisp.org>
65372
65373         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65374         printed as "-nan" instead of "nan".
65375         * tests/test-vasprintf-posix.c (test_function): Likewise.
65376         * tests/test-snprintf-posix.h (test_function): Likewise.
65377         * tests/test-sprintf-posix.h (test_function): Likewise.
65378         Needed for HP-UX 11.
65379
65380 2007-05-20  Jim Meyering  <jim@meyering.net>
65381
65382         Fix buggy test for the fchownat-deref bug.
65383         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65384         symlink required for the run-test.  Without it, this test would
65385         always declare that fchownat doesn't work, and client code would
65386         unnecessarily use the replacement function with fixed libc.
65387         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65388         Reported by Greg Schafer.
65389
65390 2007-05-19  Bruno Haible  <bruno@clisp.org>
65391
65392         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65393         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65394         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65395         Needed for IRIX 6.5 and Solaris 2.5.1.
65396
65397 2007-05-19  Bruno Haible  <bruno@clisp.org>
65398
65399         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65400         (test_function): Skip tests involving -0.0 on platforms where
65401         -0.0 = 0.0.
65402         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65403         (test_function): Skip tests involving -0.0 on platforms where
65404         -0.0 = 0.0.
65405         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65406         (test_function): Skip tests involving -0.0 on platforms where
65407         -0.0 = 0.0.
65408         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65409         (test_function): Skip tests involving -0.0 on platforms where
65410         -0.0 = 0.0.
65411         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65412         tests.
65413         * tests/test-printf-posix.h (test_function): Likewise.
65414         * tests/test-printf-posix.output: Remove all -0.0 related results.
65415         Needed for IRIX 6.5.
65416
65417 2007-05-19  Bruno Haible  <bruno@clisp.org>
65418
65419         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65420         printed as "nan0x7fffffff" instead of "nan".
65421         * tests/test-vasprintf-posix.c (test_function): Likewise.
65422         * tests/test-snprintf-posix.h (test_function): Likewise.
65423         * tests/test-sprintf-posix.h (test_function): Likewise.
65424         * tests/test-fprintf-posix.h (NaN): Remove macro.
65425         (test_function): Remove all NaN related tests.
65426         * tests/test-printf-posix.h (NaN): Remove macro.
65427         (test_function): Remove all NaN related tests.
65428         * tests/test-printf-posix.output: Remove all NaN related results.
65429         Needed for IRIX 6.5.
65430
65431 2007-05-19  Bruno Haible  <bruno@clisp.org>
65432
65433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65435
65436 2007-05-19  Bruno Haible  <bruno@clisp.org>
65437
65438         * lib/float_.h: New file.
65439         * m4/float_h.m4: New file.
65440         * modules/float: New file.
65441         * modules/isnanl (Dependencies): Add float.
65442         * modules/isnanl-nolibm (Dependencies): Likewise.
65443         * modules/mathl (Dependencies): Likewise.
65444         * modules/printf-frexpl (Dependencies): Likewise.
65445         * modules/signbit (Dependencies): Likewise.
65446         * modules/vasnprintf (Dependencies): Likewise.
65447         * doc/headers/float.texi: Update.
65448
65449 2007-05-19  Jim Meyering  <jim@meyering.net>
65450
65451         * lib/utimens.c (gl_futimens): Rename from futimens,
65452         now that glibc-2.6 declares futimens.
65453         * lib/utimens.h: Likewise.
65454
65455 2007-05-19  Bruno Haible  <bruno@clisp.org>
65456
65457         Avoid test failures on mingw.
65458         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65459         * tests/test-printf-posix.sh: Likewise.
65460         * tests/test-vfprintf-posix.sh: Likewise.
65461         * tests/test-vprintf-posix.sh: Likewise.
65462
65463 2007-05-19  Bruno Haible  <bruno@clisp.org>
65464
65465         Fix *printf result for NaN, Inf, -0.0 on mingw.
65466         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65467         * lib/vasnprintf.c: Include math.h and isnan.h.
65468         (is_infinite_or_zero): New function.
65469         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65470         values in the %f, %F, %e, %E, %g, %G directives.
65471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65473         gl_PRINTF_INFINITE and test its result. Invoke
65474         gl_PREREQ_VASNPRINTF_INFINITE.
65475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65482         * doc/functions/fprintf.texi: Update.
65483         * doc/functions/printf.texi: Update.
65484         * doc/functions/snprintf.texi: Update.
65485         * doc/functions/sprintf.texi: Update.
65486         * doc/functions/vfprintf.texi: Update.
65487         * doc/functions/vprintf.texi: Update.
65488         * doc/functions/vsnprintf.texi: Update.
65489         * doc/functions/vsprintf.texi: Update.
65490
65491 2007-05-19  Bruno Haible  <bruno@clisp.org>
65492
65493         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65494         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65495         Instead of multiplying with 10^k, set extra_zeroes to k.
65496         (scale10_round_long_double): Remove function.
65497
65498 2007-05-18  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65501         introduced on 2007-05-06.
65502
65503 2007-05-18  Bruno Haible  <bruno@clisp.org>
65504
65505         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65506         %g directives.
65507         * tests/test-vasprintf-posix.c (test_function): Likewise.
65508         * tests/test-snprintf-posix.h (test_function): Likewise.
65509         * tests/test-sprintf-posix.h (test_function): Likewise.
65510
65511 2007-05-18  Bruno Haible  <bruno@clisp.org>
65512
65513         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65514         (strmatch): New function.
65515         (test_function): Test the %f directive on numbers of various exponents.
65516         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65517         (strmatch): New function.
65518         (test_function): Test the %f directive on numbers of various exponents.
65519         * tests/test-snprintf-posix.h (strmatch): New function.
65520         (test_function): Test the %f directive on numbers of various exponents.
65521         * tests/test-sprintf-posix.h (strmatch): New function.
65522         (test_function): Test the %f directive on numbers of various exponents.
65523         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65524         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65525         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65526         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65527
65528 2007-05-18  Bruno Haible  <bruno@clisp.org>
65529
65530         Add support for 'long double' number output.
65531         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65532         * lib/vasnprintf.c: Include math.h and float+.h.
65533         (mp_limb_t): New type.
65534         (GMP_LIMB_BITS): New macro.
65535         (mp_twolimb_t): New type.
65536         (GMP_TWOLIMB_BITS): New macro.
65537         (mpn_t): New type.
65538         (multiply, divide, convert_to_decimal, decode_long_double,
65539         scale10_round_long_double, scale10_round_decimal_long_double,
65540         floorlog10l): New functions.
65541         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65542         for the %f, %F, %e, %E, %g, %G directives.
65543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65545         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65546         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65554         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65555         * modules/snprintf-posix (Depends-on): Likewise.
65556         * modules/sprintf-posix (Depends-on): Likewise.
65557         * modules/vasnprintf-posix (Depends-on): Likewise.
65558         * modules/vasprintf-posix (Depends-on): Likewise.
65559         * modules/vfprintf-posix (Depends-on): Likewise.
65560         * modules/vsnprintf-posix (Depends-on): Likewise.
65561         * modules/vsprintf-posix (Depends-on): Likewise.
65562         * modules/vasnprintf (Files): Add lib/float+.h.
65563         * doc/functions/fprintf.texi: Update.
65564         * doc/functions/printf.texi: Update.
65565         * doc/functions/snprintf.texi: Update.
65566         * doc/functions/sprintf.texi: Update.
65567         * doc/functions/vfprintf.texi: Update.
65568         * doc/functions/vprintf.texi: Update.
65569         * doc/functions/vsnprintf.texi: Update.
65570         * doc/functions/vsprintf.texi: Update.
65571
65572 2007-05-18  Bruno Haible  <bruno@clisp.org>
65573
65574         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65575
65576 2007-05-18  Bruno Haible  <bruno@clisp.org>
65577
65578         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65579         for printing 64-bit integers. Needed for mingw.
65580
65581 2007-05-18  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65584         gl_FUNC_FREXPL_WORKS.
65585         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65586
65587 2007-05-18  Bruno Haible  <bruno@clisp.org>
65588
65589         * modules/frexpl-nolibm-tests: New file.
65590
65591         * modules/frexpl-nolibm: New file.
65592         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65593
65594 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65597         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65598         GCC 4.2, which otherwise issues a lot of warnings.
65599         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65600         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65601         Likewise.
65602         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65603         * modules/iconv_open (iconv.h): Likewise.
65604         * modules/locale (locale.h): Likewise.
65605         * modules/netinet_in (netinet/in.h): Likewise.
65606         * modules/sys_select (sys_select.h): Likewise.
65607         * modules/sys_socket (sys/socket.h): Likewise.
65608         * modules/sys_stat (sys/stat.h): Likewise.
65609         * modules/sysexits (sysexits.h): Likewise.
65610         * modules/unistd (unistd.h): Likewise.
65611
65612 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65613
65614         * modules/closein-tests (Makefile.am): Distribute
65615         `test-closein.sh'.
65616
65617 2007-05-17  Bruno Haible  <bruno@clisp.org>
65618
65619         * tests/test-printf-posix.output: Renamed from
65620         tests/test-fprintf-posix.out.
65621         * modules/fprintf-posix-tests: Update.
65622         * modules/printf-posix-tests: Update.
65623         * modules/vfprintf-posix-tests: Update.
65624         * modules/vprintf-posix-tests: Update.
65625         * tests/test-fprintf-posix.sh: Update.
65626         * tests/test-printf-posix.sh: Update.
65627         * tests/test-vfprintf-posix.sh: Update.
65628         * tests/test-vprintf-posix.sh: Update.
65629         Reported by Ralf Wildenhues.
65630
65631 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65634         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65635         GCC 4.2, which otherwise issues a lot of warnings.
65636         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65637         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65638         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65639         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65640         it should no longer be needed.
65641         * lib/string_.h: Likewise.
65642         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65643         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65644         * modules/inttypes (inttypes.h): Likewise.
65645         * modules/math (math.h): Likewise.
65646         * modules/search (search.h): Likewise.
65647         * modules/signal (signal.h): Likewise.
65648         * modules/stdint (stdint.h): Likewise.
65649         * modules/stdio (stdio.h): Likewise.
65650         * modules/stdlib (stdlib.h): Likewise.
65651         * modules/string (string.h): Likewise.
65652         * modules/sys_time (sys/time.h): Likewise.
65653         * modules/time (time.h): Likewise.
65654         * modules/wchar (wchar.h): Likewise.
65655         * modules/wctype (wtype.h): Likewise.
65656
65657 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65658
65659         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65660
65661 2007-05-13  Bruno Haible  <bruno@clisp.org>
65662
65663         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65664         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65665         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65666         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65667         (gl_PREREQ_STRTOK_R): Don't require it here.
65668
65669 2007-05-13  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65672         when used in C++ mode.
65673
65674 2007-05-12  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/linebuffer.h: Tweak doc.
65677         * lib/linebuffer.c: Likewise.
65678
65679 2007-05-12  James Youngman  <jay@gnu.org>
65680
65681         * lib/linebuffer.c (readlinebuffer_delim): New function,
65682         like readlinebuffer, but use a caller-specified delimiter.
65683         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65684         as the delimiter.
65685         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65686
65687 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65688
65689         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65690         * modules/openat (Files): Remove openat-die.c.
65691         (Depends-on): Add openat-die.
65692         * modules/openat-die: New module.
65693
65694 2007-05-06  Bruno Haible  <bruno@clisp.org>
65695
65696         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65697         Update with info about Cygwin.
65698         * doc/functions/fprintf.texi: Update.
65699         * doc/functions/printf.texi: Update.
65700         * doc/functions/snprintf.texi: Update.
65701         * doc/functions/sprintf.texi: Update.
65702         * doc/functions/vfprintf.texi: Update.
65703         * doc/functions/vprintf.texi: Update.
65704         * doc/functions/vsnprintf.texi: Update.
65705         * doc/functions/vsprintf.texi: Update.
65706         Reported by Eric Blake.
65707
65708 2007-05-06  Bruno Haible  <bruno@clisp.org>
65709
65710         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65711         padding ourselves for the floating-point directives.
65712         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65715         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65716         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65724         * tests/test-snprintf-posix.h (test_function): Also check the width
65725         and some flags in the %f directive.
65726         * tests/test-sprintf-posix.h (test_function): Likewise.
65727         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65728         * tests/test-vasprintf-posix.c (test_function): Likewise.
65729         * doc/functions/fprintf.texi: Update.
65730         * doc/functions/printf.texi: Update.
65731         * doc/functions/snprintf.texi: Update.
65732         * doc/functions/sprintf.texi: Update.
65733         * doc/functions/vfprintf.texi: Update.
65734         * doc/functions/vprintf.texi: Update.
65735         * doc/functions/vsnprintf.texi: Update.
65736         * doc/functions/vsprintf.texi: Update.
65737
65738 2007-05-06  Bruno Haible  <bruno@clisp.org>
65739
65740         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65741         pass the ' flag character to sprintf or snprintf.
65742         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65745         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65746         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65754         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65755         flag.
65756         * tests/test-sprintf-posix.h (test_function): Likewise.
65757         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65758         * tests/test-vasprintf-posix.c (test_function): Likewise.
65759         * doc/functions/fprintf.texi: Update.
65760         * doc/functions/printf.texi: Update.
65761         * doc/functions/snprintf.texi: Update.
65762         * doc/functions/sprintf.texi: Update.
65763         * doc/functions/vfprintf.texi: Update.
65764         * doc/functions/vprintf.texi: Update.
65765         * doc/functions/vsnprintf.texi: Update.
65766         * doc/functions/vsprintf.texi: Update.
65767
65768 2007-05-01  Bruno Haible  <bruno@clisp.org>
65769
65770         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65771
65772 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65775         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65776
65777 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65780         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65782
65783 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65784
65785         * lib/argp-help.c (struct hol_entry): New member `ord'.
65786         (HOL_ENTRY_PTRCMP): Use ord for comparison
65787         (hol_sort): Initialize ord.
65788
65789 2007-05-01  Bruno Haible  <bruno@clisp.org>
65790
65791         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65792         Reported by Eric Blake.
65793         * doc/gnulib.texi (Function Substitutes): Update.
65794
65795 2007-05-01  Bruno Haible  <bruno@clisp.org>
65796
65797         * doc/functions.texi: Remove file, now redundant through
65798         doc/functions/*.texi.
65799
65800 2007-05-01  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/argp (Depends-on): Add sleep.
65803
65804 2007-05-01  Bruno Haible  <bruno@clisp.org>
65805
65806         * modules/sleep-tests: New file.
65807         * tests/test-sleep.c: New file.
65808
65809         * modules/sleep: New file.
65810         * lib/sleep.c: New file.
65811         * m4/sleep.m4: New file.
65812         * lib/unistd_.h (sleep): New declaration.
65813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65814         HAVE_SLEEP.
65815         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65816         * doc/functions/sleep.texi: Document the sleep module.
65817
65818 2007-05-01  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/sigprocmask.h: Remove file.
65821         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65822         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65824         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65825         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65826         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65827         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65828         HAVE_SIGSET_T as a shell variable.
65829         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65830         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65831         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65832         (Depends-on): Add signal. Remove verify.
65833         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65834         (Include): Mention <signal.h> instead of sigprocmask.h.
65835         * NEWS: Mention the change.
65836         * lib/fatal-signal.c: Don't include sigprocmask.h.
65837
65838 2007-05-01  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/signal: New file.
65841         * lib/signal_.h: New file.
65842         * m4/signal_h.m4: New file.
65843
65844 2007-05-01  Bruno Haible  <bruno@clisp.org>
65845
65846         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65847         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65848         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65849         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65850
65851 2007-05-01  Bruno Haible  <bruno@clisp.org>
65852
65853         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65854         configure time.
65855         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65856         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65857         * modules/sys_stat (Makefile.am): Substitute their values into
65858         sys/stat.h.
65859
65860 2007-05-01  Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65863         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65864         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65865
65866 2007-05-01  Bruno Haible  <bruno@clisp.org>
65867
65868         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65869         'assert' module here.
65870
65871 2007-05-01  Bruno Haible  <bruno@clisp.org>
65872
65873         * doc/functions/*.texi: New files.
65874         * doc/functions/google-ranking.txt: New file.
65875         * doc/gnulib.texi (Function Substitutes): New chapter.
65876         (ctime, inet_ntoa): Remove sections.
65877         * doc/ctime.texi: Remove file.
65878         * doc/inet_ntoa.texi: Remove file.
65879         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65880         dependencies.
65881         (%.info): New rule, specifying a --reference-limit.
65882
65883 2007-05-01  Bruno Haible  <bruno@clisp.org>
65884
65885         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65886
65887 2007-05-01  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65890         the portability of 'mkdir' to mingw systems.
65891
65892 2007-05-01  Bruno Haible  <bruno@clisp.org>
65893
65894         * doc/headers/google-ranking.txt: New file.
65895
65896 2007-04-30  Eric Blake  <ebb9@byu.net>
65897
65898         Prefer fseeko to fseek.
65899         * modules/getpass (Depends-on): Add fseeko.
65900         * lib/getpass.c (getpass): Use fseeko, not fseek.
65901
65902 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65903
65904         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65905         assumes the sorting is stable, while most qsort implementations
65906         are not.  Use argument addresses to ensure they never compare as
65907         equal.
65908
65909         * tests/test-argp-2.sh (usage-indent test): Fix output
65910         (func_compare): Restore diff options
65911         * tests/test-argp.c: Restore #include "progname.h"
65912
65913 2007-04-29  Bruno Haible  <bruno@clisp.org>
65914
65915         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65917         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65919         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65920         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65921         (TESTS, check_PROGRAMS): Add test-snprintf.
65922         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65923         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65924         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65925         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65926         assertions that fail on HP-UX, OSF/1, or IRIX.
65927         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65928
65929 2007-04-29  Bruno Haible  <bruno@clisp.org>
65930
65931         * MODULES.html.sh (posix_functions): Remove 'contents'.
65932
65933 2007-04-29  Karl Berry  <karl@gnu.org>
65934
65935         * config/srclist.txt (gendocs_template_min): new entry.
65936
65937 2007-04-29  Bruno Haible  <bruno@clisp.org>
65938
65939         Work around fpurge bug on BSD systems.
65940         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65941         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65942         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65943         fpurge to rpl_fpurge if the system already has this function.
65944         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65945         the case where the system already has this function. Correct invariants
65946         on BSD systems.
65947         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65948         BSD systems.
65949
65950 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65951
65952         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65953         proposed by Sven Verdoolaege.
65954
65955         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65956         options.
65957         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65958         (usage and help tests): Update
65959
65960 2007-04-29  Bruno Haible  <bruno@clisp.org>
65961
65962         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65963         Print more information in case of failure. Disable a test on BeOS.
65964
65965 2007-04-29  Bruno Haible  <bruno@clisp.org>
65966
65967         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65968         This helps debugging on systems on which no gdb is available.
65969
65970 2007-04-29  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/freading.h: Improve comments.
65973         * lib/fwriting.h: Likewise.
65974         * tests/test-freading.c (main): Don't check freading immediately after
65975         repositioning. Needed for glibc.
65976
65977 2007-04-29  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/freading.c (freading): Trivial simplification.
65980
65981 2007-04-28  Bruno Haible  <bruno@clisp.org>
65982
65983         * tests/test-fwriting.c (main): Also test the interaction between
65984         fflush and fwriting.
65985         * modules/fwriting-tests (Depends-on): Add fflush.
65986
65987         * tests/test-freading.c (main): Also test the interaction between
65988         fflush and freading.
65989         * modules/freading-tests (Depends-on): Add fflush.
65990
65991 2007-04-28  Bruno Haible  <bruno@clisp.org>
65992
65993         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65994         fseeko and ftello.
65995         Suggested by Eric Blake.
65996
65997 2007-04-28  Jim Meyering  <jim@meyering.net>
65998
65999         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66000         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66001         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66002
66003 2007-04-27  Eric Blake  <ebb9@byu.net>
66004
66005         * doc/headers/assert.texi (assert.h): Document assert module use.
66006
66007 2007-04-27  Bruno Haible  <bruno@clisp.org>
66008
66009         * doc/headers/*.texi: New files.
66010         * doc/gnulib.texi (Header File Substitutes): New chapter.
66011         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66012         dependencies.
66013         (standards.info ,standards.html, standards.dvi): Update dependencies.
66014         (mostlyclean, clean): New targets.
66015
66016 2007-04-27  Bruno Haible  <bruno@clisp.org>
66017
66018         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66019         * modules/sysexits (Files, Makefile.am): Update.
66020
66021         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66022         * modules/sys_socket (Files, Makefile.am): Update.
66023
66024         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66025         * modules/sys_stat (Files, Makefile.am): Update.
66026
66027 2007-04-27  Eric Blake  <ebb9@byu.net>
66028
66029         * lib/freading.h: Improve comments.
66030         * lib/fwriting.h: Likewise.
66031         * lib/fflush.c: Likewise.
66032
66033         Fix closein for mingw.
66034         * modules/closein-tests: Add tests for closein.
66035         * tests/test-closein.c: New file.
66036         * tests/test-closein.sh: Likewise.
66037         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66038         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66039
66040 2007-04-27  Bruno Haible  <bruno@clisp.org>
66041
66042         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66043         version is < 6.
66044         * lib/math_.h [__DECC]: Likewise.
66045         * lib/stdio_.h [__DECC]: Likewise.
66046         * lib/stdlib_.h [__DECC]: Likewise.
66047         * lib/string_.h [__DECC]: Likewise.
66048         * lib/time_.h [__DECC]: Likewise.
66049         * lib/wchar_.h [__DECC]: Likewise.
66050         * lib/wctype_.h [__DECC]: Likewise.
66051
66052 2007-04-27  Bruno Haible  <bruno@clisp.org>
66053
66054         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66055
66056 2007-04-27  Bruno Haible  <bruno@clisp.org>
66057
66058         * lib/fflush.c: Add comments.
66059         * modules/fpurge-tests (Depends-on): Add fflush.
66060         * modules/freadable-tests (Depends-on): Likewise.
66061         * modules/fwritable-tests (Depends-on): Likewise.
66062
66063 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66064
66065         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66066         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66067         Report by Bruno Haible <bruno@clisp.org>.
66068
66069 2007-04-26  Eric Blake  <ebb9@byu.net>
66070
66071         Fix fflush on mingw.
66072         * modules/fflush (Depends-on): Add freading.
66073         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66074         but unread data.
66075
66076 2007-04-26  Eric Blake  <ebb9@byu.net>
66077         and Bruno Haible  <bruno@clisp.org>
66078
66079         Implement freading and fwriting.
66080         * lib/freading.c: New file.
66081         * lib/freading.h: Likewise.
66082         * m4/freading.m4: Likewise.
66083         * modules/freading: Likewise.
66084         * modules/freading-tests: Likewise.
66085         * tests/test-freading.c: Likewise.
66086         * lib/fwriting.c: New file.
66087         * lib/fwriting.h: Likewise.
66088         * m4/fwriting.m4: Likewise.
66089         * modules/fwriting: Likewise.
66090         * modules/fwriting-tests: Likewise.
66091         * tests/test-fwriting.c: Likewise.
66092         * MODULES.html.sh (File stream based Input/Output): Mention them.
66093
66094 2007-04-26  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66097         'long' when we assume it.
66098         Suggested by Eric Blake.
66099
66100 2007-04-26  Bruno Haible  <bruno@clisp.org>
66101
66102         Ensure fseeko, ftello are declared on glibc systems.
66103         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66104         * modules/fseeko (configure.ac-early): Likewise.
66105         * modules/ftello (configure.ac-early): Likewise.
66106         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66107         AC_FUNC_FSEEKO for this.
66108         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66109         (gl_CHECK_FSEEKO): Remove macro.
66110
66111 2007-04-26  Bruno Haible  <bruno@clisp.org>
66112
66113         * tests/test-fflush.c (main): Also check the ftell result after
66114         fflush and fseek/fseeko.
66115         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66116         file descriptor position cache in the stream.
66117         * lib/fseeko.c (rpl_fseeko): Likewise.
66118
66119 2007-04-26  Bruno Haible  <bruno@clisp.org>
66120
66121         * modules/fflush-tests (Depends-on): Add fseeko.
66122
66123 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66125
66126         * lib/argz_.h: ensure error_t definition is obtained in same
66127         mechanism system argz.h would have.
66128         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66129         argz facilities are known bad.  Err on the side of caution if
66130         cross-compiling.
66131
66132 2007-04-25  Eric Blake  <ebb9@byu.net>
66133
66134         * lib/fpurge.c (includes): Use stdlib.h for free.
66135         * tests/test-fflush.c (main): Also test fflush-fseeko.
66136
66137 2007-04-25  Bruno Haible  <bruno@clisp.org>
66138
66139         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66140         * lib/fseeko.c: New file.
66141         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66142         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66143         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66144         gl_FUNC_FSEEKO.
66145         (gl_FUNC_FSEEKO): Invoke it.
66146         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66147         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66148         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66149
66150 2007-04-25  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/fflush (Depends-on): Add ftello.
66153
66154 2007-04-25  Bruno Haible  <bruno@clisp.org>
66155
66156         * modules/ftello-tests: New file.
66157         * tests/test-ftello.c: New file.
66158
66159         * modules/ftello: New file.
66160         * m4/ftello.m4: New file.
66161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66162         HAVE_FTELLO.
66163         * lib/stdio_.h (ftello): New declaration.
66164         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66165         HAVE_FTELLO.
66166
66167 2007-04-25  Bruno Haible  <bruno@clisp.org>
66168
66169         * modules/fseeko-tests: New file.
66170         * tests/test-fseeko.c: New file.
66171
66172         * modules/fseeko: New file.
66173         * m4/fseeko.m4: New file.
66174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66175         HAVE_FSEEKO.
66176         * lib/stdio_.h (fseeko): New declaration.
66177         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66178         HAVE_FSEEKO.
66179
66180 2007-04-25  Bruno Haible  <bruno@clisp.org>
66181
66182         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66183
66184 2007-04-25  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66187         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66188         * tests/test-unistd.c: Likewise.
66189         * tests/test-fcntl.c: Likewise.
66190
66191 2007-04-23  Eric Blake  <ebb9@byu.net>
66192
66193         * lib/fflush.c: Fix missing include.
66194         Reported by Bruno Haible.
66195
66196 2007-04-23  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66199         Reported by Eric Blake.
66200
66201 2007-04-23  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66204
66205 2007-04-23  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66208
66209 2007-04-23  Bruno Haible  <bruno@clisp.org>
66210
66211         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66212         Needed on HP-UX 11.
66213
66214 2007-04-16  Eric Blake  <ebb9@byu.net>
66215
66216         Make fflush rely on fpurge.
66217         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66218         open coding all variants.
66219         * modules/fflush (Depends-on): Add fpurge and unistd.
66220         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66221         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66222
66223         Fix --with-tests compilation on cygwin.
66224         * modules/argmatch-tests (Makefile.am): List gnulib library first
66225         in LDADD.
66226         * modules/argp-tests (Makefile.am): Likewise.
66227         * modules/array-list-tests (Makefile.am): Likewise.
66228         * modules/array-oset-tests (Makefile.am): Likewise.
66229         * modules/avltree-list-tests (Makefile.am): Likewise.
66230         * modules/avltree-oset-tests (Makefile.am): Likewise.
66231         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66232         * modules/carray-list-tests (Makefile.am): Likewise.
66233         * modules/dirname-tests (Makefile.am): Likewise.
66234         * modules/frexp-tests (Makefile.am): Likewise.
66235         * modules/isnanl-tests (Makefile.am): Likewise.
66236         * modules/linked-list-tests (Makefile.am): Likewise.
66237         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66238         * modules/lock-tests (Makefile.am): Likewise.
66239         * modules/rbtree-list-tests (Makefile.am): Likewise.
66240         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66241         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66242         * modules/tls-tests (Makefile.am): Likewise.
66243         * modules/tsearch-tests (Makefile.am): Likewise.
66244         * modules/xvasprintf-tests (Makefile.am): Likewise.
66245
66246         Fix fpurge for cygwin.
66247         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66248         value.
66249         * modules/fpurge-tests (Depends-on): Clean up trash.
66250
66251 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66252
66253         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66254
66255         * m4/autobuild.m4: Re-indent.
66256
66257 2007-04-13  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/fpurge-tests: New file.
66260         * tests/test-fpurge.c: New file.
66261
66262         * modules/fpurge: New file.
66263         * lib/fpurge.h: New file.
66264         * lib/fpurge.c: New file.
66265         * m4/fpurge.m4: New file.
66266
66267 2007-04-13  Bruno Haible  <bruno@clisp.org>
66268
66269         * modules/fbufmode-tests: New file.
66270         * tests/test-fbufmode.c: New file.
66271
66272         * modules/fbufmode: New file.
66273         * lib/fbufmode.h: New file.
66274         * lib/fbufmode.c: New file.
66275         * m4/fbufmode.m4: New file.
66276
66277 2007-04-13  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/fwritable-tests: New file.
66280         * tests/test-fwritable.c: New file.
66281
66282         * modules/fwritable: New file.
66283         * lib/fwritable.h: New file.
66284         * lib/fwritable.c: New file.
66285         * m4/fwritable.m4: New file.
66286
66287 2007-04-13  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/freadable-tests: New file.
66290         * tests/test-freadable.c: New file.
66291
66292         * modules/freadable: New file.
66293         * lib/freadable.h: New file.
66294         * lib/freadable.c: New file.
66295         * m4/freadable.m4: New file.
66296
66297 2007-04-13  Bruno Haible  <bruno@clisp.org>
66298
66299         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66300         MOSTLYCLEANFILES.
66301
66302 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66305         gzip bootstrap.conf to avoid dragging in i18n machinery.
66306         (gnulib_tool_option): Use it.
66307
66308 2007-04-13  Bruno Haible  <bruno@clisp.org>
66309
66310         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66311         %F directives.
66312         * tests/test-vasprintf-posix.c (test_function): Likewise.
66313         * tests/test-snprintf-posix.h (test_function): Likewise.
66314         * tests/test-sprintf-posix.h (test_function): Likewise.
66315         * tests/test-fprintf-posix.h (test_function): Likewise.
66316         * tests/test-printf-posix.h (test_function): Likewise.
66317         * tests/test-fprintf-posix.out: Likewise.
66318
66319 2007-04-13  Bruno Haible  <bruno@clisp.org>
66320
66321         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66322         * modules/tls-tests (configure.ac): Likewise.
66323         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66324
66325 2007-04-13  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/tls.c (glthread_tls_get): Fix return type.
66328         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66329
66330 2007-04-12  Eric Blake  <ebb9@byu.net>
66331
66332         * modules/gettime (Depends-on): Remove gettime.
66333         Reported by Dmitry V. Levin.
66334
66335 2007-04-12  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/fflush (Include): Mention <stdio.h>.
66338         * modules/strtoimax (Include): Mention <inttypes.h>.
66339         * modules/strtoumax (Include): Likewise.
66340
66341 2007-04-12  Eric Blake  <ebb9@byu.net>
66342
66343         * .cvsignore: New file.
66344         * .gitignore: Likewise.
66345
66346 2007-04-12  Bruno Haible  <bruno@clisp.org>
66347
66348         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66349         not before, since $(LDADD) often contains libgnu.a.
66350         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66351         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66352         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66353         Needed on Cygwin.
66354
66355 2007-04-12  Eric Blake  <ebb9@byu.net>
66356
66357         Work around glibc's failure to flush stdin on fclose.
66358         * lib/closein.c (close_stdin): Flush stdin before closing.
66359
66360         Work around glibc's failure to reset seekable stdin on exit.
66361         * modules/closein: New module.
66362         * lib/closein.c: New file.
66363         * lib/closein.h: Likewise.
66364         * m4/closein.m4: Likewise.
66365         * MODULES.html.sh (File stream based Input/Output): Document it.
66366
66367 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66368
66369         * gnulib-tool: Rename generated 'autobuild' script to
66370         'do-autobuild' in --create-megatestdir output.
66371
66372         * doc/gnulib.texi (Build robot for gnulib): Fix.
66373
66374 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66375
66376         * modules/sysexits (Depends-on): Add absolute-header.
66377
66378 2007-04-12  Eric Blake  <ebb9@byu.net>
66379
66380         No need to preserve errno on success.
66381         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66382         Reported by Bruno Haible.
66383
66384 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66385
66386         * MODULES.html.sh (Support for maintaining and releasing
66387         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66388
66389 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66390
66391         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66392
66393 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66394
66395         * modules/autobuild: New module.
66396
66397         * m4/autobuild.m4: New file.
66398
66399 2007-04-11  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66402         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66405         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66406         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66407         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66409         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66410         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66411         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66412         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66413         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66415         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66416         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66418         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66419         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66429         Reported by Eric Blake.
66430
66431 2007-04-11  Bruno Haible  <bruno@clisp.org>
66432
66433         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66434
66435 2007-04-10  Bruno Haible  <bruno@clisp.org>
66436
66437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66438         for NaN and Infinity. Needed on FreeBSD 6.1.
66439         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66440         regarding results for "%010a" of Infinity and NaN.
66441         * tests/test-vasprintf-posix.c (test_function): Likewise.
66442         * tests/test-snprintf-posix.h (test_function): Likewise.
66443         * tests/test-sprintf-posix.h (test_function): Likewise.
66444         * tests/test-fprintf-posix.h (test_function): Likewise.
66445         * tests/test-printf-posix.h (test_function): Likewise.
66446         * tests/test-fprintf-posix.out: Likewise.
66447
66448 2007-04-10  Bruno Haible  <bruno@clisp.org>
66449
66450         * modules/locale-tests: New file.
66451         * tests/test-locale.c: New file.
66452
66453         * modules/locale: New file.
66454         * lib/locale_.h: New file.
66455         * m4/locale_h.m4: New file.
66456
66457 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66458             Bruno Haible  <bruno@clisp.org>
66459
66460         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66461         be determined, test for availability of the copysignf, copysign,
66462         copysignl functions.
66463         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66464         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66465         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66466
66467 2007-04-09  Eric Blake  <ebb9@byu.net>
66468
66469         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66470         * modules/stdio (Makefile.am): Support fflush.
66471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66472         * modules/fflush: New file.
66473         * lib/fflush.c: Likewise.
66474         * m4/fflush.m4: Likewise.
66475         * modules/fflush-tests: New test.
66476         * tests/test-fflush.c: Likewise.
66477         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66478
66479 2007-04-06  Bruno Haible  <bruno@clisp.org>
66480
66481         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66482         (VASNPRINTF): Use signbit for faster determination whether to print a
66483         minus sign.
66484         * modules/vasnprintf (Files): Remove lib/float+.h.
66485         * modules/fprintf-posix (Depends-on): Add signbit.
66486         * modules/snprintf-posix (Depends-on): Likewise.
66487         * modules/sprintf-posix (Depends-on): Likewise.
66488         * modules/vasnprintf-posix (Depends-on): Likewise.
66489         * modules/vasprintf-posix (Depends-on): Likewise.
66490         * modules/vfprintf-posix (Depends-on): Likewise.
66491         * modules/vsnprintf-posix (Depends-on): Likewise.
66492         * modules/vsprintf-posix (Depends-on): Likewise.
66493
66494 2007-04-06  Bruno Haible  <bruno@clisp.org>
66495
66496         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66497         * tests/test-frexpl.c (main): Likewise.
66498         * tests/test-ldexpl.c (main): Likewise.
66499         * modules/frexp-tests (Depends-on): Add signbit.
66500         * modules/frexpl-tests (Depdends-on): Likewise.
66501         * modules/ldexpl-tests (Depdends-on): Likewise.
66502
66503 2007-04-06  Bruno Haible  <bruno@clisp.org>
66504
66505         * modules/signbit-tests: New file.
66506         * tests/test-signbit.c: New file.
66507
66508         * modules/signbit: New file.
66509         * lib/signbitf.c: New file.
66510         * lib/signbitd.c: New file.
66511         * lib/signbitl.c: New file.
66512         * m4/signbit.m4: New file.
66513         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66514         (signbit): New macro.
66515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66516         REPLACE_SIGNBIT.
66517         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66518         REPLACE_FREXPL into math.h.
66519
66520 2007-04-06  Bruno Haible  <bruno@clisp.org>
66521
66522         * modules/isnanf-nolibm-tests: New file.
66523         * tests/test-isnanf.c: New file.
66524
66525         * modules/isnanf-nolibm: New file.
66526         * lib/isnanf.h: New file.
66527         * lib/isnanf.c: New file.
66528         * lib/isnan.c: Consider the USE_FLOAT macro.
66529         * m4/isnanf.m4: New file.
66530
66531 2007-04-06  Bruno Haible  <bruno@clisp.org>
66532
66533         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66534         (Link): New section.
66535
66536         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66537
66538 2007-04-06  Bruno Haible  <bruno@clisp.org>
66539
66540         Assume the 'long double' type.
66541         * m4/longdouble.m4: Remove file.
66542         * config/srclist.txt: Don't mention longdouble.m4.
66543         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66544         * lib/float+.h: Likewise.
66545         * lib/frexp.c: Likewise.
66546         * lib/printf-args.h: Likewise.
66547         * lib/printf-args.c: Likewise.
66548         * lib/printf-frexp.c: Likewise.
66549         * lib/printf-parse.c: Likewise.
66550         * lib/vasnprintf.c: Likewise.
66551         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66552         * m4/intl.m4: Likewise.
66553         * m4/isnanl.m4: Likewise.
66554         * m4/printf.m4: Likewise.
66555         * m4/printf-frexpl.m4: Likewise.
66556         * m4/vasnprintf.m4: Likewise.
66557         * modules/allocsa (Files): Remove m4/longdouble.m4.
66558         * modules/gettext (Files): Likewise.
66559         * modules/relocatable-prog-wrapper (Files): Likewise.
66560         * modules/vasnprintf (Files): Likewise.
66561         * modules/isnanl (Files): Likewise.
66562         (Include): Simplify.
66563         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66564         (Include): Simplify.
66565         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66566         (Include): Simplify.
66567         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66568         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66569         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66570         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66571         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66572         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66573         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66574         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66575         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66576         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66577         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66578         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66579         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66580         * tests/test-isnanl.c: Likewise.
66581         * tests/test-snprintf-posix.h: Likewise.
66582         * tests/test-sprintf-posix.h: Likewise.
66583         * tests/test-vasnprintf-posix.c: Likewise.
66584         * tests/test-vasnprintf-posix2.c: Likewise.
66585         * tests/test-vasprintf-posix.c: Likewise.
66586
66587 2007-04-06  Bruno Haible  <bruno@clisp.org>
66588
66589         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66590         * lib/math_.h [__DECC]: Include the overridden include file through
66591         #include_next, outside the double-inclusion guard.
66592         * lib/stdio_.h [__DECC]: Likewise.
66593         * lib/stdlib_.h [__DECC]: Likewise.
66594         * lib/string_.h [__DECC]: Likewise.
66595         * lib/time_.h [__DECC]: Likewise.
66596         * lib/wchar_.h [__DECC]: Likewise.
66597         * lib/wctype_.h [__DECC]: Likewise.
66598         * lib/inttypes_.h [__DECC]: Likewise.
66599         Reported by Albert Chin <china@thewrittenword.com> in
66600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66601
66602 2007-04-04  Eric Blake  <ebb9@byu.net>
66603
66604         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66605         1.5.x.
66606
66607 2007-04-04  Bruno Haible  <bruno@clisp.org>
66608
66609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66610         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66611
66612 2007-04-04  Bruno Haible  <bruno@clisp.org>
66613
66614         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66615         results for "%010a" of Infinity and NaN.
66616         * tests/test-vasprintf-posix.c (test_function): Likewise.
66617         * tests/test-snprintf-posix.h (test_function): Likewise.
66618         * tests/test-sprintf-posix.h (test_function): Likewise.
66619         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66620         * tests/test-printf-posix.h (test_function): Likewise.
66621         * tests/test-fprintf-posix.out: Update.
66622         Needed for FreeBSD 6.1.
66623
66624 2007-04-04  Bruno Haible  <bruno@clisp.org>
66625
66626         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66627         directly used by the gnulib modules nor by gnulib-tool.
66628
66629 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * DEPENDENCIES: Give overall description of version dependency
66632         desirability.  Use more-typical names for apps.
66633         Add shell, coreutils, diffutils, grep, tar, gzip.
66634
66635 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66636
66637         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66638
66639 2007-04-04  Karl Berry  <karl@gnu.org>
66640
66641         * MODULES.html.sh (func_module): missing '.
66642
66643 2007-04-03  Bruno Haible  <bruno@clisp.org>
66644
66645         * modules/argmatch-tests (Makefile.am): New variable
66646         test_argmatch_LDADD.
66647         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66648         * modules/array-list-tests (Makefile.am): New variable
66649         test_array_list_LDADD.
66650         * modules/array-oset-tests (Makefile.am): New variable
66651         test_array_oset_LDADD.
66652         * modules/avltree-list-tests (Makefile.am): New variable
66653         test_avltree_list_LDADD.
66654         * modules/avltree-oset-tests (Makefile.am): New variable
66655         test_avltree_oset_LDADD.
66656         * modules/avltreehash-list-tests (Makefile.am): New variable
66657         test_avltreehash_list_LDADD.
66658         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66659         test_canonicalize_lgpl_LDADD.
66660         * modules/carray-list-tests (Makefile.am): New variable
66661         test_carray_list_LDADD.
66662         * modules/dirname-tests (Makefile.am): New variable
66663         test_dirname_LDADD.
66664         * modules/linked-list-tests (Makefile.am): New variable
66665         test_linked_list_LDADD.
66666         * modules/linkedhash-list-tests (Makefile.am): New variable
66667         test_linkedhash_list_LDADD.
66668         * modules/rbtree-list-tests (Makefile.am): New variable
66669         test_rbtree_list_LDADD.
66670         * modules/rbtree-oset-tests (Makefile.am): New variable
66671         test_rbtree_oset_LDADD.
66672         * modules/rbtreehash-list-tests (Makefile.am): New variable
66673         test_rbtreehash_list_LDADD.
66674         * modules/xvasprintf-tests (Makefile.am): New variable
66675         test_xvasprintf_LDADD.
66676         Reported by Eric Blake.
66677
66678 2007-04-03  Eric Blake  <ebb9@byu.net>
66679
66680         * DEPENDENCIES: Weaken m4 requirements.
66681
66682 2007-04-03  Bruno Haible  <bruno@clisp.org>
66683
66684         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66685         * modules/isnanl-tests (configure.ac): Likewise.
66686
66687 2007-04-03  Ben Pfaff  <blp@gnu.org>
66688
66689         * modules/iconv_open: Add $(srcdir)/ to source directory
66690         references in Makefile fragments that call gperf, to fix VPATH
66691         builds.
66692
66693 2007-04-03  Bruno Haible  <bruno@clisp.org>
66694
66695         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66696         * lib/ldexpl.c: Undo last change.
66697
66698 2007-04-03  Bruno Haible  <bruno@clisp.org>
66699
66700         * modules/printf-frexpl (Depends-on): Undo last change.
66701         (Files): Add m4/ldexpl.m4.
66702
66703 2007-04-03  Bruno Haible  <bruno@clisp.org>
66704
66705         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66706         * modules/isnanl (Link): New section.
66707
66708         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66709         * modules/frexp (Link): New section.
66710
66711         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66712         * modules/frexpl (Link): New section.
66713
66714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66715         * modules/ldexpl (Link): New section.
66716
66717 2007-04-03  Bruno Haible  <bruno@clisp.org>
66718
66719         * modules/TEMPLATE-EXTENDED: New file.
66720         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66721
66722 2007-04-03  Bruno Haible  <bruno@clisp.org>
66723
66724         * DEPENDENCIES: New file.
66725         Suggested by Simon Josefsson.
66726
66727 2007-04-03  Bruno Haible  <bruno@clisp.org>
66728
66729         * doc/gnulib.texi: Escape @.
66730
66731 2007-04-03  James Youngman  <jay@gnu.org>
66732         and Paul Eggert  <eggert@cs.ucla.edu>
66733
66734         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66735         birthtime on all systems that have birthtime, not just those which
66736         use st_birthtimensec rather than st_birthtim.  Putting zero in
66737         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66738         that the birth time is not available for files on an NFS mount.
66739
66740 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66741
66742         * modules/memxor: Move back from crypto/, suggested by Bruno.
66743         * modules/crypto/hmac-sha1: Fix memxor dependency.
66744
66745         * modules/crypto/gc: Moved from ../.
66746
66747 2007-04-02  Eric Blake  <ebb9@byu.net>
66748
66749         * lib/ldexpl.c (includes): Avoid libm.
66750
66751         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66752
66753 2007-04-02  Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66756         on IRIX.
66757
66758 2007-04-02  Bruno Haible  <bruno@clisp.org>
66759
66760         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66761         x86 or x86_64 platforms running MacOS X.
66762         Reported by Ryan Schmidt <@ryandesign.com>.
66763
66764 2007-04-02  Bruno Haible  <bruno@clisp.org>
66765
66766         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66767         i386.
66768
66769 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66770
66771         * modules/crypto/arcfour: Moved from ../.
66772         * modules/crypto/arcfour-tests: Moved from ../.
66773         * modules/crypto/arctwo: Moved from ../.
66774         * modules/crypto/arctwo-tests: Moved from ../.
66775         * modules/crypto/des: Moved from ../.
66776         * modules/crypto/des-tests: Moved from ../.
66777         * modules/crypto/gc-arcfour: Moved from ../.
66778         * modules/crypto/gc-arcfour-tests: Moved from ../.
66779         * modules/crypto/gc-arctwo: Moved from ../.
66780         * modules/crypto/gc-arctwo-tests: Moved from ../.
66781         * modules/crypto/gc-des: Moved from ../.
66782         * modules/crypto/gc-des-tests: Moved from ../.
66783         * modules/crypto/gc-hmac-md5: Moved from ../.
66784         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66785         * modules/crypto/gc-hmac-sha1: Moved from ../.
66786         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66787         * modules/crypto/gc-md2: Moved from ../.
66788         * modules/crypto/gc-md2-tests: Moved from ../.
66789         * modules/crypto/gc-md4: Moved from ../.
66790         * modules/crypto/gc-md4-tests: Moved from ../.
66791         * modules/crypto/gc-md5: Moved from ../.
66792         * modules/crypto/gc-md5-tests: Moved from ../.
66793         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66794         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66795         * modules/crypto/gc-random: Moved from ../.
66796         * modules/crypto/gc-rijndael: Moved from ../.
66797         * modules/crypto/gc-rijndael-tests: Moved from ../.
66798         * modules/crypto/gc-sha1: Moved from ../.
66799         * modules/crypto/gc-sha1-tests: Moved from ../.
66800         * modules/crypto/gc-tests: Moved from ../.
66801         * modules/crypto/hmac-md5: Moved from ../.
66802         * modules/crypto/hmac-md5-tests: Moved from ../.
66803         * modules/crypto/hmac-sha1: Moved from ../.
66804         * modules/crypto/hmac-sha1-tests: Moved from ../.
66805         * modules/crypto/md2: Moved from ../.
66806         * modules/crypto/md2-tests: Moved from ../.
66807         * modules/crypto/md4: Moved from ../.
66808         * modules/crypto/md4-tests: Moved from ../.
66809         * modules/crypto/md5: Moved from ../.
66810         * modules/crypto/md5-tests: Moved from ../.
66811         * modules/crypto/memxor: Moved from ../.
66812         * modules/crypto/rijndael: Moved from ../.
66813         * modules/crypto/rijndael-tests: Moved from ../.
66814         * modules/crypto/sha1: Moved from ../.
66815
66816 2007-03-30  James Youngman  <jay@gnu.org>
66817
66818         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66819         rename() to change the ctime of a file (because ctime is unaffected
66820         by rename on jfs2 on AIX 5.1).
66821         (main): Start by doing cleanup, in case a previous run failed leaving
66822         test files behind.
66823
66824 2007-03-31  Bruno Haible  <bruno@clisp.org>
66825
66826         Support old proprietary implementations of iconv.
66827         * modules/iconv_open: New file.
66828         * lib/iconv_.h: New file.
66829         * m4/iconv_h.m4: New file.
66830         * lib/iconv_open.c: New file.
66831         * lib/iconv_open-aix.gperf: New file.
66832         * lib/iconv_open-hpux.gperf: New file.
66833         * lib/iconv_open-irix.gperf: New file.
66834         * lib/iconv_open-osf.gperf: New file.
66835         * m4/iconv_open.m4: New file.
66836         * modules/linebreak (Depends-on): Add iconv_open.
66837         * modules/striconv (Depends-on): Likewise.
66838         * modules/striconveh (Depends-on): Likewise.
66839         * modules/unicodeio (Depends-on): Likewise.
66840         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66841         (iconv_t)(-1).
66842         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66843         conversion if cd is (iconv_t)(-1).
66844         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66845         is not possible.
66846
66847 2007-03-31  Bruno Haible  <bruno@clisp.org>
66848
66849         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66850         work on Solaris either. Protect also second use of "autodetect_jp".
66851
66852 2007-03-31  Bruno Haible  <bruno@clisp.org>
66853
66854         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66855         the function is not present.
66856
66857 2007-03-31  Bruno Haible  <bruno@clisp.org>
66858
66859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66860         the function is not present.
66861
66862 2007-03-31  Bruno Haible  <bruno@clisp.org>
66863
66864         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66865         a bug in HP-UX iconv_open().
66866
66867 2007-03-31  Bruno Haible  <bruno@clisp.org>
66868
66869         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66870         (Mathematics <math.h>): New section, add fpieee.
66871         (Input/output <stdio.h>): Add fseterr.
66872         (Mathematics <math.h>): New section, add printf-frexp.
66873         (Container data structures): Add sublist.
66874         (Core language properties): Add fpucw, inline.
66875         (Functions for greatest-width integer types <inttypes.h>): Add
66876         imaxabs, imaxdiv, inttypes.
66877         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66878         isnanl-nolibm, ldexp.
66879         (Mathematics <math.h>): New section, add printf-frexpl.
66880         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66881         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66882         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66883         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66884         (Unicode string functions): Add unistr/u*-mbtoucr.
66885         (Java): Add javacomp-script, javaexec-script.
66886         (C#): Add csharpcomp-script, csharpexec-script.
66887         (Support for building libraries and executables): Add havelib,
66888         relocatable-*.
66889         (Support for maintaining and releasing projects): Renamed from
66890         'Support for maintaining and release projects'. Add announce-gen.
66891
66892 2007-03-31  Bruno Haible  <bruno@clisp.org>
66893
66894         * README: Talk primarily about git.
66895         (git and CVS): Renamed from CVS.
66896         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66897         gnulib is available through git.
66898         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66899
66900 2007-03-30  Bruno Haible  <bruno@clisp.org>
66901
66902         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66903         * lib/poll_.h: Likewise.
66904         * lib/stat_.h: Likewise.
66905         * lib/sys_time_.h: Likewise.
66906         * lib/sysexit_.h: Likewise.
66907         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66908         * lib/stdbool_.h: Likewise.
66909         * lib/byteswap_.h: Add double-inclusion guard.
66910
66911 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66912
66913         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66914
66915 2007-03-30  Karl Berry  <karl@gnu.org>
66916
66917         * config/srclist-update: double space after USA in the license
66918         substitution, since that's how it's usually (?) written.
66919
66920 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66921
66922         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66923         reported by Bruno Haible.
66924
66925 2007-03-29  Bruno Haible  <bruno@clisp.org>
66926
66927         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66928         a bug in AIX iconv().
66929
66930 2007-03-29  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/ldexpl-tests: New file.
66933         * tests/test-ldexpl.c: New file.
66934
66935 2007-03-29  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/ldexpl.c: Include fpucw.h.
66938         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66939         multiplication.
66940         * modules/ldexpl (Depends-on): Add fpucw.
66941
66942 2007-03-29  Bruno Haible  <bruno@clisp.org>
66943
66944         * modules/ldexpl: New file.
66945         * m4/ldexpl.m4: New file.
66946         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66947         set.
66948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66949         REPLACE_LDEXPL.
66950         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66951         REPLACE_LDEXPL.
66952         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66953         gl_FUNC_LDEXPL_WORKS.
66954         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66955         * modules/mathl (Files): Remove lib/ldexpl.c.
66956         (Depends-on): Add ldexpl.
66957
66958 2007-03-29  Bruno Haible  <bruno@clisp.org>
66959
66960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66961
66962 2007-03-29  Bruno Haible  <bruno@clisp.org>
66963
66964         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66965         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66966         and possibly also HP-UX.
66967         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66968         work on AIX, IRIX, HP-UX, OSF/1.
66969         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66970         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66971         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66972         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66973         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66974         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66975
66976 2007-03-29  Bruno Haible  <bruno@clisp.org>
66977
66978         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66979
66980 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66981
66982         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66983         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66984
66985 2007-03-29  Eric Blake  <ebb9@byu.net>
66986
66987         * lib/acl-internal.h: Remove redundant include.
66988         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66989         Cygwin when a file is locked.
66990
66991 2007-03-29  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66994         file.
66995         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66996
66997 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67000         try to remove a parent directory if the child couldn't be removed
67001         (except for the first rmdir, which could fail because the child
67002         doesn't exist).  Problem reported by Jeff Blaine in
67003         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67004
67005 2007-03-28  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/striconveh.c (utf8conv_carefully): New function.
67008         (mem_cd_iconveh_internal): Invoke it.
67009
67010 2007-03-28  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67013         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67014         input.
67015         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67016         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67017         unistr/u8-uctomb.
67018
67019 2007-03-28  Bruno Haible  <bruno@clisp.org>
67020
67021         * modules/unistr/u8-mbtoucr: New file.
67022         * lib/unistr/u8-mbtoucr.c: New file.
67023         * modules/unistr/u16-mbtoucr: New file.
67024         * lib/unistr/u16-mbtoucr.c: New file.
67025         * modules/unistr/u16-mbtoucr: New file.
67026         * lib/unistr/u16-mbtoucr.c: New file.
67027         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67028
67029 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67030             Bruno Haible  <bruno@clisp.org>
67031
67032         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67033         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67034         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67035
67036         * m4/stdio_h.m4: Add stubs for vasprintf too.
67037
67038         * modules/stdio: Support vasprintf in sed command.
67039
67040         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67041         vasprintf.h.  Add stdio module indicator.
67042
67043         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67044         vasprintf.h.
67045
67046         * lib/vasprintf.h: File removed.
67047
67048         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67049         * lib/vasprintf.c: Ditto.
67050         * lib/xvasprintf.c: Ditto.
67051         * tests/test-vasprintf-posix.c: Ditto.
67052         * tests/test-vasprintf.c: Ditto.
67053
67054 2007-03-27  Bruno Haible  <bruno@clisp.org>
67055
67056         Make vasnprintf multithread-safe.
67057         * lib/vasnprintf.c (decimal_point_char): New function.
67058         (VASNPRINTF): Use it.
67059         Suggested by Simon Josefsson.
67060
67061 2007-03-27  Eric Blake  <ebb9@byu.net>
67062
67063         Support sub-second birthtime on cygwin.
67064         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67065         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67066         (get_stat_birthtime): Also work with st_birthtim.
67067
67068 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67071         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67072         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67073         (get_stat_birthtime_ns): Simplify compile-time tests.
67074         (get_stat_birthtime): Change the API to look like
67075         get_stat_mtime etc., except return a negative tv_nsec on error.
67076         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67077         Don't check for "spare" fields.
67078         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67079         or for struct stat.st_birthtime, as these tests aren't used.
67080         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67081
67082 2007-03-27  Bruno Haible  <bruno@clisp.org>
67083
67084         * lib/stat-time.h: Include <sys/stat.h>.
67085
67086 2007-03-27  James Youngman  <jay@gnu.org>
67087
67088         * lib/stat-time.h (get_stat_birthtime): New function for
67089           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67090         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67091           and its variants.
67092         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67093         * modules/stat-time-test: New file.
67094         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67095
67096 2007-03-26  Bruno Haible  <bruno@clisp.org>
67097
67098         Better support of signalling NaNs.
67099         * lib/atanl.c: Include isnanl.h.
67100         (atanl): Perform test for NaN at the beginning of the function and
67101         through a call to isnanl.
67102         * lib/cosl.c: Include isnanl.h.
67103         (cosl): Perform test for NaN at the beginning of the function and
67104         through a call to isnanl.
67105         * lib/ldexpl.c: Include isnanl.h.
67106         (ldexpl): Perform test for NaN through a call to isnanl.
67107         * lib/logl.c: Include isnanl.h.
67108         (logl): Perform test for NaN at the beginning of the function and
67109         through a call to isnanl.
67110         * lib/sinl.c: Include isnanl.h.
67111         (sinl): Perform test for NaN at the beginning of the function and
67112         through a call to isnanl.
67113         * lib/sqrtl.c: Include isnanl.h.
67114         (sqrtl): Perform test for NaN at the beginning of the function and
67115         through a call to isnanl.
67116         * lib/tanl.c: Include isnanl.h.
67117         (tanl): Perform test for NaN at the beginning of the function and
67118         through a call to isnanl.
67119         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67120         * modules/mathl (Depends-on): Add isnanl.
67121
67122 2007-03-26  Eric Blake  <ebb9@byu.net>
67123
67124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67125         regression in logic sense of previous patch.
67126
67127 2007-03-26  Bruno Haible  <bruno@clisp.org>
67128
67129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67130         unportable shell command "if ! ...".
67131         Reported by Ralf Wildenhues.
67132
67133 2007-03-25  Bruno Haible  <bruno@clisp.org>
67134
67135         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67136         <sysexits.h> file, and only add EX_CONFIG.
67137         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67138         absolute file name and whether it is sufficient. Substitute also
67139         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67140         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67141         ABSOLUTE_SYSEXITS_H into sysexits.h.
67142
67143 2007-03-25  Bruno Haible  <bruno@clisp.org>
67144
67145         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67146         hints is NULL.
67147
67148 2007-03-25  Bruno Haible  <bruno@clisp.org>
67149
67150         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67151         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67152
67153 2007-03-25  Bruno Haible  <bruno@clisp.org>
67154
67155         * lib/vasnprintf.c: Include langinfo.h.
67156         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67157         multithread-safe.
67158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67167         Reported by Simon Josefsson.
67168
67169 2007-03-25  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67172         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67173         * modules/vasnprintf (Depends-on): Add stdint.
67174
67175 2007-03-25  Bruno Haible  <bruno@clisp.org>
67176
67177         * modules/fpieee: New file.
67178         * m4/fpieee.m4: New file.
67179         * modules/isnan-nolibm (Depends-on): Add fpieee.
67180         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67181         * modules/isnanl (Depends-on): Add fpieee.
67182
67183 2007-03-25  Bruno Haible  <bruno@clisp.org>
67184
67185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67186
67187 2007-03-25  Bruno Haible  <bruno@clisp.org>
67188
67189         Avoid test failures on IRIX 6.5.
67190         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67191         (main): Use it.
67192         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67193         macros.
67194         (main): Use them.
67195
67196 2007-03-25  Bruno Haible  <bruno@clisp.org>
67197
67198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67199         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67200         exists but doesn't work.
67201         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67202         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67204         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67205         math.h.
67206
67207 2007-03-25  Bruno Haible  <bruno@clisp.org>
67208
67209         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67210         returns inf. Needed on IRIX 6.5.
67211
67212 2007-03-25  Bruno Haible  <bruno@clisp.org>
67213
67214         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67215         (main): Use isnanl instead of x != x idiom.
67216         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67217
67218         * tests/test-frexp.c: Include isnan.h.
67219         (main): Use isnan instead of x != x idiom.
67220         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67221
67222 2007-03-25  Bruno Haible  <bruno@clisp.org>
67223
67224         * tests/test-frexp.c (NaN): New function/macro.
67225         (main): Use it instead of 0.0 / 0.0.
67226         * tests/test-isnan.c (NaN): New function/macro.
67227         (main): Use it instead of 0.0 / 0.0.
67228         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67229         (test_function): Use it instead of 0.0 / 0.0.
67230         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67231         (test_function): Use it instead of 0.0 / 0.0.
67232         * tests/test-snprintf-posix.h (NaN): New function/macro.
67233         (test_function): Use it instead of 0.0 / 0.0.
67234         * tests/test-sprintf-posix.h (NaN): New function/macro.
67235         (test_function): Use it instead of 0.0 / 0.0.
67236         * tests/test-fprintf-posix.h (NaN): New function/macro.
67237         (test_function): Use it instead of 0.0 / 0.0.
67238         * tests/test-printf-posix.h (NaN): New function/macro.
67239         (test_function): Use it instead of 0.0 / 0.0.
67240
67241         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67242
67243 2007-03-25  Bruno Haible  <bruno@clisp.org>
67244
67245         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67246
67247 2007-03-25  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/regexec.c (merge_state_with_log): Make static.
67250
67251 2007-03-25  Bruno Haible  <bruno@clisp.org>
67252
67253         * lib/trigl.c (kernel_rem_pio2): Make static.
67254
67255 2007-03-25  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/sincosl.c (sincosl_table): Make static.
67258
67259 2007-03-25  Bruno Haible  <bruno@clisp.org>
67260
67261         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67262         if the compiler does not support C99.
67263
67264 2007-03-25  Bruno Haible  <bruno@clisp.org>
67265
67266         * modules/time (Makefile.am): Ensure all rule action lines start with a
67267         tab.
67268
67269 2007-03-24  Bruno Haible  <bruno@clisp.org>
67270
67271         * modules/tsearch-tests: New file.
67272         * tests/test-tsearch.sh: New file.
67273         * tests/test-tsearch.c: New file, mostly copied from glibc.
67274
67275         * modules/search-tests: New file.
67276         * tests/test-search.c: New file.
67277
67278         * modules/search: New file.
67279         * lib/search_.h: New file, incorporating lib/tsearch.h.
67280         * m4/search_h.m4: New file.
67281         * lib/tsearch.h: Remove file.
67282         * lib/tsearch.c: Include search.h instead of tsearch.h.
67283         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67284         HAVE_TSEARCH.
67285         * modules/tsearch (Files): Remove lib/tsearch.h.
67286         (Depends-on): Add search.
67287         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67288         (Include): Change tsearch.h into search.h.
67289
67290 2007-03-24  Bruno Haible  <bruno@clisp.org>
67291
67292         * modules/fpucw: New file.
67293         * lib/fpucw.h: New file.
67294         * lib/frexp.c: Include fpucw.h.
67295         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67296         (FUNC): Use them.
67297         * lib/printf-frexp.c: Include fpucw.h.
67298         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67299         (FUNC): Use them.
67300         * lib/vasnprintf.c: Include fpucw.h.
67301         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67302         'long double' calculations.
67303         * tests/test-frexpl.c: Include fpucw.h.
67304         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67305         * tests/test-printf-frexpl.c: Include fpucw.h.
67306         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67307         * modules/frexpl (Depends-on): Add fpucw.
67308         * modules/printf-frexpl (Depends-on): Likewise.
67309         * modules/fprintf-posix (Depends-on): Likewise.
67310         * modules/snprintf-posix (Depends-on): Likewise.
67311         * modules/sprintf-posix (Depends-on): Likewise.
67312         * modules/vasnprintf-posix (Depends-on): Likewise.
67313         * modules/vasprintf-posix (Depends-on): Likewise.
67314         * modules/vfprintf-posix (Depends-on): Likewise.
67315         * modules/vsnprintf-posix (Depends-on): Likewise.
67316         * modules/vsprintf-posix (Depends-on): Likewise.
67317         * modules/frexpl-tests (Depends-on): Likewise.
67318         * modules/printf-frexpl-tests (Depends-on): Likewise.
67319
67320 2007-03-24  Bruno Haible  <bruno@clisp.org>
67321
67322         * lib/float+.h: New file.
67323         * lib/isnan.c: Include float+.h.
67324         (SIZE): New macro.
67325         (FUNC): Compare only SIZE bytes of the value.
67326         * lib/vasnprintf.c: Include float+.h.
67327         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67328         SIZEOF_LDBL or SIZEOF_DBL bytes.
67329         * modules/isnan-nolibm (Files): Add lib/float+.h.
67330         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67331         * modules/isnanl (Files): Add lib/float+.h.
67332         * modules/vasnprintf (Files): Add lib/float+.h.
67333
67334 2007-03-24  Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67337         include isnanl-nolibm.h.
67338
67339 2007-03-24  Bruno Haible  <bruno@clisp.org>
67340
67341         * tests/test-read-file.c (main): Don't produce spurious output for
67342         expected situations. Make the test fail if it encountered unexpected
67343         results.
67344
67345 2007-03-24  Bruno Haible  <bruno@clisp.org>
67346
67347         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67348         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67349
67350 2007-03-24  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67353
67354 2007-03-24  Bruno Haible  <bruno@clisp.org>
67355
67356         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67357         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67358
67359         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67360         * modules/utf8-ucs4: Turn into a symbolic link to module
67361         unistr/u8-mbtouc.
67362
67363         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67364         utf8-ucs4-unsafe.
67365         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67366         unistr/u8-mbtouc-unsafe.
67367
67368         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67369         * modules/utf16-ucs4: Turn into a symbolic link to module
67370         unistr/u16-mbtouc.
67371
67372         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67373         utf16-ucs4-unsafe.
67374         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67375         unistr/u16-mbtouc-unsafe.
67376
67377         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67378         * modules/ucs4-utf8: Turn into a symbolic link to module
67379         unistr/u8-ubtomb.
67380
67381         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67382         * modules/ucs4-utf16: Turn into a symbolic link to module
67383         unistr/u16-ubtomb.
67384
67385 2007-03-24  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67388         Enable the function only if HAVE_INLINE.
67389         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67390         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67391         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67392         Enable the function only if HAVE_INLINE.
67393         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67394         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67395         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67396         Enable the function only if HAVE_INLINE.
67397         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67398         Enable the function only if HAVE_INLINE.
67399         * modules/utf8-ucs4: Update.
67400         * modules/utf8-ucs4-unsafe: Update.
67401         * modules/utf16-ucs4: Update.
67402         * modules/utf16-ucs4-unsafe: Update.
67403         * modules/ucs4-utf8: Update.
67404         * modules/ucs4-utf16: Update.
67405
67406 2007-03-24  Bruno Haible  <bruno@clisp.org>
67407
67408         * lib/utf8-ucs4.h: Remove file.
67409         * lib/utf8-ucs4-unsafe.h: Remove file.
67410         * lib/utf16-ucs4.h: Remove file.
67411         * lib/utf16-ucs4-unsafe.h: Remove file.
67412         * lib/ucs4-utf8.h: Remove file.
67413         * lib/ucs4-utf16.h: Remove file.
67414         * lib/unistr.h: Include their previous contents.
67415         * m4/utf-ucs4.m4: Remove file.
67416         * m4/ucs4-utf.m4: Remove file.
67417         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67418         (Depends-on): Add unistr/base.
67419         (configure.ac): Remove gl_UTF_UCS4.
67420         (Makefile.am): Update.
67421         (Include): Change to unistr.h.
67422         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67423         (Depends-on): Add unistr/base.
67424         (configure.ac): Remove gl_UTF_UCS4.
67425         (Makefile.am): Update.
67426         (Include): Change to unistr.h.
67427         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67428         (Depends-on): Add unistr/base.
67429         (configure.ac): Remove gl_UTF_UCS4.
67430         (Makefile.am): Update.
67431         (Include): Change to unistr.h.
67432         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67433         (Depends-on): Add unistr/base.
67434         (configure.ac): Remove gl_UTF_UCS4.
67435         (Makefile.am): Update.
67436         (Include): Change to unistr.h.
67437         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67438         (Depends-on): Add unistr/base.
67439         (configure.ac): Remove gl_UCS4_UTF.
67440         (Makefile.am): Update.
67441         (Include): Change to unistr.h.
67442         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67443         (Depends-on): Add unistr/base.
67444         (configure.ac): Remove gl_UCS4_UTF.
67445         (Makefile.am): Update.
67446         (Include): Change to unistr.h.
67447         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67448         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67449         utf8-ucs4-unsafe.h.
67450         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67451         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67452         utf16-ucs4-unsafe.h.
67453         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67454         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67455         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67456         * lib/unistr/u8-strchr.c: Likewise.
67457         * lib/unistr/u8-strrchr.c: Likewise.
67458         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67459         * lib/unistr/u16-strchr.c: Likewise.
67460         * lib/unistr/u16-strrchr.c: Likewise.
67461         * lib/striconveh.c: Update.
67462         * lib/linebreak.c: Update.
67463
67464 2007-03-24  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67467         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67468
67469 2007-03-22  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67472
67473 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67474
67475         * MODULES.html.sh (File system functions): New module write-any-file.
67476         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67477         * m4/write-any-file.m4: New files.
67478
67479 2007-03-23  Eric Blake  <ebb9@byu.net>
67480
67481         * gnulib-tool: Rearrange space-tab sequences, since some editors
67482         like to eat them.
67483
67484 2007-03-23  Eric Blake  <ebb9@byu.net>
67485
67486         * lib/version-etc.c (version_etc_va): Update license wording to
67487         be more concise.  Recommended by Richard Stallman.
67488
67489 2007-03-22  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/poll.c (MSG_PEEK): New fallback definition.
67492
67493 2007-03-22  Bruno Haible  <bruno@clisp.org>
67494
67495         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67496         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67497         (main): Update.
67498         Fixes a compilation error on BeOS.
67499
67500 2007-03-22  Bruno Haible  <bruno@clisp.org>
67501
67502         * modules/frexpl-tests: New file.
67503         * tests/test-frexpl.c: New file.
67504
67505         * modules/frexpl: New file.
67506         * m4/frexpl.m4: New file.
67507         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67508         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67510         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67511         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67512         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67513
67514 2007-03-22  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/frexpl.c: Share code with lib/frexp.c.
67517         * modules/mathl (Files): Add lib/frexp.c.
67518         (Depends-on): Add isnanl-nolibm.
67519
67520 2007-03-22  Bruno Haible  <bruno@clisp.org>
67521
67522         * modules/printf-frexp (Files): Add m4/frexp.m4.
67523         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67524         only if the found frexp function actually works.
67525
67526 2007-03-22  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/frexp.c: Remove older implementation that uses divisions.
67529
67530 2007-03-21  Bruno Haible  <bruno@clisp.org>
67531
67532         * modules/frexp-tests: New file.
67533         * tests/test-frexp.c: New file.
67534
67535         * modules/frexp: New file.
67536         * lib/frexp.c: New file.
67537         * m4/frexp.m4: New file.
67538         * lib/math_.h (frexp): New declaration.
67539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67540         REPLACE_FREXP.
67541         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67542
67543 2007-03-21  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/isnanl-tests: New file.
67546         * tests/test-isnanl.c: New file.
67547
67548         * modules/isnanl: New file.
67549         * lib/isnanl.h: New file.
67550         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67551         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67552         gl_FUNC_ISNANL_WORKS.
67553         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67554         New macros.
67555
67556 2007-03-21  Bruno Haible  <bruno@clisp.org>
67557
67558         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67559         lib/isnanl.h.
67560         (Include): Update.
67561         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67562         * lib/vasnprintf.c: Update.
67563         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67564         tests/test-isnanl.h, remove tests/test-isnanl.c.
67565         (Makefile.am): Update.
67566         * tests/test-isnanl-nolibm.c: New file.
67567         * tests/test-isnanl.h: New file.
67568         * tests/test-isnanl.c: Remove file.
67569
67570 2007-03-21  Jim Meyering  <jim@meyering.net>
67571
67572         When trying to open ".", treat ESTALE like EACCES.
67573         * lib/savewd.c (savewd_save): Resort to forking not just upon
67574         failure with EACCES, but also when errno is ESTALE.
67575
67576 2007-03-20  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67579         Needed on AIX 5.1. Reported by Matthew Woehlke.
67580
67581 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         Suggestions by Bruno Haible:
67584         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67585         our own.
67586         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67587         * modules/acl (Depends-on): Add gettext.
67588
67589 2007-03-19  Bruno Haible  <bruno@clisp.org>
67590
67591         * modules/iconvme: Remove file.
67592         * lib/iconvme.h: Remove file.
67593         * lib/iconvme.c: Remove file.
67594         * m4/iconvme.m4: Remove file.
67595
67596 2007-03-19  Bruno Haible  <bruno@clisp.org>
67597
67598         * doc/relocatable-maint.texi: Break long shell script line.
67599         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67600
67601 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67604         handle file_has_acl.
67605         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67606         * lib/acl.c: Move header inclusions and related macro defns into
67607         lib/acl-internal.h.
67608         (S_ISLNK): Remove defn, since that's now done for us.
67609         (file_has_acl): Move to lib/file-has-acl.c.
67610         Call acl_trivial if available.  This is the crucial part of the fix.
67611         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67612         shared within the library.  Rewrite a bit, partly to make it compatible
67613         with the GNU coding style.
67614         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67615         Remove unnecessary double-quotes.
67616         Don't test for acl_to_text; the build will catch that.
67617         Replace acl_entries if it doesn't exist and it is needed.
67618         Check for -lsec and acl_trivial (as used on Solaris 10).
67619         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67620         lib/file-has-acl.c.
67621         (Depends-on): Add sys_stat, for S_ISLNK.
67622
67623 2007-03-19  Ben Pfaff  <blp@gnu.org>
67624
67625         * doc/gnulib.texi: Fix typos.
67626         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67627
67628 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67631         If size is zero here, buf must be zero.
67632
67633 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67634
67635         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67636         <bruno@clisp.org>.
67637
67638 2007-03-18  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67641         Suggested by Eric Blake.
67642
67643 2007-03-18  Ben Pfaff  <blp@gnu.org>
67644
67645         * doc/relocatable.texi: Recommend using as prefix a directory
67646         that does not exist and will never be created.  Based on
67647         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67648         and others.
67649
67650 2007-03-17  Bruno Haible  <bruno@clisp.org>
67651
67652         * lib/fchownat.c: Include lchown.h.
67653
67654 2007-03-17  Bruno Haible  <bruno@clisp.org>
67655
67656         Fix endless loop when the given allocated size was > INT_MAX.
67657         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67658         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67659         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67660         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67661         * lib/sprintf.c (sprintf): Likewise.
67662
67663 2007-03-17  Bruno Haible  <bruno@clisp.org>
67664
67665         * tests/test-argp-2.sh (func_compare): Output a context diff.
67666
67667 2007-03-17  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67670         locale's decimal-point character.
67671
67672 2007-03-17  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67675         before comparing it. Needed because on some platforms (e.g. x86) a
67676         'long double' occupies less bytes than sizeof (long double).
67677
67678 2007-03-17  Bruno Haible  <bruno@clisp.org>
67679
67680         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67681         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67682         * tests/test-getaddrinfo.c (simple): Likewise.
67683         * tests/test-read-file.c (main): Likewise.
67684
67685 2007-03-17  Bruno Haible  <bruno@clisp.org>
67686
67687         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67688
67689 2007-03-17  Bruno Haible  <bruno@clisp.org>
67690
67691         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67692         unused variable.
67693
67694 2007-03-17  Bruno Haible  <bruno@clisp.org>
67695
67696         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67697         * tests/test-c-strncasecmp.c: Likewise.
67698
67699 2007-03-17  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/stdlib (Depends-on): Add unistd.
67702         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67703         Needed for MacOS X 10.3.
67704
67705 2007-03-17  Bruno Haible  <bruno@clisp.org>
67706
67707         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67708
67709 2007-03-17  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67712
67713 2007-03-17  Bruno Haible  <bruno@clisp.org>
67714
67715         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67716         to reflect files copied from gnulib (with or without modifications).
67717         Suggested by Jim Meyering.
67718
67719 2007-03-17  Eric Blake  <ebb9@byu.net>
67720
67721         * NEWS: Document stdlib change from 2007-02-18.
67722
67723 2007-03-17  Jim Meyering  <jim@meyering.net>
67724
67725         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67726         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67727         someone uses a name containing shell meta-characters.
67728         Reported by Alfred M. Szmidt.
67729
67730         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67731
67732 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67733
67734         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67735         and copy gettext configuration files only if configure.ac contains
67736         a use of AM_GNU_GETTEXT_VERSION.
67737
67738 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67739
67740         * build-aux/bootstrap (gnulib_name): New variable.
67741         (gnulib_tool_options): Use it.
67742
67743 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67744
67745         * tests/test-des.c: Use new namespace.
67746
67747 2007-03-15  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67750         Reported by James Youngman <jay@gnu.org>.
67751
67752 2007-03-15  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67755         declared prototype. Needed with cc on OSF/1 5.1.
67756
67757 2007-03-15  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67760         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67761         (struct gl_list_implementation): Add dispose_fn argument to the
67762         'create_empty', 'create' methods.
67763         (struct gl_list_impl_base): Add field 'dispose_fn'.
67764         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67765         argument.
67766         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67767         dispose_fn argument.
67768         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67769         dispose_fn on the dropped values.
67770         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67771         dispose_fn argument.
67772         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67773         dropped values.
67774         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67775         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67776         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67777         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67778         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67779         argument.
67780         (gl_tree_list_free): Call dispose_fn on the dropped values.
67781         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67782         the dropped values.
67783         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67784         Add dispose_fn argument.
67785         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67786         Call dispose_fn on the dropped values.
67787         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67788         Add dispose_fn argument.
67789         (gl_sublist_create): Initialize the 'dispose_fn' field.
67790         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67791         * tests/test-array_list.c (main): Update.
67792         * tests/test-carray_list.c (main): Update.
67793         * tests/test-avltree_list.c (main): Update.
67794         * tests/test-rbtree_list.c (main): Update.
67795         * tests/test-avltreehash_list.c (main): Update.
67796         * tests/test-rbtreehash_list.c (main): Update.
67797         * tests/test-linked_list.c (main): Update.
67798         * tests/test-linkedhash_list.c (main): Update.
67799         * tests/test-array_oset.c (main): Update.
67800
67801 2007-03-15  Bruno Haible  <bruno@clisp.org>
67802
67803         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67804         (gl_oset_create_empty): Add dispose_fn argument.
67805         (struct gl_oset_implementation): Add dispose_fn argument to
67806         'create_empty' method.
67807         (struct gl_oset_impl_base): Add dispose_fn field.
67808         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67809         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67810         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67811         values.
67812         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67813         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67814         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67815         dropped value.
67816         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67817         dropped value.
67818         * tests/test-array_oset.c (main): Update.
67819         * tests/test-avltree_oset.c (main): Update.
67820         * tests/test-rbtree_oset.c (main): Update.
67821         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67822
67823 2007-03-13  Bruno Haible  <bruno@clisp.org>
67824
67825         * tests/test-stdbool.c (i): Update after last patch.
67826
67827 2007-03-12  Bruno Haible  <bruno@clisp.org>
67828
67829         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67830         the iswprint macro. Needed on Solaris 2.5.1.
67831
67832 2007-03-12  Bruno Haible  <bruno@clisp.org>
67833
67834         * tests/test-printf-frexp.c (main): Declare x as volatile.
67835
67836 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67837
67838         * doc/gnulib.texi (Build robot for gnulib): New section.
67839
67840 2007-03-12  Jim Meyering  <jim@meyering.net>
67841
67842         * build-aux/bootstrap: New file.
67843         * build-aux/bootstrap.conf: New file, from coreutils.
67844
67845 2007-03-11  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67848
67849 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67850
67851         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67852         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67853         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67854
67855 2007-03-11  Bruno Haible  <bruno@clisp.org>
67856
67857         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67858         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67859
67860 2007-03-11  Bruno Haible  <bruno@clisp.org>
67861
67862         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67863         formula. Needed for SunPRO C 5.0.
67864
67865 2007-03-11  Bruno Haible  <bruno@clisp.org>
67866
67867         * modules/long-options (Depends-on): Add getopt.
67868
67869 2007-03-11  Bruno Haible  <bruno@clisp.org>
67870
67871         * modules/modechange (Depends-on): Add stdbool.
67872
67873 2007-03-11  Bruno Haible  <bruno@clisp.org>
67874
67875         * modules/i-ring (Depends-on): Add stdbool.
67876
67877 2007-03-11  Bruno Haible  <bruno@clisp.org>
67878
67879         * modules/gc-des (Depends-on): Add stdbool.
67880
67881 2007-03-11  Bruno Haible  <bruno@clisp.org>
67882
67883         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67884
67885 2007-03-11  Bruno Haible  <bruno@clisp.org>
67886
67887         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67888
67889 2007-03-11  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67892
67893 2007-03-11  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/vasnprintf.c (sprintf): Undefine.
67896
67897 2007-03-11  Bruno Haible  <bruno@clisp.org>
67898
67899         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67900         initializers in SunPRO C and Compaq C compilers.
67901
67902 2007-03-11  Bruno Haible  <bruno@clisp.org>
67903
67904         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67905         decrementing code ANSI C compliant.
67906
67907 2007-03-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67910         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67911
67912 2007-03-11  Bruno Haible  <bruno@clisp.org>
67913
67914         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67915         <stdbool.h> substitute doesn't pass.
67916
67917 2007-03-11  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67920
67921 2007-03-11  Bruno Haible  <bruno@clisp.org>
67922
67923         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67924         script, for submission to autobuild.josefsson.org.
67925
67926 2007-03-10  Bruno Haible  <bruno@clisp.org>
67927
67928         * modules/canonicalize-lgpl-tests: New file.
67929         * tests/test-canonicalize-lgpl.sh: New file.
67930         * tests/test-canonicalize-lgpl.c: New file.
67931
67932         * modules/c-strcase-tests: New file.
67933         * tests/test-c-strcase.sh: New file.
67934         * tests/test-c-strcasecmp.c: New file.
67935         * tests/test-c-strncasecmp.c: New file.
67936
67937         * modules/atexit-tests: New file.
67938         * tests/test-atexit.sh: New file.
67939         * tests/test-atexit.c: New file.
67940
67941 2007-03-10  Bruno Haible  <bruno@clisp.org>
67942
67943         * tests/test-binary-io.sh: Use temporary filenames that are not so
67944         likely to clash with those of other tests (in a parallel make).
67945         * tests/test-binary-io.c: Likewise.
67946
67947 2007-03-10  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67950         fallback; use #error instead.
67951         Suggested by Simon Josefsson.
67952
67953 2007-03-10  Bruno Haible  <bruno@clisp.org>
67954
67955         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67956         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67957         first and the last.
67958
67959 2007-03-10  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67962
67963 2007-03-10  Bruno Haible  <bruno@clisp.org>
67964
67965         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67966         "make distcheck".
67967         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67968         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67969         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67970
67971 2007-03-10  Bruno Haible  <bruno@clisp.org>
67972
67973         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67974         variable.
67975         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67976         variable.
67977
67978 2007-03-09  Eric Blake  <ebb9@byu.net>
67979         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67980
67981         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67982         types are not being provided by gnulib.
67983         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67984         types are supported.
67985
67986 2007-03-10  Bruno Haible  <bruno@clisp.org>
67987
67988         * lib/stdio_.h (__attribute__): New macro.
67989         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67990         vsprintf): Specify __attribute__ __format__ for GCC.
67991         Suggested by Eric Blake.
67992
67993 2007-03-09  Bruno Haible  <bruno@clisp.org>
67994
67995         * modules/printf-posix-tests: New file.
67996         * tests/test-printf-posix.sh: New file.
67997         * tests/test-printf-posix.c: New file.
67998
67999         * modules/printf-posix: New file.
68000         * lib/printf.c: New file.
68001         * m4/printf-posix-rpl.m4: New file.
68002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68003         REPLACE_PRINTF.
68004         * lib/stdio_.h (printf): New declaration.
68005         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68006         ____strfmon____): New macros.
68007         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68008         REPLACE_PRINTF.
68009
68010 2007-03-09  Bruno Haible  <bruno@clisp.org>
68011
68012         * tests/test-vasnprintf-posix2.sh: New file.
68013         * tests/test-vasnprintf-posix2.c: New file.
68014         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68015         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68016         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68017
68018         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68019         a locale dependent decimal point, rather than always '.'.
68020
68021 2007-03-09  Eric Blake  <ebb9@byu.net>
68022
68023         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68024         spite of platforms like Tandem/NSK that define it to -1.
68025
68026 2007-03-08  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/vprintf-posix-tests: New file.
68029         * tests/test-vprintf-posix.sh: New file.
68030         * tests/test-vprintf-posix.c: New file.
68031         * tests/test-printf-posix.h: New file.
68032
68033         * modules/vprintf-posix: New file.
68034         * lib/vprintf.c: New file.
68035         * m4/vprintf-posix.m4: New file.
68036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68037         REPLACE_VPRINTF.
68038         * lib/stdio_.h (vprintf): New declaration.
68039         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68040         REPLACE_VPRINTF.
68041
68042 2007-03-08  Bruno Haible  <bruno@clisp.org>
68043
68044         * modules/fprintf-posix-tests: New file.
68045         * tests/test-fprintf-posix.sh: New file.
68046         * tests/test-fprintf-posix.c: New file.
68047
68048         * modules/fprintf-posix: New file.
68049         * lib/fprintf.c: New file.
68050         * m4/fprintf-posix.m4: New file.
68051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68052         REPLACE_FPRINTF.
68053         * lib/stdio_.h (fprintf): New declaration.
68054         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68055         REPLACE_FPRINTF.
68056
68057 2007-03-08  Bruno Haible  <bruno@clisp.org>
68058
68059         * modules/vfprintf-posix-tests: New file.
68060         * tests/test-vfprintf-posix.sh: New file.
68061         * tests/test-vfprintf-posix.c: New file.
68062         * tests/test-fprintf-posix.h: New file.
68063         * tests/test-fprintf-posix.out: New file.
68064
68065         * modules/vfprintf-posix: New file.
68066         * lib/vfprintf.c: New file.
68067         * m4/vfprintf-posix.m4: New file.
68068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68069         REPLACE_VFPRINTF.
68070         * lib/stdio_.h (vfprintf): New declaration.
68071         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68072         REPLACE_VFPRINTF.
68073
68074 2007-03-08  Bruno Haible  <bruno@clisp.org>
68075
68076         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68077
68078 2007-03-08  Bruno Haible  <bruno@clisp.org>
68079
68080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68081         instead of 'expr' invocations.
68082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68087         Suggested by Paul Eggert.
68088
68089 2007-03-08  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/fseterr-tests: New file.
68092         * tests/test-fseterr.c: New file.
68093
68094         * modules/fseterr: New file.
68095         * lib/fseterr.h: New file.
68096         * lib/fseterr.c: New file.
68097
68098 2007-03-08  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68101         * lib/getopt_.h: Likewise.
68102         * lib/mbswidth.h: Likewise.
68103         * lib/setenv.h: Likewise.
68104         * lib/vasnprintf.h: Likewise.
68105         * lib/vasprintf.h: Likewise.
68106         * lib/verror.h: Likewise.
68107         * lib/xsetenv.h: Likewise.
68108         * lib/xvasprintf.h: Likewise.
68109
68110 2007-03-08  Jim Meyering  <jim@meyering.net>
68111
68112         * users.txt: Add parted.
68113
68114         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68115
68116 2007-03-07  Bruno Haible  <bruno@clisp.org>
68117
68118         * m4/printf.m4: Make the shell script snippets copy&pastable.
68119
68120 2007-03-02  Bruno Haible  <bruno@clisp.org>
68121
68122         * lib/netinet_in_.h: New file.
68123         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68124         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68125         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68126         (Depends-on): Add absolute-header.
68127         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68128         into netinet/in.h.
68129
68130 2007-03-03  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/sys_select_.h: New file.
68133         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68134         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68135         * modules/sys_select (Files): Add lib/sys_select_.h.
68136         (Depends-on): Add absolute-header.
68137         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68138         into sys/select.h.
68139
68140 2007-03-02  Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68143         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68144         values.
68145         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68146         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68147         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68148         * modules/sys_socket (Depends-on): Add absolute-header.
68149         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68150         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68151         (Include): Remove requirement of inclusion of <sys/types.h>.
68152
68153 2007-03-02  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/byteswap_.h (bswap_32): Fix formula.
68156
68157 2007-03-06  Bruno Haible  <bruno@clisp.org>
68158
68159         * modules/sprintf-posix-tests: New file.
68160         * tests/test-sprintf-posix.c: New file.
68161
68162         * modules/sprintf-posix: New file.
68163         * lib/sprintf.c: New file.
68164         * m4/sprintf-posix.m4: New file.
68165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68166         REPLACE_SPRINTF.
68167         * lib/stdio_.h (sprintf): New declaration.
68168         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68169         REPLACE_SPRINTF.
68170
68171 2007-03-06  Bruno Haible  <bruno@clisp.org>
68172
68173         * modules/vsprintf-posix-tests: New file.
68174         * tests/test-vsprintf-posix.c: New file.
68175         * tests/test-sprintf-posix.h: New file.
68176
68177         * modules/vsprintf-posix: New file.
68178         * lib/vsprintf.c: New file.
68179         * m4/vsprintf-posix.m4: New file.
68180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68181         REPLACE_VSPRINTF.
68182         * lib/stdio_.h (vsprintf): New declaration.
68183         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68184         REPLACE_VSPRINTF.
68185
68186 2007-03-06  Bruno Haible  <bruno@clisp.org>
68187
68188         * modules/vsnprintf (Depend-on): Remove minmax.
68189
68190 2007-03-06  Bruno Haible  <bruno@clisp.org>
68191
68192         * modules/snprintf-posix-tests: New file.
68193         * tests/test-snprintf-posix.c: New file.
68194
68195         * modules/snprintf-posix: New file.
68196         * m4/snprintf-posix.m4: New file.
68197         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68198         gl_FUNC_SNPRINTF.
68199         (gl_FUNC_SNPRINTF): Invoke it.
68200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68201         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68202         is set.
68203         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68204
68205 2007-03-06  Bruno Haible  <bruno@clisp.org>
68206
68207         * modules/vsnprintf-posix-tests: New file.
68208         * tests/test-vsnprintf-posix.c: New file.
68209         * tests/test-snprintf-posix.h: New file.
68210
68211         * modules/vsnprintf-posix: New file.
68212         * m4/vsnprintf-posix.m4: New file.
68213         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68214         gl_FUNC_VSNPRINTF.
68215         (gl_FUNC_VSNPRINTF): Invoke it.
68216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68217         * lib/stdio_.h (vsnprintf): Define as a replacement if
68218         REPLACE_VSNPRINTF is set.
68219         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68220
68221 2007-03-06  Bruno Haible  <bruno@clisp.org>
68222
68223         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68225
68226 2007-03-06  Bruno Haible  <bruno@clisp.org>
68227
68228         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68229         (asinl): Declare also if HAVE_DECL_ASINL is set.
68230         (atanl): Declare also if HAVE_DECL_ATANL is set.
68231         (ceill): Declare also if HAVE_DECL_CEILL is set.
68232         (cosl): Declare also if HAVE_DECL_COSL is set.
68233         (expl): Declare also if HAVE_DECL_EXPL is set.
68234         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68235         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68236         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68237         (logl): Declare also if HAVE_DECL_LOGL is set.
68238         (sinl): Declare also if HAVE_DECL_SINL is set.
68239         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68240         (tanl): Declare also if HAVE_DECL_TANL is set.
68241         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68244         declaration of frexpl, ldexpl.
68245         * modules/printf-frexpl (Depends-on): Add math.
68246         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68247
68248 2007-03-05  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68251         frexpl and ldexpl are declared.
68252         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68253
68254 2007-03-05  Bruno Haible  <bruno@clisp.org>
68255
68256         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68257         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68258
68259 2007-03-05  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/stdio_.h: Include <stddef.h>.
68262
68263 2007-03-05  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68266
68267 2007-03-05  Bruno Haible  <bruno@clisp.org>
68268
68269         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68270         NetBSD 4, from Ralf Wildenhues.
68271
68272 2007-03-04  Bruno Haible  <bruno@clisp.org>
68273
68274         * lib/vasprintf.h: Update #if logic for the case when the functions
68275         exist but are overridden.
68276
68277 2007-03-04  Bruno Haible  <bruno@clisp.org>
68278
68279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68280         implementations: glibc-2.4 and MacOS X 10.3.
68281         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68282         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68283         * tests/test-vasprintf-posix.c (test_function): Likewise.
68284
68285 2007-03-04  Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/vasprintf-posix-tests: New file.
68288         * tests/test-vasprintf-posix.c: New file.
68289
68290         * modules/vasprintf-posix: New file.
68291         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68292         defined.
68293         * m4/vasprintf-posix.m4: New file.
68294         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68295         gl_FUNC_VASPRINTF.
68296         (gl_FUNC_VASPRINTF): Invoke it.
68297         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68298         here.
68299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68300
68301 2007-03-04  Bruno Haible  <bruno@clisp.org>
68302
68303         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68304         REPLACE_GETTIMEOFDAY.
68305         * modules/sys_time (Makefile.am): Likewise.
68306         * m4/sys_time_h.m4: Likewise.
68307         * m4/gettimeofday.m4: Likewise.
68308
68309 2007-03-04  Bruno Haible  <bruno@clisp.org>
68310
68311         * modules/vasnprintf-posix-tests: New file.
68312         * tests/test-vasnprintf-posix.c: New file.
68313
68314         * modules/vasnprintf-posix: New file.
68315         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68316         printf-frexpl.h.
68317         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68318         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68319         REPLACE_VASNPRINTF is defined.
68320         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68321         gl_FUNC_VASNPRINTF.
68322         (gl_FUNC_VASNPRINTF): Invoke it.
68323         * m4/vasnprintf-posix.m4: New file.
68324         * m4/printf.m4: New file.
68325
68326 2007-03-04  Bruno Haible  <bruno@clisp.org>
68327
68328         Compile progreloc.c only if --enable-relocatable is specified.
68329         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68330         if --enable-relocatable was specified.
68331         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68332         lib_SOURCES.
68333
68334 2007-03-04  Jim Meyering  <jim@meyering.net>
68335
68336         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68337         Use it consistently, rather than enumerating errno constants.
68338
68339 2007-03-04  Bruno Haible  <bruno@clisp.org>
68340
68341         * modules/xvasprintf-tests: New file.
68342         * tests/test-xvasprintf.c: New file.
68343
68344         * modules/vasprintf-tests: New file.
68345         * tests/test-vasprintf.c: New file.
68346
68347         * modules/vasnprintf-tests: New file.
68348         * tests/test-vasnprintf.c: New file.
68349
68350         * modules/vsnprintf-tests: New file.
68351         * tests/test-vsnprintf.c: New file.
68352
68353         * modules/snprintf-tests: New file.
68354         * tests/test-snprintf.c: New file.
68355
68356 2007-03-04  Bruno Haible  <bruno@clisp.org>
68357
68358         Compile relocatable.c only if --enable-relocatable is specified.
68359         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68360         gl_RELOCATABLE_LIBRARY.
68361         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68362         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68363         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68364         gl_RELOCATABLE_LIBRARY.
68365         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68366         (Makefile.am): Remove lib_SOURCES.
68367         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68368         gl_RELOCATABLE_LIBRARY.
68369         (Makefile.am): Remove lib_SOURCES.
68370         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68371         always.
68372         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68373         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68374
68375 2007-03-04  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/argmatch-tests: New file.
68378         * tests/test-argmatch.c: New file.
68379
68380         * tests/test-allocsa.c (main): Halve the number of loop runs.
68381
68382         * modules/alloca-opt-tests: New file.
68383         * tests/test-alloca-opt.c: New file.
68384
68385 2007-03-04  Jim Meyering  <jim@meyering.net>
68386
68387         Work around difference between Linux ACLs and Solaris 10 ZFS.
68388         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68389         for EINVAL.
68390
68391 2007-03-03  Bruno Haible  <bruno@clisp.org>
68392
68393         * modules/relocatable-prog (Depends-on): Add back progreloc's
68394         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68395
68396 2007-03-03  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68399         * modules/relocatable-lib: New file.
68400
68401 2007-03-03  Bruno Haible  <bruno@clisp.org>
68402
68403         * modules/relocatable-prog: Renamed from modules/relocatable.
68404         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68405
68406 2007-03-03  Bruno Haible  <bruno@clisp.org>
68407
68408         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68409         m4/relocatable-lib.m4.
68410         (Depends-on): Remove 'relocatable'.
68411         (configure.ac): Add gl_RELOCATABLE_NOP.
68412
68413 2007-03-03  Bruno Haible  <bruno@clisp.org>
68414
68415         * modules/relocatable-prog-wrapper: New file.
68416         * modules/relocatable (Depends-on): Add it. Remove all other
68417         dependencies except progname.
68418         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68419
68420         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68421         (gl_FUNC_STRERROR): Nop.
68422         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68423
68424         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68425         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68426
68427         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68428         (gl_FUNC_READLINK): Update.
68429
68430         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68431
68432 2007-03-03  Bruno Haible  <bruno@clisp.org>
68433
68434         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68435         * modules/xreadlink (Depends-on): Add unistd.
68436         * modules/xreadlink-with-size (Depends-on): Likewise.
68437
68438 2007-03-03  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68441         extracted from gt_FUNC_SETENV.
68442         (gt_FUNC_SETENV): Remove macro.
68443         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68444         remove gt_FUNC_SETENV.
68445
68446 2007-03-03  Bruno Haible  <bruno@clisp.org>
68447
68448         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68449         ENABLE_RELOCATABLE here.
68450         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68451
68452 2007-03-03  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68455         * tests/test-rbtreehash_list.c: Include progname.h.
68456         (main): Call set_program_name.
68457
68458         * modules/rbtree-oset-tests (Depends-on): Add progname.
68459         * tests/test-rbtree_oset.c: Include progname.h.
68460         (main): Call set_program_name.
68461
68462         * modules/rbtree-list-tests (Depends-on): Add progname.
68463         * tests/test-rbtree_list.c: Include progname.h.
68464         (main): Call set_program_name.
68465
68466         * modules/linked-list-tests (Depends-on): Add progname.
68467         * tests/test-linked_list.c: Include progname.h.
68468         (main): Call set_program_name.
68469
68470 2007-03-03  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68473         All uses of __restrict changed to _Restrict_.
68474         * lib/glob_.h (__restrict): Remove macro.
68475
68476 2007-03-02  Bruno Haible  <bruno@clisp.org>
68477
68478         * modules/gettext (configure.ac): Require gettext infrastructure
68479         from version 0.16.1.
68480
68481 2007-03-02  Bruno Haible  <bruno@clisp.org>
68482
68483         * modules/linkedhash-list-tests (Depends-on): Add progname.
68484         * tests/test-linkedhash_list.c: Include progname.h.
68485         (main): Call set_program_name.
68486
68487         * modules/carray-list-tests (Depends-on): Add progname.
68488         * tests/test-carray_list.c: Include progname.h.
68489         (main): Call set_program_name.
68490
68491         * modules/avltreehash-list-tests (Depends-on): Add progname.
68492         * tests/test-avltreehash_list.c: Include progname.h.
68493         (main): Call set_program_name.
68494
68495         * modules/avltree-oset-tests (Depends-on): Add progname.
68496         * tests/test-avltree_oset.c: Include progname.h.
68497         (main): Call set_program_name.
68498
68499         * modules/avltree-list-tests (Depends-on): Add progname.
68500         * tests/test-avltree_list.c: Include progname.h.
68501         (main): Call set_program_name.
68502
68503         * modules/array-oset-tests (Depends-on): Add progname.
68504         * tests/test-array_oset.c: Include progname.h.
68505         (main): Call set_program_name.
68506
68507         * modules/array-list-tests (Depends-on): Add progname.
68508         * tests/test-array_list.c: Include progname.h.
68509         (main): Call set_program_name.
68510
68511         * modules/argp-tests (Depends-on): Add progname.
68512         * tests/test-argp.c: Include argp.h first. Include progname.h.
68513         (main): Call set_program_name.
68514
68515 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * doc/gnulib-tool.texi (Initial import): Reword description of
68518         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68519         limited effect even if defined after the first system include.
68520
68521 2007-03-01  Bruno Haible  <bruno@clisp.org>
68522
68523         * build-aux/config.libpath: Update to libtool-1.5.22.
68524         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68525
68526 2007-03-01  Bruno Haible  <bruno@clisp.org>
68527
68528         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68529         foo_CFLAGS.
68530         Reported by Ralf Wildenhues.
68531
68532 2007-03-01  Bruno Haible  <bruno@clisp.org>
68533
68534         * build-aux/install-reloc: Remove object files left over by some
68535         compilers.
68536         Reported by Ralf Wildenhues.
68537
68538 2007-03-01  Bruno Haible  <bruno@clisp.org>
68539
68540         * build-aux/install-reloc: Break long lines.
68541
68542 2007-03-01  Bruno Haible  <bruno@clisp.org>
68543
68544         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68545         Reported by Ralf Wildenhues.
68546
68547 2007-03-01  Bruno Haible  <bruno@clisp.org>
68548
68549         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68550         include ordering constraints.
68551
68552 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68556         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68557         as another example.
68558         * lib/time_.h: Fix misspelling.
68559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68560         Require gl_HEADER_TIME_H_DEFAULTS.
68561         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68562         * m4/time_r.m4 (gl_TIME_R): Likewise.
68563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68564
68565 2007-03-01  Bruno Haible  <bruno@clisp.org>
68566
68567         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68568         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68569
68570 2007-03-01  Jim Meyering  <jim@meyering.net>
68571
68572         * modules/xreadlink (Maintainer): Add my name.
68573         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68574
68575 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68576             Bruno Haible  <bruno@clisp.org>
68577
68578         * build-aux/install-reloc: Compile also c-ctype.c.
68579         * build-aux/relocatable.sh.in: New file.
68580         * doc/relocatable.texi: New file.
68581         * doc/relocatable-maint.texi: New file.
68582         * doc/gnulib.texi: Include relocatable-maint.texi.
68583         * lib/progreloc.c: Include unistd.h unconditionally.
68584         * lib/relocwrapper.c: Include unistd.h unconditionally.
68585         Include c-ctype.h.
68586         (add_dotbin): Use c_tolower.
68587         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68588         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68589         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68590         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68591         to m4/relocatable-lib.m4.
68592         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68593         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68594         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68595         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68596         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68597         * modules/relocatable: New file.
68598         * modules/relocatable-lib: New file.
68599         * modules/relocatable-script: New file.
68600
68601 2007-02-28  Bruno Haible  <bruno@clisp.org>
68602
68603         Import --enable-relocatable infrastructure.
68604         * build-aux/config.libpath: New file, from GNU gettext.
68605         * build-aux/install-reloc: New file, from GNU gettext.
68606         * build-aux/reloc-ldflags: New file, from GNU gettext.
68607         * lib/relocatable.h: New file, from GNU gettext.
68608         * lib/relocatable.c: New file, from GNU gettext.
68609         * lib/relocwrapper.c: New file, from GNU gettext.
68610         * m4/relocatable.m4: New file, from GNU gettext.
68611
68612 2007-02-28  Bruno Haible  <bruno@clisp.org>
68613
68614         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68615
68616         * modules/xreadlink: New file, from GNU gettext with modifications.
68617         * lib/xreadlink.c: New file, from GNU gettext.
68618         * lib/xreadlink.h: Add comments.
68619         (xreadlink): New declaration.
68620
68621         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68622         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68623         lib/xreadlink-with-size.c.
68624         (configure.ac): Remove gl_XREADLINK invocation.
68625         (Makefile.am): Augment lib_SOURCES.
68626         * m4/xreadlink.m4: Remove file.
68627         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68628         (xreadlink_with_size): Renamed from xreadink.
68629         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68630         * modules/canonicalize (Depends-on): Replace xreadlink with
68631         xreadlink-with-size.
68632         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68633
68634 2007-02-25  Jim Meyering  <jim@meyering.net>
68635
68636         * build-aux/announce-gen: When complaining about excess arguments,
68637         list them.
68638
68639 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * README: Document signed integer overflow situation more
68642         accurately.
68643
68644 2007-02-25  Bruno Haible  <bruno@clisp.org>
68645
68646         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68647         'a' or 'A' conversion.
68648
68649 2007-02-25  Bruno Haible  <bruno@clisp.org>
68650
68651         * modules/filename: Renamed from modules/pathname.
68652         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68653         lib/concatpath.c with lib/concat-filename.c.
68654         (Makefile.am): Update.
68655         (Include): Replace pathname.h with filename.h.
68656         * lib/filename.h: Renamed from lib/pathname.h.
68657         (concatenated_filename): Renamed from concatenated_pathname.
68658         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68659         (concatenated_filename): Renamed from concatenated_pathname.
68660         * lib/findprog.c: Include filename.h instead of pathname.h.
68661         (find_in_path): Update.
68662         * lib/javacomp.c: Include filename.h instead of pathname.h.
68663         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68664         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68665         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68666         is_oldgcj_14_13_usable, is_javac_usable): Update.
68667         * lib/javaexec.c: Include filename.h instead of pathname.h.
68668         (execute_java_class): Update.
68669         * modules/findprog: Update.
68670         * modules/javacomp: Update.
68671         * modules/javaexec: Update.
68672         * MODULES.html.sh (File system functions): Add 'filename', remove
68673         'pathname'.
68674
68675 2007-02-25  Bruno Haible  <bruno@clisp.org>
68676
68677         * modules/printf-frexpl-tests: New file.
68678         * tests/test-printf-frexpl.c: New file.
68679
68680         * modules/printf-frexpl: New file.
68681         * lib/printf-frexpl.h: New file.
68682         * lib/printf-frexpl.c: New file.
68683         * m4/printf-frexpl.m4: New file.
68684
68685 2007-02-25  Bruno Haible  <bruno@clisp.org>
68686
68687         * modules/printf-frexp-tests: New file.
68688         * tests/test-printf-frexp.c: New file.
68689
68690         * modules/printf-frexp: New file.
68691         * lib/printf-frexp.h: New file.
68692         * lib/printf-frexp.c: New file.
68693         * m4/printf-frexp.m4: New file.
68694
68695 2007-02-25  Bruno Haible  <bruno@clisp.org>
68696
68697         Assume automake >= 1.10 for the tests.
68698         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68699         * modules/arctwo-tests: Likewise.
68700         * modules/argp-tests: Likewise.
68701         * modules/avltree-list-tests: Likewise.
68702         * modules/avltree-oset-tests: Likewise.
68703         * modules/avltreehash-list-tests: Likewise.
68704         * modules/carray-list-tests: Likewise.
68705         * modules/crc-tests: Likewise.
68706         * modules/des-tests: Likewise.
68707         * modules/gc-arcfour-tests: Likewise.
68708         * modules/gc-arctwo-tests: Likewise.
68709         * modules/gc-des-tests: Likewise.
68710         * modules/gc-hmac-md5-tests: Likewise.
68711         * modules/gc-hmac-sha1-tests: Likewise.
68712         * modules/gc-md2-tests: Likewise.
68713         * modules/gc-md4-tests: Likewise.
68714         * modules/gc-md5-tests: Likewise.
68715         * modules/gc-pbkdf2-sha1-tests: Likewise.
68716         * modules/gc-rijndael-tests: Likewise.
68717         * modules/gc-sha1-tests: Likewise.
68718         * modules/gc-tests: Likewise.
68719         * modules/getaddrinfo-tests: Likewise.
68720         * modules/hmac-md5-tests: Likewise.
68721         * modules/hmac-sha1-tests: Likewise.
68722         * modules/linked-list-tests: Likewise.
68723         * modules/linkedhash-list-tests: Likewise.
68724         * modules/lock-tests: Likewise.
68725         * modules/md2-tests: Likewise.
68726         * modules/md4-tests: Likewise.
68727         * modules/md5-tests: Likewise.
68728         * modules/rbtree-list-tests: Likewise.
68729         * modules/rbtree-oset-tests: Likewise.
68730         * modules/rbtreehash-list-tests: Likewise.
68731         * modules/read-file-tests: Likewise.
68732         * modules/rijndael-tests: Likewise.
68733         * modules/stdint-tests: Likewise.
68734         * modules/tls-tests: Likewise.
68735
68736 2007-02-24  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68739         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68740         function; instead check whether isnan with a double argument links.
68741         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68742         function; instead check whether isnan with a 'long double' argument
68743         links.
68744         Reported by Eric Blake <ebb9@byu.net>.
68745
68746 2007-02-24  Bruno Haible  <bruno@clisp.org>
68747
68748         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68749         defined.
68750         * lib/isnanl.c: Remove all code. Just include isnan.c.
68751         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68752
68753 2007-02-25  Jim Meyering  <jim@meyering.net>
68754
68755         Avoid conflicting types for 'unsetenv' on FreeBSD.
68756         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68757         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68758         in stdlib.h.
68759
68760 2007-02-24  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/isnanl-nolibm-tests: New file.
68763         * tests/test-isnanl.c: New file.
68764
68765         * modules/isnanl-nolibm: New file.
68766         * lib/isnanl.h: New file.
68767         * lib/isnanl.c: New file.
68768         * m4/isnanl.m4: New file.
68769
68770 2007-02-24  Bruno Haible  <bruno@clisp.org>
68771
68772         * modules/isnan-nolibm-tests: New file.
68773         * tests/test-isnan.c: New file.
68774
68775         * modules/isnan-nolibm: New file.
68776         * lib/isnan.h: New file.
68777         * lib/isnan.c: New file.
68778         * m4/isnan.m4: New file.
68779
68780 2007-02-24  Bruno Haible  <bruno@clisp.org>
68781
68782         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68783         assume that an exponent fits in 20 bits.
68784
68785 2007-02-24  Jim Meyering  <jim@meyering.net>
68786
68787         * m4/regex.m4: Update the description of the configure-time option,
68788         --without-included-regex, to state accurately what the defaults are,
68789         and perhaps to give people an idea why using this option is risky.
68790
68791 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68792
68793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68794         loops on small arguments.  This attempts to avoid the problem
68795         Bruno Haible reported for AIX 4.3.2 in
68796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68797
68798 2007-02-23  Bruno Haible  <bruno@clisp.org>
68799
68800         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68801         Needed for help2man.
68802
68803 2007-02-23  Karl Berry  <karl@gnu.org>
68804
68805         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68806         exists, foo.h should be cvs-ignored, not committed.
68807
68808 2007-02-23  Eric Blake  <ebb9@byu.net>
68809
68810         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68811         * lib/stat-time.h (includes): Likewise.
68812         * lib/utimecmp.c (includes): Likewise.
68813         * lib/utimens.h (includes): Likewise.
68814         * lib/getdate.y (includes): Also include "timespec.h" for use
68815         internal to the module.
68816         * modules/utimens (Depends-on): Revert yesterday's patch.
68817         * modules/nanosleep (Depends-on): Add missing dependency.
68818
68819 2007-02-22  Bruno Haible  <bruno@clisp.org>
68820
68821         * lib/glob.c: Don't include getlogin_r.h.
68822
68823 2007-02-22  Jim Meyering  <jim@meyering.net>
68824
68825         * modules/utimens (Depends-on): Add timespec, required for
68826         utimens.h's inclusion of timespec.h.
68827
68828 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68831         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68832         Schwab in
68833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68834         I'll try to think of a better way to fix the Solaris problem.
68835
68836         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68837         like glibc; on Solaris 10, it fails with errno == EINVAL.
68838         POSIX says the behavior is unspecified if the first argument is NULL,
68839         so play it safe and never pass NULL to the system getcwd.
68840
68841 2007-02-21  Jim Meyering  <jim@meyering.net>
68842
68843         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68844         of gettimeofday.  It would conflict with the one now always
68845         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68846         an IRIX 6.5 build failure.
68847
68848 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         Minor fixups to port to Solaris 10 with Sun C 5.8.
68851         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68852         * modules/getcwd (Depends-on): Add dirfd.
68853         * lib/putenv.c (putenv): #undef it.
68854         (rpl_putenv): New decl.
68855         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68856
68857 2007-02-20  Bruno Haible  <bruno@clisp.org>
68858
68859         * modules/stdio-tests: New file.
68860         * tests/test-stdio.c: New file.
68861
68862         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68863         (Depends-on): Add stdio.
68864         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68865         (Include): Use <stdio.h> instead of vsnprintf.h.
68866         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68867         HAVE_DECL_VSNPRINTF.
68868         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68869
68870         * modules/snprintf (Files): Remove lib/snprintf.h.
68871         (Depends-on): Add stdio.
68872         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68873         (Include): Use <stdio.h> instead of snprintf.h.
68874         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68875         HAVE_DECL_SNPRINTF.
68876         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68877         * lib/getaddrinfo.c: Likewise.
68878
68879         * modules/stdio: New file.
68880         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68881         * lib/snprintf.h: Remove file.
68882         * lib/vsnprintf.h: Remove file.
68883         * lib/.cppi-disable: Remove snprintf.h.
68884         * m4/stdio_h.m4: New file.
68885         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68886
68887 2007-02-20  Jim Meyering  <jim@meyering.net>
68888
68889         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68890         used by e.g., mingw.  From Bruno Haible.
68891
68892 2007-02-19  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68895         warnings.
68896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68897
68898 2007-02-19  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68901         from mingw users.
68902
68903 2007-02-19  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68906         warnings.
68907         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68908
68909 2007-02-19  Jim Meyering  <jim@meyering.net>
68910
68911         Don't use FD after a successful "fdopendir (fd)".
68912         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68913         Reset it by calling dirfd on the just-obtained DIR*.
68914
68915         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68916         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68917
68918 2007-02-18  Bruno Haible  <bruno@clisp.org>
68919
68920         * lib/readlink.c: Include <unistd.h>.
68921         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68922         HAVE_READLINK.
68923         * modules/readlink (Depends-on): Add unistd.
68924         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68925         (Include): Add <unistd.h>.
68926
68927         * lib/getlogin_r.h: Remove file.
68928         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68929         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68930         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68931         HAVE_DECL_GETLOGIN_R.
68932         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68933         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68934         (Include): Use <unistd.h> instead of getlogin_r.h.
68935
68936         * lib/getcwd.h: Remove file.
68937         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68938         * lib/xgetcwd.c: Likewise.
68939         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68940         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68941         * modules/getcwd (Files): Remove lib/getcwd.h.
68942         (Depends-on): Add unistd.
68943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68944         (Include): Use <unistd.h> instad of getcwd.h.
68945
68946         * lib/ftruncate.c: Include <unistd.h> first.
68947         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68948         Set HAVE_FTRUNCATE.
68949         * modules/ftruncate (Depends-on): Add unistd.
68950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68951
68952         * lib/fchdir.c: Include <unistd.h> first.
68953         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68955         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68956         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68957         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68958
68959         * lib/dup2.c: Include <unistd.h> first.
68960         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68961         HAVE_DUP2.
68962         * modules/dup2 (Depends-on): Add unistd.
68963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68964
68965         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68966         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68967         REPLACE_CHOWN. Don't define chown as a macro here.
68968         * modules/chown (Depends-on): Add unistd.
68969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68970
68971         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68972         Add definition for GL_LINK_WARNING.
68973         (chown, dup2): New declarations.
68974         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68975         link warning.
68976         (ftruncate): New declaration.
68977         (getcwd): New declaration, taken from old getcwd.h.
68978         (getlogin_r): New declaration, taken from old getlogin_r.h.
68979         (readlink): New declaration.
68980         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68981         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68982         (gl_PREREQ_UNISTD): Remove macro.
68983         (gl_UNISTD_MODULE_INDICATOR): New macro.
68984         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68985         many new variables. Don't set UNISTD_H.
68986         * modules/unistd (Description): Change.
68987         (Depends-on): Add link-warning.
68988         (configure.ac): Update.
68989         (Makefile.am): Create unistd.h always. Substitute many new variables
68990         into it.
68991
68992 2007-02-18  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68995         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68996         HAVE_GETSUBOPT.
68997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68998         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68999         * lib/getsubopt.h: Remove file.
69000         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69001         (Depends-on): Add stdlib.
69002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69003         (Includes): Use <stdlib.h> instead of getsubopt.h.
69004         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69005         Set HAVE_GETSUBOPT.
69006         * lib/getsubopt.c: Don't include getsubopt.h.
69007
69008 2007-02-18  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/fchdir (Depends-on): Add dup2.
69011
69012 2007-02-18  Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/stdlib_.h: Handle glibc's special invocation convention
69015         specially.
69016
69017 2007-02-18  Bruno Haible  <bruno@clisp.org>
69018
69019         * modules/stdlib-tests: New file.
69020         * tests/test-stdlib.c: New file.
69021
69022         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69023         (Depends-on): Add stdlib.
69024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69025         (Includes): Use <stdlib.h> instead of mkstemp.h.
69026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69027         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69028         * lib/mkstemp.c: Don't include mkstemp.h.
69029         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69030         * lib/stdlib--.h: Don't include mkstemp.h.
69031
69032         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69033         (Depends-on): Add stdlib.
69034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69035         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69036         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69037         HAVE_MKDTEMP.
69038         * lib/mkdtemp.c: Don't include mkdtemp.h.
69039         * lib/clean-temp.c: Don't include mkdtemp.h.
69040
69041         * modules/exit (Files): Remove lib/exit.h.
69042         (Depends-on): Add stdlib.
69043         (Makefile.am): Remove lib_SOURCES.
69044         (Include): Use <stdlib.h> instead of exit.h.
69045         * lib/argmatch.c: Don't include exit.h.
69046         * lib/execute.c: Likewise.
69047         * lib/pagealign_alloc.c: Likewise.
69048         * lib/pipe.c: Likewise.
69049         * lib/wait-process.c: Likewise.
69050         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69051         * lib/exitfail.c: Likewise.
69052         * lib/savewd.c: Likewise.
69053         * lib/xsetenv.c: Likewise.
69054
69055         * modules/stdlib: New file.
69056         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69057         and extra comments about mkstemp().
69058         * lib/exit.h: Remove file.
69059         * lib/mkdtemp.h: Remove file.
69060         * lib/mkstemp.h: Remove file.
69061         * m4/stdlib_h.m4: New file.
69062         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69063
69064 2007-02-18  Bruno Haible  <bruno@clisp.org>
69065
69066         * modules/math-tests: New file.
69067         * tests/test-math.c: New file.
69068
69069         * modules/math: New file.
69070         * modules/mathl (Files): Remove lib/mathl.h.
69071         (Depends-on): Add math.
69072         (Makefile.am): Don't mention mathl.h.
69073         (Include): Use <math.h> instead of mathl.h.
69074         * lib/math_.h: New file.
69075         * lib/mathl.h: Remove file.
69076         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69077         mathl.h.
69078         * lib/asinl.c: Likewise.
69079         * lib/atanl.c: Likewise.
69080         * lib/ceill.c: Likewise.
69081         * lib/cosl.c: Likewise.
69082         * lib/expl.c: Likewise.
69083         * lib/floorl.c: Likewise.
69084         * lib/frexpl.c: Likewise.
69085         * lib/ldexpl.c: Likewise.
69086         * lib/logl.c: Likewise.
69087         * lib/sincosl.c: Likewise.
69088         * lib/sinl.c: Likewise.
69089         * lib/sqrtl.c: Likewise.
69090         * lib/tanl.c: Likewise.
69091         * lib/trigl.c: Likewise.
69092         * m4/math_h.m4: New file.
69093         * MODULES.html.sh (Mathematics): Add math.
69094
69095 2007-02-17  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/wctype-tests: New file.
69098         * tests/test-wctype.c: New file.
69099
69100         * modules/wchar-tests: New file.
69101         * tests/test-wchar.c: New file.
69102
69103         * modules/unistd-tests: New file.
69104         * tests/test-unistd.c: New file.
69105
69106         * modules/time-tests: New file.
69107         * tests/test-time.c: New file.
69108
69109         * modules/sysexits-tests: New file.
69110         * tests/test-sysexits.c: New file.
69111
69112         * modules/sys_time-tests: New file.
69113         * tests/test-sys_time.c: New file.
69114
69115         * modules/sys_stat-tests: New file.
69116         * tests/test-sys_stat.c: New file.
69117
69118         * modules/sys_socket-tests: New file.
69119         * tests/test-sys_socket.c: New file.
69120
69121         * modules/sys_select-tests: New file.
69122         * tests/test-sys_select.c: New file.
69123
69124         * modules/string-tests: New file.
69125         * tests/test-string.c: New file.
69126
69127         * modules/stdbool-tests: New file.
69128         * tests/test-stdbool.c: New file.
69129
69130         * modules/netinet_in-tests: New file.
69131         * tests/test-netinet_in.c: New file.
69132
69133         * modules/inttypes-tests: New file.
69134         * tests/test-inttypes.c: New file.
69135
69136         * modules/fcntl-tests: New file.
69137         * tests/test-fcntl.c: New file.
69138
69139         * modules/byteswap-tests: New file.
69140         * tests/test-byteswap.c: New file.
69141
69142         * modules/arpa_inet-tests: New file.
69143         * tests/test-arpa_inet.c: New file.
69144
69145 2007-02-17  Bruno Haible  <bruno@clisp.org>
69146
69147         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69148         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69149         if the corresponding module is not enabled. Emit link warnings if
69150         the function is used nevertheless.
69151         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69152         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69153         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69154         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69155         * modules/inttypes (Depends-on): Add link-warning.
69156         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69157         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69158         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69159         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69160         * modules/imaxdiv (configure.ac): Likewise.
69161         * modules/strtoimax (configure.ac): Likewise.
69162         * modules/strtoumax (configure.ac): Likewise.
69163
69164 2007-02-17  Bruno Haible  <bruno@clisp.org>
69165
69166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69167         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69168         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69169         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69170
69171 2007-02-17  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/link-warning: New file.
69174         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69175         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69176         * modules/string (Depends-on): Add link-warning.
69177         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69178         string.h.
69179         * MODULES.html.sh (Support for building libraries and executables): Add
69180         link-warning.
69181
69182 2007-02-17  Bruno Haible  <bruno@clisp.org>
69183
69184         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69185         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69186         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69187         long lines.
69188
69189 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69190             Bruno Haible  <bruno@clisp.org>
69191
69192         * modules/tmpfile: New file.
69193         * lib/tmpfile.c: New file.
69194         * m4/tmpfile.m4: New file.
69195         * MODULES.html.sh (func_all_modules): New section "Input/output".
69196
69197 2007-02-15  Bruno Haible  <bruno@clisp.org>
69198
69199         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69200         (supports_delete_on_close): New function.
69201         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69202
69203 2007-02-14  Bruno Haible  <bruno@clisp.org>
69204
69205         * modules/mbspcasecmp-tests: New file.
69206         * tests/test-mbspcasecmp.sh: New file.
69207         * tests/test-mbspcasecmp.c: New file.
69208
69209         New module mbspcasecmp.
69210         * modules/mbspcasecmp: New file.
69211         * lib/mbspcasecmp.c: New file.
69212         * lib/string_.h (strncasecmp): Change warning message.
69213         (mbspcasecmp): New declaration.
69214         * m4/mbspcasecmp.m4: New file.
69215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69216         GNULIB_MBSPCASECMP.
69217         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69218         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69219
69220 2007-02-14  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/mbsncasecmp-tests: New file.
69223         * tests/test-mbsncasecmp.sh: New file.
69224         * tests/test-mbsncasecmp.c: New file.
69225
69226         New module mbsncasecmp.
69227         * modules/mbsncasecmp: New file.
69228         * lib/mbsncasecmp.c: New file.
69229         * lib/string_.h (mbsncasecmp): New declaration.
69230         * m4/mbsncasecmp.m4: New file.
69231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69232         GNULIB_MBSNCASECMP.
69233         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69234         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69235
69236 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69239         Verify that it doesn't overlap with our flags.
69240         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69241         do not have the desired effect in multibyte locales; instead, use
69242         mbscasecmp.
69243         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69244         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69245         we don't require GNU fnmatch ourselves (if our users require it, they
69246         should do so explicitly).
69247
69248         Fix regex code so it doesn't rely on strcasecmp.
69249         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69250         Otherwise, include gnulib's langinfo.h.
69251         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69252         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69253         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69254         * modules/regex (FILES): Remove m4/codeset.m4.
69255         (Depends-on): Add localcharset.  Remove strcase.
69256
69257 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69258
69259         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69260         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69261
69262 2007-02-13  Bruno Haible  <bruno@clisp.org>
69263
69264         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69266
69267 2007-02-12  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69270         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69271         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69272         time warning rather than a link error.
69273
69274 2007-02-12  Bruno Haible  <bruno@clisp.org>
69275
69276         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69277         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69279
69280 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69283         args, not 2.
69284
69285 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         New module 'time', so that apps can include <time.h> as per
69288         POSIX and GNU instead of separate include files like time_r.h
69289         and timegm.h.  This implementation tries out a simpler approach
69290         for replacing decls in standard include files (as compared to
69291         the string module), somewhat as an experiment.
69292
69293         * config/srclist.txt: Comment out mktime.c for now.
69294         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69295         since it doesn't apply any more.  Use generic wording instead.
69296         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69297         'time'.
69298         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69299         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69300         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69301         Don't include <sys/types.h>; no longer needed since we assume C89.
69302         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69303         * lib/strftime.c: Likewise.
69304         * lib/time_r.c: Likewise.
69305         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69306         * lib/nanosleep.c: Include <time.h> first, to check interface.
69307         * lib/strptime.c: Likewise.
69308         * lib/time_r.c: Likewise.
69309         * lib/timegm.c: Likewise.
69310         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69311         needed.
69312         * lib/timegm.c: Don't include timegm.h; no longer needed.
69313         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69314         time.h now handles any problems in that area.
69315         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69316         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69317         that time.h defines struct timespec.
69318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69319         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69320         handles that.
69321         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69322         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69323         needed.  Set REPLACE_LOCALTIME.
69324         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69325         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69326         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69327         nanosleep; time_h.m4 now does that.  Don't require
69328         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69329         module handles this now.
69330         * modules/getdate (Depends-on): Remove timespec.  Add time.
69331         * modules/nanosleep (Depends-on): Likewise.
69332         * modules/stat-time (Depends-on): Likewise.
69333         * modules/nanosleep (Include): Include time.h, not timespec.h.
69334         * modules/strptime (Files): Remove lib/strptime.h.
69335         (Depends-on): Add extensions, time.
69336         (Include): Include time.h, not strptime.h.
69337         * modules/time_r (Files): Remove lib/time_r.h.
69338         (Depends-on): Add time.
69339         (Include): Include time.h, not time_r.h.
69340         * modules/timegm: Likewise.
69341         * modules/timespec (Description): Now does timespec-related decls
69342         of our own, instead of struct timespec itself.
69343         (Depends-on): Add time; remove extensions.
69344         (Maintainer): Add self.
69345         * modules/utimecmp (Depends-on): Add time; remove timespec.
69346         * modules/utimens (Depends-on): Likewise.
69347         * modules/xnanosleep (Depends-on): Likewise.
69348
69349 2007-02-11  Bruno Haible  <bruno@clisp.org>
69350
69351         * lib/c-strstr.c: Include allocsa.h.
69352         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69353         * lib/c-strcasestr.c: Include allocsa.h.
69354         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69355         * lib/strcasestr.c: Include allocsa.h.
69356         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69357         * lib/mbsstr.c: Include allocsa.h.
69358         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69359         allocsa/freesa instead of malloc/free.
69360         * lib/mbscasestr.c: Include allocsa.h.
69361         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69362         allocsa/freesa instead of malloc/free.
69363         * modules/c-strstr (Depends-on): Add allocsa.
69364         * modules/c-strcasestr (Depends-on): Likewise.
69365         * modules/strcasestr (Depends-on): Likewise.
69366         * modules/mbsstr (Depends-on): Likewise.
69367         * modules/mbscasestr (Depends-on): Likewise.
69368
69369 2007-02-11  Bruno Haible  <bruno@clisp.org>
69370
69371         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69372
69373         * modules/mbsspn-tests: New file.
69374         * tests/test-mbsspn.sh: New file.
69375         * tests/test-mbsspn.c: New file.
69376
69377 2007-02-11  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69380
69381         * modules/mbspbrk-tests: New file.
69382         * tests/test-mbspbrk.sh: New file.
69383         * tests/test-mbspbrk.c: New file.
69384
69385 2007-02-11  Bruno Haible  <bruno@clisp.org>
69386
69387         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69388         unneeded cast.
69389
69390         * modules/mbscspn-tests: New file.
69391         * tests/test-mbscspn.sh: New file.
69392         * tests/test-mbscspn.c: New file.
69393
69394 2007-02-11  Bruno Haible  <bruno@clisp.org>
69395
69396         * modules/mbscasecmp-tests: New file.
69397         * tests/test-mbscasecmp.sh: New file.
69398         * tests/test-mbscasecmp.c: New file.
69399
69400 2007-02-11  Bruno Haible  <bruno@clisp.org>
69401
69402         Ensure O(n) worst-case complexity of mbscasestr.
69403         * lib/mbscasestr.c: Include stdbool.h.
69404         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69405         functions.
69406         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69407         the bookkeeping indicates that it's worth it.
69408         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69409
69410         * modules/mbscasestr-tests: New file.
69411         * tests/test-mbscasestr1.c: New file.
69412         * tests/test-mbscasestr2.sh: New file.
69413         * tests/test-mbscasestr2.c: New file.
69414         * tests/test-mbscasestr3.sh: New file.
69415         * tests/test-mbscasestr3.c: New file.
69416         * tests/test-mbscasestr4.sh: New file.
69417         * tests/test-mbscasestr4.c: New file.
69418         * m4/locale-tr.m4: New file.
69419
69420 2007-02-11  Bruno Haible  <bruno@clisp.org>
69421
69422         Ensure O(n) worst-case complexity of mbsstr.
69423         * lib/mbsstr.c: Include stdbool.h.
69424         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69425         functions.
69426         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69427         bookkeeping indicates that it's worth it.
69428         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69429
69430         * modules/mbsstr-tests: New file.
69431         * tests/test-mbsstr1.c: New file.
69432         * tests/test-mbsstr2.sh: New file.
69433         * tests/test-mbsstr2.c: New file.
69434         * tests/test-mbsstr3.sh: New file.
69435         * tests/test-mbsstr3.c: New file.
69436         * m4/locale-fr.m4: New file.
69437
69438 2007-02-11  Bruno Haible  <bruno@clisp.org>
69439
69440         * lib/mbsrchr.c (mbsrchr): Fix bug.
69441
69442         * modules/mbsrchr-tests: New file.
69443         * tests/test-mbsrchr.sh: New file.
69444         * tests/test-mbsrchr.c: New file.
69445
69446 2007-02-11  Bruno Haible  <bruno@clisp.org>
69447
69448         * lib/mbschr.c (mbschr): Fix bug.
69449
69450         * modules/mbschr-tests: New file.
69451         * tests/test-mbschr.sh: New file.
69452         * tests/test-mbschr.c: New file.
69453         * m4/locale-zh.m4: New file.
69454
69455 2007-02-11  Bruno Haible  <bruno@clisp.org>
69456
69457         Support for copying multibyte string iterators.
69458         * lib/mbiter.h: Include <string.h>.
69459         (mbiter_multi_copy): New function.
69460         (mbi_copy): New macro.
69461         * lib/mbuiter.h: Include <string.h>.
69462         (mbuiter_multi_copy): New function.
69463         (mbui_copy): New macro.
69464
69465 2007-02-11  Bruno Haible  <bruno@clisp.org>
69466
69467         New module mbslen.
69468         * modules/mbslen: New file.
69469         * lib/mbslen.c: New file.
69470         * lib/string_.h (mbslen): New declaration.
69471         * m4/mbslen.m4: New file.
69472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69473         GNULIB_MBSLEN.
69474         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69475         * MODULES.html.sh (Internationalization functions): Add mbslen.
69476
69477 2007-02-11  Bruno Haible  <bruno@clisp.org>
69478
69479         Ensure O(n) worst-case complexity of strcasestr substitute.
69480         * lib/strcasestr.c: Include stdbool.h.
69481         (knuth_morris_pratt): New function.
69482         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69483         bookkeeping indicates that it's worth it.
69484         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69485
69486         * modules/strcasestr-tests: New file.
69487         * tests/test-strcasestr.c: New file.
69488
69489 2007-02-11  Bruno Haible  <bruno@clisp.org>
69490
69491         Ensure O(n) worst-case complexity of c_strcasestr.
69492         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69493         (knuth_morris_pratt): New function.
69494         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69495         the bookkeeping indicates that it's worth it.
69496         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69497
69498         * modules/c-strcasestr-tests: New file.
69499         * tests/test-c-strcasestr.c: New file.
69500
69501 2007-02-11  Bruno Haible  <bruno@clisp.org>
69502
69503         Ensure O(n) worst-case complexity of c_strstr.
69504         * lib/c-strstr.c: Include stdbool.h, string.h.
69505         (knuth_morris_pratt): New function.
69506         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69507         bookkeeping indicates that it's worth it.
69508         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69509
69510         * lib/c-strstr.c: Complete rewrite for maintainability.
69511
69512         * modules/c-strstr-tests: New file.
69513         * tests/test-c-strstr.c: New file.
69514
69515 2007-02-11  Bruno Haible  <bruno@clisp.org>
69516
69517         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69518         5.2.1 and earlier, whereby \055 was treated just like the range
69519         delimiter '-'.
69520         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69521
69522 2007-02-08  Bruno Haible  <bruno@clisp.org>
69523
69524         * modules/regex (Depends-on): Add stdbool.
69525         Reported by Dalibor Topic <robilad@kaffe.org>.
69526
69527 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69528
69529         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69530         Prefer returning from main to exiting from it.
69531         Remove unnecessary parens after sizeof.
69532
69533 2007-02-05  Bruno Haible  <bruno@clisp.org>
69534
69535         New module mbssep.
69536         * modules/mbssep: New file.
69537         * lib/mbssep.c: New file.
69538         * lib/string_.h (strsep): Add a conditional link warning.
69539         (mbssep): New declaration.
69540         * m4/mbssep.m4: New file.
69541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69542         GNULIB_MBSSEP.
69543         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69544         * MODULES.html.sh (Internationalization functions): Add mbssep.
69545
69546 2007-02-05  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69549         Optimize search in case of 1 delimiter.
69550
69551 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69552
69553         * lib/acl.h: Include sys/types.h before sys/acl.h.
69554
69555 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69556
69557         Merge upstream fix for glibc bugzilla #3957:
69558
69559         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69560
69561         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69562         bit for RE_HAT_LISTS_NOT_NEWLINE.
69563         (build_charclass_op): Remove bogus comment.
69564
69565 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69566
69567         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69568
69569 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69572         * lib/memmem.c [!defined _LIBC]: Include config.h.
69573
69574 2007-02-04  Bruno Haible  <bruno@clisp.org>
69575
69576         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69577         warning message.
69578
69579 2007-02-04  Bruno Haible  <bruno@clisp.org>
69580
69581         New module mbstok_r.
69582         * modules/mbstok_r: New file.
69583         * lib/mbstok_r.c: New file.
69584         * lib/string_.h (strtok_r): Change argument names to match the
69585         comments. Add a conditional link warning.
69586         (mbstok_r): New declaration.
69587         * m4/mbstok_r.m4: New file.
69588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69589         GNULIB_MBSTOK_R.
69590         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69591         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69592
69593 2007-02-04  Bruno Haible  <bruno@clisp.org>
69594
69595         New module mbsspn.
69596         * modules/mbsspn: New file.
69597         * lib/mbsspn.c: New file.
69598         * lib/string_.h (strspn): Add a conditional link warning.
69599         (mbsspn): New declaration.
69600         * m4/mbsspn.m4: New file.
69601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69602         GNULIB_MBSSPN.
69603         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69604         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69605
69606 2007-02-04  Bruno Haible  <bruno@clisp.org>
69607
69608         New module mbspbrk.
69609         * modules/mbspbrk: New file.
69610         * lib/mbspbrk.c: New file.
69611         * lib/string_.h (strpbrk): Add a conditional link warning.
69612         (mbspbrk): New declaration.
69613         * m4/mbspbrk.m4: New file.
69614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69615         GNULIB_MBSPBRK.
69616         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69617         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69618
69619 2007-02-04  Bruno Haible  <bruno@clisp.org>
69620
69621         New module mbscspn.
69622         * modules/mbscspn: New file.
69623         * lib/mbscspn.c: New file.
69624         * lib/string_.h (strcspn): Add a conditional link warning.
69625         (mbscspn): New declaration.
69626         * m4/mbscspn.m4: New file.
69627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69628         GNULIB_MBSCSPN.
69629         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69630         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69631
69632 2007-02-04  Bruno Haible  <bruno@clisp.org>
69633
69634         New module mbscasestr, reduced goal of strcasestr.
69635         * modules/mbscasestr: New file.
69636         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69637         (mbscasestr): Renamed from strcasestr.
69638         * lib/strcasestr.c: Don't include mbuiter.h.
69639         (strcasestr): Remove support for multibyte locales.
69640         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69641         Change the conditional link warning.
69642         (mbscasestr): New declaration.
69643         * m4/mbscasestr.m4: New file.
69644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69645         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69646         REPLACE_STRCASESTR.
69647         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69649         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69650         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69651         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69652         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69653         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69654         (Depends-on): Remove mbuiter.
69655         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69656
69657 2007-02-04  Bruno Haible  <bruno@clisp.org>
69658
69659         Simplify handling of strncasecmp.
69660         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69661         the conditional link warning.
69662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69663         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69665         * modules/strcase (configure.ac): Don't invoke
69666         gl_STRING_MODULE_INDICATOR.
69667         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69668
69669 2007-02-04  Bruno Haible  <bruno@clisp.org>
69670
69671         New module mbscasecmp, reduced goal of strcasecmp.
69672         * modules/mbscasecmp: New file.
69673         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69674         (mbscasecmp): Renamed from strcasecmp.
69675         * lib/strcasecmp.c: Don't include mbuiter.h.
69676         (strcasecmp): Remove support for multibyte locales.
69677         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69678         Change the conditional link warning.
69679         (mbscasecmp): New declaration.
69680         * m4/mbscasecmp.m4: New file.
69681         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69682         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69683         REPLACE_STRCASECMP.
69684         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69686         GNULIB_MBSCASECMP.
69687         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69688         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69689         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69690         (Depends-on): Remove mbuiter.
69691         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69692
69693 2007-02-04  Bruno Haible  <bruno@clisp.org>
69694
69695         New module mbsstr. Remove module strstr.
69696         * modules/mbsstr: New file.
69697         * modules/strstr: Remove file.
69698         * lib/mbsstr.c: Renamed from lib/strstr.c.
69699         (mbsstr): Renamed from strstr.
69700         * lib/string_.h (strstr): Remove declaration. Change the conditional
69701         link warning.
69702         (mbsstr): New declaration.
69703         * m4/mbsstr.m4: New file.
69704         * m4/strstr.m4: Remove file.
69705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69706         REPLACE_STRSTR.
69707         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69708         Don't initialize GNULIB_STRSTR.
69709         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69710         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69711         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69712         (Support for systems lacking ANSI C 89): Remove strstr.
69713
69714 2007-02-04  Bruno Haible  <bruno@clisp.org>
69715
69716         New module mbsrchr.
69717         * modules/mbsrchr: New file.
69718         * lib/mbsrchr.c: New file.
69719         * lib/string_.h (strrchr): Add a conditional link warning.
69720         (mbsrchr): New declaration.
69721         * m4/mbsrchr.m4: New file.
69722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69723         GNULIB_MBSRCHR.
69724         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69725         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69726
69727 2007-02-04  Bruno Haible  <bruno@clisp.org>
69728
69729         New module mbschr.
69730         * modules/mbschr: New file.
69731         * lib/mbschr.c: New file.
69732         * lib/string_.h (strchr): Add a conditional link warning.
69733         (mbschr): New declaration.
69734         * m4/mbschr.m4: New file.
69735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69736         GNULIB_MBSCHR.
69737         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69738         * MODULES.html.sh (Internationalization functions): Add mbschr.
69739
69740 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69743
69744         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69745
69746 2007-02-04  Bruno Haible  <bruno@clisp.org>
69747
69748         New module description section 'configure.ac-early'.
69749         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69750         (func_get_autoconf_early_snippet): New function.
69751         (func_import, func_create_testdir): Use it. Remove special cases for
69752         modules 'extensions' and 'lock'.
69753         * modules/extensions (configure.ac-early): Require
69754         gl_USE_SYSTEM_EXTENSIONS.
69755         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69756
69757 2007-02-04  Bruno Haible  <bruno@clisp.org>
69758
69759         Make use of gcj-4.3's -fsource and -ftarget option.
69760         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69761         and if so try the options -fsource and -ftarget.
69762         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69763         source_version, ftarget_option, target_version arguments.
69764         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69765         (is_envjavac_oldgcj_14_14_usable): Renamed from
69766         is_envjavac_gcj_14_14_usable.
69767         (is_envjavac_oldgcj_14_13_usable): Renamed from
69768         is_envjavac_gcj_14_13_usable.
69769         (is_gcj_present): Update.
69770         (is_gcj_43, is_gcj43_usable): New functions.
69771         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69772         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69773         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69774         try the options -fsource and -ftarget.
69775
69776 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69779         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69780         larger value.
69781
69782 2007-02-03  Jim Meyering  <jim@meyering.net>
69783
69784         Give tools a better chance to allocate space for very large buffers.
69785         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69786
69787         Make pwd and readlink work also when run with an unreadable parent dir
69788         on systems with openat support.
69789         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69790         provided getcwd function, even when we have openat support.
69791         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69792
69793 2007-02-02  Bruno Haible  <bruno@clisp.org>
69794
69795         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69796         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69797         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69798         portability problems if one of these functions is only used on specific
69799         platforms.
69800         Reported by Paul Eggert.
69801
69802 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69805         is causing more trouble than it's curing.
69806         * lib/regex_internal.h (__mempcpy): Remove.
69807         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69808         (and make the code a tad smaller to boot).
69809         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69810
69811 2007-02-02  Jim Meyering  <jim@meyering.net>
69812
69813         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69814         section, not in the Makefile.am: one.
69815
69816 2007-02-02  Eric Blake  <ebb9@byu.net>
69817
69818         * lib/strchrnul.c: Always include config.h first.
69819
69820         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69821         gnulib strstr is not necessary here.
69822
69823 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69824
69825         * m4/socklen.m4: Fix typo.
69826
69827 2007-02-02  Eric Blake  <ebb9@byu.net>
69828
69829         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69830         * modules/netinet_in (Makefile.am): Likewise.
69831
69832 2007-02-01  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/string_.h (GL_LINK_WARNING): New macro.
69835         (strcasecmp, strstr, strcasestr): If provided by the system,
69836         conditionally define as a macro that leads to a warning instead of to
69837         an error.
69838         (strncasecmp): Conditionally define as a macro that leads to a warning.
69839
69840 2007-02-01  Karl Berry  <karl@gnu.org>
69841
69842         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69843
69844 2007-02-01  Bruno Haible  <bruno@clisp.org>
69845
69846         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69847         renamings.
69848
69849 2007-02-01  Eric Blake  <ebb9@byu.net>
69850
69851         * modules/regex (Depends-on): Revert dependence on mempcpy.
69852         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69853         module's definition of mempcpy.
69854         Reported by Paul Eggert.
69855
69856 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69859         the symbol XYZ before redefining it.  This fixes a problem with
69860         programs that don't use XYZ, when compiled on systems that define
69861         XYZ to something else.
69862
69863 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69866         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69867         writeable to group or other and (2) is intended to have a special
69868         mode bit that is set or cleared.  In such a case, the directory
69869         should be neither group- nor other-writeable until the special
69870         mode bits are right.
69871
69872 2007-01-31  Eric Blake  <ebb9@byu.net>
69873
69874         * modules/mountlist (Depends-on): Add strstr.
69875
69876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69877         bug.
69878         * modules/string (Makefile.am): Remove redundant replacement.
69879         * modules/regex (Depends-on): Add mempcpy.
69880
69881 2007-01-31  Bruno Haible  <bruno@clisp.org>
69882
69883         New module description field 'Link'.
69884         * gnulib-tool (func_usage): Document --extract-link-directive.
69885         (sed_extract_prog): Recognize 'Link' directive.
69886         (func_get_link_directive): New function.
69887         (func_import): Show summary of link directives.
69888         Handle --extract-link-directive option.
69889         * modules/acl (Link): New section.
69890         * modules/clock-time (Link): New section.
69891         * modules/euidaccess (Link): New section.
69892         * modules/gettext (Link): New section.
69893         * modules/iconv (Link): New section.
69894         * modules/lock (Link): New section.
69895         * modules/nanosleep (Link): New section.
69896         * modules/readline (Link): New section.
69897
69898 2007-01-27  Bruno Haible  <bruno@clisp.org>
69899
69900         Enforce the use of gnulib modules for unportable <string.h> functions.
69901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69902         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69903         (gl_HEADER_STRING_H_BODY): Require it.
69904         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69905         the symbol XYZ to one that gives a link error.
69906         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69907         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69908         * modules/mempcpy (configure.ac): Likewise.
69909         * modules/memrchr (configure.ac): Likewise.
69910         * modules/stpcpy (configure.ac): Likewise.
69911         * modules/stpncpy (configure.ac): Likewise.
69912         * modules/strcase (configure.ac): Likewise.
69913         * modules/strcasestr (configure.ac): Likewise.
69914         * modules/strchrnul (configure.ac): Likewise.
69915         * modules/strdup (configure.ac): Likewise.
69916         * modules/strndup (configure.ac): Likewise.
69917         * modules/strnlen (configure.ac): Likewise.
69918         * modules/strpbrk (configure.ac): Likewise.
69919         * modules/strsep (configure.ac): Likewise.
69920         * modules/strstr (configure.ac): Likewise.
69921         * modules/strtok_r (configure.ac): Likewise.
69922
69923 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69924
69925         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69926
69927 2007-01-30  Jim Meyering  <jim@meyering.net>
69928
69929         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69930
69931 2007-01-29  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69934         * lib/execute.c: Likewise.
69935         * lib/pipe.c: Likewise.
69936         * lib/printf-args.h: Likewise.
69937         * lib/printf-args.c: Likewise.
69938         * lib/printf-parse.c: Likewise.
69939         * lib/vasnprintf.c: Likewise.
69940
69941 2007-01-29  Eric Blake  <ebb9@byu.net>
69942
69943         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69944         declaration.
69945
69946 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * lib/strptime.h (strptime): Use 'restrict' for args where
69949         POSIX requires this.
69950         * lib/strptime.c (strptime): Likewise.
69951         Change license notice from LGPL to GPL, since gnulib-tool will
69952         change this as needed.
69953         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69954         defined.
69955         Include "strptime.h" first, to check interface.
69956         Do not #undef _LIBC and _NL_CURRENT.
69957         Do not include <stdlib.h>; no longer needed.
69958         Include "time_r.h" and declare ptime_locale_status
69959         only if _LIBC is not defined.
69960         (__P): Remove unused macro.
69961         (match_string): Bring back glibc version, but use it only if _LIBC
69962         is defined.
69963         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69964         Remove unnecessary assertion and abort() call.
69965         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69966         * m4/strptime.m4: Fix serial number comment.
69967         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69968         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69969         (Depends-on): Add time_r.
69970
69971 2007-01-29  Bruno Haible  <bruno@clisp.org>
69972
69973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69974         strptime.
69975         * modules/strptime (Depends-on): Add stdbool.
69976         * lib/strptime.h: Include <time.h> always. Add comments.
69977
69978 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69979
69980         * modules/strptime: New file.
69981         * lib/strptime.h: New file.
69982         * lib/strptime.c: New file.
69983         * m4/strptime.m4: New file.
69984
69985 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         * MODULES.html.sh: New module mpsort.
69988         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69989
69990         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69991         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69993         All uses changed.
69994         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69995         All uses changed.
69996         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69997         to _Restrict_.
69998         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69999         the parameter matches the prototype.
70000
70001 2007-01-28  Jim Meyering  <jim@meyering.net>
70002
70003         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70004         sys/time.h here, reverting that part of the previous patch:
70005         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70006
70007 2007-01-28  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70010         value of $(SYS_TIME_H).
70011         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70012         remove it conditionally, too. [added by Jim Meyering]
70013         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70015         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70016         GETTIMEOFDAY_REPLACEMENT to 1.
70017
70018 2007-01-28  Bruno Haible  <bruno@clisp.org>
70019
70020         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70021         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70023         Set UNISTD_H instead of UNISTD_H2.
70024         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70025
70026 2007-01-28  Bruno Haible  <bruno@clisp.org>
70027
70028         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70029         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70030
70031 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70032
70033         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70034         (func_create_testdir): Ensure C locale for `grep' and `tr'
70035         character ranges.
70036         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70037         ACLOCAL_AMFLAGS parsing state machine.
70038
70039 2007-01-27  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/unistr/base: Update.
70042
70043 2007-01-27  Bruno Haible  <bruno@clisp.org>
70044
70045         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70046         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70047         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70048         modules/unistr/u32-mbtouc.
70049         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70050         * lib/unistr.h: Update.
70051         * lib/linebreak.c: Update.
70052         * modules/unistr/u32-mbtouc: Renamed from
70053         modules/unistr/u32-mbtouc-safe.
70054         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70055         * lib/unistr.h: Update.
70056         * lib/unistr/u32-to-u8.c: Update.
70057         * lib/unistr/u32-to-u16.c: Update.
70058
70059 2007-01-27  Bruno Haible  <bruno@clisp.org>
70060
70061         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70062         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70063         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70064         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70065         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70066         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70067         modules/unistr/u16-mbtouc.
70068         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70069         * lib/unistr.h: Update.
70070         * lib/linebreak.c: Update.
70071         * modules/linebreak: Update.
70072         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70073         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70074         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70075         * modules/unistr/u16-mbtouc: Renamed from
70076         modules/unistr/u16-mbtouc-safe.
70077         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70078         * lib/unistr.h: Update.
70079         * lib/unistr/u16-to-u8.c: Update.
70080         * modules/unistr/u16-to-u8: Update.
70081         * lib/unistr/u16-to-u32.c: Update.
70082         * modules/unistr/u16-to-u32: Update.
70083
70084 2007-01-27  Bruno Haible  <bruno@clisp.org>
70085
70086         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70087         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70088         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70089         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70090         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70091         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70092         modules/unistr/u8-mbtouc.
70093         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70094         * lib/unistr.h: Update.
70095         * lib/striconveh.c: Update.
70096         * modules/striconveh: Update.
70097         * lib/linebreak.c: Update.
70098         * modules/linebreak: Update.
70099         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70100         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70101         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70102         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70103         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70104         * lib/unistr.h: Update.
70105         * lib/striconveh.c: Update.
70106         * modules/striconveh: Update.
70107         * lib/unistr/u8-to-u16.c: Update.
70108         * modules/unistr/u8-to-u16: Update.
70109         * lib/unistr/u8-to-u32.c: Update.
70110         * modules/unistr/u8-to-u32: Update.
70111
70112 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70113
70114         Sync from Libtool.
70115         * lib/argz.c: Do not include strings.h nor memory.h, include
70116         string.h unconditionally.  Patch by Simon Josefsson.
70117
70118 2007-01-27  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70121         from gl_HEADER_STRING_H_BODY.
70122         (gl_HEADER_STRING_H_BODY): Require it.
70123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70125         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70126         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70128         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70130         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70131         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70132         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70133         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70134         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70135         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70138
70139 2007-01-27  Bruno Haible  <bruno@clisp.org>
70140
70141         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70142         check_PROGRAMS into noinst_PROGRAMS.
70143         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70144         check_PROGRAMS in this case.
70145         (func_import): Set for_test to false.
70146         (func_create_testdir): Set for_test to true.
70147
70148 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70149             Bruno Haible  <bruno@clisp.org>
70150
70151         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70152         (Depends-on): Add string.
70153         (Includes): Use <string.h> instead of strcasestr.h.
70154         * modules/string (Makefile.am): Also substitute the value of
70155         REPLACE_STRCASESTR.
70156         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70157         assume strcasestr is declared in <string.h> not <strings.h>. Also
70158         set REPLACE_STRCASESTR.
70159         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70160         REPLACE_STRCASESTR.
70161         * lib/strcasestr.h: Remove file.
70162         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70163         * lib/string_.h (strcasestr): New declaration.
70164
70165 2007-01-27  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/string_.h: Use 'extern'.
70168
70169 2007-01-27  Jim Meyering  <jim@meyering.net>
70170
70171         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70172         of set-but-not-used local, "q".
70173
70174         * lib/mempcpy.c: Include <config.h> before <string.h>.
70175         This fixes a compilation error on HP-UX, due to the system's
70176         "restrict"-using mempcpy prototype.
70177
70178 2007-01-26  Bruno Haible  <bruno@clisp.org>
70179
70180         Small optimization.
70181         * lib/javacomp.c: Include c-strstr.h.
70182          (is_envjavac_gcj): Use c_strstr instead of strstr.
70183         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70184
70185 2007-01-26  Bruno Haible  <bruno@clisp.org>
70186
70187         * MODULES.html.sh (Unicode string functions): Add the new modules.
70188
70189         * modules/uniconv/u32-strconv-to-locale: New file.
70190         * lib/uniconv/u32-strconv-to-locale.c: New file.
70191
70192         * modules/uniconv/u16-strconv-to-locale: New file.
70193         * lib/uniconv/u16-strconv-to-locale.c: New file.
70194
70195         * modules/uniconv/u8-strconv-to-locale: New file.
70196         * lib/uniconv/u8-strconv-to-locale.c: New file.
70197
70198         * modules/uniconv/u32-strconv-from-locale: New file.
70199         * lib/uniconv/u32-strconv-from-locale.c: New file.
70200
70201         * modules/uniconv/u16-strconv-from-locale: New file.
70202         * lib/uniconv/u16-strconv-from-locale.c: New file.
70203
70204         * modules/uniconv/u8-strconv-from-locale: New file.
70205         * lib/uniconv/u8-strconv-from-locale.c: New file.
70206
70207         * modules/uniconv/u32-strconv-to-enc: New file.
70208         * lib/uniconv/u32-strconv-to-enc.c: New file.
70209         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70210         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70211
70212         * modules/uniconv/u16-strconv-to-enc: New file.
70213         * lib/uniconv/u16-strconv-to-enc.c: New file.
70214         * lib/uniconv/u-strconv-to-enc.h: New file.
70215         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70216         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70217
70218         * modules/uniconv/u8-strconv-to-enc: New file.
70219         * lib/uniconv/u8-strconv-to-enc.c: New file.
70220         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70221         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70222
70223         * modules/uniconv/u32-strconv-from-enc: New file.
70224         * lib/uniconv/u32-strconv-from-enc.c: New file.
70225         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70226         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70227
70228         * modules/uniconv/u16-strconv-from-enc: New file.
70229         * lib/uniconv/u16-strconv-from-enc.c: New file.
70230         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70231         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70232
70233         * modules/uniconv/u8-strconv-from-enc: New file.
70234         * lib/uniconv/u8-strconv-from-enc.c: New file.
70235         * lib/uniconv/u-strconv-from-enc.h: New file.
70236         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70237         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70238
70239         * modules/uniconv/u32-conv-from-enc: New file.
70240         * lib/uniconv/u32-conv-from-enc.c: New file.
70241         * modules/uniconv/u32-conv-from-enc-tests: New file.
70242         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70243
70244         * modules/uniconv/u16-conv-from-enc: New file.
70245         * lib/uniconv/u16-conv-from-enc.c: New file.
70246         * lib/uniconv/u-conv-from-enc.h: New file.
70247         * modules/uniconv/u16-conv-from-enc-tests: New file.
70248         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70249
70250         * modules/uniconv/u8-conv-from-enc: New file.
70251         * lib/uniconv/u8-conv-from-enc.c: New file.
70252         * modules/uniconv/u8-conv-from-enc-tests: New file.
70253         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70254
70255         * modules/uniconv/base: New file.
70256         * lib/uniconv.h: New file.
70257
70258 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         * doc/gnulib-tool.texi (Initial import): Update to match current
70261         behavior with strdup module.
70262         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70263         * lib/memmem.h: Remove; all uses removed.  This is now done
70264         by <string.h>.
70265         * lib/mempcpy.h: Likewise.
70266         * lib/memrchr.h: Likewise.
70267         * lib/stpcpy.h: Likewise.
70268         * lib/stpncpy.h: Likewise.
70269         * lib/strcase.h: Likewise.
70270         * lib/strchrnul.h: Likewise.
70271         * lib/strdup.h: Likewise.
70272         * lib/strndup.h: Likewise.
70273         * lib/strnlen.h: Likewise.
70274         * lib/strpbrk.h: Likewise.
70275         * lib/strsep.h: Likewise.
70276         * lib/strstr.h: Likewise.
70277         * lib/strtok_r.h: Likewise.
70278         * lib/string_.h: New file.
70279         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70280         Rely on <string.h> instead.
70281         * lib/canon-host.c: Likewise.
70282         * lib/chdir-long.c: Likewise.
70283         * lib/concatpath.c: Likewise.
70284         * lib/exclude.c: Likewise.
70285         * lib/fchdir.c: Likewise.
70286         * lib/getaddrinfo.c: Likewise.
70287         * lib/getcwd.c: Likewise.
70288         * lib/getsubopt.c: Likewise.
70289         * lib/glob.c: Likewise.
70290         * lib/hard-locale.c: Likewise.
70291         * lib/iconvme.c: Likewise.
70292         * lib/javacomp.c: Likewise.
70293         * lib/mempcpy.c: Likewise.
70294         * lib/memrchr.c: Likewise.
70295         * lib/regex_internal.h: Likewise.
70296         * lib/stpncpy.c: Likewise.
70297         * lib/strcasecmp.c: Likewise.
70298         * lib/strchrnul.c: Likewise.
70299         * lib/strdup.c: Likewise.
70300         * lib/striconv.c: Likewise.
70301         * lib/striconveh.c: Likewise.
70302         * lib/striconveha.c: Likewise.
70303         * lib/strncasecmp.c: Likewise.
70304         * lib/strndup.c: Likewise.
70305         * lib/strnlen.c: Likewise.
70306         * lib/strsep.c: Likewise.
70307         * lib/strstr.c: Likewise.
70308         * lib/strtok_r.c: Likewise.
70309         * lib/userspec.c: Likewise.
70310         * lib/w32spawn.h: Likewise.
70311         * lib/xstrndup.c: Likewise.
70312         * lib/mountlist.c (strstr): Remove decl.
70313         * m4/string_h.m4: New file.
70314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70315         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70316         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70317         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70318         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70319         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70320         Set REPLACE_STRCASECMP if necessary.
70321         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70322         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70323         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70324         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70325         HAVE_DECL_STRDUP if necessary.
70326         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70327         since gl_FUNC_STRNDUP does that now.
70328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70329         Check for decl here...
70330         (gl_PREREQ_STRNLEN): ... not here.
70331         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70332         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70333         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70334         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70335         necessary.
70336         * modules/string: New file.
70337         * modules/memmem (Files): Remove special-purpose include file.
70338         (Depends-on): Add string.
70339         (Include): Include <string.h>, not the removed file.
70340         * modules/mempcpy: Likewise.
70341         * modules/memrchr: Likewise.
70342         * modules/stpcpy: Likewise.
70343         * modules/stpncpy: Likewise.
70344         * modules/strcase: Likewise.
70345         * modules/strchrnul: Likewise.
70346         * modules/strdup: Likewise.
70347         * modules/strndup: Likewise.
70348         * modules/strnlen: Likewise.
70349         * modules/strpbrk: Likewise.
70350         * modules/strsep: Likewise.
70351         * modules/strstr: Likewise.
70352         * modules/strtok_r: Likewise.
70353         * tests/test-dirname.c: Don't include "strdup.h", since
70354         <string.h> now suffices.
70355         * tests/test-memmem.c: Don't include "memmem.h", since
70356         <string.h> now suffices.
70357
70358 2007-01-25  Bruno Haible  <bruno@clisp.org>
70359
70360         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70361         *resultp is 0.
70362
70363         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70364         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70365         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70366         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70367
70368         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70369         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70370         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70371         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70372         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70373         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70374
70375 2007-01-24  Bruno Haible  <bruno@clisp.org>
70376
70377         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70379         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70380         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70381         gl_FUNC_FTS_CORE.
70382         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70383         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70385         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70386         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70387         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70388         gl_FUNC_FCHOWNAT.
70389         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70390         gl_FUNC_STRFTIME.
70391         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70392         Reported by Ralf Wildenhues.
70393
70394 2007-01-24  Bruno Haible  <bruno@clisp.org>
70395
70396         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70397         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70398         gl_GETADDRINFO.
70399         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70400         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70401         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70402
70403 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70406         Don't use 'exit'; just return from 'main'.
70407         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70408
70409         * lib/fnmatch_.h: Readjust white space and comments to match
70410         glibc, to avoid spurious diffs.
70411
70412 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70415         2004-12-01 change by Jakub Jelinek, since this code won't compile
70416         if !LIBC.  Problem reported by Bob Proulx.
70417
70418 2007-01-23  Bruno Haible  <bruno@clisp.org>
70419
70420         * lib/striconveh.c: Include c-strcaseeq.h.
70421         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70422         * modules/striconveh (Depends-on): Add c-strcaseeq.
70423
70424 2007-01-23  Bruno Haible  <bruno@clisp.org>
70425
70426         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70427
70428         * modules/c-strcaseeq: New file.
70429         * lib/c-strcaseeq.h: New file.
70430
70431         * modules/streq: New file.
70432         * lib/streq.h: New file.
70433
70434 2007-01-23  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/striconveha-tests: New file.
70437         * tests/test-striconveha.c: New file.
70438
70439         * lib/striconveha.h: Include <stdbool.h>.
70440         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70441         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70442         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70443         (mem_iconveha): New function.
70444         (str_iconveha_notranslit): Renamed from str_iconveha.
70445         (str_iconveha): New function.
70446         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70447         c-strcase.
70448
70449 2007-01-23  Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70452         encodings without forgiving before trying any encoding with handler.
70453         (str_iconveha): Try all encodings without forgiving before trying any
70454         encoding with handler.
70455
70456 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         Import the following changes from libc.
70459
70460         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70461
70462         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70463
70464         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70465
70466         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70467         normal_bracket label.
70468
70469         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70470
70471         [BZ #361]
70472         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70473         to normal_bracket after fetching the next character.
70474
70475 2007-01-22  Bruno Haible  <bruno@clisp.org>
70476
70477         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70478         argument.
70479         * lib/striconveh.c (iconv_carefully_1): New function.
70480         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70481         argument.
70482         (str_cd_iconveh): Update.
70483         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70484         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70485         * tests/test-striconveh.c (MAGIC): New macro.
70486         (new_offsets): New function.
70487         (main): Test call with and without offsets.
70488
70489 2007-01-22  Bruno Haible  <bruno@clisp.org>
70490
70491         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70492         * modules/sys_select (Makefile.am): Likewise.
70493         * modules/sys_socket (Makefile.am): Likewise.
70494         * modules/sys_time (Makefile.am): Likewise.
70495
70496 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * modules/gettimeofday (License): Change from GPL to LGPL, since
70499         gettimeofday is a library function.
70500
70501 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70502
70503         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70504
70505 2007-01-21  Bruno Haible  <bruno@clisp.org>
70506
70507         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70508
70509 2007-01-21  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/striconveha: New file.
70512         * lib/striconveha.h: New file.
70513         * lib/striconveha.c: New file.
70514         * MODULES.html.sh (Internationalization functions): Add striconveha.
70515         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70516         string.
70517         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70518
70519 2007-01-21  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70522         * lib/striconveh.c (str_iconveh): Likewise.
70523
70524 2007-01-21  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/striconveh.h (mem_iconveh): New declaration.
70527         * lib/striconveh.c (mem_iconveh): New function.
70528         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70529
70530 2007-01-21  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70533
70534         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70535         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70536         original result buffer.
70537         (str_cd_iconveh): Update.
70538         * tests/test-striconveh.c (main): Update.
70539
70540         * lib/striconv.h (mem_cd_iconv): Change specification.
70541         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70542         result buffer.
70543         (str_cd_iconv): Update.
70544         * tests/test-striconv.c (main): Update.
70545
70546 2007-01-21  Bruno Haible  <bruno@clisp.org>
70547
70548         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70549
70550 2007-01-20  Jim Meyering  <jim@meyering.net>
70551
70552         * lib/userspec.c (parse_with_separator): If a user or group string
70553         starts with "+", skip the corresponding name-to-ID look-up, since
70554         such a look-up must fail: user and group names may not include "+".
70555
70556 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70559         since we now assume the sys_time module.
70560         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70561         check for sys/time.h; no longer needed.
70562         * modules/poll (Depends-on): Depend on sys_time.
70563
70564 2007-01-18  Bruno Haible  <bruno@clisp.org>
70565
70566         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70567         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70568
70569         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70570         gettimeofday.
70571
70572         * tests/test-gettimeofday.c: Include <time.h>.
70573         (dummy): Remove variable.
70574
70575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70576         gl_HEADER_SYS_TIME_H.
70577         (gl_HEADER_SYS_TIME_H): New macro.
70578
70579         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70580         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70582         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70583         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70585         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70586         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70587         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70588         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70589         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70590
70591         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70592         last change; it caused a compilation error when cross-compiling to
70593         Cygwin.
70594
70595 2007-01-18  Jim Meyering  <jim@meyering.net>
70596
70597         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70598         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70599         than the race-prone "test -d sys || mkdir sys".
70600         (configure.ac): Use AC_PROG_MKDIR_P.
70601         * modules/sys_select: Likewise.
70602         * modules/sys_socket: Likewise.
70603         * modules/sys_time: Likewise.
70604
70605 2007-01-18  Eric Blake  <ebb9@byu.net>
70606
70607         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70608         replace gettimeofday.
70609         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70610         name, to avoid infinite recursion.
70611
70612 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70615         module sys_time.
70616         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70617         assume timespec.h defines struct timeval.
70618         * lib/settime.c: Likewise.
70619         * lib/utimens.c: Likewise.
70620         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70621         since we now assume the gettimeofday module.
70622         * lib/tempname.c (__gen_tempname): Likewise.
70623         * lib/gettimeofday.h: Remove.
70624         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70625         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70626         Include <time.h>, for 'time()'.
70627         (localtime_buffer_addr): Also use this workaround if
70628         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70629         to simplify the uses.  All uses changed.
70630         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70631         that #undef is inside {}, and 'const' follows type name consistently.
70632         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70633         (gettimeofday): Do not use the maximum possible value for
70634         tv->tv_usec, since that might break usages other than ls.c.
70635         Instead, we'll leave ls.c alone.  This undoes today's patch
70636         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70637         we've never observed the problem but might as well keep the
70638         canary.
70639         * lib/nanosleep.c: Include timespec.h first, for interface check.
70640         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70641         now assume the sys_time module.
70642         * lib/tempname.c: Likewise.
70643         * lib/timespec.h: Likewise.
70644         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70645         needed.
70646         * lib/strftime.c: Likewise.
70647         * lib/timespec.h: Likewise.
70648         * lib/posixtm.c: Include posixtm.h first, for interface check.
70649         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70650         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70651         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70652         * lib/sys_time_.h: New file.
70653         * lib/timespec.h (struct timespec): Use long int, not long.
70654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70655         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70656         Remove obsolescent call to AC_HEADER_TIME.
70657         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70659         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70660         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70661         Likewise.
70662         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70663         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70665         into the sys_time module.  Check for gettimeofday just once.
70666         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70667         for gettimeofday signature to just check the signature.  Merely
70668         compile it, since linking doesn't test signature.  Improve test for
70669         whether gettimeofday.o is actually needed.
70670         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70671         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70672         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70673         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70674         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70675         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70676         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70677         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70678         than worrying about sys/time.h.
70679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70680         Don't bother worrying about TIME_WITH_SYS_TIME.
70681         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70682         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70683         * m4/sys_time_h.m4: New file.
70684         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70685         Don't include sys/time.h.  Return from main rather than exiting.
70686         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70687         all uses changed.
70688         * modules/gethrxtime (Depends-on): Add sys_time.
70689         * modules/gettime (Depends-on): Likewise.
70690         * modules/gettimeofday (Depends-on): Likewise.
70691         * modules/nanosleep (Depends-on): Likewise.
70692         * modules/settime (Depends-on): Likewise.
70693         * modules/tempname (Depends-on): Likewise.
70694         * modules/utimens (Depends-on): Likewise.
70695         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70696         (Include): Change back to <sys/time.h>.
70697         (Maintainer): Add self.
70698         * modules/sys_time: New file.
70699         * modules/tempname (Depends-on): Add gettimeofday.
70700         * tests/test-gettimeofday.c: Include <sys/time.h>
70701         rather than gettimeofday.h.
70702
70703 2007-01-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70706         the license default to GPL.
70707         (func_create_testdir): Don't complain if a module is LGPL and its
70708         tests module depends on GPLed modules.
70709
70710 2007-01-17  Bruno Haible  <bruno@clisp.org>
70711
70712         * lib/gettimeofday.c (gettimeofday): Add code for the case
70713         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70714         maximum possible value for tv->tv_usec, rather than the minimum one.
70715
70716 2005-10-08  Martin Lambers  <marlam@marlam.de>
70717 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70718 2007-01-16  Bruno Haible  <bruno@clisp.org>
70719
70720         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70721         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70722         gl_FUNC_GETTIMEOFDAY.
70723         (Include): Add gettimeofday.h.
70724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70725         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70726         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70727         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70728         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70729         * lib/gettimeofday.h: New file.
70730         * lib/gettimeofday.c: Include <sys/timeb.h>.
70731         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70732         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70733         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70734         fall back on time().
70735
70736         * tests/test-gettimeofday.c: New file.
70737         * modules/gettimeofday-tests: New file.
70738
70739 2007-01-16  Eric Blake  <ebb9@byu.net>
70740
70741         * modules/fnmatch (Depends-on): Depend on wchar.
70742         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70743         * m4/fnmatch.m4: Likewise.
70744         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70745         * m4/mbchar.m4: Likewise.
70746         * modules/mbswidth (Depends-on): Depend on wchar.
70747         * lib/mbswidth.c: Assume <wchar.h>.
70748         * m4/mbswidth.m4: Likewise.
70749         * modules/quotearg (Depends-on): Depend on wchar.
70750         * lib/quotearg.c: Assume <wchar.h>.
70751         * m4/quotearg.m4: Likewise.
70752         * modules/regex (Depends-on): Depend on wchar.
70753         * lib/regex_internal.h: Assume <wchar.h>.
70754         * m4/regex.m4: Likewise.
70755         * modules/stdint (Depends-on): Depend on wchar.
70756         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70757         * m4/stdint.m4: Likewise.
70758         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70759         * modules/strftime (Depends-on): Depend on wchar.
70760         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70761         * modules/strtol (Depends-on): Depend on wchar.
70762         * lib/strtol.c: Assume <wchar.h>.
70763         * modules/wcwidth (Depends-on): Depend on wchar.
70764         * lib/wcwidth.h: Assume <wchar.h>.
70765         * m4/wcwidth.m4: Likewise.
70766
70767 2007-01-16  Bruno Haible  <bruno@clisp.org>
70768
70769         * modules/csharpexec-script: New, created from...
70770         * modules/csharpexec: ... this.
70771
70772 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70773
70774         * modules/javaexec-script: New, created from...
70775         * modules/javaexec: ... this.
70776
70777 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70778
70779         * modules/poll (Dependencies): Add sys_select.
70780
70781 2007-01-15  Jim Meyering  <jim@meyering.net>
70782
70783         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70784         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70785         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70786         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70787
70788 2007-01-15  Bruno Haible  <bruno@clisp.org>
70789
70790         * modules/striconveh: New file.
70791         * lib/striconveh.h: New file.
70792         * lib/striconveh.c: New file.
70793         * MODULES.html.sh (Internationalization functions): Add striconveh.
70794
70795         * modules/striconveh-tests: New file.
70796         * tests/test-striconveh.c: New file.
70797
70798 2007-01-15  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70801         not from GNU libiconv or GNU libc.
70802
70803 2007-01-15  Bruno Haible  <bruno@clisp.org>
70804
70805         * doc/gnulib-intro.texi (Copyright): Explain the different license
70806         terms for module descriptions, autoconf macros, tests, documentation.
70807
70808 2007-01-14  Bruno Haible  <bruno@clisp.org>
70809
70810         * modules/striconv-tests: New file.
70811         * tests/test-striconv.c: New file.
70812
70813 2007-01-14  Bruno Haible  <bruno@clisp.org>
70814
70815         * modules/iconv-tests: New file.
70816         * tests/test-iconv.c: New file.
70817
70818 2007-01-14  Bruno Haible  <bruno@clisp.org>
70819
70820         * gnulib-tool (func_get_license): For test modules, use the license of
70821         the main module.
70822
70823 2007-01-14  Bruno Haible  <bruno@clisp.org>
70824
70825         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70826         if iconv is found to exist.
70827
70828 2007-01-14  Bruno Haible  <bruno@clisp.org>
70829
70830         * modules/c-ctype-tests: New file.
70831         * tests/test-c-ctype.c: New file.
70832
70833 2007-01-14  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/binary-io-tests: New file.
70836         * tests/test-binary-io.sh: New file.
70837         * tests/test-binary-io.c: New file.
70838
70839 2007-01-14  Bruno Haible  <bruno@clisp.org>
70840
70841         * modules/array-oset-tests: New file.
70842         * tests/test-array_oset.c: New file.
70843
70844 2007-01-14  Bruno Haible  <bruno@clisp.org>
70845
70846         * modules/array-list-tests: New file.
70847         * tests/test-array_list.c: New file.
70848
70849 2007-01-14  Bruno Haible  <bruno@clisp.org>
70850
70851         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70852         and make.
70853         Reported by Simon Josefsson in
70854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70855
70856 2007-01-14  Bruno Haible  <bruno@clisp.org>
70857
70858         * modules/allocsa-tests: New file.
70859         * tests/test-allocsa.c: New file.
70860
70861 2007-01-14  Bruno Haible  <bruno@clisp.org>
70862
70863         * modules/fchdir (Depends-on): Add absolute-header.
70864         * modules/unistd (Depends-on): Likewise.
70865
70866 2006-12-30  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/fchdir: New file.
70869         * modules/unistd (Files): Add lib/unistd_.h.
70870         (Makefile.am): Generate unistd.h from unistd_.h.
70871         * lib/fchdir.c: New file.
70872         * lib/dirent_.h: New file.
70873         * lib/unistd_.h: New file.
70874         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70875         * m4/fchdir.m4: New file.
70876         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70877         (gl_HEADER_UNISTD): Invoke it.
70878         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70879         function.
70880         * lib/backupfile.c (opendir, closedir): Undefine.
70881         * lib/chown.c (open, close): Undefine.
70882         * lib/clean-temp.c (open, close): Undefine.
70883         * lib/copy-file.c (open, close): Undefine.
70884         * lib/execute.c (open, close): Undefine.
70885         * lib/fsusage.c (open, close): Undefine.
70886         * lib/gc-gnulib.c (open, close): Undefine.
70887         * lib/getcwd.c (opendir, closedir): Undefine.
70888         * lib/glob.c (opendir, closedir): Undefine.
70889         * lib/javacomp.c (open, close): Undefine.
70890         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70891         * lib/openat-proc.c (open, close): Undefine.
70892         * lib/pagealign_alloc.c (open, close): Undefine.
70893         * lib/pipe.c (open, close): Undefine.
70894         * lib/progreloc.c (open, close): Undefine.
70895         * lib/savedir.c (opendir, closedir): Undefine.
70896         * lib/utime.c (open, close): Undefine.
70897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70898
70899 2007-01-10  Bruno Haible  <bruno@clisp.org>
70900
70901         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70902
70903 2007-01-12  Eric Blake  <ebb9@byu.net>
70904
70905         Provide a robust <wchar.h>.  Further simplifications are now
70906         possible in other modules, but not included here.
70907         * modules/wchar: New module.
70908         * m4/wchar.m4: New file.
70909         * lib/wchar_.h: Likewise.
70910         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70911         of the new module.
70912         * MODULES.html.sh (Extended multibyte and wide character utilities):
70913         New section.
70914
70915 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70918         to a reasonable default for memory allocation.
70919         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70920         file system that reports garbage st_size values for symlinks.
70921         Problem reported by Liyang Hu.
70922
70923 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70924
70925         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70926         Emacs .#* auto-save files).
70927
70928 2007-01-11  Bruno Haible  <bruno@clisp.org>
70929
70930         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70931         directory.
70932
70933 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         Use @...@ consistently in lib/wctype_.h.
70936         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70937         on it being set to 1 or 0.
70938         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70939         go back to AC_SUBSTing it.
70940         * modules/wctype (Makefile.am): Undo previous change.
70941
70942 2007-01-10  Eric Blake  <ebb9@byu.net>
70943
70944         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70945         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70946         * modules/wctype (Makefile.am): Likewise.
70947         Reported by Chris McGuire.
70948
70949 2007-01-10  Jim Meyering  <jim@meyering.net>
70950
70951         fts.c: a small readability/maintainability improvement
70952         * lib/fts.c (fts_read): Make this code slightly more readable and
70953         maintainable by hoisting the "sp->fts_cur = p" assignments to
70954         immediately follow the statements that set P.  Derived from
70955         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70956
70957 2007-01-10  Eric Blake  <ebb9@byu.net>
70958
70959         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70960         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70962         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70963         Reported by Chris McGuire.
70964
70965 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70966
70967         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70968         in sed script.
70969
70970 2007-01-09  Bruno Haible  <bruno@clisp.org>
70971
70972         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70973         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70974         variables.
70975         (func_module): Use them.
70976
70977 2007-01-09  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/unistr/base: New file.
70980         * lib/unistr.h: New file.
70981
70982         * modules/unistr/u8-to-u16: New file.
70983         * lib/unistr/u8-to-u16.c: New file.
70984
70985         * modules/unistr/u8-to-u32: New file.
70986         * lib/unistr/u8-to-u32.c: New file.
70987
70988         * modules/unistr/u16-to-u8: New file.
70989         * lib/unistr/u16-to-u8.c: New file.
70990
70991         * modules/unistr/u16-to-u32: New file.
70992         * lib/unistr/u16-to-u32.c: New file.
70993
70994         * modules/unistr/u32-to-u8: New file.
70995         * lib/unistr/u32-to-u8.c: New file.
70996
70997         * modules/unistr/u32-to-u16: New file.
70998         * lib/unistr/u32-to-u16.c: New file.
70999
71000         * modules/unistr/u8-check: New file.
71001         * modules/unistr/u16-check: New file.
71002         * modules/unistr/u32-check: New file.
71003         * lib/unistr/u8-check.c: New file.
71004         * lib/unistr/u16-check.c: New file.
71005         * lib/unistr/u32-check.c: New file.
71006
71007         * modules/unistr/u8-chr: New file.
71008         * modules/unistr/u16-chr: New file.
71009         * modules/unistr/u32-chr: New file.
71010         * lib/unistr/u8-chr.c: New file.
71011         * lib/unistr/u16-chr.c: New file.
71012         * lib/unistr/u32-chr.c: New file.
71013
71014         * modules/unistr/u8-cmp: New file.
71015         * modules/unistr/u16-cmp: New file.
71016         * modules/unistr/u32-cmp: New file.
71017         * lib/unistr/u8-cmp.c: New file.
71018         * lib/unistr/u16-cmp.c: New file.
71019         * lib/unistr/u32-cmp.c: New file.
71020
71021         * modules/unistr/u8-cpy: New file.
71022         * modules/unistr/u16-cpy: New file.
71023         * modules/unistr/u32-cpy: New file.
71024         * lib/unistr/u8-cpy.c: New file.
71025         * lib/unistr/u16-cpy.c: New file.
71026         * lib/unistr/u32-cpy.c: New file.
71027         * lib/unistr/u-cpy.h: New file.
71028
71029         * modules/unistr/u8-cpy-alloc: New file.
71030         * modules/unistr/u16-cpy-alloc: New file.
71031         * modules/unistr/u32-cpy-alloc: New file.
71032         * lib/unistr/u8-cpy-alloc.c: New file.
71033         * lib/unistr/u16-cpy-alloc.c: New file.
71034         * lib/unistr/u32-cpy-alloc.c: New file.
71035         * lib/unistr/u-cpy-alloc.h: New file.
71036
71037         * modules/unistr/u8-endswith: New file.
71038         * modules/unistr/u16-endswith: New file.
71039         * modules/unistr/u32-endswith: New file.
71040         * lib/unistr/u8-endswith.c: New file.
71041         * lib/unistr/u16-endswith.c: New file.
71042         * lib/unistr/u32-endswith.c: New file.
71043         * lib/unistr/u-endswith.h: New file.
71044
71045         * modules/unistr/u8-mblen: New file.
71046         * modules/unistr/u16-mblen: New file.
71047         * modules/unistr/u32-mblen: New file.
71048         * lib/unistr/u8-mblen.c: New file.
71049         * lib/unistr/u16-mblen.c: New file.
71050         * lib/unistr/u32-mblen.c: New file.
71051
71052         * modules/unistr/u8-mbtouc: New file.
71053         * modules/unistr/u16-mbtouc: New file.
71054         * modules/unistr/u32-mbtouc: New file.
71055         * lib/unistr/u8-mbtouc.c: New file.
71056         * lib/unistr/u16-mbtouc.c: New file.
71057         * lib/unistr/u32-mbtouc.c: New file.
71058
71059         * modules/unistr/u8-mbtouc-safe: New file.
71060         * modules/unistr/u16-mbtouc-safe: New file.
71061         * modules/unistr/u32-mbtouc-safe: New file.
71062         * lib/unistr/u8-mbtouc-safe.c: New file.
71063         * lib/unistr/u16-mbtouc-safe.c: New file.
71064         * lib/unistr/u32-mbtouc-safe.c: New file.
71065
71066         * modules/unistr/u8-move: New file.
71067         * modules/unistr/u16-move: New file.
71068         * modules/unistr/u32-move: New file.
71069         * lib/unistr/u8-move.c: New file.
71070         * lib/unistr/u16-move.c: New file.
71071         * lib/unistr/u32-move.c: New file.
71072         * lib/unistr/u-move.h: New file.
71073
71074         * modules/unistr/u8-next: New file.
71075         * modules/unistr/u16-next: New file.
71076         * modules/unistr/u32-next: New file.
71077         * lib/unistr/u8-next.c: New file.
71078         * lib/unistr/u16-next.c: New file.
71079         * lib/unistr/u32-next.c: New file.
71080
71081         * modules/unistr/u8-prev: New file.
71082         * modules/unistr/u16-prev: New file.
71083         * modules/unistr/u32-prev: New file.
71084         * lib/unistr/u8-prev.c: New file.
71085         * lib/unistr/u16-prev.c: New file.
71086         * lib/unistr/u32-prev.c: New file.
71087
71088         * modules/unistr/u8-set: New file.
71089         * modules/unistr/u16-set: New file.
71090         * modules/unistr/u32-set: New file.
71091         * lib/unistr/u8-set.c: New file.
71092         * lib/unistr/u16-set.c: New file.
71093         * lib/unistr/u32-set.c: New file.
71094         * lib/unistr/u-set.h: New file.
71095
71096         * modules/unistr/u8-startswith: New file.
71097         * modules/unistr/u16-startswith: New file.
71098         * modules/unistr/u32-startswith: New file.
71099         * lib/unistr/u8-startswith.c: New file.
71100         * lib/unistr/u16-startswith.c: New file.
71101         * lib/unistr/u32-startswith.c: New file.
71102         * lib/unistr/u-startswith.h: New file.
71103
71104         * modules/unistr/u8-stpcpy: New file.
71105         * modules/unistr/u16-stpcpy: New file.
71106         * modules/unistr/u32-stpcpy: New file.
71107         * lib/unistr/u8-stpcpy.c: New file.
71108         * lib/unistr/u16-stpcpy.c: New file.
71109         * lib/unistr/u32-stpcpy.c: New file.
71110         * lib/unistr/u-stpcpy.h: New file.
71111
71112         * modules/unistr/u8-stpncpy: New file.
71113         * modules/unistr/u16-stpncpy: New file.
71114         * modules/unistr/u32-stpncpy: New file.
71115         * lib/unistr/u8-stpncpy.c: New file.
71116         * lib/unistr/u16-stpncpy.c: New file.
71117         * lib/unistr/u32-stpncpy.c: New file.
71118         * lib/unistr/u-stpncpy.h: New file.
71119
71120         * modules/unistr/u8-strcat: New file.
71121         * modules/unistr/u16-strcat: New file.
71122         * modules/unistr/u32-strcat: New file.
71123         * lib/unistr/u8-strcat.c: New file.
71124         * lib/unistr/u16-strcat.c: New file.
71125         * lib/unistr/u32-strcat.c: New file.
71126         * lib/unistr/u-strcat.h: New file.
71127
71128         * modules/unistr/u8-strchr: New file.
71129         * modules/unistr/u16-strchr: New file.
71130         * modules/unistr/u32-strchr: New file.
71131         * lib/unistr/u8-strchr.c: New file.
71132         * lib/unistr/u16-strchr.c: New file.
71133         * lib/unistr/u32-strchr.c: New file.
71134
71135         * modules/unistr/u8-strcmp: New file.
71136         * modules/unistr/u16-strcmp: New file.
71137         * modules/unistr/u32-strcmp: New file.
71138         * lib/unistr/u8-strcmp.c: New file.
71139         * lib/unistr/u16-strcmp.c: New file.
71140         * lib/unistr/u32-strcmp.c: New file.
71141
71142         * modules/unistr/u8-strcpy: New file.
71143         * modules/unistr/u16-strcpy: New file.
71144         * modules/unistr/u32-strcpy: New file.
71145         * lib/unistr/u8-strcpy.c: New file.
71146         * lib/unistr/u16-strcpy.c: New file.
71147         * lib/unistr/u32-strcpy.c: New file.
71148         * lib/unistr/u-strcpy.h: New file.
71149
71150         * modules/unistr/u8-strcspn: New file.
71151         * modules/unistr/u16-strcspn: New file.
71152         * modules/unistr/u32-strcspn: New file.
71153         * lib/unistr/u8-strcspn.c: New file.
71154         * lib/unistr/u16-strcspn.c: New file.
71155         * lib/unistr/u32-strcspn.c: New file.
71156         * lib/unistr/u-strcspn.h: New file.
71157
71158         * modules/unistr/u8-strdup: New file.
71159         * modules/unistr/u16-strdup: New file.
71160         * modules/unistr/u32-strdup: New file.
71161         * lib/unistr/u8-strdup.c: New file.
71162         * lib/unistr/u16-strdup.c: New file.
71163         * lib/unistr/u32-strdup.c: New file.
71164         * lib/unistr/u-strdup.h: New file.
71165
71166         * modules/unistr/u8-strlen: New file.
71167         * modules/unistr/u16-strlen: New file.
71168         * modules/unistr/u32-strlen: New file.
71169         * lib/unistr/u8-strlen.c: New file.
71170         * lib/unistr/u16-strlen.c: New file.
71171         * lib/unistr/u32-strlen.c: New file.
71172         * lib/unistr/u-strlen.h: New file.
71173
71174         * modules/unistr/u8-strmblen: New file.
71175         * modules/unistr/u16-strmblen: New file.
71176         * modules/unistr/u32-strmblen: New file.
71177         * lib/unistr/u8-strmblen.c: New file.
71178         * lib/unistr/u16-strmblen.c: New file.
71179         * lib/unistr/u32-strmblen.c: New file.
71180
71181         * modules/unistr/u8-strmbtouc: New file.
71182         * modules/unistr/u16-strmbtouc: New file.
71183         * modules/unistr/u32-strmbtouc: New file.
71184         * lib/unistr/u8-strmbtouc.c: New file.
71185         * lib/unistr/u16-strmbtouc.c: New file.
71186         * lib/unistr/u32-strmbtouc.c: New file.
71187
71188         * modules/unistr/u8-strncat: New file.
71189         * modules/unistr/u16-strncat: New file.
71190         * modules/unistr/u32-strncat: New file.
71191         * lib/unistr/u8-strncat.c: New file.
71192         * lib/unistr/u16-strncat.c: New file.
71193         * lib/unistr/u32-strncat.c: New file.
71194         * lib/unistr/u-strncat.h: New file.
71195
71196         * modules/unistr/u8-strncmp: New file.
71197         * modules/unistr/u16-strncmp: New file.
71198         * modules/unistr/u32-strncmp: New file.
71199         * lib/unistr/u8-strncmp.c: New file.
71200         * lib/unistr/u16-strncmp.c: New file.
71201         * lib/unistr/u32-strncmp.c: New file.
71202
71203         * modules/unistr/u8-strncpy: New file.
71204         * modules/unistr/u16-strncpy: New file.
71205         * modules/unistr/u32-strncpy: New file.
71206         * lib/unistr/u8-strncpy.c: New file.
71207         * lib/unistr/u16-strncpy.c: New file.
71208         * lib/unistr/u32-strncpy.c: New file.
71209         * lib/unistr/u-strncpy.h: New file.
71210
71211         * modules/unistr/u8-strnlen: New file.
71212         * modules/unistr/u16-strnlen: New file.
71213         * modules/unistr/u32-strnlen: New file.
71214         * lib/unistr/u8-strnlen.c: New file.
71215         * lib/unistr/u16-strnlen.c: New file.
71216         * lib/unistr/u32-strnlen.c: New file.
71217         * lib/unistr/u-strnlen.h: New file.
71218
71219         * modules/unistr/u8-strpbrk: New file.
71220         * modules/unistr/u16-strpbrk: New file.
71221         * modules/unistr/u32-strpbrk: New file.
71222         * lib/unistr/u8-strpbrk.c: New file.
71223         * lib/unistr/u16-strpbrk.c: New file.
71224         * lib/unistr/u32-strpbrk.c: New file.
71225         * lib/unistr/u-strpbrk.h: New file.
71226
71227         * modules/unistr/u8-strrchr: New file.
71228         * modules/unistr/u16-strrchr: New file.
71229         * modules/unistr/u32-strrchr: New file.
71230         * lib/unistr/u8-strrchr.c: New file.
71231         * lib/unistr/u16-strrchr.c: New file.
71232         * lib/unistr/u32-strrchr.c: New file.
71233
71234         * modules/unistr/u8-strspn: New file.
71235         * modules/unistr/u16-strspn: New file.
71236         * modules/unistr/u32-strspn: New file.
71237         * lib/unistr/u8-strspn.c: New file.
71238         * lib/unistr/u16-strspn.c: New file.
71239         * lib/unistr/u32-strspn.c: New file.
71240         * lib/unistr/u-strspn.h: New file.
71241
71242         * modules/unistr/u8-strstr: New file.
71243         * modules/unistr/u16-strstr: New file.
71244         * modules/unistr/u32-strstr: New file.
71245         * lib/unistr/u8-strstr.c: New file.
71246         * lib/unistr/u16-strstr.c: New file.
71247         * lib/unistr/u32-strstr.c: New file.
71248         * lib/unistr/u-strstr.h: New file.
71249
71250         * modules/unistr/u8-strtok: New file.
71251         * modules/unistr/u16-strtok: New file.
71252         * modules/unistr/u32-strtok: New file.
71253         * lib/unistr/u8-strtok.c: New file.
71254         * lib/unistr/u16-strtok.c: New file.
71255         * lib/unistr/u32-strtok.c: New file.
71256         * lib/unistr/u-strtok.h: New file.
71257
71258         * modules/unistr/u8-uctomb: New file.
71259         * modules/unistr/u16-uctomb: New file.
71260         * modules/unistr/u32-uctomb: New file.
71261         * lib/unistr/u8-uctomb.c: New file.
71262         * lib/unistr/u16-uctomb.c: New file.
71263         * lib/unistr/u32-uctomb.c: New file.
71264
71265         * MODULES.html.sh (Unicode string functions): Add the new modules.
71266
71267 2007-01-08  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71270         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71271         subdirectories.
71272
71273 2007-01-08  Karl Berry  <karl@gnu.org>
71274
71275         * doc/error.texi: mention that main() fns must set program_name
71276         when progname is used.
71277
71278 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71281         WCTYPE_H is empty, for the benefit of builds from non-distclean
71282         directories.  Problem reported by Eric Blake in
71283         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71284
71285 2007-01-08  Bruno Haible  <bruno@clisp.org>
71286
71287         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71288         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71289         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71290         PROVIDE_CANONICALIZE_FILENAME_MODE.
71291         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71292
71293 2007-01-08  Bruno Haible  <bruno@clisp.org>
71294
71295         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71296         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71297         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71298         * lib/fts.c: Likewise.
71299         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71300
71301 2006-12-25  Bruno Haible  <bruno@clisp.org>
71302
71303         * modules/utf8-ucs4-safe: New file.
71304         * lib/utf8-ucs4-safe.h: New file.
71305         * lib/unistr/utf8-ucs4-safe.c: New file.
71306
71307         * modules/utf16-ucs4-safe: New file.
71308         * lib/utf16-ucs4-safe.h: New file.
71309         * lib/unistr/utf16-ucs4-safe.c: New file.
71310
71311         * MODULES.html.sh (Unicode string functions): Add the new modules.
71312
71313 2007-01-08  Bruno Haible  <bruno@clisp.org>
71314
71315         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71316         (Depends-on): Add unitypes.
71317         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71318         (u8_mbtouc_aux): Move out to separate file.
71319         (u8_mbtouc): Use ucs4_t, uint8_t types.
71320         * lib/unistr/utf8-ucs4.c: New file.
71321
71322         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71323         (Depends-on): Add unitypes.
71324         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71325         (u16_mbtouc_aux): Move out to separate file.
71326         (u16_mbtouc): Use ucs4_t, uint16_t types.
71327         * lib/unistr/utf16-ucs4.c: New file.
71328
71329         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71330         (Depends-on): Add unitypes.
71331         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71332         (u8_uctomb_aux): Move out to separate file.
71333         (u8_uctomb): Use ucs4_t, uint8_t types.
71334         * lib/unistr/ucs4-utf8.c: New file.
71335
71336         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71337         (Depends-on): Add unitypes.
71338         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71339         (u16_uctomb_aux): Move out to separate file.
71340         (u16_uctomb): Use ucs4_t, uint16_t types.
71341         * lib/unistr/ucs4-utf16.c: New file.
71342
71343 2006-12-25  Bruno Haible  <bruno@clisp.org>
71344
71345         * modules/unitypes: New file.
71346         * lib/unitypes.h: New file.
71347         * MODULES.html.sh (func_all_modules): New section "Unicode string
71348         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71349         this section. Add unitypes.
71350
71351 2007-01-08  Bruno Haible  <bruno@clisp.org>
71352
71353         Avoid variable names that conflict with those from libtool.
71354         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71355         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71356         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71357         library_names_spec to acl_library_names_spec, hardcode_* to
71358         acl_hardcode_*.
71359         Reported by Ralf Wildenhues.
71360
71361 2007-01-08  Bruno Haible  <bruno@clisp.org>
71362
71363         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71364         definition.
71365         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71366         definition.
71367         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71368         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71369         definition.
71370         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71371         definition.
71372         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71373         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71374         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71375         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71376         definition.
71377         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71378         definition.
71379         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71380         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71381         GC_USE_<algorithm>.
71382         * lib/gc-libgcrypt.c: Likewise.
71383         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71384         * modules/gc-arctwo (configure.ac): Likewise.
71385         * modules/gc-des (configure.ac): Likewise.
71386         * modules/gc-hmac-md5 (configure.ac): Likewise.
71387         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71388         * modules/gc-md2 (configure.ac): Likewise.
71389         * modules/gc-md4 (configure.ac): Likewise.
71390         * modules/gc-md5 (configure.ac): Likewise.
71391         * modules/gc-random (configure.ac): Likewise.
71392         * modules/gc-rijndael (configure.ac): Likewise.
71393         * modules/gc-sha1 (configure.ac): Likewise.
71394
71395 2007-01-08  Bruno Haible  <bruno@clisp.org>
71396
71397         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71398         macro definition.
71399         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71400         definition.
71401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71402         definition.
71403         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71404         * modules/fcntl-safer (configure.ac): Likewise.
71405         * modules/fopen-safer (configure.ac): Likewise.
71406         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71407         GNULIB_FWRITEERROR macro definition.
71408
71409 2007-01-08  Bruno Haible  <bruno@clisp.org>
71410
71411         * m4/gnulib-common.m4: New file.
71412         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71413         (func_get_filelist): Add m4/gnulib-common.m4.
71414
71415 2007-01-08  Bruno Haible  <bruno@clisp.org>
71416
71417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71418         command.
71419
71420 2007-01-08  Jim Meyering  <jim@meyering.net>
71421
71422         Use a more robust test for a "can't happen" condition.
71423         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71424         narrowed the st_size value.  Presuming the "can't happen" condition
71425         is true, that narrowing could conceivably convert an invalid st_size
71426         value into a valid one.  Instead, use a change based on Matthew
71427         Woehlke's original patch.
71428
71429         Slight readability improvement: use an assert-like macro
71430         in place of literal "abort ()" uses.
71431         * lib/fts.c (fts_assert): Define.
71432         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71433         Use this macro instead of a bare 'abort'.
71434
71435 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71438         simply work around them.
71439         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71440         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71441         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71442         declaring.
71443         Don't bother to define as macros, since the standard doesn't require it.
71444         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71445         longer worry about IRIX 5.3.
71446         (HAVE_WCTYPE_CTMP_BUG): Remove.
71447
71448 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71451         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71452         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71453         Problems reported by Georg Schwarz for IRIX 5.3.
71454
71455         * gnulib-tool (autoconf_minversion): Take the maximum version number
71456         found, not the minimum.  Problem reported by James Youngman.
71457
71458 2007-01-03  Karl Berry  <karl@gnu.org>
71459
71460         * doc/error.texi: new file, explaining interaction with progname.
71461         * doc/gnulib.texi: include it.  Update copyright.
71462
71463 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71464
71465         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71466         AC_CANONICAL_HOST, to improve autobuild outputs.
71467
71468 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71469             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71470
71471         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71472         sockets, server sockets, and other file descriptors.  Count errors
71473         to compute the return value.  Reorder the code a bit to be easier
71474         to follow.  Don't set event bits that were not requested (except
71475         POLLERR and POLLHUP).
71476
71477 2007-01-01  Bruno Haible  <bruno@clisp.org>
71478
71479         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71480
71481 2007-01-03  Jim Meyering  <jim@meyering.net>
71482
71483         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71484
71485 2007-01-02  Bruno Haible  <bruno@clisp.org>
71486
71487         * modules/settime (Include): Require timespec.h.
71488         * modules/nanosleep (Include): Likewise.
71489
71490 2007-01-01  Bruno Haible  <bruno@clisp.org>
71491
71492         * gnulib-tool (func_emit_copyright_notice): Bump year.
71493         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71494
71495 2007-01-01  Bruno Haible  <bruno@clisp.org>
71496
71497         Improve support for OpenBSD.
71498         * build-aux/config.rpath (libname_spec): Export.
71499         (library_names_spec): New variable. Export.
71500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71501         library_names_spec from the config.rpath output. Locate shared library
71502         through the name pattern in library_names_spec.
71503
71504 2007-01-01  Eric Blake  <ebb9@byu.net>
71505
71506         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71507
71508 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71511         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71512         assume the C locale, and avoid an "eval" that could cause trouble.
71513         Problem with SORT reported by Bob Proulx.
71514
71515         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71516         Define.  Trivial patch from Henning Nielsen Lund, originally
71517         sent to bug-grep@gnu.org today.
71518
71519 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71522         struct stat.  Problem reported by Henning Nielsen Lund.
71523         * lib/acl.c: Include acl.h first, to check interface.  Don't
71524         bother to include sys/types.h and sys/stat.h again.
71525
71526 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71527
71528         Import the following change from libc; problem reported by
71529         Sven Verdoolaege.
71530
71531         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71532
71533         [BZ #1373]
71534         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71535
71536 2006-12-28  Jim Meyering  <jim@meyering.net>
71537
71538         * build-aux/announce-gen: Do not assume that the package
71539         builds any of tar.gz, tar.bz2, and .xdelta files.
71540         Suggestion from Simon Josefsson.
71541
71542 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71543
71544         * modules/announce-gen: New file.
71545
71546 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71549         handles its gotchas now.
71550         * lib/mbswidth.c: Likewise.
71551         * lib/wcwidth.h: Likewise.
71552         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71553         and iswcntrl; the wctype module does this stuff now.
71554         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71556         * modules/mbchar (Depends-on): Add wctype.
71557         * modules/mbswidth (Depends-on): Likewise.
71558         * modules/wcwidth (Depends-on): Likewise.
71559
71560 2006-12-27  Eric Blake  <ebb9@byu.net>
71561
71562         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71563         module uses more than what <wctype.h> is required to provide.
71564
71565 2006-12-26  Eric Blake  <ebb9@byu.net>
71566
71567         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71568
71569 2006-12-26  Eric Blake  <ebb9@byu.net>
71570
71571         * modules/absolute-header: New module.
71572         * modules/fcntl (Depends-on): Depend on it.
71573         * modules/inttypes (Depends-on): Likewise.
71574         * modules/stdint (Depends-on): Likewise.
71575         * modules/sys_stat (Depends-on): Likewise.
71576         * modules/wctype (Depends-on): Likewise.
71577         * MODULES.html.sh (Support for building libraries and
71578         executables): Document it.
71579
71580 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71581
71582         * gnulib-tool (SED): Remove, undoing previous change.
71583         The problem was that it broke coreutils on Solaris, because
71584         "sed --posix" leaked into a makefile.
71585         (sed): New alias, if 'alias' and GNU sed.
71586
71587 2006-12-24  Jim Meyering  <jim@meyering.net>
71588
71589         Work around an fchownat bug in glibc-2.4:
71590         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71591         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71592         in spite of the -P option.
71593         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71594         New macros.
71595         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71596         * modules/openat (Files): Add lib/fchownat.c.
71597         * lib/openat.c (fchownat): Don't define here.  Move to...
71598         * lib/fchownat.c: ...this new file.
71599
71600 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         Fix bug reported by Bruno Haible in
71603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71604         where quotearg.c didn't compile on Mac OS X 10.2 because it
71605         lacks <wchar.h> and wint_t.
71606         * lib/wctype_.h (__wctype_wint_t): New type.
71607         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71608         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71609         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71610         Arg is now of type __wctype_wint_t, not wint_t.
71611         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71612         substitute HAVE_WINT_T.
71613         * modules/wctype (Files): Add m4/wint_t.m4.
71614         (wctype.h): Substitute HAVE_WINT_T.
71615
71616 2006-12-23  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71619
71620 2006-12-23  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71623         S_ISLNK.
71624         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71625         mingw.
71626
71627 2006-12-22  Bruno Haible  <bruno@clisp.org>
71628
71629         * lib/copy-file.c: Include acl.h.
71630         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71631         Close the file descriptors only after being done with copy_acl.
71632         * modules/copy-file (Depends-on): Add acl.
71633
71634 2006-12-22  Bruno Haible  <bruno@clisp.org>
71635
71636         * gnulib-tool (SED): New variable.
71637         Use $SED instead of sed everywhere.
71638
71639 2006-12-22  Bruno Haible  <bruno@clisp.org>
71640
71641         * modules/no-c++: New file.
71642         * m4/no-c++.m4: New file.
71643         * MODULES.html.sh (Support for building libraries and executables):
71644         Add no-c++.
71645
71646 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71649         Include <limits.h>, and use its INT_MAX to rewrite the
71650         j loop so that it does not overflow 'int'.  Problem reported by
71651         Ralf Wildenhues in
71652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71653         Play it safe by shifting left by 1 rather than multiplying by 2,
71654         as GCC is less likely to optimize this away when the value
71655         is signed (when it assumes overflow leads to undefined behavior).
71656         Also, don't assume time_t uses two's complement.
71657
71658 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * MODULES.html.sh: New module wctype.
71661         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71662         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71663         <wctype.h>, since the new wctype module should fix this.
71664         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71665         the wctype module should arrange for it.
71666         * lib/regex_internal.h: Likewise.
71667         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71668         since the wctype module should handle this now.
71669         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71670         * modules/fnmatch (Depends-on): Add wctype.
71671         * modules/quotearg (Depends-on): Likewise.
71672         * modules/regex (Depends-on): Likewise.
71673
71674 2006-12-19  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71677         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71678
71679 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71680
71681         * modules/savewd (Depends-on): Fix dependency on fcntl.
71682
71683 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71686         conforms to C99, rather than relying on the user's environment
71687         setting of STDINT_H.
71688
71689 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71690         and Eric Blake  <ebb9@byu.net>
71691
71692         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71693         This is more consistent with the other defines here.
71694         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71695         Port to z/OS.  Problem reported by Paul Gilmartin.
71696         Change local vars to use gl_ prefix rather than ac_.
71697         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71698         with other defines.
71699         * modules/double-slash-root: New module.
71700         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71701         (Depends-on): Add double-slash-root.
71702         * MODULES.html.sh (File system functions): Mention new module.
71703
71704 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71707         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71708         This is for the benefit of gzip, which doesn't do i18n.
71709
71710 2006-12-12  Jim Meyering  <jim@meyering.net>
71711
71712         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71713         Reported by Andreas Schwab <schwab@suse.de>.
71714
71715 2006-12-12  Bruno Haible  <bruno@clisp.org>
71716
71717         Merge these changes.
71718         2006-09-05  Bruno Haible  <bruno@clisp.org>
71719         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71720         iconv_alloc succeeded.
71721         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71722         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71723         test for " && dest " at the end - dest is always != NULL there. Call
71724         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71725         with 2xNULL arguments, also to flush the state storage. Handle the
71726         IRIX iconv behaviour. Realloc the final result, to throw away unused
71727         memory.
71728
71729 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71732         and fchmodat unconditionally, since glibc 2.4 has them.
71733         Problem reported by Arkadiusz Miskiewicz.
71734
71735 2006-12-10  Bruno Haible  <bruno@clisp.org>
71736
71737         * gnulib-tool (func_import): Show the include files only for those
71738         modules that are copied and specified.
71739         Reported by Karl Berry.
71740
71741 2006-12-08  Jim Meyering  <jim@meyering.net>
71742
71743         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71744         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71745
71746         * build-aux/announce-gen: Add two new options, both optional:
71747         --bootstrap-tools=TOOL_LIST
71748               a comma-separated list of tools, e.g.,
71749               autoconf,automake,bison,gnulib
71750         --gnulib-snapshot-date=DATE
71751               if gnulib is in the bootstrap tool list,
71752               then report this as the snapshot date.
71753               If not specified, use the current date/time.
71754               If you specify a date here, be sure it's UTC.
71755
71756 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71757
71758         * tests/test-argp-2.sh: Fix test to match actual output.
71759         (func_compare): Fix sed script to be portable.
71760
71761 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71764         workaround for this case.  It is not autoconfigured now; offhand
71765         it's hard to see how to autoconfigure it.
71766
71767 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71770         a directory that is about to be chowned.  Such a directory's
71771         initial file permissions should permit the owner only and this
71772         should not be changed until after the chown, since the group and
71773         other bits would be incorrect if they granted permission before
71774         the chown.
71775
71776         Fix porting problem for iswctype reported by Georg Schwarz in:
71777         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71778         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71779         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71782
71783 2006-12-03  Jim Meyering  <jim@meyering.net>
71784
71785         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71786         p->fts_statp may not yet be defined.
71787         (fts_read): Instead, set it in the caller, once p->fts_statp is
71788         sure to be defined, and corresponds to a top-level directory.
71789         This bug made du -x fail.  Here's the coreutils test case:
71790         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71791         Reported by Mike Frysinger.
71792
71793 2006-12-01  Jim Meyering  <jim@meyering.net>
71794
71795         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71796         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71797         Reported by Simon Josefsson.
71798
71799 2006-11-30  Jim Meyering  <jim@meyering.net>
71800
71801         * m4/warning.m4: Use the all-permissive copyright notice
71802         recommended by RMS (rather than LGPL).
71803         * m4/vararrays.m4: Likewise.
71804         * m4/flexmember.m4: Likewise.
71805
71806 2006-11-29  Bruno Haible  <bruno@clisp.org>
71807
71808         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71809         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71810         using +=.
71811         Reported by Simon Josefsson <simon@josefsson.org>.
71812
71813 2006-11-28  James Youngman <jay@gnu.org>
71814
71815         * README: Advise users that they might find the bug-gnulib@gnu.org
71816         and autotools-announce@gnu.org mailing lists useful.
71817
71818 2006-11-28  Bruno Haible  <bruno@clisp.org>
71819
71820         * m4/ptrdiff_max.m4: Remove file.
71821
71822 2006-11-21  Bruno Haible  <bruno@clisp.org>
71823
71824         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71825         _AC_COMPUTE_INT.
71826         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71827         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71828         _AC_COMPUTE_INT.
71829         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71830         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71831         _AC_COMPUTE_INT.
71832         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71833
71834 2006-11-28  Jim Meyering  <jim@meyering.net>
71835
71836         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71837         warning from "gcc -Wshadow" about shadowing the builtin.
71838
71839 2006-11-27  Bruno Haible  <bruno@clisp.org>
71840
71841         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71842         _AC_COMPUTE_INT.
71843         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71844
71845 2006-11-27  Bruno Haible  <bruno@clisp.org>
71846             Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71849
71850 2006-11-26  Bruno Haible  <bruno@clisp.org>
71851
71852         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71853         noinst_LTLIBRARIES.
71854
71855 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71856             Bruno Haible  <bruno@clisp.org>
71857
71858         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71859         if compiling with "gcc -ansi".
71860
71861 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         Fix some incompatibilities with gcc -ansi -pedantic.
71864         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71865         if compiling pedantically with GCC, unless it's C99 or later.
71866         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71867         it mishandles gcc -ansi -pedantic as well.
71868         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71869         if gcc -pedantic.
71870         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71871         initializers for struct if -pedantic, unless it's C99 or later.
71872
71873 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71874
71875         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71876         Don't close an fd more than once. Identical atimes indicate
71877         success, not failure.
71878
71879 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71880
71881         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71882
71883 2006-11-23  Jim Meyering  <jim@meyering.net>
71884
71885         * build-aux/announce-gen: New file.  From coreutils.
71886
71887 2006-11-22  Jim Meyering  <jim@meyering.net>
71888
71889         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71890         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71891         (fts_read): Use a temporary to narrow the overused st_size member
71892         before using it in a switch statement.  Reported by Matthew Woehlke.
71893
71894         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71895         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71896
71897 2006-11-20  Bruno Haible  <bruno@clisp.org>
71898
71899         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71900         changequote instead of pairs of brackets.
71901         Reported by Andreas Schwab <schwab@suse.de>.
71902
71903 2006-11-21  Jim Meyering  <jim@meyering.net>
71904
71905         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71906         so as to remain compatible with older compilers.
71907         Patch from Michael Deutschmann.
71908
71909 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * MODULES.html.sh (File system functions): Add openat.
71912
71913         * lib/openat.h (rpl_fstatat): New macro, if
71914         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71915         (fstatat): Define to rpl_fstatat under the same conditions,
71916         unless COMPILING_FSTATAT.
71917         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71918         seems to have the bug.
71919         * lib/fstatat.c: New file.
71920         * modules/openat (Files): Add it.
71921
71922 2006-11-20  Bruno Haible  <bruno@clisp.org>
71923
71924         * Makefile: New file.
71925
71926 2006-11-20  Jim Meyering  <jim@meyering.net>
71927
71928         The beginnings of syntax-related checks for gnulib.
71929         * lib/Makefile: New file.
71930         * lib/t-idcache: New script.  Ensure that the two halves of
71931         idcache.c stay in sync.
71932
71933         * lib/idcache.c: Adjust comments in user- and group- portions to
71934         be more accurate, and to be consistent with one another.
71935
71936 2006-11-20  Jim Meyering  <jim@meyering.net>
71937
71938         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71939         continue using the flexible array member (thus, this module performs
71940         half as many malloc calls), with the addition that...
71941         (getgroup, getuser): Consistently record a non-match via an empty
71942         "name" string, and map an empty string match to a NULL return value.
71943         * modules/idcache (Depends-on): Re-add flexmember.
71944
71945         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71946         (getuidbyname, getgroup, getgidbyname): Likewise.
71947
71948         Use cleaner syntax: NULL rather than 0.
71949         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71950
71951 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71954         It mishandled the case where the group was missing.
71955         Problem reported by Greg Schafer.
71956         * modules/idcache: Likewise.
71957
71958 2006-11-18  Jim Meyering  <jim@meyering.net>
71959
71960         * check-module (%exempt_header): Add exception for some
71961         conditionally-included headers.
71962
71963         * modules/i-ring (Depends-on): Add verify.
71964         (License): Change to LGPL.
71965
71966 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71969         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71970         and inttostr.h.  Use snprintf rather than uinttostr, so that
71971         LGPLed code doesn't depend on GPLed.
71972
71973 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * modules/inline (License): Change from GPL to LGPL.
71976
71977 2006-11-17  Jim Meyering  <jim@meyering.net>
71978
71979         * modules/d-type (License): Switch to LGPL.
71980
71981 2006-11-15  Bruno Haible  <bruno@clisp.org>
71982
71983         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71984
71985 2006-11-15  Eric Blake  <ebb9@byu.net>
71986
71987         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71988         the module dependency.
71989
71990 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71991             Bruno Haible  <bruno@clisp.org>
71992
71993         * gnulib-tool (func_create_testdir): Add license consistency check.
71994
71995 2006-11-15  Eric Blake  <ebb9@byu.net>
71996
71997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71998         random "(cached)" in configure output.
71999
72000 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72001
72002         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72003         test for conforming inttypes.h is both announced and cached.
72004
72005         * MODULES.html.sh (seen_modules, seen_files): New variables.
72006         (func_module): Rewrite to use a few less gnulib-tool and sed
72007         invocations.  Avoid a couple of quadratic algorithms for ...
72008         (missed_modules, missed_files): ... these, with ...
72009         (func_append, func_tmpdir): ... these new functions, from
72010         gnulib-tool.  Analogously, install traps for cleanup.
72011
72012         * tests/test-gc.c (main): Remove unused variables.
72013         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72014
72015 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * modules/inttostr (License): Change to LGPL.
72018
72019 2006-11-14  Eric Blake  <ebb9@byu.net>
72020
72021         * modules/tempname (License): Change to LGPL.
72022
72023 2006-11-14  Eric Blake  <ebb9@byu.net>
72024
72025         * doc/functions.texi (Function Portability): *printf functions on
72026         Cygwin now understand all POSIX size specifiers.
72027
72028 2006-11-14  Bruno Haible  <bruno@clisp.org>
72029
72030         * modules/c-ctype (License): Change to LGPL.
72031
72032 2006-11-12  Bruno Haible  <bruno@clisp.org>
72033
72034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72035         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72036         for GNOME libraries, for which the include files are installed in
72037         subdirectories of $prefix/include.
72038
72039 2006-11-12  Bruno Haible  <bruno@clisp.org>
72040
72041         * m4/lib-link.m4: Require at least autoconf-2.54.
72042         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72043         name to underscores for the --with option.
72044
72045 2006-11-13  Bruno Haible  <bruno@clisp.org>
72046
72047         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72048         the tests directory.
72049         Reported by Ralf Wildenhues.
72050
72051 2006-11-13  Bruno Haible  <bruno@clisp.org>
72052
72053         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72054         (func_emit_initmacro_end): Undo the override here.
72055         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72056         Works around the famous automake error in coreutils.
72057
72058 2006-11-13  Eric Blake  <ebb9@byu.net>
72059
72060         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72061         element, not its node.
72062
72063 2006-11-12  Bruno Haible  <bruno@clisp.org>
72064
72065         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72066         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72067
72068 2006-11-12  Bruno Haible  <bruno@clisp.org>
72069
72070         * gnulib-tool: New option --local-symlink.
72071         (func_usage): Document it.
72072         (lsymbolic): New variable.
72073         (func_import, func_create_testdir): If --symlink was not specified,
72074         test whether --local-symlink was specified and the file comes from
72075         the local_gnulib_dir.
72076
72077 2006-11-12  Bruno Haible  <bruno@clisp.org>
72078
72079         * gnulib-tool (func_ln): New function.
72080         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72081
72082 2006-11-12  Bruno Haible  <bruno@clisp.org>
72083
72084         Finish support for source files in subdirectories.
72085         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72086         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72087         AUTOMAKE_OPTIONS.
72088         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72089
72090 2006-11-12  Bruno Haible  <bruno@clisp.org>
72091
72092         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72093         EXTRA_lib_SOURCES augmentation.
72094         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72095
72096 2006-11-12  Jim Meyering  <jim@meyering.net>
72097
72098         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72099         file descriptors.  This also averts a failure on systems with
72100         native openat support when a traversed directory lacks "x" access.
72101         * lib/fts_.h: Include "i-ring.h"
72102         (struct FTS) [fts_fd_ring]: New member.
72103         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72104         (FCHDIR): Add parentheses.
72105         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72106         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72107         When descending, rather than simply closing the previous
72108         fts_cwd_fd value, push that file descriptor onto the ring.
72109         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72110         (fts_open): Initialize the new fd_ring member.
72111         (fts_close): Clear the ring.
72112         (fts_safe_changedir): When possible, use our new fd_ring to skip
72113         the diropen and fstat and dev/ino comparison that would normally
72114         accompany a virtual `chdir ("..")'.
72115
72116         * modules/fts (Depends-on): Add i-ring.
72117         * modules/i-ring: New module.
72118         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72119         * m4/i-ring.m4: New file.
72120
72121 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72122
72123         * gnulib-tool (func_create_testdir): Fix replacement of
72124         `build-aux' in configure.ac.  Run autotools in gltests
72125         subdirectory.
72126         (func_create_testdir, func_create_megatestdir, test): There is
72127         no need for '--force' in most autotool invocations in a new
72128         tree.  Actually fail the whole test if any of the tools, or the
72129         configure or make stages fail.
72130
72131         Sync from Automake.
72132         * build-aux/gnupload: Revert last change.  Add pointer to upload
72133         instructions of the GNU Maintenance Instructions.
72134         Suggestion by Karl Berry.
72135
72136 2006-11-10  Jim Meyering  <jim@meyering.net>
72137
72138         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72139
72140 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72143         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72144         (bind_textdomain_codeset) [! ENABLE_NLS]:
72145         Evaluate all the arguments.  That way, callers get compatible behavior
72146         if the arguments have side effects.  Also, it avoids some GCC
72147         diagnostics in some cases; Joel E. Denny reported problems when Bison
72148         was configured with --enable-gcc-warnigs.
72149
72150 2006-11-10  Jim Meyering  <jim@meyering.net>
72151
72152         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72153         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72154         account.
72155
72156 2006-11-10  Jim Meyering  <jim@meyering.net>
72157
72158         * modules/inline: New file/module.
72159         * modules/xalloc (Files): Remove m4/inline.m4.
72160         (Depends-on): Add inline, instead.
72161         * modules/oset: Likewise.
72162         * modules/list: Likewise.
72163
72164 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72167         Problem reported by Matthew Woehlke.
72168
72169 2006-11-09  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/tempname.c (gen_tempname): Remove variant that invokes
72172         __gen_tempname.
72173         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72174         __gen_tempname.
72175
72176 2006-11-08  Bruno Haible  <bruno@clisp.org>
72177
72178         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72179         to 'yes' instead of 'cross-compiling'.
72180
72181 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/quotearg.h (quotearg_free): New decl.
72184         * lib/quotearg.c (quotearg_free): New function.
72185         (slot0, nslots, slotvec0, slotvec):
72186         Now file-scope so that quotearg_free can get at them.
72187
72188 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72189
72190         Sync from Automake.
72191         * build-aux/gnupload: Add missing 'gnu' to example URL.
72192         Report by Karl Berry.
72193
72194 2006-11-08  Bruno Haible  <bruno@clisp.org>
72195
72196         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72197         Suggested by Paul Eggert.
72198
72199 2006-11-08  Jim Meyering  <jim@meyering.net>
72200
72201         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72202         It's already included if !_LIBC.
72203         (fts_safe_changedir): Add a comment.
72204
72205 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72208         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72209         Matthew Woehlke.
72210
72211         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72212         definitions up, to avoid colliding with change below.
72213         (static_inline) [HAVE_INLINE]: New macro.
72214         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72215         Provide extern decls when !HAVE_INLINE.  Do not define unless
72216         static_inline is defined, either by us or by xmalloc.c.  Use
72217         static_inline rather than static inline.
72218         (XCALLOC): Optimize sizeof(T) = 1 case.
72219         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72220
72221 2006-11-07  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72224         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72225         AC_C_INLINE.
72226         * modules/xalloc (Files): Add m4/inline.m4.
72227
72228 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72229
72230         * README: Fix typo.
72231         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72232         (Miscellanous Notes): ...from this.
72233
72234 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72237         Mention that offsetof should be used instead of sizeof.
72238         From Bruno Haible.
72239
72240 2006-11-07  Bruno Haible  <bruno@clisp.org>
72241
72242         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72243
72244 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72247         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72248         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72249         (gl_tree_add_before, gl_tree_add_after):
72250         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72251         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72252         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72253         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72254         (gl_linked_add_after, gl_linked_add_at): Likewise.
72255         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72256         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72257         (gl_tree_add_before, gl_tree_add_after): Likewise.
72258         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72259         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72260         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72261
72262 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72263
72264         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72265
72266 2006-11-06  Bruno Haible  <bruno@clisp.org>
72267
72268         * m4/inline.m4: New file.
72269         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72270         * modules/list (Files): Add m4/inline.m4.
72271         * modules/oset (Files): Likewise.
72272
72273 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/idcache.c: Include <stddef.h>, for offsetof.
72276         (struct userid.name): Change from char * to a flexible array member.
72277         All uses changed.
72278         * modules/idcache (Depends-on): Add flexmember.
72279
72280         * MODULES.html.sh (Core language properties): New module flexmember.
72281         * modules/flexmember, m4/flexmember.m4: New files.
72282
72283         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72284         inline functions that are identical with the old xnmalloc_inline,
72285         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72286         that we can avoid some unnecessary integer multiplications and
72287         divisions in the common case where the element size is known at
72288         compile time.
72289         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72290         needed.
72291         (xnboundedmalloc): Remove.
72292         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72293         arguments, for consistency with rest of this header.
72294         (xcharalloc): Rewrite using XNMALLOC.
72295         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72296         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72297         versions have been moved to lib/xalloc.h and renamed to be the
72298         non-*_inline versions.
72299         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72300         and xnrealloc functions, since those functions are now inline and
72301         now call us.
72302         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72303         renaming described above.
72304         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72305         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72306         captures the dependency in AC_C_INLINE.
72307
72308         New module canonicalize-lgpl, proposed by Charles Wilson in
72309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72310         with a few small changes afterwards.
72311         * MODULES.html.sh (File system functions): New module
72312         canonicalize-lgpl.
72313         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72314         and canonicalize_file_name.
72315         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72316         * modules/canonicalize-lgpl: New files.
72317
72318 2006-11-05  Bruno Haible  <bruno@clisp.org>
72319
72320         * gnulib-tool (func_import, func_create_testdir): Create directories
72321         also for files in subdirectories of lib/.
72322
72323 2006-11-05  Bruno Haible  <bruno@clisp.org>
72324
72325         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72326         ANSI C compliant.
72327
72328 2006-11-03  Bruno Haible  <bruno@clisp.org>
72329
72330         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72331         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72332         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72333         (xnboundedmalloc): New inline function.
72334         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72335         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72336         xmalloc.
72337         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72338         xmalloc.
72339         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72340         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72341         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72342         xmalloc.
72343         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72344         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72345         xmalloc.
72346         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72347         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72348         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72349         xmalloc.
72350         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72351         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72352         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72353         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72354         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72355         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72356         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72357
72358 2006-11-03  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/c-ctype.h [C++]: Define functions without name mangling.
72361         * lib/fwriteerror.h [C++]: Likewise.
72362         * lib/gcd.h [C++]: Likewise.
72363         * lib/linebreak.h [C++]: Likewise.
72364
72365 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72368         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72369         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72371         Check for functions and headers just once.
72372         Check for declaration of canonicalize_file_name.
72373         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72374
72375 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72376
72377         * gnulib-tool (func_import): Fix typo in actioncmd.
72378
72379 2006-11-02  Bruno Haible  <bruno@clisp.org>
72380
72381         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72382         newline sequence in the Makefile.am snippet as a space, like "make"
72383         does.
72384         Reported by Roger Persson <perrog@gmail.com>.
72385
72386 2006-11-01  Bruno Haible  <bruno@clisp.org>
72387
72388         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72389         already declared in <string.h>.
72390         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72391
72392 2006-11-01  Bruno Haible  <bruno@clisp.org>
72393
72394         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72395         * lib/strcase.h: Include <string.h>.
72396         (strcasecmp): Define to rpl_strcasecmp here.
72397
72398 2006-11-01  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72401
72402 2006-11-01  Eric Blake  <ebb9@byu.net>
72403
72404         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72405
72406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72407
72408 2006-10-29  Bruno Haible  <bruno@clisp.org>
72409
72410         Make it compile in C++ mode.
72411         * lib/full-write.c (full_rw): Add a cast.
72412
72413 2006-11-01  Bruno Haible  <bruno@clisp.org>
72414
72415         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72416         be POSIX compliant.
72417         Reported by Roger Persson <perrog@gmail.com>.
72418
72419 2006-11-01  Eric Blake  <ebb9@byu.net>
72420
72421         * lib/getopt_.h: Fix comments.
72422
72423 2006-10-31  Eric Blake  <ebb9@byu.net>
72424
72425         * modules/tmpdir (Depends-on): Add sys_stat.
72426         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72427         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72428         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72429         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72430         tempname.
72431
72432 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         Avoid some C++ diagnostics reported by Bruno Haible.
72435         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72436         xmalloc.
72437         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72438         (struct slotvec): Move to top level.
72439         (quotearg_n_options): Rewrite to avoid xmalloc.
72440         * lib/xalloc.h (xcharalloc): New function.
72441         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72442         [defined __cplusplus]: Add function template that provides result
72443         type propagation.  This part of the change is from Bruno Haible.
72444
72445 2006-10-29  Bruno Haible  <bruno@clisp.org>
72446
72447         Make it compile in C++ mode.
72448         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72449         * lib/strnlen1.c (strnlen1): Cast memchr result.
72450         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72451         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72452         (create_temp_dir): Rename local variable 'template'.
72453         (compile_csharp_using_sscli): Add cast.
72454         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72455         * lib/findprog.c (find_in_path): Likewise.
72456         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72457         * lib/wait-process.c (register_slave_subprocess): Likewise.
72458
72459 2006-10-22  Bruno Haible  <bruno@clisp.org>
72460
72461         * modules/tsearch: New file.
72462         * lib/tsearch.h: New file.
72463         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72464         * m4/tsearch.m4: New file.
72465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72466
72467 2006-10-29  Eric Blake  <ebb9@byu.net>
72468
72469         * lib/arcfour.c: Assume config.h.
72470         * lib/arctwo.c: Likewise.
72471         * lib/base64.c: Likewise.
72472         * lib/check-version.c: Likewise.
72473         * lib/crc.c: Likewise.
72474         * lib/des.c: Likewise.
72475         * lib/gc-gnulib.c: Likewise.
72476         * lib/gc-libgcrypt.c: Likewise.
72477         * lib/gc-pbkdf2-sha1.c: Likewise.
72478         * lib/getaddrinfo.c: Likewise.
72479         * lib/getdelim.c: Likewise.
72480         * lib/getline.c: Likewise.
72481         * lib/hmac-md5.c: Likewise.
72482         * lib/hmac-sha1.c: Likewise.
72483         * lib/iconvme.c: Likewise.
72484         * lib/md2.c: Likewise.
72485         * lib/md4.c: Likewise.
72486         * lib/memxor.c: Likewise.
72487         * lib/read-file.c: Likewise.
72488         * lib/readline.c: Likewise.
72489         * lib/rijndael-alg-fst.c: Likewise.
72490         * lib/rijndael-api-fst.c: Likewise.
72491         * lib/xgetdomainname.c: Likewise.
72492
72493 2006-10-28  Eric Blake  <ebb9@byu.net>
72494
72495         * lib/xstrndup.c: Assume config.h.
72496
72497 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72500         stat-macros.h is now for our own macros, whereas stat_h is for
72501         macros in the <sys/stat.h> name space.
72502         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72503         (STAT_MACROS_H): Remove.
72504         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72505         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72506         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72507         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72508         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72509         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72510         Move these macros to ...
72511         * lib/stat_.h: here.  Don't include stat-macros.h.
72512         * lib/canonicalize.c: Don't include stat-macros.h.
72513         * lib/chown.c: Likewise.
72514         * lib/euidaccess.c: Likewise.
72515         * lib/file-type.c: Likewise.
72516         * lib/filemode.c: Likewise.
72517         * lib/glob.c: Likewise.
72518         * lib/isapipe.c: Likewise.
72519         * lib/lchown.c: Likewise.
72520         * lib/lstat.c: Likewise.
72521         * lib/mkdir-p.c: Likewise.
72522         * lib/rmdir.c: Likewise.
72523         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72524         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72525         unless mkdir isn't declared, to speed up 'configure'.
72526         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72527         would define all the S_* symbols.
72528         * modules/canonicalize (Depends-on):
72529         Depend on sys_stat, not stat-macros.
72530         * modules/chown: Likewise.
72531         * modules/euidaccess: Likewise.
72532         * modules/filemode: Likewise.
72533         * modules/file-type: Likewise.
72534         * modules/glob: Likewise.
72535         * modules/isapipe: Likewise.
72536         * modules/lchown: Likewise.
72537         * modules/lstat: Likewise.
72538         * modules/mkancesdirs: Likewise.
72539         * modules/rmdir: Likewise.
72540         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72541         * modules/modechange: Likewise.
72542         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72543         (configure.ac): Remove gl_STAT_MACROS.
72544         * modules/sys_stat (Depends-on): Remove stat-macros.
72545
72546 2006-10-27  Bruno Haible  <bruno@clisp.org>
72547
72548         * m4/signed.m4: Remove file.
72549         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72550         invocation.
72551         * modules/vasnprintf (Files): Remove m4/signed.m4.
72552
72553 2006-10-27  Bruno Haible  <bruno@clisp.org>
72554
72555         Update to GNU gettext 0.16.
72556         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72557         m4/inttypes-h.m4, m4/signed.m4.
72558         * m4/gettext.m4: Update to GNU gettext 0.16.
72559         * m4/intl.m4: New file, from GNU gettext.
72560         * m4/intldir.m4: New file, from GNU gettext.
72561         * config/srclist.txt: Update
72562
72563 2006-10-27  Eric Blake  <ebb9@byu.net>
72564
72565         * MODULES.html.sh: Document tempname.
72566         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72567         dependencies.
72568         (Files): Move lib/tempname.c...
72569         * modules/tempname: ...to this new module.
72570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72571         (gl_PREREQ_TEMPNAME): Move...
72572         * m4/tempname.m4: ...to this new file.
72573         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72574         * modules/sys_stat (Depends-on): Add stat-macros.
72575         * lib/stat_.h (includes): Pick up stat macros.
72576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72577         if stat macros are broken.
72578         * lib/tempname.c (includes): No need to include "stat-macros.h".
72579         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72580         (direxists, __path_search) [!_LIBC]: Don't compile these in
72581         gnulib; the tmpdir module covers that.
72582         * lib/tempname.h: New file.
72583
72584 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * COPYING: Explain how gnulib-tool converts licence headers.
72587         Almost all wording by Eric Blake.
72588
72589 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * lib/mbchar.h (is_basic_table): Make read-only.
72592         * lib/mbchar.c (is_basic_table): Likewise.
72593         Reported by John Darrington.
72594
72595 2006-10-25  Bruno Haible  <bruno@clisp.org>
72596
72597         * lib/progname.h (set_program_name): Undefine before defining.
72598
72599 2006-10-25  Bruno Haible  <bruno@clisp.org>
72600
72601         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72602         false for non-gcc C++ compilers.
72603         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72604
72605 2006-10-24  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72608         iconv implementations like Irix iconv.
72609
72610 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         * modules/vararrays: New file.
72613         * m4/vararrays.m4: New file, taken from diffutils.
72614         * MODULES.html.sh: New module vararrays.
72615
72616 2006-10-24  Karl Berry  <karl@gnu.org>
72617
72618         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72619         Don't call GNU Unix.
72620
72621 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72622
72623         * users.txt: Add Libtool.
72624
72625         Sync from Libtool:
72626
72627         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72630         to gnulib's policy of including config.h unconditionally.
72631
72632 2006-10-24  Bruno Haible  <bruno@clisp.org>
72633
72634         * modules/wcwidth (Files): Add m4/wint_t.m4.
72635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72636         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72637
72638 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72641         to pacify GCC with some -W flags enabled.  Problem reported by
72642         Bruno Haible.
72643
72644 2006-10-24  Jim Meyering  <jim@meyering.net>
72645
72646         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72647         Reported by Karl Berry.
72648
72649 2006-10-23  Bruno Haible  <bruno@clisp.org>
72650
72651         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72652
72653 2006-10-24  Bruno Haible  <bruno@clisp.org>
72654
72655         * lib/gl_list.h: Use C comment style, not C++ comment style.
72656
72657 2006-10-23  Eric Blake  <ebb9@byu.net>
72658
72659         * lib/getaddrinfo.c (includes): Add missing include.
72660
72661 2006-10-23  Bruno Haible  <bruno@clisp.org>
72662             Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         Ability to rename obstack_free.
72665         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72666         obstack_free.
72667         (obstack_free): Invoke the __obstack_free macro.
72668         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72669
72670 2006-10-23  Bruno Haible  <bruno@clisp.org>
72671             Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72674         __argc, __argv from the declaration. (They are defined as macros on
72675         mingw.)
72676
72677 2006-10-22  Bruno Haible  <bruno@clisp.org>
72678
72679         * doc/gnulib-intro.texi: New file.
72680         * doc/gnulib.texi: Include it.
72681
72682 2006-10-21  Bruno Haible  <bruno@clisp.org>
72683
72684         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72685         "Introduction", "Miscellanous Notes", "Particular Modules".
72686
72687 2006-10-21  Bruno Haible  <bruno@clisp.org>
72688
72689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72690         Change mostlyclean-local rule to avoid sh syntax error from bash
72691         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72692
72693 2006-10-23  Jim Meyering  <jim@meyering.net>
72694
72695         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72696         in place of snprintf.
72697
72698         * modules/inttostr (Files): Add lib/uinttostr.c.
72699         * lib/uinttostr.c (inttostr): New file/function.
72700         * lib/inttostr.h (uinttostr): Declare.
72701         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72702         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72703         Add uinttostr.
72704         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72705
72706 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * lib/canonicalize.c (ELOOP): Define if not already defined.
72709         Problem reported by Bruno Haible in
72710         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72711
72712 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72715         Problem reported by Perry Smith and Ville Laurikari.
72716
72717         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72718         uses.
72719
72720 2006-10-19  Bruno Haible  <bruno@clisp.org>
72721
72722         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72723         for mingw.
72724
72725 2006-10-19  Bruno Haible  <bruno@clisp.org>
72726
72727         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72728         Needed for mingw.
72729
72730 2006-10-19  Bruno Haible  <bruno@clisp.org>
72731
72732         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72733
72734 2006-10-19  Bruno Haible  <bruno@clisp.org>
72735
72736         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72737         it.
72738
72739 2006-10-19  Bruno Haible  <bruno@clisp.org>
72740
72741         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72742         invocation.
72743
72744 2006-10-19  Bruno Haible  <bruno@clisp.org>
72745
72746         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72747         mountlist by default.
72748
72749 2006-10-16  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/c-strstr.c: Include c-strstr.h.
72752
72753 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72754
72755         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72756         in a slash.
72757
72758 2006-10-18  Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/lock.h [C++]: Wrap definitions in extern "C".
72761
72762 2006-10-18  Bruno Haible  <bruno@clisp.org>
72763
72764         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72765         gl_LIBOBJS list.
72766
72767 2006-10-18  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72770
72771 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * lib/xstrtol.h: Include gettext.h.
72774         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72775         Problem reported by Eric Blake.
72776         * modules/xstrtol (Depends-on): Add gettext-h.
72777
72778 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72779
72780         * lib/strftime.c (advance): New macro.
72781         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72782         incomplete type, so you can't add 0 to it.  Problem and patch
72783         reported by Eelco Dolstra for dietlibc.
72784
72785 2006-10-18  Jim Meyering  <jim@meyering.net>
72786
72787         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72788         type for a local, and rename it: s/up/user_proc/.
72789
72790 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72791
72792         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72793         READ_UTMP_USER_PROCESS.
72794         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72795
72796 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72799         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72800
72801 2006-10-17  Eric Blake  <ebb9@byu.net>
72802
72803         * lib/sigprocmask.c (sigprocmask): Fix typo.
72804
72805         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72806
72807         * modules/clean-temp (Makefile.am): Don't add to make output...
72808         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72809         config.h.
72810
72811 2006-10-17  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72814         differently if DEFAULT_TEXT_DOMAIN is set.
72815
72816 2006-10-16  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/clean-temp.c: Include fwriteerror.h.
72819
72820 2006-10-16  Bruno Haible  <bruno@clisp.org>
72821
72822         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72823
72824 2006-10-16  Bruno Haible  <bruno@clisp.org>
72825
72826         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72827         * lib/sigprocmask.h: Include <sys/types.h>.
72828         (sigset_t): Use the system's definition if present.
72829
72830 2006-10-17  Eric Blake  <ebb9@byu.net>
72831
72832         * lib/xvasprintf.c (includes): Assume config.h.
72833         * lib/xasprintf.c (includes): Likewise.
72834
72835 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72838         at least as wide as intmax_t.
72839
72840 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72841
72842         (Imported from Automake.)
72843         * build-aux/gnupload: Update to version 1.1 of directive file.
72844
72845 2006-10-16  Eric Blake  <ebb9@byu.net>
72846
72847         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72848         match Automake 1.10a.
72849
72850 2006-10-14  Bruno Haible  <bruno@clisp.org>
72851
72852         * modules/sigprocmask: New file.
72853         * lib/sigprocmask.h: New file.
72854         * lib/sigprocmask.c: New file.
72855         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72856         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72857         request sigprocmask.o.
72858         (gl_PREREQ_SIGPROCMASK): New macro.
72859         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72860         (Depends-on): Add sigprocmask.
72861         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72862         gt_SIGNALBLOCKING. Test for 'raise' only once.
72863         * lib/fatal-signal.c: Include sigprocmask.h.
72864         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72865         unblock_fatal_signals): Define always.
72866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72867         sigprocmask.
72868
72869 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         Sync from Automake.
72872         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72873         which incorrectly sets the mode of an existing destination
72874         directory.  In some cases the unpatched install-sh could do the
72875         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72876         system.  We hope this is rare in practice, but it's clearly worth
72877         fixing.  Problem reported by Alex Unleashed in
72878         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72879         Also, don't bother to check for -m bugs unless we're using -m;
72880         suggested by Stepan Kasal.
72881
72882 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72883
72884         Sync from Automake.
72885         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72886         `-c' flag, so they appear at the same position as in %FASTDEP%
72887         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72888         which ignores unknown options only after the first non-option.
72889         Bug report against M4 by Nelson H. F. Beebe.
72890
72891 2006-10-13  Jim Meyering  <jim@meyering.net>
72892
72893         Fix a bug in yesterday's change.
72894         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72895         p->fts_statp->st_dev would be used uninitialized.
72896         Ensures that we always call fts_stat on the very first entry.
72897         Miklos Szeredi reported that find -xdev stopped working.
72898
72899 2006-10-12  Bruno Haible  <bruno@clisp.org>
72900
72901         * gnulib-tool (func_get_automake_snippet): Append an automatically
72902         computed EXTRA_DIST augmentation.
72903         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72904         * modules/alloca-opt (Makefile.am): Likewise.
72905         * modules/allocsa (Makefile.am): Likewise.
72906         * modules/arcfour (Makefile.am): Likewise.
72907         * modules/arctwo (Makefile.am): Likewise.
72908         * modules/argmatch (Makefile.am): Likewise.
72909         * modules/argz (Makefile.am): Likewise.
72910         * modules/atexit (Makefile.am): Likewise.
72911         * modules/backupfile (Makefile.am): Likewise.
72912         * modules/byteswap (Makefile.am): Likewise.
72913         * modules/c-strtod (Makefile.am): Likewise.
72914         * modules/c-strtold (Makefile.am): Likewise.
72915         * modules/calloc (Makefile.am): Likewise.
72916         * modules/canon-host (Makefile.am): Likewise.
72917         * modules/canonicalize (Makefile.am): Likewise.
72918         * modules/chdir-long (Makefile.am): Likewise.
72919         * modules/chdir-safer (Makefile.am): Likewise.
72920         * modules/check-version (Makefile.am): Likewise.
72921         * modules/chown (Makefile.am): Likewise.
72922         * modules/cloexec (Makefile.am): Likewise.
72923         * modules/close-stream (Makefile.am): Likewise.
72924         * modules/closeout (Makefile.am): Likewise.
72925         * modules/crc (Makefile.am): Likewise.
72926         * modules/csharpexec (Makefile.am): Likewise.
72927         * modules/cycle-check (Makefile.am): Likewise.
72928         * modules/des (Makefile.am): Likewise.
72929         * modules/dev-ino (Makefile.am): Likewise.
72930         * modules/dirfd (Makefile.am): Likewise.
72931         * modules/dirname (Makefile.am): Likewise.
72932         * modules/dup2 (Makefile.am): Likewise.
72933         * modules/eealloc (Makefile.am): Likewise.
72934         * modules/error (Makefile.am): Likewise.
72935         * modules/euidaccess (Makefile.am): Likewise.
72936         * modules/exclude (Makefile.am): Likewise.
72937         * modules/exitfail (Makefile.am): Likewise.
72938         * modules/fcntl-safer (Makefile.am): Likewise.
72939         * modules/fcntl (Makefile.am): Likewise.
72940         * modules/file-type (Makefile.am): Likewise.
72941         * modules/fileblocks (Makefile.am): Likewise.
72942         * modules/filemode (Makefile.am): Likewise.
72943         * modules/filenamecat (Makefile.am): Likewise.
72944         * modules/fnmatch (Makefile.am): Likewise.
72945         * modules/fopen-safer (Makefile.am): Likewise.
72946         * modules/fpending (Makefile.am): Likewise.
72947         * modules/fprintftime (Makefile.am): Likewise.
72948         * modules/free (Makefile.am): Likewise.
72949         * modules/fsusage (Makefile.am): Likewise.
72950         * modules/ftruncate (Makefile.am): Likewise.
72951         * modules/fts (Makefile.am): Likewise.
72952         * modules/gc-arcfour (Makefile.am): Likewise.
72953         * modules/gc-des (Makefile.am): Likewise.
72954         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72955         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72956         * modules/gc-md4 (Makefile.am): Likewise.
72957         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72958         * modules/gc-sha1 (Makefile.am): Likewise.
72959         * modules/gc (Makefile.am): Likewise.
72960         * modules/getaddrinfo (Makefile.am): Likewise.
72961         * modules/getcwd (Makefile.am): Likewise.
72962         * modules/getdelim (Makefile.am): Likewise.
72963         * modules/getdomainname (Makefile.am): Likewise.
72964         * modules/getgroups (Makefile.am): Likewise.
72965         * modules/gethostname (Makefile.am): Likewise.
72966         * modules/gethrxtime (Makefile.am): Likewise.
72967         * modules/getline (Makefile.am): Likewise.
72968         * modules/getloadavg (Makefile.am): Likewise.
72969         * modules/getlogin_r (Makefile.am): Likewise.
72970         * modules/getndelim2 (Makefile.am): Likewise.
72971         * modules/getopt (Makefile.am): Likewise.
72972         * modules/getpagesize (Makefile.am): Likewise.
72973         * modules/getpass-gnu (Makefile.am): Likewise.
72974         * modules/getpass (Makefile.am): Likewise.
72975         * modules/getsubopt (Makefile.am): Likewise.
72976         * modules/gettime (Makefile.am): Likewise.
72977         * modules/gettimeofday (Makefile.am): Likewise.
72978         * modules/getugroups (Makefile.am): Likewise.
72979         * modules/getusershell (Makefile.am): Likewise.
72980         * modules/glob (Makefile.am): Likewise.
72981         * modules/group-member (Makefile.am): Likewise.
72982         * modules/hard-locale (Makefile.am): Likewise.
72983         * modules/hash (Makefile.am): Likewise.
72984         * modules/hmac-md5 (Makefile.am): Likewise.
72985         * modules/hmac-sha1 (Makefile.am): Likewise.
72986         * modules/human (Makefile.am): Likewise.
72987         * modules/idcache (Makefile.am): Likewise.
72988         * modules/imaxabs (Makefile.am): Likewise.
72989         * modules/imaxdiv (Makefile.am): Likewise.
72990         * modules/inet_ntop (Makefile.am): Likewise.
72991         * modules/inet_pton (Makefile.am): Likewise.
72992         * modules/intprops (Makefile.am): Likewise.
72993         * modules/inttostr (Makefile.am): Likewise.
72994         * modules/inttypes (Makefile.am): Likewise.
72995         * modules/isapipe (Makefile.am): Likewise.
72996         * modules/javaversion (Makefile.am): Likewise.
72997         * modules/lchmod (Makefile.am): Likewise.
72998         * modules/lchown (Makefile.am): Likewise.
72999         * modules/localcharset (Makefile.am): Likewise.
73000         * modules/long-options (Makefile.am): Likewise.
73001         * modules/lstat (Makefile.am): Likewise.
73002         * modules/malloc (Makefile.am): Likewise.
73003         * modules/mathl (Makefile.am): Likewise.
73004         * modules/mbchar (Makefile.am): Likewise.
73005         * modules/md2 (Makefile.am): Likewise.
73006         * modules/md4 (Makefile.am): Likewise.
73007         * modules/md5 (Makefile.am): Likewise.
73008         * modules/memcasecmp (Makefile.am): Likewise.
73009         * modules/memchr (Makefile.am): Likewise.
73010         * modules/memcmp (Makefile.am): Likewise.
73011         * modules/memcoll (Makefile.am): Likewise.
73012         * modules/memcpy (Makefile.am): Likewise.
73013         * modules/memmem (Makefile.am): Likewise.
73014         * modules/memmove (Makefile.am): Likewise.
73015         * modules/mempcpy (Makefile.am): Likewise.
73016         * modules/memrchr (Makefile.am): Likewise.
73017         * modules/memset (Makefile.am): Likewise.
73018         * modules/memxor (Makefile.am): Likewise.
73019         * modules/mkancesdirs (Makefile.am): Likewise.
73020         * modules/mkdir-p (Makefile.am): Likewise.
73021         * modules/mkdir (Makefile.am): Likewise.
73022         * modules/mkdtemp (Makefile.am): Likewise.
73023         * modules/mkstemp (Makefile.am): Likewise.
73024         * modules/mktime (Makefile.am): Likewise.
73025         * modules/modechange (Makefile.am): Likewise.
73026         * modules/mountlist (Makefile.am): Likewise.
73027         * modules/nanosleep (Makefile.am): Likewise.
73028         * modules/obstack (Makefile.am): Likewise.
73029         * modules/openat (Makefile.am): Likewise.
73030         * modules/pagealign_alloc (Makefile.am): Likewise.
73031         * modules/pathmax (Makefile.am): Likewise.
73032         * modules/physmem (Makefile.am): Likewise.
73033         * modules/poll (Makefile.am): Likewise.
73034         * modules/posixtm (Makefile.am): Likewise.
73035         * modules/posixver (Makefile.am): Likewise.
73036         * modules/putenv (Makefile.am): Likewise.
73037         * modules/quote (Makefile.am): Likewise.
73038         * modules/quotearg (Makefile.am): Likewise.
73039         * modules/raise (Makefile.am): Likewise.
73040         * modules/read-file (Makefile.am): Likewise.
73041         * modules/readline (Makefile.am): Likewise.
73042         * modules/readlink (Makefile.am): Likewise.
73043         * modules/readtokens (Makefile.am): Likewise.
73044         * modules/readutmp (Makefile.am): Likewise.
73045         * modules/realloc (Makefile.am): Likewise.
73046         * modules/regex (Makefile.am): Likewise.
73047         * modules/rename-dest-slash (Makefile.am): Likewise.
73048         * modules/rename (Makefile.am): Likewise.
73049         * modules/rijndael (Makefile.am): Likewise.
73050         * modules/rmdir (Makefile.am): Likewise.
73051         * modules/rpmatch (Makefile.am): Likewise.
73052         * modules/safe-read (Makefile.am): Likewise.
73053         * modules/safe-write (Makefile.am): Likewise.
73054         * modules/same-inode (Makefile.am): Likewise.
73055         * modules/same (Makefile.am): Likewise.
73056         * modules/save-cwd (Makefile.am): Likewise.
73057         * modules/savedir (Makefile.am): Likewise.
73058         * modules/setenv (Makefile.am): Likewise.
73059         * modules/settime (Makefile.am): Likewise.
73060         * modules/sha1 (Makefile.am): Likewise.
73061         * modules/sig2str (Makefile.am): Likewise.
73062         * modules/snprintf (Makefile.am): Likewise.
73063         * modules/stat-macros (Makefile.am): Likewise.
73064         * modules/stat-time (Makefile.am): Likewise.
73065         * modules/stdbool (Makefile.am): Likewise.
73066         * modules/stdint (Makefile.am): Likewise.
73067         * modules/stdlib-safer (Makefile.am): Likewise.
73068         * modules/stpcpy (Makefile.am): Likewise.
73069         * modules/stpncpy (Makefile.am): Likewise.
73070         * modules/strcase (Makefile.am): Likewise.
73071         * modules/strcasestr (Makefile.am): Likewise.
73072         * modules/strchrnul (Makefile.am): Likewise.
73073         * modules/strcspn (Makefile.am): Likewise.
73074         * modules/strdup (Makefile.am): Likewise.
73075         * modules/strerror (Makefile.am): Likewise.
73076         * modules/strftime (Makefile.am): Likewise.
73077         * modules/strndup (Makefile.am): Likewise.
73078         * modules/strnlen (Makefile.am): Likewise.
73079         * modules/strpbrk (Makefile.am): Likewise.
73080         * modules/strsep (Makefile.am): Likewise.
73081         * modules/strstr (Makefile.am): Likewise.
73082         * modules/strtod (Makefile.am): Likewise.
73083         * modules/strtoimax (Makefile.am): Likewise.
73084         * modules/strtok_r (Makefile.am): Likewise.
73085         * modules/strtol (Makefile.am): Likewise.
73086         * modules/strtoll (Makefile.am): Likewise.
73087         * modules/strtoul (Makefile.am): Likewise.
73088         * modules/strtoull (Makefile.am): Likewise.
73089         * modules/strtoumax (Makefile.am): Likewise.
73090         * modules/strverscmp (Makefile.am): Likewise.
73091         * modules/sys_socket (Makefile.am): Likewise.
73092         * modules/sys_stat (Makefile.am): Likewise.
73093         * modules/sysexits (Makefile.am): Likewise.
73094         * modules/time_r (Makefile.am): Likewise.
73095         * modules/timegm (Makefile.am): Likewise.
73096         * modules/timespec (Makefile.am): Likewise.
73097         * modules/tmpfile-safer (Makefile.am): Likewise.
73098         * modules/trim (Makefile.am): Likewise.
73099         * modules/unistd-safer (Makefile.am): Likewise.
73100         * modules/unlinkdir (Makefile.am): Likewise.
73101         * modules/unlocked-io (Makefile.am): Likewise.
73102         * modules/userspec (Makefile.am): Likewise.
73103         * modules/utime (Makefile.am): Likewise.
73104         * modules/utimecmp (Makefile.am): Likewise.
73105         * modules/utimens (Makefile.am): Likewise.
73106         * modules/vasnprintf (Makefile.am): Likewise.
73107         * modules/vasprintf (Makefile.am): Likewise.
73108         * modules/vsnprintf (Makefile.am): Likewise.
73109         * modules/xalloc (Makefile.am): Likewise.
73110         * modules/xgetcwd (Makefile.am): Likewise.
73111         * modules/xnanosleep (Makefile.am): Likewise.
73112         * modules/xreadlink (Makefile.am): Likewise.
73113         * modules/xstrtod (Makefile.am): Likewise.
73114         * modules/xstrtol (Makefile.am): Likewise.
73115         * modules/xstrtold (Makefile.am): Likewise.
73116         * modules/yesno (Makefile.am): Likewise.
73117         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73118
73119 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         * modules/error (Makefile.am): Distribute files through
73122         EXTRA_DIST, not lib_SOURCES.
73123
73124 2006-10-12  Eric Blake  <ebb9@byu.net>
73125
73126         * modules/error (Makefile.am): Distribute files in /lib.
73127         * modules/obstack (Makefile.am): Likewise.
73128
73129 2006-10-12  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/acl (Makefile.am): Distribute all files in lib/ through
73132         EXTRA_DIST.
73133         * modules/arcfour (Makefile.am): Likewise.
73134         * modules/arctwo (Makefile.am): Likewise.
73135         * modules/argmatch (Makefile.am): Likewise.
73136         * modules/argz (Makefile.am): Likewise.
73137         * modules/atexit (Makefile.am): Likewise.
73138         * modules/backupfile (Makefile.am): Likewise.
73139         * modules/c-strtod (Makefile.am): Likewise.
73140         * modules/c-strtold (Makefile.am): Likewise.
73141         * modules/calloc (Makefile.am): Likewise.
73142         * modules/canon-host (Makefile.am): Likewise.
73143         * modules/canonicalize (Makefile.am): Likewise.
73144         * modules/chdir-long (Makefile.am): Likewise.
73145         * modules/chdir-safer (Makefile.am): Likewise.
73146         * modules/check-version (Makefile.am): Likewise.
73147         * modules/chown (Makefile.am): Likewise.
73148         * modules/cloexec (Makefile.am): Likewise.
73149         * modules/close-stream (Makefile.am): Likewise.
73150         * modules/closeout (Makefile.am): Likewise.
73151         * modules/crc (Makefile.am): Likewise.
73152         * modules/cycle-check (Makefile.am): Likewise.
73153         * modules/des (Makefile.am): Likewise.
73154         * modules/dirfd (Makefile.am): Likewise.
73155         * modules/dirname (Makefile.am): Likewise.
73156         * modules/dup2 (Makefile.am): Likewise.
73157         * modules/euidaccess (Makefile.am): Likewise.
73158         * modules/exclude (Makefile.am): Likewise.
73159         * modules/exitfail (Makefile.am): Likewise.
73160         * modules/fcntl-safer (Makefile.am): Likewise.
73161         * modules/file-type (Makefile.am): Likewise.
73162         * modules/fileblocks (Makefile.am): Likewise.
73163         * modules/filemode (Makefile.am): Likewise.
73164         * modules/filenamecat (Makefile.am): Likewise.
73165         * modules/fnmatch (Makefile.am): Likewise.
73166         * modules/fopen-safer (Makefile.am): Likewise.
73167         * modules/fpending (Makefile.am): Likewise.
73168         * modules/fprintftime (Makefile.am): Likewise.
73169         * modules/free (Makefile.am): Likewise.
73170         * modules/fsusage (Makefile.am): Likewise.
73171         * modules/ftruncate (Makefile.am): Likewise.
73172         * modules/fts (Makefile.am): Likewise.
73173         * modules/gc (Makefile.am): Likewise.
73174         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73175         * modules/getaddrinfo (Makefile.am): Likewise.
73176         * modules/getcwd (Makefile.am): Likewise.
73177         * modules/getdelim (Makefile.am): Likewise.
73178         * modules/getdomainname (Makefile.am): Likewise.
73179         * modules/getgroups (Makefile.am): Likewise.
73180         * modules/gethostname (Makefile.am): Likewise.
73181         * modules/gethrxtime (Makefile.am): Likewise.
73182         * modules/getline (Makefile.am): Likewise.
73183         * modules/getloadavg (Makefile.am): Likewise.
73184         * modules/getlogin_r (Makefile.am): Likewise.
73185         * modules/getopt (Makefile.am): Likewise.
73186         * modules/getpass (Makefile.am): Likewise.
73187         * modules/getpass-gnu (Makefile.am): Likewise.
73188         * modules/getsubopt (Makefile.am): Likewise.
73189         * modules/gettime (Makefile.am): Likewise.
73190         * modules/gettimeofday (Makefile.am): Likewise.
73191         * modules/getugroups (Makefile.am): Likewise.
73192         * modules/getusershell (Makefile.am): Likewise.
73193         * modules/glob (Makefile.am): Likewise.
73194         * modules/group-member (Makefile.am): Likewise.
73195         * modules/hard-locale (Makefile.am): Likewise.
73196         * modules/hash (Makefile.am): Likewise.
73197         * modules/hmac-md5 (Makefile.am): Likewise.
73198         * modules/hmac-sha1 (Makefile.am): Likewise.
73199         * modules/human (Makefile.am): Likewise.
73200         * modules/idcache (Makefile.am): Likewise.
73201         * modules/imaxabs (Makefile.am): Likewise.
73202         * modules/imaxdiv (Makefile.am): Likewise.
73203         * modules/inet_ntop (Makefile.am): Likewise.
73204         * modules/inet_pton (Makefile.am): Likewise.
73205         * modules/inttostr (Makefile.am): Likewise.
73206         * modules/isapipe (Makefile.am): Likewise.
73207         * modules/lchown (Makefile.am): Likewise.
73208         * modules/long-options (Makefile.am): Likewise.
73209         * modules/lstat (Makefile.am): Likewise.
73210         * modules/malloc (Makefile.am): Likewise.
73211         * modules/mathl (Makefile.am): Likewise.
73212         * modules/mbchar (Makefile.am): Likewise.
73213         * modules/md2 (Makefile.am): Likewise.
73214         * modules/md4 (Makefile.am): Likewise.
73215         * modules/md5 (Makefile.am): Likewise.
73216         * modules/memcasecmp (Makefile.am): Likewise.
73217         * modules/memchr (Makefile.am): Likewise.
73218         * modules/memcmp (Makefile.am): Likewise.
73219         * modules/memcoll (Makefile.am): Likewise.
73220         * modules/memcpy (Makefile.am): Likewise.
73221         * modules/memmem (Makefile.am): Likewise.
73222         * modules/memmove (Makefile.am): Likewise.
73223         * modules/mempcpy (Makefile.am): Likewise.
73224         * modules/memrchr (Makefile.am): Likewise.
73225         * modules/memset (Makefile.am): Likewise.
73226         * modules/memxor (Makefile.am): Likewise.
73227         * modules/mkancesdirs (Makefile.am): Likewise.
73228         * modules/mkdir (Makefile.am): Likewise.
73229         * modules/mkdir-p (Makefile.am): Likewise.
73230         * modules/mkdtemp (Makefile.am): Likewise.
73231         * modules/mkstemp (Makefile.am): Likewise.
73232         * modules/mktime (Makefile.am): Likewise.
73233         * modules/modechange (Makefile.am): Likewise.
73234         * modules/mountlist (Makefile.am): Likewise.
73235         * modules/nanosleep (Makefile.am): Likewise.
73236         * modules/openat (Makefile.am): Likewise.
73237         * modules/pagealign_alloc (Makefile.am): Likewise.
73238         * modules/physmem (Makefile.am): Likewise.
73239         * modules/poll (Makefile.am): Likewise.
73240         * modules/posixtm (Makefile.am): Likewise.
73241         * modules/posixver (Makefile.am): Likewise.
73242         * modules/putenv (Makefile.am): Likewise.
73243         * modules/quote (Makefile.am): Likewise.
73244         * modules/quotearg (Makefile.am): Likewise.
73245         * modules/raise (Makefile.am): Likewise.
73246         * modules/read-file (Makefile.am): Likewise.
73247         * modules/readline (Makefile.am): Likewise.
73248         * modules/readlink (Makefile.am): Likewise.
73249         * modules/readtokens (Makefile.am): Likewise.
73250         * modules/readutmp (Makefile.am): Likewise.
73251         * modules/realloc (Makefile.am): Likewise.
73252         * modules/regex (Makefile.am): Likewise.
73253         * modules/rename (Makefile.am): Likewise.
73254         * modules/rename-dest-slash (Makefile.am): Likewise.
73255         * modules/rijndael (Makefile.am): Likewise.
73256         * modules/rmdir (Makefile.am): Likewise.
73257         * modules/rpmatch (Makefile.am): Likewise.
73258         * modules/safe-read (Makefile.am): Likewise.
73259         * modules/safe-write (Makefile.am): Likewise.
73260         * modules/same (Makefile.am): Likewise.
73261         * modules/save-cwd (Makefile.am): Likewise.
73262         * modules/savedir (Makefile.am): Likewise.
73263         * modules/setenv (Makefile.am): Likewise.
73264         * modules/settime (Makefile.am): Likewise.
73265         * modules/sha1 (Makefile.am): Likewise.
73266         * modules/sig2str (Makefile.am): Likewise.
73267         * modules/snprintf (Makefile.am): Likewise.
73268         * modules/stdlib-safer (Makefile.am): Likewise.
73269         * modules/stpcpy (Makefile.am): Likewise.
73270         * modules/stpncpy (Makefile.am): Likewise.
73271         * modules/strcase (Makefile.am): Likewise.
73272         * modules/strcasestr (Makefile.am): Likewise.
73273         * modules/strchrnul (Makefile.am): Likewise.
73274         * modules/strcspn (Makefile.am): Likewise.
73275         * modules/strdup (Makefile.am): Likewise.
73276         * modules/strerror (Makefile.am): Likewise.
73277         * modules/strftime (Makefile.am): Likewise.
73278         * modules/strndup (Makefile.am): Likewise.
73279         * modules/strnlen (Makefile.am): Likewise.
73280         * modules/strpbrk (Makefile.am): Likewise.
73281         * modules/strsep (Makefile.am): Likewise.
73282         * modules/strstr (Makefile.am): Likewise.
73283         * modules/strtod (Makefile.am): Likewise.
73284         * modules/strtoimax (Makefile.am): Likewise.
73285         * modules/strtok_r (Makefile.am): Likewise.
73286         * modules/strtol (Makefile.am): Likewise.
73287         * modules/strtoll (Makefile.am): Likewise.
73288         * modules/strtoul (Makefile.am): Likewise.
73289         * modules/strtoull (Makefile.am): Likewise.
73290         * modules/strtoumax (Makefile.am): Likewise.
73291         * modules/strverscmp (Makefile.am): Likewise.
73292         * modules/time_r (Makefile.am): Likewise.
73293         * modules/timegm (Makefile.am): Likewise.
73294         * modules/tmpfile-safer (Makefile.am): Likewise.
73295         * modules/unistd-safer (Makefile.am): Likewise.
73296         * modules/unlinkdir (Makefile.am): Likewise.
73297         * modules/userspec (Makefile.am): Likewise.
73298         * modules/utime (Makefile.am): Likewise.
73299         * modules/utimecmp (Makefile.am): Likewise.
73300         * modules/utimens (Makefile.am): Likewise.
73301         * modules/vasnprintf (Makefile.am): Likewise.
73302         * modules/vasprintf (Makefile.am): Likewise.
73303         * modules/vsnprintf (Makefile.am): Likewise.
73304         * modules/xalloc (Makefile.am): Likewise.
73305         * modules/xgetcwd (Makefile.am): Likewise.
73306         * modules/xnanosleep (Makefile.am): Likewise.
73307         * modules/xreadlink (Makefile.am): Likewise.
73308         * modules/xstrtod (Makefile.am): Likewise.
73309         * modules/xstrtol (Makefile.am): Likewise.
73310         * modules/xstrtold (Makefile.am): Likewise.
73311         * modules/yesno (Makefile.am): Likewise.
73312
73313 2006-10-12  Jim Meyering  <jim@meyering.net>
73314
73315         * m4/getloadavg.m4: Revert the change below.
73316
73317         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73318         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73319         fail with a symlink, which is what coreutils' ./bootstrap now
73320         creates by default.
73321
73322 2006-10-12  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73325         mingw.
73326         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73327         MSVC and mingw explicitly.
73328
73329 2006-10-11  Simon Josefsson  <jas@extundo.com>
73330             Bruno Haible  <bruno@clisp.org>
73331
73332         Add support for multiple gnulib-tool invocations in the scope of a
73333         single configure.ac file.
73334         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73335         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73336         with the same contents as the _LIBADD variable.
73337         (func_emit_initmacro_start, func_emit_initmacro_end,
73338         func_emit_initmacro_done): New functions.
73339         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73340         gl_LIBOBJS and gl_LTLIBOBJS.
73341
73342 2006-10-11  Bruno Haible  <bruno@clisp.org>
73343
73344         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73345         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73346         autoreconf. Instead, invoke autopoint explicitly but move back the
73347         *.m4 files from gnulib.
73348
73349 2006-10-11  Bruno Haible  <bruno@clisp.org>
73350
73351         * gnulib-tool (func_usage): Make module names after --create-testdir
73352         optional.
73353         (func_create_testdir): If no module was specified, use nearly all
73354         modules.
73355
73356 2006-10-12  Jim Meyering  <jim@meyering.net>
73357
73358         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73359         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73360         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73361         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73362         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73363         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73364         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73365         (fts_set_stat_required): New function.
73366         (fts_open): Defer the calls to fts_stat, if possible or requested.
73367         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73368         into fts_stat itself.
73369         (fts_read): Perform any required (deferred) fts_stat call.
73370         (fts_build): Likewise, for the directory we're about to open and read.
73371         In the readdir loop, carefully decide whether each entry will require
73372         an eventual call to fts_stat, using dirent.d_type info if available.
73373         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73374         a command line argument into this function.  Update all callers.
73375         Map a return value of FTS_DOT to FTS_D for a command line argument.
73376         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73377         Thanks to Miklos Szeredi for his tenacity and for the initial
73378         bug report about "find" failing on a FUSE-based file system.
73379
73380         * lib/fts.c (fts_open): Use consistent indentation.
73381
73382 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73385         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73386         reported by Jim Meyering.  All uses of cache variables renamed
73387         to match Autoconf's.
73388         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73389         the other one.
73390
73391         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73392         Fix misspelling in diagnostic.
73393
73394 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73395
73396         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73397         defined.  Problem reported by Matthew Woehlke.
73398
73399         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73400         Add support for Tandem NonStop R series.
73401         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73402         Use new macro.
73403
73404         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73405         (has_trailing_slash): Omit size arg; all callers changed.
73406         Omit 'inline', since it doesn't help performance and we'd
73407         need to configure it.
73408         Don't count //, ///, etc. as having a trailing slash.
73409         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73410         (rpl_rename_dest_slash): On failure, use rename's errno rather
73411         than (in some cases) an incorrect or junk errno.
73412         Simplify code by removing need to compute length; this does
73413         cause it to make two passes instead of one over the file name,
73414         but it's worth it.
73415
73416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73417         change, since Autoconf's version may no longer be appropriate now
73418         that we are using CVS Autoconf's version.  Add support for Tandem.
73419
73420 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73421             Bruno Haible  <bruno@clisp.org>
73422
73423         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73424         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73425         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73426         gl_AC_TYPE_LONG_LONG.
73427
73428         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73429         instead of HAVE_LONG_LONG.
73430         * lib/printf-args.c (printf_fetchargs): Likewise.
73431         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73432         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73434         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73435         gl_AC_TYPE_LONG_LONG.
73436
73437 2006-10-11  Bruno Haible  <bruno@clisp.org>
73438
73439         * m4/longlong.m4: Add comments.
73440         * m4/ulonglong.m4: Likewise.
73441
73442 2006-10-10  Bruno Haible  <bruno@clisp.org>
73443
73444         Make it possible to #define stpcpy, strdup to aliases.
73445         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73446         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73447
73448 2006-10-10  Bruno Haible  <bruno@clisp.org>
73449
73450         Make it possible to #define gcd to an alias.
73451         * lib/gcd.c: Include config.h.
73452
73453 2006-10-10  Bruno Haible  <bruno@clisp.org>
73454
73455         Make it possible to #define c_isascii to an alias.
73456         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73457         defined. Undefine the macros before defining them, to avoid gcc
73458         warnings.
73459         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73460         define NO_C_CTYPE_MACROS early.
73461
73462 2006-10-10  Bruno Haible  <bruno@clisp.org>
73463
73464         Make it possible to #define set_program_name to an alias.
73465         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73466         ENABLE_RELOCATABLE early.
73467
73468 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73471         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73472         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73473         More generally, don't assume that 64-bit signed int is available
73474         if unsigned int is, and vice versa.
73475         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73476         unsigned symbols, not on their signed counterparts.
73477         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73478         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73479         (UINT64_C, UINTMAX_C):
73480         Likewise.
73481         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73482         unsigned counterparts.
73483         (Have_long_long, Unsigned): New macros.
73484         (Int): Renamed from INT.
73485         (strtoimax): Use the new macros.
73486         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73487         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73488         * modules/inttypes (inttypes.h): Substitute
73489         HAVE_UNSIGNED_LONG_LONG_INT.
73490         * modules/stdint (stdint.h): Likewise.
73491         (Files): Add m4/ulonglong.m4.
73492
73493 2006-10-10  Bruno Haible  <bruno@clisp.org>
73494
73495         Fix a gcc -Wshadow warning.
73496         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73497         to 'bucket'.
73498         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73499         gl_linked_indexof_from_to): Likewise.
73500         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73501         Likewise.
73502         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73503         Likewise.
73504         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73505         Reported by Eric Blake.
73506
73507 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73508
73509         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73510         for NetBSD.  Problem reported by Bruno Haible.
73511
73512 2006-10-09  Jim Meyering  <jim@meyering.net>
73513
73514         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73515         Patch from Bruno Haible.
73516
73517 2006-10-09  Jim Meyering  <jim@meyering.net>
73518
73519         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73520         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73521         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73522
73523 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         Don't include <config.h> twice; this doesn't work in some cases,
73526         e.g., when config.h has "#define intmax_t long long int" and
73527         we include <config.h>, <inttypes.h>, <config.h> in that order.
73528         Problem reported by Matthew Woehlke in:
73529         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73530         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73531         * lib/fts-cycle.c: Don't include config.h.
73532         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73533         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73534         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73535         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73536         inttypes.h.
73537         * lib/xstrtoumax.c: Likewise.
73538         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73539         __strtol and the like, so that this module is more like its siblings.
73540         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73541         Remove; no longer needed now that we assume gnulib inttypes.h.
73542
73543 2006-10-08  Bruno Haible  <bruno@clisp.org>
73544
73545         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73546         option.
73547
73548 2006-10-07  Jim Meyering  <jim@meyering.net>
73549
73550         * modules/inttypes (inttypes.h): Revert what seems to have been
73551         an inadvertent part of today's change: use "|", not "/" in the
73552         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73553
73554 2006-10-07  Bruno Haible  <bruno@clisp.org>
73555
73556         * modules/sublist: New file.
73557
73558 2006-10-07  Bruno Haible  <bruno@clisp.org>
73559
73560         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73561         * modules/argz (argz.h): Likewise.
73562         * modules/arpa_inet (arpa/inet.h): Likewise.
73563         * modules/byteswap (byteswap.h): Likewise.
73564         * modules/configmake (configmake.h): Likewise.
73565         * modules/fcntl (fcntl.h): Likewise.
73566         * modules/fnmatch (fnmatch.h): Likewise.
73567         * modules/getopt (getopt.h): Likewise.
73568         * modules/glob (glob.h): Likewise.
73569         * modules/inttypes (inttypes.h): Likewise.
73570         * modules/netinet_in (netinet/in.h): Likewise.
73571         * modules/poll (poll.h): Likewise.
73572         * modules/stdbool (stdbool.h): Likewise.
73573         * modules/stdint (stdint.h): Likewise.
73574         * modules/sys_select (sys/select.h): Likewise.
73575         * modules/sys_socket (sys/socket.h): Likewise.
73576         * modules/sys_stat (sys/stat.h): Likewise.
73577         * modules/sysexits (sysexits.h): Likewise.
73578         * modules/unistd (unistd.h): Likewise.
73579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73580         Add a "DO NOT EDIT" comment to the generated file.
73581         (func_import): Likewise for gnulib-comp.m4.
73582
73583 2006-10-07  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/gl_sublist.h: New file.
73586         * lib/gl_sublist.c: New file.
73587
73588 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73591         name (relative to the original working directory) and the file
73592         name component (relative to the temporary working directory).  All
73593         callers changed.
73594         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73595         * lib/mkdir-p.c (make_dir_parents): Likewise.
73596         * lib/mkdir-p.h (make_dir_parents): Likewise.
73597
73598 2006-10-06  Eric Blake  <ebb9@byu.net>
73599
73600         Define several macros for use by the clean-temp module.
73601         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73602         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73603         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73604
73605         * lib/clean-temp.h (close_stream_temp): New declaration.
73606         * lib/clean-temp.c (includes): Pull in headers according to what
73607         other modules are in use.
73608         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73609
73610 2006-10-06  Bruno Haible  <bruno@clisp.org>
73611
73612         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73613         instead of fopen, fwriteerror.
73614
73615 2006-10-06  Bruno Haible  <bruno@clisp.org>
73616
73617         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73618         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73619         int.
73620         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73621         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73622         Return an error indicator.
73623         Suggested by Eric Blake.
73624
73625 2006-10-06  Bruno Haible  <bruno@clisp.org>
73626
73627         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73628         Reported by Eric Blake.
73629
73630 2006-10-06  Bruno Haible  <bruno@clisp.org>
73631
73632         * modules/closeout (Description): Mention stderr too.
73633
73634 2006-10-06  Bruno Haible  <bruno@clisp.org>
73635         and Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/closeout.c (close_stdout): Also close stderr.
73638         * lib/closeout.h: Update comment.
73639
73640 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73643         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73644         * lib/dirchownmod.c: Include lchown.h.
73645         * lib/lchown.c: Don't include files that lchown.h now includes.
73646         Don't declare chown, since lchown.h now does that.
73647         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73648         (lchown): Define to rpl_chown if lchown is declared but
73649         does not exist.  Declare using a prototype if lchown is not
73650         declared.  Add a copyright notice.
73651         * lib/mkstemp.h: Include <unistd.h>.
73652         * lib/openat.c: Include lchown.h.
73653
73654         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73655         we now test for that separately.
73656         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73657         rather than O_NOFOLLOW, when testing whether it's possible to
73658         avoid a race condition reliably.
73659         * lib/savewd.c (savewd_chdir): Likewise.
73660
73661         Remove macros that are no longer needed now that stdint.h is
73662         reliable.
73663         * lib/fsusage.c (UINTMAX_MAX): Remove.
73664         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73665         * lib/utimecmp.c (SIZE_MAX): Remove.
73666
73667         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73668
73669         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73670         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73671         O_NOATIME works.
73672
73673 2006-10-05  Bruno Haible  <bruno@clisp.org>
73674
73675         * lib/gl_list.h (gl_sortedlist_search_from_to,
73676         gl_sortedlist_indexof_from_to): New declarations.
73677         (gl_list_implementation): New fields sortedlist_search_from_to,
73678         sortedlist_indexof_from_to.
73679         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73680         inline functions.
73681         * lib/gl_list.c (gl_sortedlist_search_from_to,
73682         gl_sortedlist_indexof_from_to): New functions.
73683         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73684         function.
73685         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73686         (gl_array_sortedlist_search_from_to): New function.
73687         (gl_array_list_implementation): Update.
73688         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73689         function.
73690         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73691         (gl_carray_sortedlist_search_from_to): New function.
73692         (gl_carray_list_implementation): Update.
73693         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73694         gl_linked_sortedlist_indexof_from_to): New functions.
73695         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73696         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73697         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73698         gl_tree_sortedlist_indexof_from_to): New functions.
73699         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73700         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73701         Update.
73702         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73703         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73704         Update.
73705
73706 2006-10-05  Bruno Haible  <bruno@clisp.org>
73707
73708         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73709         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73710         (struct gl_list_implementation): Add fields search_from_to,
73711         indexof_from_to. Remove fields search, indexof.
73712         (gl_list_search): Use the search_from_to method.
73713         (gl_list_search_from, gl_list_search_from_to): New functions.
73714         (gl_list_indexof): Use the indexof_from_to method.
73715         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73716         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73717         (gl_list_search_from, gl_list_search_from_to): New functions.
73718         (gl_list_indexof): Use the indexof_from_to method.
73719         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73720         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73721         gl_array_indexof. Add start_index, end_index arguments.
73722         (gl_array_search_from_to): Renamed from gl_array_search. Add
73723         start_index, end_index arguments.
73724         (gl_array_remove, gl_array_list_implementation): Update.
73725         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73726         gl_carray_indexof. Add start_index, end_index arguments.
73727         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73728         start_index, end_index arguments.
73729         (gl_carray_remove, gl_carray_list_implementation): Update.
73730         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73731         gl_linked_search. Add start_index, end_index arguments.
73732         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73733         start_index, end_index arguments.
73734         (gl_linked_remove): Update.
73735         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73736         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73737         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73738         field to 'size_t'.
73739         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73740         gl_tree_search. Add start_index, end_index arguments.
73741         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73742         start_index, end_index arguments.
73743         (gl_tree_remove): Update.
73744         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73745         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73746         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73747         function.
73748         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73749         gl_tree_search. Add start_index, end_index arguments.
73750         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73751         start_index, end_index arguments.
73752         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73753         Update.
73754         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73755
73756 2006-10-05  Bruno Haible  <bruno@clisp.org>
73757
73758         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73759
73760         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73761         fwriteerror_temp): New declarations.
73762         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73763         (descriptors): New variable.
73764         (cleanup): First, close the descriptors.
73765         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73766         fclose_temp, fwriteerror_temp): New functions.
73767
73768 2006-10-04  Jim Meyering  <jim@meyering.net>
73769
73770         * lib/fts.c (fts_open): Tiny comment change.
73771
73772 2006-10-04  Bruno Haible  <bruno@clisp.org>
73773
73774         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73775         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73776         gl_LOCK_BODY.
73777         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73778         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73779         gl_LOCK_EARLY_BODY.
73780         (gl_LOCK): Require gl_LOCK_BODY.
73781
73782 2006-10-04  Bruno Haible  <bruno@clisp.org>
73783
73784         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73785         (gl_oset_search_atleast): New declaration.
73786         (struct gl_oset_implementation): Add field 'search_atleast'.
73787         (gl_oset_search_atleast): New inline function.
73788         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73789         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73790         (gl_array_oset_implementation): Update.
73791         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73792         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73793         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73794
73795 2006-10-04  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73798
73799 2006-10-03  Bruno Haible  <bruno@clisp.org>
73800
73801         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73802         from gl_avltreehash_list_implementation.
73803
73804 2006-10-03  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/gl_oset.c (gl_oset_add): Fix return type.
73807
73808 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73809
73810         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73811
73812 2006-10-02  Eric Blake  <ebb9@byu.net>
73813
73814         * modules/strnlen (Depends-on): Add extensions.
73815
73816 2006-10-02  Eric Blake  <ebb9@byu.net>
73817
73818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73819         definition in 2.60+.
73820
73821 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73822
73823         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73824         checks.
73825
73826 2006-10-02  Bruno Haible  <bruno@clisp.org>
73827
73828         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73829         to the AUTOMAKE_OPTIONS.
73830         Reported by Jim Meyering.
73831
73832 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         Work around bug in Solaris 10 /proc file system:
73835         /proc/self/fd/NNN/.. isn't the parent directory of
73836         the directory whose file descriptor is NNN.  This needs to
73837         be worked around at run time, not compile time, since a
73838         program might be built on Solaris 8, where things work, and
73839         run on Solaris 10.
73840         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73841         to use the following interface instead:
73842         (OPENAT_BUFFER_SIZE): New macro.
73843         (openat_proc_name): New function.
73844         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73845         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73846         Likewise.
73847         * lib/openat-proc.c: New file.
73848         * modules/openat (Files): Add lib/openat-proc.c.
73849         (Depends-on): Add same-inode, stdbool.
73850         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73851
73852 2006-09-29  Bruno Haible  <bruno@clisp.org>
73853
73854         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73855         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73856         argument. Set stdout_closed before testing for ferror, not after.
73857         (fwriteerror, fwriteerror_no_ebadf): New functions.
73858
73859 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73860
73861         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73862
73863 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73864
73865         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73866         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73867
73868 2006-09-28  Jim Meyering  <jim@meyering.net>
73869
73870         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73871         Include <unistd.h>.
73872
73873 2006-09-28  Bruno Haible  <bruno@clisp.org>
73874
73875         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73876         * modules/linkedhash-list (Depends-on): Likewise.
73877         * modules/rbtreehash-list (Depends-on): Likewise.
73878
73879 2006-09-28  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/strndup.h: Simplify the redefinition of strndup.
73882         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73884
73885 2006-09-28  Bruno Haible  <bruno@clisp.org>
73886
73887         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73888         * lib/gl_linkedhash_list.c: Likewise.
73889         * lib/gl_rbtreehash_list.c: Likewise.
73890
73891 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73894         getaddrinfo.
73895
73896         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73897         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73898         it causes <stdio_ext.h> to cause a compile-time error.
73899         Problem reported by Nelson H. F. Beebe.
73900         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73901         of HAVE_DECL___PENDING.
73902
73903         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73904         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73905         declaration.
73906
73907 2006-09-27  Jim Meyering  <jim@meyering.net>
73908
73909         This file could end up with a definition for a function
73910         named __strndup, rather than rpl_strndup on a system with
73911         incomplete weak_alias support.
73912         * lib/strndup.c (strndup): Rename from __strndup.
73913         Remove #defines that used to map __strndup to strndup.
73914         Don't use K&R prototypes.
73915         Remove LIBC-related code, since this file is not sync'd with glibc.
73916         * lib/strndup.h: Revamp, accordingly.
73917         * m4/strndup.m4: Modernize.
73918
73919 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * modules/savewd (Depends-on): Add 'raise'.
73922         * lib/savewd.c: Include <signal.h>, for 'raise'.
73923
73924 2006-09-26  Jim Meyering  <jim@meyering.net>
73925
73926         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73927         when we detect Darwin 8.7.0's acl_get_file bug.
73928         Rearrange to perform the new (below) run-test while $LIBS
73929         contains any acl-related library.  Set USE_ACL at the end.
73930         (gl_ACL_GET_FILE): New function.
73931
73932 2006-09-26  Eric Blake  <ebb9@byu.net>
73933
73934         * lib/verror.c: Include <config.h> unconditionally.
73935
73936 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * modules/clock-time (Maintainer): Add self.
73939         * modules/getlogin_r (Depends-on): Add extensions.
73940
73941 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73942
73943         * modules/clock-time: New module.
73944         * modules/nanosleep (Depends-on): Add clock-time.
73945         * modules/gethrxtime (Depends-on): Likewise.
73946         * modules/gettime (Depends-on): Likewise.
73947         * modules/settime (Depends-on): Likewise.
73948
73949         * modules/fts-lgpl: Depend on openat.
73950         * modules/mkancesdirs: Depend on savewd.
73951         * modules/mkdir-p: Likewise.
73952
73953 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73954
73955         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73956
73957         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73958         `gl_have_arbitrary_file_name_length_limit' to
73959         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73960         actually works between configure runs.
73961
73962 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73963             Bruno Haible  <bruno@clisp.org>
73964
73965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73966
73967 2006-09-25  Jim Meyering  <jim@meyering.net>
73968
73969         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73970         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73971
73972 2006-09-25  Eric Blake  <ebb9@byu.net>
73973
73974         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73975         exec's in 2006-09-18 patch when shuffling fds.
73976
73977 2006-09-25  Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73980         Reported by Jim Meyering.
73981
73982 2006-09-24  Jim Meyering  <jim@meyering.net>
73983
73984         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73985         compare a pointer against a literal "0".  That caused failures with
73986         at least HP-UX's hpcc.
73987
73988 2006-09-22  Simon Josefsson  <jas@extundo.com>
73989
73990         * modules/gc-sha1:
73991         * modules/gc-md4:
73992         * modules/gc-hmac-sha1:
73993         * modules/gc-hmac-md5:
73994         * modules/gc-des:
73995         * modules/gc-arcfour: Distribute more files.
73996
73997 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73998
73999         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74000         (gl_linked_iterator_from_to): Initialize struct completely.
74001         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74002         (gl_tree_iterator_from_to): Likewise
74003         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74004         * lib/gl_array_list.c [lint] (gl_array_iterator)
74005         (gl_array_iterator_from_to): Likewise.
74006         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74007         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74008         (gl_carray_iterator_from_to): Likewise.
74009
74010         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74011         * lib/md4.c (md4_process_block): Remove unused variable.
74012         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74013         parentheses for clarity.
74014
74015 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74016
74017         * modules/bison-i18n (Depends-on): Add gettext.
74018
74019 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74020
74021         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74022         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74023         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74024         also add missing comma that caused broken test.
74025         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74026         stdlib.h, for `abort'.
74027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74028         variables.
74029         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74030         include unistd.h if present, for `rmdir'.
74031         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74032         variables.
74033         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74034         in the process include standard headers for prototypes.
74035         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74036         gets declared on GNU/Linux.
74037         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74038         unistd.h, for `rmdir'.
74039         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74040
74041         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74042         always true.
74043         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74044
74045         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74046
74047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74048
74049         * gnulib-tool (func_version): Create output all at once.  This
74050         may help avoid triggering unnecessary SIGPIPEs, and at any
74051         rate it doesn't hurt.
74052
74053 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74054             Bruno Haible  <bruno@clisp.org>
74055
74056         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74057         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74058         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74059
74060         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74061         (gl_FUNC_VASPRINTF): Invoke it.
74062
74063 2006-09-22  Bruno Haible  <bruno@clisp.org>
74064
74065         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74066         getloadavg.c as first argument.
74067
74068 2006-09-22  Bruno Haible  <bruno@clisp.org>
74069
74070         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74071         at the beginning of the gl_INIT macro.
74072         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74073         gl_GETLOADAVG.
74074
74075 2006-09-22  Bruno Haible  <bruno@clisp.org>
74076
74077         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74078         module.
74079         Suggested by Ralf Wildenhues.
74080
74081 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         Import this patch from libc:
74084
74085         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74086
74087         * lib/regex_internal.c (re_string_reconstruct): Handle
74088         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74089         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74090         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74091         re_string_context_at.
74092
74093         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74094         now requires it.
74095         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74096         gl_REGEX now does it for us.
74097         (gl_REGEX): Add test taken from
74098         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74099
74100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74101         Check that large offsets work.  Modernize Autoconf usages.
74102         Prefer "yes" to mean a good thing rather than a bad.
74103         Don't put "#define mkstemp" in config.h, as this might interfere
74104         with standard system headers that "#define mkstemp mkstemp64".
74105
74106         * modules/mkstemp (Depends-on): Add extensions, so that
74107         mkstemp is visible on some platforms.
74108         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74109         (Include): Change to "mkstemp.h" from <stdlib.h>.
74110         (Files): Add mkstemp.h.
74111
74112         * lib/mkstemp.h: New file, since some standard headers
74113         #define mkstemp.
74114         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74115         Include "mkstemp.h".
74116         Make the _LIBC code resemble glibc original more,
74117         e.g., use K&R style.
74118         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74119         (mkstemp): Remove, since mkstemp.h does this for us.
74120         * lib/stdlib--.h: Include mkstemp.h.
74121
74122         Import this patch from libc:
74123
74124         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74125
74126         * lib/tempname.c (__gen_tempname): Change attempts_min
74127         into a macro.  Use preprocessor to decide how to initialize
74128         attempts [Coverity CID 67].
74129
74130 2006-09-20  Bruno Haible  <bruno@clisp.org>
74131
74132         * lib/mkdtemp.c: Import from libc.
74133         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74134                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74135                 attempts_min into a macro.  Use preprocessor to decide how to
74136                 initialize attempts [Coverity CID 67].
74137         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74138                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74139                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74140
74141 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74142
74143         * gnulib-tool (func_exit): New function, to allow to pass the
74144         exit status portably through the trap.  Use everywhere.
74145         (--help, --version): Signal a write error.
74146         (trap): catch SIGPIPE, for write errors.
74147         Exit at the end of the trap, with the correct exit status.
74148
74149 2006-09-19  Karl Berry  <karl@gnu.org>
74150
74151         * doc/gnulib.texi: note about the license texinfo files.
74152
74153 2006-09-19  Eric Blake  <ebb9@byu.net>
74154
74155         * gnulib-tool: Avoid space-tab.
74156
74157 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74160         that prevented coreutils 6.1 from building.  Problem reported
74161         by Petter Reinholdtsen.
74162
74163 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * gnulib-tool (avoidlist): Fix typo that broke options like
74166         --avoid=lock that are used by coreutils bootstrap.
74167
74168 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74169
74170         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74171         more systematically.
74172
74173 2006-09-18  Jim Meyering  <jim@meyering.net>
74174
74175         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74176
74177 2006-09-18  Bruno Haible  <bruno@clisp.org>
74178
74179         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74180
74181 2006-09-18  Bruno Haible  <bruno@clisp.org>
74182
74183         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74184         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74185         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74186         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74187         * m4/gettext.m4: Require autoconf >= 2.52.
74188         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74189         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74190         of gl_cv_header_inttypes_h.
74191
74192 2006-09-18  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/javaversion.c: Include configmake.h.
74195
74196 2006-09-18  Bruno Haible  <bruno@clisp.org>
74197
74198         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74199         avoid that the while loops be executed in a subshell.
74200
74201 2006-09-18  Bruno Haible  <bruno@clisp.org>
74202
74203         * MODULES.html.sh (func_module): Break long lines.
74204         Suggested by Bruce Korb <bkorb@gnu.org>.
74205
74206 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74207
74208         Speed up by a factor of 1.12.
74209         * gnulib-tool (nl): New variable.
74210         (func_import): Rewrite include directive extraction to only read each
74211         directive once.
74212
74213 2006-09-17  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/javaversion (Makefile.am): Remove DEFS setting.
74216         (Depends-on): Add configmake, for PKGDATADIR definition.
74217
74218 2006-09-17  Bruno Haible  <bruno@clisp.org>
74219
74220         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74221
74222 2006-09-17  Bruno Haible  <bruno@clisp.org>
74223
74224         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74225         (func_modules_transitive_closure, func_modules_add_dummy,
74226         func_modules_to_filelist, func_import, func_create_testdir,
74227         func_create_megatestdir, ...): Use it wherever possible.
74228         Suggested by Ralf Wildenhues.
74229
74230 2006-09-16  Karl Berry  <karl@gnu.org>
74231
74232         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74233         to avoid sectioning errors.
74234         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74235         [ifinfo]: blank line after @center-ed titles.
74236         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74237         Spell FSF address consistently with others.
74238         (These changes approved by rms.)
74239
74240 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74241
74242         Speed up by a factor of 1.61.
74243         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74244         already checked module names again.
74245
74246 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74247
74248         Speed up by a factor of 1.13.
74249         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74250         for new_files, and the input to func_add_or_update.
74251
74252 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74253
74254         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74255         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74256
74257 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * modules/mkancesdirs (Depends-on): Add fcntl.
74260         * modules/savewd: New file.
74261         * MODULES.html.sh (File system functions): Add savewd.
74262
74263         * modules/configmake (Makefile.am): Add support for the
74264         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74265
74266 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * m4/savewd.m4: New file.
74269
74270 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74273         (dirchownmod): New arg FD.  All callers changed.
74274         Use FD rather than opening the directory ourself, as opening is
74275         now the caller's responsibility.
74276         * lib/dirchownmod.h: Likewise.
74277         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74278         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74279         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74280         (test_dir): Remove.
74281         (mkancesdirs): Return length of prefix of FILE that has already
74282         been made, or -2 if there is a child doing the work.  Redo
74283         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74284         ".", and treat ".." specially since it might stray back into
74285         already-created areas.  Use a subprocess if necessary.  New arg
74286         WD; all users changed.  MAKE_DIR function should now return 1
74287         if it creates a directory that is not readable.  Return -2 if
74288         a child process is spun off.
74289         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74290         Adjust signature to match code.
74291         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74292         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74293         all users changed.
74294         * lib/savewd.c, lib/savewd.h: New files.
74295
74296 2006-09-15  Jim Meyering  <jim@meyering.net>
74297
74298         * modules/rename-dest-slash: New module.
74299         * MODULES.html.sh (posix_compat): Add it here.
74300
74301         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74302
74303 2006-09-15  Jim Meyering  <jim@meyering.net>
74304
74305         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74306         file.
74307
74308         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74309
74310 2006-09-15  Jim Meyering  <jim@meyering.net>
74311
74312         * lib/rename-dest-slash.c (has_trailing_slash): Use
74313         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74314         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74315         test before testing whether SRC is a directory.
74316         Suggestions from Bruno Haible.
74317
74318         Avoid a warning about an unused variable.
74319         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74320         into the #ifdef block where it's used.
74321
74322         * lib/rename-dest-slash.c: New file.
74323
74324 2006-09-14  Bruno Haible  <bruno@clisp.org>
74325
74326         * lib/allocsa.c: Include <config.h> unconditionally.
74327         * lib/asnprintf.c: Likewise.
74328         * lib/asprintf.c: Likewise.
74329         * lib/c-strcasecmp.c: Likewise.
74330         * lib/c-strcasestr.c: Likewise.
74331         * lib/c-strncasecmp.c: Likewise.
74332         * lib/c-strstr.c: Likewise.
74333         * lib/classpath.c: Likewise.
74334         * lib/clean-temp.c: Likewise.
74335         * lib/concatpath.c: Likewise.
74336         * lib/copy-file.c: Likewise.
74337         * lib/csharpcomp.c: Likewise.
74338         * lib/csharpexec.c: Likewise.
74339         * lib/execute.c: Likewise.
74340         * lib/fatal-signal.c: Likewise.
74341         * lib/findprog.c: Likewise.
74342         * lib/fwriteerror.c: Likewise.
74343         * lib/gl_array_list.c: Likewise.
74344         * lib/gl_array_oset.c: Likewise.
74345         * lib/gl_avltree_list.c: Likewise.
74346         * lib/gl_avltree_oset.c: Likewise.
74347         * lib/gl_avltreehash_list.c: Likewise.
74348         * lib/gl_carray_list.c: Likewise.
74349         * lib/gl_linked_list.c: Likewise.
74350         * lib/gl_linkedhash_list.c: Likewise.
74351         * lib/gl_list.c: Likewise.
74352         * lib/gl_oset.c: Likewise.
74353         * lib/gl_rbtree_list.c: Likewise.
74354         * lib/gl_rbtree_oset.c: Likewise.
74355         * lib/gl_rbtreehash_list.c: Likewise.
74356         * lib/imaxabs.c: Likewise.
74357         * lib/imaxdiv.c: Likewise.
74358         * lib/javacomp.c: Likewise.
74359         * lib/javaexec.c: Likewise.
74360         * lib/javaversion.c: Likewise.
74361         * lib/linebreak.c: Likewise.
74362         * lib/localcharset.c: Likewise.
74363         * lib/lock.c: Likewise.
74364         * lib/mbchar.c: Likewise.
74365         * lib/mbswidth.c: Likewise.
74366         * lib/mkdtemp.c: Likewise.
74367         * lib/pipe.c: Likewise.
74368         * lib/printf-args.c: Likewise.
74369         * lib/printf-parse.c: Likewise.
74370         * lib/progname.c: Likewise.
74371         * lib/progreloc.c: Likewise.
74372         * lib/readlink.c: Likewise.
74373         * lib/sh-quote.c: Likewise.
74374         * lib/stpcpy.c: Likewise.
74375         * lib/stpncpy.c: Likewise.
74376         * lib/strcasecmp.c: Likewise.
74377         * lib/strcasestr.c: Likewise.
74378         * lib/strcspn.c: Likewise.
74379         * lib/striconv.c: Likewise.
74380         * lib/strncasecmp.c: Likewise.
74381         * lib/strnlen1.c: Likewise.
74382         * lib/strstr.c: Likewise.
74383         * lib/strtok_r.c: Likewise.
74384         * lib/tls.c: Likewise.
74385         * lib/tmpdir.c: Likewise.
74386         * lib/unicodeio.c: Likewise.
74387         * lib/unsetenv.c: Likewise.
74388         * lib/vasnprintf.c: Likewise.
74389         * lib/vasprintf.c: Likewise.
74390         * lib/wait-process.c: Likewise.
74391         * lib/xallocsa.c: Likewise.
74392         * lib/xsetenv.c: Likewise.
74393         * lib/xstriconv.c: Likewise.
74394
74395 2006-09-13  Simon Josefsson  <jas@extundo.com>
74396
74397         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74398         that internally, suggested by Ralf Wildenhues
74399         <Ralf.Wildenhues@gmx.de>.
74400
74401 2006-09-13  Simon Josefsson  <jas@extundo.com>
74402
74403         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74404         @LIBOBJS@.
74405         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74406
74407 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74410         longer worry about uses that don't define HAVE_CONFIG_H.
74411         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74412         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74413         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74414         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74415         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74416         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74417         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74418         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74419         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74420         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74421         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74422         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74423         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74424         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74425         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74426         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74427         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74428         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74429         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74430         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74431         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74432         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74433         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74434         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74435         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74436         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74437         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74438         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74439         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74440         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74441         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74442         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74443         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74444         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74445         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74446         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74447         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74448         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74449         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74450         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74451         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74452         Likewise.
74453
74454 2006-09-13  Eric Blake  <ebb9@byu.net>
74455
74456         * lib/getopt.c: Fix typo in last commit.
74457
74458 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74459
74460         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74461         dgettext.
74462
74463 2006-09-12  Jim Meyering  <jim@meyering.net>
74464
74465         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74466         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74467         Reported by Nelson H. F. Beebe.
74468
74469 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74470
74471         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74472         program_invocation_name and program_invocation_short_name are
74473         initialized.
74474         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74475         and program_invocation_short_name to argp.h, so they are visible
74476         to user programs.
74477         * lib/argp.h: Likewise
74478
74479 2006-09-10  Bruno Haible  <bruno@clisp.org>
74480
74481         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74482         m4/inttypes_h.m4, m4/uintmax_t.m4.
74483
74484 2006-09-10  Bruno Haible  <bruno@clisp.org>
74485
74486         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74487         gl_AC_TYPE_UINTMAX_T.
74488
74489 2006-09-10  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74492
74493 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74494
74495         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74496         convention.  Text proposed by Bruno Haible.
74497         (struct argp_option): Document the use of N_() wrappers.
74498
74499         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74500         '\v', and translate the two parts separately, instead of feeding
74501         the whole string to gettext.  This allows to exclude
74502         '\v' from the strings visible to the translator by writing doc
74503         strings as N_("..") "\v" N_("..").
74504
74505 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * config/srclist.txt: Undo latest change; the bug was fixed.
74508
74509 2006-09-09  Bruno Haible  <bruno@clisp.org>
74510
74511         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74512         assignments if building a library without libtool.
74513         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74514         in func_emit_lib_Makefile_am.
74515         (func_import): When building a static library libfoo.a, arrange to
74516         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74517         (func_create_testdir): Likewise.
74518         * modules/gc (configure.ac, Makefile.am): If building statically,
74519         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74520         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74521         * modules/striconv (configure.ac, Makefile.am): Likewise.
74522         Based on a suggestion by Ralf Wildenhues.
74523
74524 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74527         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74528         Also:
74529
74530         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74531         Add year_2050_test to catch glibc bug 2821
74532         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74533
74534         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74535         Prefer #ifdef to #if.
74536
74537         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74538         Return from 'main' instead of calling 'exit'.
74539
74540 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74543         returned the maximum time_t value rather than (time_t) -1.
74544         Problem originally reported by William Bardwell
74545         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74546
74547         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74548         Moved to here ...
74549         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74550         ... from here.
74551
74552 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74555         2821 is fixed.
74556
74557 2006-09-08  Jim Meyering  <jim@meyering.net>
74558
74559         Don't make generated files read-only.  That would bother too many
74560         people.  However, do retain the ability to work when targets are
74561         read-only: remove the destination and temporary files before writing
74562         them (when generated via sed or echo), or by using the -f option for
74563         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74564         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74565         * modules/byteswap, modules/configmake, modules/fcntl:
74566         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74567         * modules/localcharset, modules/netinet_in, modules/poll:
74568         * modules/stdbool, modules/stdint, modules/sys_select:
74569         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74570
74571 2006-09-08  Jim Meyering  <jim@meyering.net>
74572
74573         Avoid new build failure on FreeBSD 6.0.
74574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74575         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74576         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74577
74578 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74579
74580         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74581
74582 2006-09-07  Jim Meyering  <jim@meyering.net>
74583
74584         Fix global typo in last change: use chmod u-w, not chmod u-x.
74585         Spotted by Paul Eggert and Bruce Korb.
74586         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74587         * modules/byteswap, modules/configmake, modules/fcntl:
74588         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74589         * modules/localcharset, modules/netinet_in, modules/poll:
74590         * modules/stdbool, modules/stdint, modules/sys_select:
74591         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74592
74593 2006-09-06  Jim Meyering  <jim@meyering.net>
74594
74595         Make generated files be read-only.
74596         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74597         Ensure that each generated file is now read-only.
74598         * modules/argz: Likewise.
74599         * modules/arpa_inet: Likewise.
74600         * modules/byteswap: Likewise.
74601         * modules/configmake: Likewise.
74602         * modules/fcntl: Likewise.
74603         * modules/fnmatch: Likewise.
74604         * modules/getopt: Likewise.
74605         * modules/glob: Likewise.
74606         * modules/inttypes: Likewise.
74607         * modules/netinet_in: Likewise.
74608         * modules/poll: Likewise.
74609         * modules/stdbool: Likewise.
74610         * modules/stdint: Likewise.
74611         * modules/sys_select: Likewise.
74612         * modules/sys_socket: Likewise.
74613         * modules/sys_stat: Likewise.
74614         * modules/sysexits: Likewise.
74615         * modules/localcharset: Same as above, but continue using temporary
74616         file named "t-$@" (why different?) rather than the "$@-t" used
74617         everywhere else.
74618
74619         * modules/sysexits (Makefile.am): Replace literal occurrences
74620         of "sysexit.h" more readable, and more consistent, "$@".
74621
74622 2006-09-06  Bruno Haible  <bruno@clisp.org>
74623
74624         * modules/striconv: New file.
74625         * modules/xstriconv: New file.
74626         * MODULES.html.sh (Internationalization functions): Add striconv,
74627         xstriconv.
74628
74629 2006-09-06  Bruno Haible  <bruno@clisp.org>
74630
74631         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74632         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74633         not using libtool correctly.
74634
74635 2006-09-06  Bruno Haible  <bruno@clisp.org>
74636
74637         * lib/striconv.h: New file.
74638         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74639         iconvstring.c.
74640         * lib/xstriconv.h: New file.
74641         * lib/xstriconv.c: New file.
74642
74643 2006-09-06  Bruno Haible  <bruno@clisp.org>
74644
74645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74646         lib_..._LDFLAGS.
74647
74648 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74649
74650         * lib/argz_.h: Sync from Libtool.
74651
74652         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74653                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74654
74655         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74656
74657 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74658
74659         * modules/trim: New file.
74660
74661 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74662
74663         * lib/trim.h: New file.
74664         * lib/trim.c: New file.
74665
74666 2006-09-05  Bruno Haible  <bruno@clisp.org>
74667
74668         * MODULES.html.sh (String handling): Add trim.
74669
74670 2006-09-04  Karl Berry  <karl@gnu.org>
74671
74672         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74673         until next release.
74674
74675 2006-09-03  Bruno Haible  <bruno@clisp.org>
74676
74677         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74678         correctly.
74679
74680 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74683         not gl_GETLOADAVG.  Omit unneeded semicolons.
74684         Problems reported by Ralf Wildenhues in
74685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74686         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74687         at the end, which is the usual gnulib style.
74688
74689         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74690         of doing all the work ourselves.
74691         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74692         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74693
74694 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74697         Problem reported by Ralf Wildenhues in
74698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74699
74700         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74701         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74702
74703 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74706         yesterday's patch by changing test -n to test -z.
74707
74708 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74711         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74712         the former is now obsolescent.
74713
74714         * modules/chdir-long (Depends-on): Add fcntl.
74715
74716 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74719         obsolescent, and programs should use gnulib instead.
74720         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74721         but with prefixes changed.
74722
74723 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74726         or stdbool.h, because they might not exist while configuring.
74727
74728         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74729         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74730         does that for us.
74731         (O_DIRECTORY): Remove.
74732
74733 2006-08-31  Eric Blake  <ebb9@byu.net>
74734
74735         * gnulib-tool: Don't let emacs change spaces to TAB.
74736
74737 2006-08-31  Bruno Haible  <bruno@clisp.org>
74738
74739         * gnulib-tool: When calling func_import more than once, do it in a
74740         subshell.
74741         Reported by Eric Blake <ebb9@byu.net>.
74742
74743 2006-08-31  Bruno Haible  <bruno@clisp.org>
74744
74745         * gnulib-tool (nl): Remove variable.
74746         (sed_transform_lib_file): Use more robust test for config-h module.
74747         (func_import): Fix typo in 2006-08-25 patch.
74748
74749 2006-08-31  Bruno Haible  <bruno@clisp.org>
74750
74751         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74752         specified, augment Makefile.am variables instead of assigning them.
74753
74754 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         Work around a bug in both the Linux and SunOS 64-bit kernels:
74757         nanosleep mishandles sleeps for longer than 2**31 seconds.
74758         Problem reported by Frank v Waveren in
74759         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74761         Check for nanosleep bug.
74762         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74763
74764 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         Work around a bug in both the Linux and SunOS 64-bit kernels:
74767         nanosleep mishandles sleeps for longer than 2**31 seconds.
74768         Problem reported by Frank v Waveren in
74769         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74770         * lib/nanosleep.c (BILLION): New constant.
74771         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74772         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74773         implementation.
74774
74775 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * modules/nanosleep (Depends-on): Add gettime.
74778
74779 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74780         and Simon Josefsson  <jas@extundo.com>
74781         and Oskar Liljeblad  <oskar@osk.mine.nu>
74782
74783         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74784         * gnulib-tool (func_import): New license type 'unmodifiable license
74785         text'.
74786         * modules/fdl: Use it.  Longer description.
74787         * module/gpl, module/lgpl: New files.
74788
74789 2006-08-30  Jim Meyering  <jim@meyering.net>
74790
74791         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74792         shadowing the parameter.
74793
74794 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74795
74796         Sync from Libtool:
74797
74798         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74799
74800         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74801         sharing with gnulib.  Report by Eric Blake.
74802
74803 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * modules/isapipe: New file.
74806         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74807
74808 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * modules/configmake (Makefile.am): Add a comment, and omit
74811         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74812         by Bruno Haible.
74813
74814 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * m4/isapipe.m4: New file.
74817
74818 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * lib/isapipe.c, lib/isapipe.h: New files.
74821
74822 2006-08-29  Jim Meyering  <jim@meyering.net>
74823
74824         * modules/configmake (Makefile.am): Make configmake.h depend on
74825         Makefile.  Otherwise, a stale configmake.h could hang around.
74826
74827 2006-08-29  Eric Blake  <ebb9@byu.net>
74828
74829         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74830         resolution of upstream bug 3044.
74831
74832 2006-08-29  Bruno Haible  <bruno@clisp.org>
74833
74834         * modules/localcharset (Depends-on): Add configmake.
74835         (Makefile.am): Remove setting of LIBDIR through DEFS.
74836
74837 2006-08-29  Bruno Haible  <bruno@clisp.org>
74838
74839         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74840         defined.
74841
74842 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * modules/fcntl: New file.
74845         * modules/chdir-safer (Depends-on): Add fcntl.
74846         * modules/fts: Likewise.
74847         * modules/mkdir-p: Likewise.
74848
74849         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74850         This undoes the most recent change, since we're now addressing the
74851         problem in a different way.
74852
74853         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74854         into output, since the output might be called Makefile.am even
74855         if $makefile_name is something different.
74856         (func_import): Use $makefile_am rather than
74857         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74858         empty.
74859
74860         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74861
74862 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74865         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74866         recent change to stdint.m4, since we're now addressing the problem in a
74867         different way.
74868
74869 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * m4/fcntl_h.m4: New file.
74872
74873 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * lib/fcntl_.h: New file.
74876         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74877         the fcntl module.
74878         * lib/dirchownmod.c: Likewise.
74879         * lib/fts.c: Likewise.
74880
74881         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74882         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74883         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74884         just before including <inttypes.h>, to avoid circular inclusion.
74885
74886 2006-08-28  Jim Meyering  <jim@meyering.net>
74887
74888         * doc/visibility.texi: Actually read and correct the grammar of the
74889         sentence affected by yesterday's change.
74890
74891 2006-08-28  Eric Blake  <ebb9@byu.net>
74892
74893         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74894         needs wrapper.
74895
74896 2006-08-28  Eric Blake  <ebb9@byu.net>
74897
74898         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74899
74900 2006-08-28  Eric Blake  <ebb9@byu.net>
74901
74902         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74903
74904 2006-08-28  Bruno Haible  <bruno@clisp.org>
74905
74906         * modules/c-strstr: New file, from GNU gettext.
74907         * MODULES.html.sh (String handling): Add c-strstr.
74908
74909 2006-08-28  Bruno Haible  <bruno@clisp.org>
74910
74911         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74912         macros.
74913         Reported by Eric Blake.
74914
74915 2006-08-28  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74918         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74919         * lib/vasprintf.c: Include errno.h, limits.h.
74920         (EOVERFLOW): New fallback definition.
74921         (vasprintf): Test here whether the string length is > INT_MAX.
74922         * lib/vsnprintf.c: Include errno.h, limits.h.
74923         (EOVERFLOW): New fallback definition.
74924         (vsnprintf): Fix bug when generated string was too long for the buffer.
74925         Test here whether the string length is > INT_MAX.
74926
74927 2006-08-28  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/inttypes_.h (SCNX*): Remove definitions.
74930         Reported by Eric Blake.
74931
74932 2006-08-28  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/c-strstr.h: New file, from GNU gettext.
74935         * lib/c-strstr.c: New file, from GNU gettext.
74936
74937 2006-08-28  Bruno Haible  <bruno@clisp.org>
74938
74939         * gnulib-tool: Reorder some statements.
74940
74941 2006-08-28  Bruno Haible  <bruno@clisp.org>
74942
74943         * gnulib-tool: New option --makefile-name.
74944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74945         $makefile_name.
74946         (func_import): Write $makefile_name to the cache file, and read it from
74947         there unless explicitly specified. Use $makefile_name as file name
74948         instead of Makefile.am. Adjust the recommendations accordingly.
74949
74950 2006-08-28  Bruno Haible  <bruno@clisp.org>
74951
74952         * gnulib-tool (func_verify_module): Check against misapplying patch.
74953
74954 2006-08-28  Bruno Haible  <bruno@clisp.org>
74955
74956         * gnulib-tool (func_relativize, func_relconcat): New functions.
74957         Give an error if --local-dir is given with --update.
74958         Remove trailing slashes from $local_gnulib_dir.
74959         (func_import): Store the relativized $local_gnulib_dir in
74960         gnulib-cache.m4, and read it from there if not specified explicitly.
74961
74962 2006-08-28  Bruno Haible  <bruno@clisp.org>
74963
74964         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74965         is the current directory. Respect also $local_gnulib_dir.
74966
74967 2006-08-28  Bruno Haible  <bruno@clisp.org>
74968             Simon Josefsson  <jas@extundo.com>
74969
74970         BeOS portability.
74971         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74972
74973 2006-08-27  Jim Meyering  <jim@meyering.net>
74974
74975         * doc/visibility.texi: Remove duplicate word: "pointer".
74976
74977 2006-08-26  Bruno Haible  <bruno@clisp.org>
74978
74979         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74980         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74981         (Makefile.am): Create inttypes.h from inttypes_.h.
74982         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74983
74984         * modules/imaxabs: New file.
74985
74986         * modules/imaxdiv: New file.
74987
74988 2006-08-26  Bruno Haible  <bruno@clisp.org>
74989
74990         * m4/inttypes.m4: New file.
74991         * m4/_inttypes_h.m4: Remove file.
74992         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74993         PRI_MACROS_BROKEN.
74994         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74995
74996         * m4/imaxabs.m4: New file.
74997
74998         * m4/imaxdiv.m4: New file.
74999
75000 2006-08-26  Bruno Haible  <bruno@clisp.org>
75001
75002         * lib/inttypes_.h: New file.
75003         * lib/inttypes.h: Remove file.
75004         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75005
75006         * lib/imaxabs.c: New file.
75007
75008         * lib/imaxdiv.c: New file.
75009
75010 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         New config-h module, so that "make" output needn't be cluttered
75013         by -DHAVE_CONFIG_H.
75014         * MODULES.html.sh (Support for building libraries and executables):
75015         Add config-h.
75016         * modules/config-h: New file.
75017         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75018         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75019         the config-h module is used.
75020
75021         New configmake module, so that "make" output needn't be cluttered
75022         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75023         * MODULES.html.sh (Support for building libraries and executables):
75024         Add configmake.
75025         * modules/configmake: New file.
75026
75027 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * m4/config-h.m4: New file.
75030
75031 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * config/srclist.txt: Add elisp-comp.
75034
75035 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75036
75037         * MODULES.html.sh (Support for building libraries and executables):
75038         Add elisp-comp.
75039         * build-aux/elisp-comp: New file.
75040         * modules/elisp-comp: New file.
75041
75042 2006-08-24  Bruno Haible  <bruno@clisp.org>
75043
75044         * gnulib-tool (func_create_testdir): Use non-default values of
75045         sourcebase and m4base.
75046
75047 2006-08-24  Bruno Haible  <bruno@clisp.org>
75048
75049         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75050         HTML structure.
75051
75052 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * modules/openat (Depends-on): Add lchown.
75055
75056 2006-08-23  Bruno Haible  <bruno@clisp.org>
75057
75058         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75059         of gl_LOCK_EARLY instead of gl_LOCK.
75060
75061 2006-08-23  Bruno Haible  <bruno@clisp.org>
75062
75063         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75064         on OSF/1 to no.
75065         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75066
75067 2006-08-23  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75070         as unusable.
75071
75072         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75073         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75074         (gl_LOCK): New macro.
75075
75076 2006-08-22  Simon Josefsson  <jas@extundo.com>
75077
75078         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75079         to md5 module.
75080
75081 2006-08-22  Simon Josefsson  <jas@extundo.com>
75082
75083         * MODULES.html.sh: Add "Support for maintaining and release
75084         projects".
75085
75086         * build-aux/gnupload: New file, from coreutils.
75087
75088 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         Avoid the need for AC_LIBSOURCES in m4 macros.
75091         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75092         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75093         * modules/check-version (EXTRA_DIST): Add check-version.h.
75094         * modules/crc (EXTRA_DIST): Add crc.h.
75095         * modules/des (EXTRA_DIST): Add des.h.
75096         * modules/gc (EXTRA_DIST): Add gc.h.
75097         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75098         * modules/getline (EXTRA_DIST): Add getline.h.
75099         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75100         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75101         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75102         * modules/md2 (EXTRA_DIST): Add md2.h.
75103         * modules/md4 (EXTRA_DIST): Add md4.h.
75104         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75105         * modules/read-file (EXTRA_DIST): Add read-file.h.
75106         * modules/readline (EXTRA_DIST): Add readline.h.
75107         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75108         rijndael-api-fst.h.
75109
75110 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * m4/rijndael.m4 (gl_ARCFOUR):
75113         * m4/arctwo.m4 (gl_ARCTWO):
75114         * m4/check-version.m4 (gl_CHECK_VERSION):
75115         * m4/crc.m4 (gl_CRC):
75116         * m4/des.m4 (gl_DES):
75117         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75118         * m4/gc.m4 (gl_GC):
75119         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75120         * m4/getline.m4 (gl_FUNC_GETLINE):
75121         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75122         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75123         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75124         * m4/md2.m4 (gl_MD2):
75125         * m4/md4.m4 (gl_MD4):
75126         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75127         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75128         * m4/readline.m4 (gl_FUNC_READLINE):
75129         * m4/rijndael.m4 (gl_RIJNDAEL):
75130         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75131         to get the necessary .h files and whatnot.
75132
75133 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75136         gnulib rather than the other way around.
75137         * config/srclistvars.sh (COREUTILS): Remove.
75138
75139 2006-08-22  Jim Meyering  <jim@meyering.net>
75140
75141         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75142
75143         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75144
75145 2006-08-22  Eric Blake  <ebb9@byu.net>
75146
75147         * modules/regexprops-generic: New file.
75148         * MODULES.html.sh (Support for building documentation): List it.
75149
75150 2006-08-22  Eric Blake  <ebb9@byu.net>
75151
75152         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75153         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75154         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75155         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75156
75157 2006-08-22  Bruno Haible  <bruno@clisp.org>
75158
75159         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75160         and lib_LTLIBRARIES like the other lib_* variables.
75161
75162 2006-08-22  Bruno Haible  <bruno@clisp.org>
75163
75164         * build-aux/x-to-1.in: New file, from GNU gettext.
75165
75166 2006-08-22  Bruno Haible  <bruno@clisp.org>
75167
75168         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75169         <utmpx.h> exists.
75170
75171 2006-08-22  Bruno Haible  <bruno@clisp.org>
75172
75173         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75174         <utmpx.h> exists.
75175
75176 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         BeOS portability.
75179         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75180         exist.
75181         Problem reported by Bruno Haible.
75182
75183 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         Avoid the need for AC_LIBSOURCES in m4 macros.
75186         * modules/acl (EXTRA_DIST): Add acl.h.
75187         * modules/argmatch (Files): Add m4/argmatch.m4.
75188         (configure.ac): Add gl_ARGMATCH.
75189         (EXTRA_DIST): Renamed from lib_SOURCES, for
75190         consistency with the other modules.  Remove argmatch.c.
75191         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75192         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75193         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75194         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75195         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75196         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75197         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75198         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75199         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75200         * modules/closeout (EXTRA_DIST): Add closeout.h.
75201         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75202         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75203         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75204         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75205         dirname.h; remove basename.c and stripslash.c.
75206         * modules/exclude (EXTRA_DIST): Add exclude.h.
75207         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75208         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75209         * modules/file-type (EXTRA_DIST): Add file-type.h.
75210         * modules/filemode (EXTRA_DIST): Add filemode.h.
75211         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75212         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75213         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75214         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75215         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75216         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75217         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75218         * modules/getdate (EXTRA_DIST): Add getdate.c.
75219         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75220         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75221         * modules/getpass (EXTRA_DIST): Add getpass.h.
75222         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75223         * modules/group-member (EXTRA_DIST): Add group-member.h.
75224         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75225         * modules/hash (EXTRA_DIST): Add hash.h.
75226         * modules/human (EXTRA_DIST): Add human.h.
75227         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75228         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75229         * modules/lchown (EXTRA_DIST): Add lchown.h.
75230         * modules/long-options (EXTRA_DIST): Add long-options.h.
75231         * modules/lstat (EXTRA_DIST): Add lstat.h.
75232         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75233         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75234         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75235         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75236         * modules/memxor (EXTRA_DIST): Add memxor.h.
75237         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75238         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75239         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75240         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75241         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75242         * modules/physmem (EXTRA_DIST): Add physmem.h.
75243         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75244         * modules/posixver (EXTRA_DIST): Add posixver.h.
75245         * modules/quote (EXTRA_DIST): Add quote.h.
75246         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75247         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75248         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75249         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75250         regex_internal.h regexec.c.
75251         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75252         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75253         * modules/same (EXTRA_DIST): Add same.h.
75254         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75255         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75256         * modules/savedir (EXTRA_DIST): Add savedir.h.
75257         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75258         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75259         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75260         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75261         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75262         * modules/strdup (EXTRA_DIST): Add strdup.h.
75263         * modules/strftime (EXTRA_DIST): Add strftime.h.
75264         * modules/strndup (EXTRA_DIST): Add strndup.h.
75265         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75266         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75267         * modules/time_r (EXTRA_DIST): Add time_r.h.
75268         * modules/timespec (EXTRA_DIST): Add timespec.h.
75269         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75270         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75271         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75272         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75273         * modules/userspec (EXTRA_DIST): Add userspec.h.
75274         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75275         * modules/utimens (EXTRA_DIST): Add utimens.h.
75276         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75277         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75278         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75279         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75280         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75281         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75282         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75283         * modules/yesno (EXTRA_DIST): Add yesno.h.
75284
75285 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75288
75289         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75290         * m4/dev-ino.m4, same-inode.m4: Remove.
75291
75292         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75293         * m4/acl.m4 (AC_FUNC_ACL):
75294         * m4/backupfile.m4 (gl_BACKUPFILE):
75295         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75296         * m4/canon-host.m4 (gl_CANON_HOST):
75297         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75299         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75300         * m4/cloexec.m4 (gl_CLOEXEC):
75301         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75302         * m4/closeout.m4 (gl_CLOSEOUT):
75303         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75304         * m4/dirname.m4 (gl_DIRNAME):
75305         * m4/exclude.m4 (gl_EXCLUDE):
75306         * m4/exitfail.m4 (gl_EXITFAIL):
75307         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75308         * m4/file-type.m4 (gl_FILE_TYPE):
75309         * m4/filemode.m4 (gl_FILEMODE):
75310         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75311         * m4/fpending.m4 (gl_FUNC_FPENDING):
75312         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75313         * m4/fts.m4 (gl_FUNC_FTS):
75314         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75315         * m4/getdate.m4 (gl_GETDATE):
75316         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75317         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75318         * m4/getpass.m4 (gl_FUNC_GETPASS):
75319         * m4/gettime.m4 (gl_GETTIME):
75320         * m4/getugroups.m4 (gl_GETUGROUPS):
75321         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75322         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75323         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75324         * m4/hash.m4 (gl_HASH):
75325         * m4/idcache.m4 (gl_IDCACHE):
75326         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75327         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75328         * m4/long-options.m4 (gl_LONG_OPTIONS):
75329         * m4/lstat.m4 (gl_FUNC_LSTAT):
75330         * m4/md5.m4 (gl_MD5):
75331         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75332         * m4/memcoll.m4 (gl_MEMCOLL):
75333         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75334         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75335         * m4/memxor.m4 (gl_MEMXOR):
75336         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75337         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75338         * m4/modechange.m4 (gl_MODECHANGE):
75339         * m4/mountlist.m4 (gl_MOUNTLIST):
75340         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75341         * m4/openat.m4 (gl_FUNC_OPENAT):
75342         * m4/pathmax.m4 (gl_PATHMAX):
75343         * m4/physmem.m4 (gl_PHYSMEM):
75344         * m4/posixtm.m4 (gl_POSIXTM):
75345         * m4/posixver.m4 (gl_POSIXVER):
75346         * m4/quote.m4 (gl_QUOTE):
75347         * m4/quotearg.m4 (gl_QUOTEARG):
75348         * m4/readtokens.m4 (gl_READTOKENS):
75349         * m4/readutmp.m4 (gl_READUTMP):
75350         * m4/regex.m4 (gl_REGEX):
75351         * m4/safe-read.m4 (gl_SAFE_READ):
75352         * m4/safe-write.m4 (gl_SAFE_WRITE):
75353         * m4/same.m4 (gl_SAME):
75354         * m4/save-cwd.m4 (gl_SAVE_CWD):
75355         * m4/savedir.m4 (gl_SAVEDIR):
75356         * m4/settime.m4 (gl_SETTIME):
75357         * m4/sha1.m4 (gl_SHA1):
75358         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75359         * m4/stat-macros.m4 (gl_STAT_MACROS):
75360         * m4/stat-time.m4 (gl_STAT_TIME):
75361         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75362         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75363         * m4/strdup.m4 (gl_FUNC_STRDUP):
75364         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75365         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75366         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75367         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75368         * m4/time_r.m4 (gl_TIME_R):
75369         * m4/timespec.m4 (gl_TIMESPEC):
75370         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75371         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75372         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75373         * m4/userspec.m4 (gl_USERSPEC):
75374         * m4/utimecmp.m4 (gl_UTIMECMP):
75375         * m4/utimens.m4 (gl_UTIMENS):
75376         * m4/xalloc.m4 (gl_XALLOC):
75377         * m4/xgetcwd.m4 (gl_XGETCWD):
75378         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75379         * m4/xreadlink.m4 (gl_XREADLINK):
75380         * m4/xstrtod.m4 (gl_XSTRTOD):
75381         * m4/yesno.m4 (gl_YESNO):
75382         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75383         to get the necessary .h files and whatnot.
75384
75385 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75386             Bruno Haible  <bruno@clisp.org>
75387
75388         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75389         /bin/sh understanding of '!' conditional negation.
75390
75391 2006-08-21  Jim Meyering  <jim@meyering.net>
75392
75393         * modules/openat (Depends-on): Really alphabetize.
75394
75395         * modules/acl (Depends-on): Add error and quote.
75396
75397         * check-module (find_included_lib_files): Add at-func.c to the
75398         ok-to-include-more-than-once white list.
75399
75400         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75401
75402 2006-08-21  Bruno Haible  <bruno@clisp.org>
75403
75404         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75405         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75406         Reported by Martin Lambers <marlam@marlam.de>.
75407
75408 2006-08-21  Bruno Haible  <bruno@clisp.org>
75409
75410         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75411         specify an installation location, don't emit a noinst_LIBRARIES or
75412         noinst_LTLIBRARIES assignment.
75413
75414 2006-08-21  Bruno Haible  <bruno@clisp.org>
75415
75416         BeOS portability.
75417         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75418         BeOS has mbrtowc() but no <wctype.h>.
75419
75420 2006-08-21  Bruno Haible  <bruno@clisp.org>
75421
75422         BeOS portability.
75423         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75424         exist.
75425
75426 2006-08-21  Bruno Haible  <bruno@clisp.org>
75427
75428         BeOS portability.
75429         * lib/mbchar.h: Include <wctype.h> only if it exists.
75430
75431 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         Remove files that are no longer needed by their respective modules.
75434         * m4/obstack.m4: Remove.
75435         * m4/strerror_r.m4: Remove.
75436         * m4/uint32_t.m4: Remove.
75437         * m4/uintptr_t.m4: Remove.
75438         * m4/ullong_max.m4: Remove.
75439         * m4/xstrtoimax.m4: Remove.
75440         * m4/xstrtoumax.m4: Remove.
75441
75442         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75443         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75444         dependencies now capture this.
75445
75446         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75447         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75448         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75449         * m4/human.m4 (gl_HUMAN): Likewise.
75450         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75451         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75452
75453         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75454
75455         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75456         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75457         stdint.
75458         * m4/human.m4 (gl_HUMAN): Likewise.
75459         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75460         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75461         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75462         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75463         * m4/xstrtol (gl_XSTRTOL): Likewise.
75464
75465         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75466         AC_TYPE_LONG_LONG_INT.
75467         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75468         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75469         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75470         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75471
75472         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75473         on stdbool.
75474
75475         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75476         (gl_PREREQ_XSTRTOUL): Remove.
75477
75478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75479
75480         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75481         mode.
75482
75483 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75484
75485         Add and change modules to make it easier for coreutils to use
75486         gnulib-tool.
75487         * modules/backupfile (Files): Remove m4/d-ino.m4.
75488         (Depends-on): Add d-ino.
75489         * modules/cycle-check (Depends-on): Add stdint.
75490         (lib_SOURCES): Add cycle-check.h.
75491         * modules/d-ino: New module.
75492         * modules/d-type: New module.
75493         * modules/error (Files): Remove m4/strerror_r.m4.
75494         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75495         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75496         m4/inttypes_h.m4, m4/uintmax_t.m4.
75497         (Depends-on): Add stdint.
75498         (lib_SOURCES): Add fsusage.h.
75499         * modules/getcwd (Files): Remove d-ino.m4.
75500         (Depends-on): Add d-ino.
75501         * modules/getndelim2 (Depends-on): Add stdint.
75502         * modules/glob (Files): Remove m4/d-type.m4.
75503         (Depends-on): Add d-type.
75504         * modules/host-os: New module.
75505         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75506         m4/inttypes_h.m4, m4/uintmax_t.m4.
75507         * Depends-on: Add stdint.
75508         (lib_SOURCES): Add human.h.
75509         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75510         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75511         m4/uintmax_t.m4, m4/ulonglong.m4.
75512         (Depends-on): Add stdint.
75513         (EXTRA_DIST): Add inttostr.h.
75514         * modules/lchmod: New module.
75515         * modules/link-follow: New module.
75516         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75517         (Depends-on): Add lchmod.
75518         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75519         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75520         (Depends-on): Add stdint.
75521         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75522         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75523         (Depends-on): Add stdint.
75524         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75525         * modules/perl: New module.
75526         * modules/regex (Depends-on): Add stdint.
75527         * modules/rmdir-errno: New module.
75528         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75529         m4/intmax_t.m4.
75530         (Depends-on): Add stdint.
75531         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75532         m4/uintmax_t.m4.
75533         (Depends-on): Add stdint.
75534         * modules/unlink-busy: New module.
75535         * modules/utimecmp (Depends-on): Add stdint.
75536         * modules/uptime: New module.
75537         * modules/winsz-ioctl: New module.
75538         * modules/winsz-termios: New module.
75539         * modules/xnanosleep (Depends-on): Add nanosleep.
75540         * modules/ullong_max: Remove.
75541         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75542         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75543         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75544         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75545         (Depends-on): Add inttypes.
75546         (lib_SOURCES): Add xstrtol.h.
75547         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75548         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75549         * MODULES.html.sh: Move 'assert' into the assert section.
75550         Move 'dummy' into the linking section.
75551         Remove ullong_max.
75552         Add section for compatibility checks for POSIX:2001 functions,
75553         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75554         winsz-ioctl, and winsz-termios into it.
75555         Add lchmod.
75556         Add top-level Misc section and put host-os, perl, and uptime
75557         into it.
75558
75559 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75560
75561         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75562         now assume the stdint module.  Do not include inttypes.h.
75563         * lib/fsusage.h: Likewise.
75564         * lib/getndelim2.c: Likewise.
75565         * lib/human.h: Likewise.
75566         * lib/inttostr.h: Likewise.
75567         * lib/obstack.c: Likewise.
75568         * lib/regex_internal.h: Likewise.
75569         * lib/tempname.c: Likewise.
75570         * lib/utimecmp.c: Likewise.
75571         * lib/xstrtol.h: Likewise.
75572
75573         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75574
75575         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75576         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75577         * lib/xtime.h: Likewise.
75578
75579 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * modules/openat (Files): Add lib/fchmodat.c.
75582         Fixes problem reported by Jay Youngman.
75583
75584 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75587         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75588
75589 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75590             Bruno Haible  <bruno@clisp.org>
75591
75592         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75593         and is a script that invokes bison. Tighten the code. Add comments.
75594
75595 2006-08-18  Jim Meyering  <jim@meyering.net>
75596
75597         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75598         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75599         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75600         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75601
75602 2006-08-18  Bruno Haible  <bruno@clisp.org>
75603
75604         * modules/bison-i18n: New file.
75605         * MODULES.html.sh (Internationalization functions): Add it.
75606
75607 2006-08-18  Bruno Haible  <bruno@clisp.org>
75608
75609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75610         sys/statvfs.h. When getmntinfo was found, check its declaration and
75611         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75612
75613 2006-08-18  Bruno Haible  <bruno@clisp.org>
75614
75615         * m4/bison-i18n.m4: New file, from bison.
75616
75617 2006-08-18  Bruno Haible  <bruno@clisp.org>
75618
75619         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75620         (ME_DUMMY): Treat "kernfs" as a dummy.
75621         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75622
75623 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         Update from coreutils.
75626
75627         2006-08-15  Jim Meyering  <jim@meyering.net>
75628
75629         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75630
75631         2006-01-17  Jim Meyering  <jim@meyering.net>
75632
75633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75634
75635         2006-01-11  Jim Meyering  <jim@meyering.net>
75636
75637         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75638         Check for the lchmod function.
75639
75640 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         Update from coreutils.
75643
75644         * lib/__fpending.h: Add copyright notice.
75645         * lib/fprintftime.h: Likewise.
75646         * lib/savedir.c: Use (C) in copyright notice.
75647         * lib/savedir.h: Likewise.
75648
75649         2006-08-15  Jim Meyering  <jim@meyering.net>
75650
75651         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75652         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75653         in support of the EXPECTED_ERRNO macro.
75654         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75655         definitions.  Instead, define the appropriate symbols and include
75656         "at-func.c".
75657         * lib/mkdirat.c (mkdirat): Likewise.
75658         * lib/fchmodat.c (fchmodat): Likewise.
75659         (ENOSYS): Remove definition.
75660         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75661         it.  Don't include "unistd--.h" -- it wasn't ever used.
75662
75663         2006-01-17  Jim Meyering  <jim@meyering.net>
75664
75665         Rewrite fts.c not to change the current working directory,
75666         by using openat, fstatat, fdopendir, etc..
75667
75668         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75669         (HAVE_OPENAT_SUPPORT): Define.
75670         [_LIBC] (fchdir): Don't undef or define; no longer used.
75671         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75672         Now, this `function' always succeeds, and consumes its file descriptor
75673         parameter -- so callers must not close such FDs.  Update callers.
75674         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75675         (diropen): Add parameter, SP.  Adjust all callers.
75676         Implement using diropen_fd, rather than open.
75677         (fts_open): Initialize new member, fts_cwd_fd.
75678         Remove fts_rft-setting code.
75679         (fts_close): Close fts_cwd_fd, if necessary.
75680         (__opendir2): Define in terms of opendir or opendirat,
75681         depending on whether the FST_NOCHDIR flag is set.
75682         (fts_build): Since fts_safe_changedir consumes its FD, and since
75683         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75684         and close the dup'd file descriptor upon failure.
75685         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75686         (fts_safe_changedir): Tweak semantics to reflect that this function
75687         now calls cwd_advance_fd and hence consumes its FD argument.
75688         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75689         [struct FTS] (fts_rft): Remove now-unused member.
75690         [struct FTS] (fts_cycle.state): Improve comment.
75691
75692         * lib/openat.c (openat_needs_fchdir): New function.
75693         * lib/openat.h (openat_needs_fchdir): Declare it.
75694
75695 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75698         Problem and fix reported by Pádraig Brady in
75699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75700
75701 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75704
75705 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * lib/memcoll.c (memcoll): Optimize for the common case where the
75708         arguments are bytewise equal.
75709
75710 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * doc/regexprops-generic.texi: Add a copyright notice.
75713
75714 2006-08-15  Bruno Haible  <bruno@clisp.org>
75715
75716         * modules/tmpdir (License): Change to LGPL.
75717
75718 2006-08-15  Bruno Haible  <bruno@clisp.org>
75719
75720         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75721         module.
75722
75723 2006-08-14  Simon Josefsson  <jas@extundo.com>
75724
75725         * config/srclist.txt: Add gnupload.
75726
75727 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         Change copyright notice from LGPL 2 to GPL 2, since that's the
75730         standard form used in the gnulib repository.
75731         * tests/test-lock.c: Likewise.
75732         * tests/test-stdint.c: Likewise.
75733         * tests/test-tls.c: Likewise.
75734
75735         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75736         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75737         Add copyright notice.
75738
75739         * check-module: Add copyright notice.  Output a copyright
75740         notice if "--version" is specified.
75741         * modules/COPYING: New file.
75742         * tests/test-getaddrinfo.c: Add copyright notice.
75743         * tests/test-verify.c: Likewise.
75744
75745 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         Change copyright notice from LGPL 2 to GPL 2, since that's the
75748         standard form used in the gnulib repository.
75749         * lib/lock.c: LGPL -> GPL.
75750         * lib/lock.h: Likewise.
75751         * lib/strnlen1.c: Likewise.
75752         * lib/strnlen1.h: Likewise.
75753         * lib/tls.c: Likewise.
75754         * lib/tls.h: Likewise.
75755         * lib/tmpdir.c: Likewise.
75756
75757         * lib/TODO: Remove; this belongs only in coreutils.
75758
75759 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         Add copyright notices to long-enough files that lack them, since
75762         otherwise the files aren't clearly free.  Use the same notice that
75763         getdate.texi already uses.
75764         * doc/alloca-opt.texi: Add copyright notice.
75765         * doc/alloca.texi: Likewise.
75766         * doc/ctime.texi: Likewise.
75767         * doc/functions.texi: Likewise.
75768         * doc/gcd.texi: Likewise.
75769         * doc/gnulib-tool.texi: Likewise.
75770         * doc/inet_ntoa.texi: Likewise.
75771         * doc/visibility.texi: Likewise.
75772
75773         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75774         * doc/quote.texi: Add copyright notice.
75775
75776         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75777         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75778         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75779         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75780         is now obsolete, and give a pointer to the Sun list.
75781         Add copyright notice.
75782
75783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * config/srclistvars.sh: Add copyright notice.
75786
75787 2006-08-14  Eric Blake  <ebb9@byu.net>
75788
75789         Import the following change from libc:
75790
75791         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75792
75793         Upstream bug 2997.
75794         * lib/misc/error.c: Add space between program name and message if file
75795         name is missing.
75796
75797 2006-08-12  Karl Berry  <karl@gnu.org>
75798
75799         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75800         remove, these originate in gnulib now.
75801
75802 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75803
75804         * doc/Makefile (standards.info standards.html standards.dvi):
75805         Also depend on make-stds.texi.
75806
75807 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75810         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75811
75812         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75813         in wchar_t.  Problem reported by Eric Blake.
75814
75815         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75816         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75817         Also, help the compiler to keep LEN in a register.
75818
75819 2006-08-11  Eric Blake  <ebb9@byu.net>
75820
75821         * users.txt: Sort.  Add tar.
75822
75823 2006-08-11  Bruno Haible  <bruno@clisp.org>
75824
75825         * users.txt: New file.
75826
75827 2006-08-11  Bruno Haible  <bruno@clisp.org>
75828
75829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75830         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75831
75832 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * modules/snprintf (Depends-on): Remove minmax.
75835         (Maintainer): Add self and Bruno.
75836
75837 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75840         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75841         (EOVERFLOW): Define if the system does not.
75842         Do not include "minmax.h"; it wasn't used.
75843         (snprintf): Don't assume size_t promotes to an unsigned type.
75844         Fix bug when generated string was too long for the buffer: the
75845         buffer's contents are supposed to be the initial prefix of the
75846         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75847         exceeds INT_MAX; do the check ourselves.
75848
75849         Import the following changes from libc:
75850
75851         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75852
75853         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75854         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75855         set wc to the byte which couldn't be converted.
75856         (re_string_reconstruct): Don't clear valid_raw_len before calling
75857         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75858         tip_context using re_string_context_at.
75859
75860         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75861
75862         * lib/posix/regex.h: g++ still cannot handled [restrict].
75863
75864         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75865
75866         * lib/posix/regex.h: Remove special handling for VMS.
75867
75868 2006-08-10  Jim Meyering  <jim@meyering.net>
75869
75870         * modules/same-inode: New module.
75871         * modules/dev-ino: New module.
75872         * modules/cycle-check: Depend on these modules, rather than simply
75873         including their .h files.
75874         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75875         required via m4/cycle-check.m4.
75876         * modules/same: Depend on new same-inode module, rather than
75877         including same-inode.h.
75878         * modules/chdir-safer: New file.
75879
75880         * modules/chown (Depends-on): Add stat-macros.
75881
75882 2006-08-10  Jim Meyering  <jim@meyering.net>
75883
75884         * m4/cycle-check.m4: New file.
75885         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75886         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75887
75888 2006-08-10  Eric Blake  <ebb9@byu.net>
75889
75890         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75891         in from original proposal.
75892
75893 2006-08-10  Eric Blake  <ebb9@byu.net>
75894         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75895
75896         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75897         namespace.
75898
75899 2006-08-10  Bruno Haible  <bruno@clisp.org>
75900
75901         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75902         as well.
75903
75904 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         Sync from coreutils.
75907
75908         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75909
75910         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75911         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75912
75913 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         * modules/restrict: Remove; no longer needed now that we assume
75916         Autoconf 2.59 or later.
75917         * MODULES.html.sh: Remove 'restrict'.
75918         * modules/argp (Depends-on): Remove 'restrict'.
75919         * modules/base64 (Depends-on): Likewise.
75920         * modules/gc (Depends-on): Likewise.
75921         * modules/getaddrinfo (Depends-on): Likewise.
75922         * modules/glob (Depends-on): Likewise.
75923         * modules/inet_ntop (Depends-on): Likewise.
75924         * modules/inet_pton (Depends-on): Likewise.
75925         * modules/memxor (Depends-on): Likewise.
75926         * modules/regex (Depends-on): Likewise.
75927         * modules/strtok_r (Depends-on): Likewise.
75928         * modules/time_r (Depends-on): Likewise.
75929
75930 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75933         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75934         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75935         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75936         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75937         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75938         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75939         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75940
75941         Merge from coreutils.
75942         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75943         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75945         * m4/time_r.m4 (gl_TIME_R): Likewise.
75946
75947 2006-08-09  Karl Berry  <karl@gnu.org>
75948
75949         * config/srclist.txt: no more gettext-tools, per Bruno.
75950
75951 2006-08-08  Eric Blake  <ebb9@byu.net>
75952
75953         * modules/verror: New module.
75954         * MODULES.html.sh: Document it.
75955
75956 2006-08-08  Eric Blake  <ebb9@byu.net>
75957
75958         * lib/verror.h, lib/verror.c: New files.
75959
75960 2006-08-08  Eric Blake  <ebb9@byu.net>
75961
75962         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75963         verror_at_line output complies with GNU Coding Standards even when
75964         file is NULL.
75965
75966 2006-08-07  Bruno Haible  <bruno@clisp.org>
75967
75968         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75969         versions of AIX.
75970         Reported by Ralf Wildenhues.
75971
75972 2006-08-07  Bruno Haible  <bruno@clisp.org>
75973
75974         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75975         in an AC_DEFUN. Needed so that the autoconf snippets can use
75976         AC_REQUIRE.
75977
75978 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75979
75980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75981         Initialize pkgdata_DATA.
75982         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75983         overriding it.
75984
75985 2006-08-06  Eric Blake  <ebb9@byu.net>
75986
75987         * lib/error.h: Fold in some upstream changes from glibc.
75988         * lib/error.c: Likewise.
75989
75990 2006-08-04  Bruno Haible  <bruno@clisp.org>
75991
75992         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75993         Make the mostlyclean-local rule depend on mostlyclean-generic.
75994         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75995
75996 2006-07-31  Bruno Haible  <bruno@clisp.org>
75997
75998         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75999         <stdlib.h>, <string.h>.
76000
76001 2006-07-30  Bruno Haible  <bruno@clisp.org>
76002
76003         * modules/readlink (License): Change to LGPL.
76004
76005 2006-07-30  Bruno Haible  <bruno@clisp.org>
76006
76007         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76008         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76009         set PKGDATADIR to point to it.
76010
76011 2006-07-30  Bruno Haible  <bruno@clisp.org>
76012
76013         * modules/csharpexec (configure.ac): Comment out macro invocation.
76014         * modules/javaexec (configure.ac): Likewise.
76015         * modules/javacomp-script (configure.ac): Likewise.
76016
76017         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76018
76019 2006-07-30  Bruno Haible  <bruno@clisp.org>
76020
76021         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76022         linked-list.
76023
76024 2006-07-30  Bruno Haible  <bruno@clisp.org>
76025
76026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76027
76028 2006-07-30  Bruno Haible  <bruno@clisp.org>
76029
76030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76031         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76032         get removed.
76033
76034 2006-07-29  Bruno Haible  <bruno@clisp.org>
76035
76036         Make it possible for gnulib-tool to work with locally modified or
76037         augmented gnulib repositories.
76038         * gnulib-tool (func_usage): Document --local-dir option.
76039         (local_gnulib_dir): New variable.
76040         Handle --local-dir option.
76041         (func_lookup_file): New function.
76042         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76043         (func_get_description, func_get_filelist, func_get_description,
76044         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76045         func_get_automake_snippet, func_get_include_directive,
76046         func_get_license, func_get_maintainer): Use func_lookup_file.
76047         (func_import, func_create_testdir): Use func_lookup_file.
76048
76049 2006-07-29  Bruno Haible  <bruno@clisp.org>
76050
76051         * modules/setenv (Depends-on): Add unistd.
76052
76053 2006-07-29  Bruno Haible  <bruno@clisp.org>
76054
76055         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76056
76057 2006-07-29  Bruno Haible  <bruno@clisp.org>
76058
76059         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76060
76061 2006-07-29  Bruno Haible  <bruno@clisp.org>
76062
76063         * gnulib-tool (import, update): If there is no Makefile.am, look at
76064         aclocal.m4, instead of bailing out.
76065
76066 2006-07-29  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76069         Categorize the options by when they are useful.
76070
76071 2006-07-29  Bruno Haible  <bruno@clisp.org>
76072
76073         * gnulib-tool (func_usage): Document option --no-libtool.
76074         Handle option --no-libtool.
76075         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76076         for changed semantics of $libtool variable.
76077         (func_import): Likewise. If libtool is not used, show this through
76078         an option --no-libtool.
76079         (func_create_testdir): Update.
76080
76081 2006-07-29  Bruno Haible  <bruno@clisp.org>
76082
76083         * gnulib-tool (func_import): Extend error message about missing
76084         --doc-base.
76085
76086 2006-07-29  Bruno Haible  <bruno@clisp.org>
76087
76088         * gnulib-tool (func_import): Don't create the $docbase directory if
76089         there is no file to store there.
76090
76091 2006-07-29  Bruno Haible  <bruno@clisp.org>
76092
76093         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76094         relevant, look for configure.ac there, not in the current directory.
76095         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76096
76097 2006-07-29  Bruno Haible  <bruno@clisp.org>
76098
76099         * gnulib-tool (SORT): New variable.
76100         (func_usage): Undocument --assume-autoconf option.
76101         Remove --assume-autoconf option handling.
76102         (autoconf_minversion): Determine from the contents of configure.ac.
76103         (func_import): Remove autoconf_minversion handling.
76104         Suggested by Eric Blake.
76105
76106 2006-07-29  Bruno Haible  <bruno@clisp.org>
76107
76108         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76109
76110 2006-07-29  Bruno Haible  <bruno@clisp.org>
76111
76112         * config/srclist.txt (*setenv.[ch]): Remove rules.
76113
76114 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76115
76116         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76117
76118 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76119
76120         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76121         arpa/inet.h.
76122
76123 2006-07-28  Simon Josefsson  <jas@extundo.com>
76124
76125         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76126         * modules/inet_pton (Depends-on): Likewise.
76127
76128 2006-07-28  Simon Josefsson  <jas@extundo.com>
76129
76130         * m4/netinet_in_h.m4: New file.
76131
76132 2006-07-28  Simon Josefsson  <jas@extundo.com>
76133
76134         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76135         #include's.
76136
76137 2006-07-28  Simon Josefsson  <jas@extundo.com>
76138
76139         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76140         #include's.
76141
76142 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76145         setgid on directories only if they set these bits.
76146         * lib/modechange.h: Remove obsolete comment about masks.
76147
76148 2006-07-28  Eric Blake  <ebb9@byu.net>
76149
76150         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76151         macro expansion.
76152
76153 2006-07-28  Bruno Haible  <bruno@clisp.org>
76154
76155         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76156
76157 2006-07-28  Bruno Haible  <bruno@clisp.org>
76158
76159         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76160
76161 2006-07-28  Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76164         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76165         Define fallbacks.
76166         Avoids link error on FreeBSD 4.x.
76167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76168
76169         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76170         encoding.
76171         * lib/mbswidth.c (iswcntrl): Likewise.
76172
76173 2006-07-27  Bruno Haible  <bruno@clisp.org>
76174
76175         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76176         test.
76177
76178 2006-07-27  Bruno Haible  <bruno@clisp.org>
76179
76180         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76181         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76182         defined.
76183
76184 2006-07-26  Eric Blake  <ebb9@byu.net>
76185
76186         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76187
76188 2006-07-26  Eric Blake  <ebb9@byu.net>
76189
76190         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76191         like mingw that lack mkstemp.
76192         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76193         avoid compilation warning on mingw.
76194
76195 2006-07-26  Bruno Haible  <bruno@clisp.org>
76196
76197         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76198         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76199         INT_FAST*_MIN, INTPTR_MIN.
76200
76201 2006-07-25  Bruno Haible  <bruno@clisp.org>
76202
76203         * modules/version-etc (Depends-on): Add stdarg.
76204
76205 2006-07-25  Bruno Haible  <bruno@clisp.org>
76206
76207         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76208         complex commands.
76209
76210 2006-07-25  Bruno Haible  <bruno@clisp.org>
76211
76212         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76213         defined in <stdarg.h> or config.h.
76214
76215 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76218         (gl_STDIO_SAFER): Remove.
76219
76220 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * MODULES.html.sh (File stream based Input/Output):
76223         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76224         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76225         * modules/fopen-safer, modules/tmpfile-safer: New files.
76226         * modules/stdio-safer: Remove.
76227
76228 2006-07-24  Bruno Haible  <bruno@clisp.org>
76229
76230         * modules/tmpdir: New file.
76231         * MODULES.html.sh (File system functions): Add it.
76232
76233 2006-07-24  Bruno Haible  <bruno@clisp.org>
76234
76235         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76236         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76237
76238 2006-07-24  Bruno Haible  <bruno@clisp.org>
76239
76240         * modules/clean-temp: New file.
76241
76242 2006-07-24  Bruno Haible  <bruno@clisp.org>
76243
76244         * m4/tmpdir.m4: New file, from GNU gettext.
76245
76246 2006-07-24  Bruno Haible  <bruno@clisp.org>
76247
76248         * lib/tmpdir.h: New file, from GNU gettext.
76249         * lib/tmpdir.c: New file, from GNU gettext.
76250
76251 2006-07-24  Bruno Haible  <bruno@clisp.org>
76252
76253         * lib/clean-temp.h: New file, from GNU gettext.
76254         * lib/clean-temp.c: New file, from GNU gettext.
76255
76256 2006-07-23  Eric Blake  <ebb9@byu.net>
76257
76258         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76259         (Depends-on): Add binary-io.
76260
76261 2006-07-23  Eric Blake  <ebb9@byu.net>
76262
76263         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76264
76265 2006-07-23  Eric Blake  <ebb9@byu.net>
76266
76267         * lib/tmpfile-safer.c: New file.
76268         * lib/stdio-safer.h (fopen_safer): Add prototype.
76269         * lib/stdio--.h (tmpfile): Make safer.
76270
76271 2006-07-23  Bruno Haible  <bruno@clisp.org>
76272
76273         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76274         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76275         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76276         gl_linked_remove_at): Use it.
76277
76278 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76279         and Simon Josefsson <jas@extundo.com>
76280
76281         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76282
76283         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76284
76285 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * modules/close-stream: New file.
76288         * modules/closeout (Description): Make it clear that it exits
76289         with a diagnostic on error.
76290         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76291         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76292
76293 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76294
76295         * m4/close-stream.m4: New file.
76296
76297 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * lib/close-stream.c, lib/close-stream.h: New files.
76300
76301 2006-07-22  Bruno Haible  <bruno@clisp.org>
76302
76303         Merge from GNU gettext 0.15.
76304
76305         2006-05-01  Bruno Haible  <bruno@clisp.org>
76306
76307                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76308
76309         2006-07-22  Bruno Haible  <bruno@clisp.org>
76310
76311                 * modules/javaversion: New file.
76312                 * MODULES.html.sh (Java): Add javaversion.
76313
76314         2006-03-12  Bruno Haible  <bruno@clisp.org>
76315
76316                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76317
76318         2005-12-04  Bruno Haible  <bruno@clisp.org>
76319
76320                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76321                 (untested).
76322
76323         2006-06-21  Bruno Haible  <bruno@clisp.org>
76324
76325                 Avoid warnings from recent versions of mcs.
76326                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76327                 -o, -L, -r any more. Use options documented since mcs-1.0
76328                 instead. Similarly for -g.
76329
76330         2005-12-04  Bruno Haible  <bruno@clisp.org>
76331
76332                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76333                 .resources, not .resource.
76334
76335         2005-07-09  Bruno Haible  <bruno@clisp.org>
76336
76337                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76338                 add a .dll suffix.
76339                 Reported by Mark Junker <mjscod@gmx.de>.
76340
76341         2006-07-22  Bruno Haible  <bruno@clisp.org>
76342
76343                 * modules/gettext: Upgrade to gettext-0.15.
76344                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76345                 m4/visibility.m4.
76346                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76347
76348 2006-07-22  Bruno Haible  <bruno@clisp.org>
76349
76350         Merge from GNU gettext 0.15.
76351
76352         2006-03-25  Bruno Haible  <bruno@clisp.org>
76353
76354                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76355
76356         2006-07-21  Bruno Haible  <bruno@clisp.org>
76357
76358                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76359                 "1.1".
76360
76361         2006-05-09  Bruno Haible  <bruno@clisp.org>
76362
76363                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76364                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76365                 for the conftestver execution.
76366
76367         2006-05-01  Bruno Haible  <bruno@clisp.org>
76368
76369                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76370                 optional target-version argument. Verify that the compiler
76371                 groks source of the specified source-version, or add -source
76372                 option as necessary. Verify that the compiler produces
76373                 bytecode in the specified target-version, or add -target and
76374                 -source options as necessary. Make the result of the test
76375                 available as variable CONF_JAVAC. Also log error output in
76376                 config.log.
76377
76378         2006-03-11  Bruno Haible  <bruno@clisp.org>
76379
76380                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76381
76382         2006-05-09  Bruno Haible  <bruno@clisp.org>
76383
76384                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76385                 CLASSPATH_SEPARATOR to a semicolon.
76386
76387         2006-03-12  Bruno Haible  <bruno@clisp.org>
76388
76389                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76390                 available as variable CONF_JAVA, for subsequent autoconf
76391                 tests. Also log error output in config.log.
76392
76393         2006-07-19  Bruno Haible  <bruno@clisp.org>
76394
76395                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76396                 that getline works on glibc2 systems. Needed to avoid trouble
76397                 in relocatable.c.
76398                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76399
76400         2005-12-04  Bruno Haible  <bruno@clisp.org>
76401
76402                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76403                 launcher (untested).
76404
76405         2005-12-04  Bruno Haible  <bruno@clisp.org>
76406
76407                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76408
76409         2006-07-22  Bruno Haible  <bruno@clisp.org>
76410
76411                 * gettext.m4: Update from GNU gettext-0.15.
76412                 * nls.m4: Likewise.
76413                 * po.m4: Likewise.
76414                 * inttypes-pri.m4: Likewise.
76415                 * inttypes-h.m4: Renamed from inttypes.m4.
76416                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76417
76418 2006-07-22  Bruno Haible  <bruno@clisp.org>
76419
76420         Merge from GNU gettext 0.15.
76421
76422         2005-07-05  Bruno Haible  <bruno@clisp.org>
76423
76424                 * printf-args.c (printf_fetchargs): Work around broken
76425                 definition of wint_t on mingw.
76426
76427         2005-02-12  Bruno Haible  <bruno@clisp.org>
76428
76429                 * xallocsa.h: Add extern "C" for C++.
76430
76431         2006-05-17  Bruno Haible  <bruno@clisp.org>
76432
76433                 Cygwin portability.
76434                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76435
76436         2006-04-30  Bruno Haible  <bruno@clisp.org>
76437
76438                 * progreloc.c: Include <mach-o/dyld.h> if available.
76439                 (find_executable): Use _NSGetExecutablePath when possible.
76440
76441         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76442
76443                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76444                 function.
76445
76446         2005-12-29  Bruno Haible  <bruno@clisp.org>
76447
76448                 * progreloc.c (set_program_name_and_installdir): Fix
76449                 compilation error.
76450
76451         2005-12-04  Bruno Haible  <bruno@clisp.org>
76452
76453                 Cygwin portability.
76454                 * progreloc.c: Include <windows.h> also on Cygwin.
76455                 (find_executable): Add support for Cygwin.
76456                 (set_program_name_and_installdir): Handle also platforms with
76457                 nonempty EXEEXT.
76458
76459         2006-07-11  Bruno Haible  <bruno@clisp.org>
76460
76461                 * javacomp.c: Fix a comment.
76462                 Reported by Jim Meyering.
76463
76464         2006-04-30  Bruno Haible  <bruno@clisp.org>
76465
76466                 * javacomp.h (compile_java_class): Add source_version,
76467                 target_version arguments.
76468                 * javacomp.c: Rewritten to choose only a compiler that
76469                 respects the specified source_version and target_version.
76470
76471         2006-06-27  Bruno Haible  <bruno@clisp.org>
76472
76473                 Assume correct S_ISDIR macro.
76474                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76475
76476         2006-07-22  Bruno Haible  <bruno@clisp.org>
76477
76478                 * javaversion.h: New file, from GNU gettext.
76479                 * javaversion.c: New file, from GNU gettext.
76480                 * javaversion.java: New file, from GNU gettext.
76481                 * javaversion.class: New file, from GNU gettext.
76482
76483         2006-05-17  Bruno Haible  <bruno@clisp.org>
76484
76485                 Cygwin portability.
76486                 * javaexec.c (execute_java_class): Test for jview program
76487                 also on Cygwin.
76488
76489         2006-04-09  Bruno Haible  <bruno@clisp.org>
76490
76491                 * fatal-signal.c: Don't include string.h.
76492                 (at_fatal_signal): Use a copying loop instead of memcpy.
76493
76494         2005-12-04  Bruno Haible  <bruno@clisp.org>
76495
76496                 * csharpexec.c: Add support for 'clix' launcher (untested).
76497                 (execute_csharp_using_sscli): New function.
76498                 (execute_csharp_program): Call it.
76499
76500         2006-06-21  Bruno Haible  <bruno@clisp.org>
76501
76502                 Avoid warnings from recent versions of mcs.
76503                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76504                 -o, -L, -r any more. Use options documented since mcs-1.0
76505                 instead. Similarly for -g.
76506
76507         2005-07-09  Bruno Haible  <bruno@clisp.org>
76508
76509                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76510                 add a .dll suffix.
76511                 Reported by Mark Junker <mjscod@gmx.de>.
76512
76513         2006-06-17  Bruno Haible  <bruno@clisp.org>
76514
76515                 * config.charset: Update for NetBSD 3.0.
76516
76517         2006-05-17  Bruno Haible  <bruno@clisp.org>
76518
76519                 Cygwin portability.
76520                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76521
76522         2006-05-16  Bruno Haible  <bruno@clisp.org>
76523
76524                 * localcharset.c [CYGWIN]: Include <windows.h>.
76525                 (get_charset_aliases): For Cygwin, return the same CPxxx
76526                 aliases list as under WIN32.
76527                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76528                 the environment variables. Fall back to GetACP().
76529
76530         2006-04-05  Bruno Haible  <bruno@clisp.org>
76531
76532                 * config.charset: Update Juan Manuel Guerrero's address.
76533
76534         2005-02-12  Bruno Haible  <bruno@clisp.org>
76535
76536                 * allocsa.h: Add extern "C" for C++.
76537
76538         2005-02-10  Bruno Haible  <bruno@clisp.org>
76539
76540                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76541                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76542
76543         2006-07-22  Bruno Haible  <bruno@clisp.org>
76544
76545                 * gettext.h: Update to GNU gettext-0.15.
76546
76547 2006-07-22  Bruno Haible  <bruno@clisp.org>
76548
76549         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76550         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76551         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76552
76553 2006-07-21  Eric Blake  <ebb9@byu.net>
76554
76555         * modules/stdlib-safer: New file.
76556         * MODULES.html.sh (File stream based Input/Output): Add
76557         stdlib-safer.
76558
76559 2006-07-21  Eric Blake  <ebb9@byu.net>
76560
76561         * lib/stdlib-safer.h: New file from coreutils, required by
76562         stdlib--.h.
76563
76564 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76565
76566         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76567
76568 2006-07-20  Bruno Haible  <bruno@clisp.org>
76569
76570         * gnulib-tool: Recognize new option --assume-autoconf.
76571         (autoconf_minversion): New variable.
76572         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76573
76574 2006-07-20  Bruno Haible  <bruno@clisp.org>
76575
76576         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76577
76578 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76579
76580         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76581         Reindent and repaginate.
76582
76583 2006-07-19  Derek Price  <derek@ximbiot.com>
76584
76585         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76586         Correct grammar.
76587
76588 2006-07-17  Bruno Haible  <bruno@clisp.org>
76589
76590         * modules/list: New file.
76591         * modules/array-list: New file.
76592         * modules/carray-list, modules/carray-list-tests: New files.
76593         * modules/linked-list, modules/linked-list-tests: New files.
76594         * modules/avltree-list, modules/avltree-list-tests: New files.
76595         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76596         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76597         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76598         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76599         * modules/oset: New file.
76600         * modules/array-oset: New file.
76601         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76602         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76603         * tests/test-carray_list.c: New file.
76604         * tests/test-linked_list.c: New file.
76605         * tests/test-avltree_list.c: New file.
76606         * tests/test-rbtree_list.c: New file.
76607         * tests/test-linkedhash_list.c: New file.
76608         * tests/test-avltreehash_list.c: New file.
76609         * tests/test-rbtreehash_list.c: New file.
76610         * tests/test-avltree_oset.c: New file.
76611         * tests/test-rbtree_oset.c: New file.
76612         * MODULES.html.sh (Container data structures): New section.
76613
76614 2006-07-17  Bruno Haible  <bruno@clisp.org>
76615
76616         * m4/gl_list.m4: New file.
76617
76618 2006-07-17  Bruno Haible  <bruno@clisp.org>
76619
76620         * lib/gl_list.h: New file.
76621         * lib/gl_list.c: New file.
76622         * lib/gl_array_list.h: New file.
76623         * lib/gl_array_list.c: New file.
76624         * lib/gl_carray_list.h: New file.
76625         * lib/gl_carray_list.c: New file.
76626         * lib/gl_linked_list.h: New file.
76627         * lib/gl_linked_list.c: New file.
76628         * lib/gl_anylinked_list1.h: New file.
76629         * lib/gl_anylinked_list2.h: New file.
76630         * lib/gl_avltree_list.h: New file.
76631         * lib/gl_avltree_list.c: New file.
76632         * lib/gl_anyavltree_list1.h: New file.
76633         * lib/gl_anyavltree_list2.h: New file.
76634         * lib/gl_rbtree_list.h: New file.
76635         * lib/gl_rbtree_list.c: New file.
76636         * lib/gl_anyrbtree_list1.h: New file.
76637         * lib/gl_anyrbtree_list2.h: New file.
76638         * lib/gl_anytree_list1.h: New file.
76639         * lib/gl_anytree_list2.h: New file.
76640         * lib/gl_linkedhash_list.h: New file.
76641         * lib/gl_linkedhash_list.c: New file.
76642         * lib/gl_anyhash_list1.h: New file.
76643         * lib/gl_anyhash_list2.h: New file.
76644         * lib/gl_avltreehash_list.h: New file.
76645         * lib/gl_avltreehash_list.c: New file.
76646         * lib/gl_rbtreehash_list.h: New file.
76647         * lib/gl_rbtreehash_list.c: New file.
76648         * lib/gl_anytreehash_list1.h: New file.
76649         * lib/gl_anytreehash_list2.h: New file.
76650
76651         * lib/gl_oset.h: New file.
76652         * lib/gl_oset.c: New file.
76653         * lib/gl_array_oset.h: New file.
76654         * lib/gl_array_oset.c: New file.
76655         * lib/gl_avltree_oset.h: New file.
76656         * lib/gl_avltree_oset.c: New file.
76657         * lib/gl_rbtree_oset.h: New file.
76658         * lib/gl_rbtree_oset.c: New file.
76659         * lib/gl_anytree_oset.h: New file.
76660
76661 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * m4/mkancesdirs.m4: New file.
76664         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76665         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76666         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76667         it.
76668
76669 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76672         * lib/mkancesdirs.h: New files.
76673         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76674         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76675         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76676         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76677         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76678         callers changed.  Revamp internals significantly, by not
76679         attempting to create directories that are temporarily more
76680         permissive than the final results.  Do not attempt to use
76681         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76682         This removes some race conditions, fixes some bugs, and simplifies
76683         things.  Use new dirchownmod function to do owner and mode changes.
76684         * lib/mkdir-p.h: Likewise.
76685         * lib/modechange.c (octal_to_mode): New function.
76686         (struct mode_change): New member mentioned.
76687         (make_node_op_equals): New arg mentioned.  All callers changed.
76688         (mode_compile): Keep track of which mode bits the user has explicitly
76689         mentioned.
76690         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76691         New arg PMODE_BITS, to keep track of which mode bits the user
76692         mentioned; it treats S_ISUID and S_ISGID speciall.
76693         All callers changed.
76694         * lib/modechange.h: Likewise.
76695
76696 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * MODULES.html.sh: Add mkancestors.
76699         * modules/mkancesdirs: New module.
76700         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76701         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76702         The chdir-safer and afs files are now orphans; I'll remove them
76703         unless someone speaks up.
76704         Add lib/dirchownmod.c, lib/dirchownmod.h.
76705         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76706         Add lchown, mkancesdirs.
76707         (Maintainer): Add self.
76708
76709 2006-07-15  Karl Berry  <karl@gnu.org>
76710
76711         * gnulib-tool: help message wording/arrangement.
76712
76713 2006-07-14  Simon Josefsson  <jas@extundo.com>
76714
76715         * doc/gnulib.texi (Libtool and Windows): New section.
76716
76717 2006-07-12  Simon Josefsson  <jas@extundo.com>
76718
76719         * modules/gendocs (License): Fix license, approved by Karl.
76720
76721 2006-07-12  Eric Blake  <ebb9@byu.net>
76722
76723         * MODULES.html.sh: Add gendocs.
76724
76725 2006-07-11  Eric Blake  <ebb9@byu.net>
76726
76727         * modules/fdl: New module, to install doc/fdl.texi.
76728         * MODULES.html.sh: Add new section for documentation modules.
76729         * gnulib-tool: Avoid space-tab.
76730         (--doc-base): New option, to manage files from doc.
76731
76732 2006-07-11  Eric Blake  <ebb9@byu.net>
76733
76734         * m4/absolute-header.m4: Fix comments to match recent change.
76735
76736 2006-07-11  Eric Blake  <ebb9@byu.net>
76737
76738         * gnulib-tool: List --doc-base before --tests-base.
76739
76740 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76741
76742         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76743
76744 2006-07-11  Bruno Haible  <bruno@clisp.org>
76745
76746         * README: Mention where to put documentation.
76747
76748 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76749
76750         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76751
76752 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76755         to stdint.m4.
76756
76757 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76760         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76761         "no/such/file/stdint.h" when there is no such file, so that
76762         the resulting C code can be parsed by dodgy compilers.
76763         Problems reported by Bob Proulx.
76764
76765 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76766
76767         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76768         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76769         macros into the GNU _D_EXACT_NAMLEN.
76770         * lib/savedir.c:  Likewise.
76771         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76772
76773 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76774         and Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76777         * m4/savedir.m4:
76778         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76779         macros into the GNU _D_EXACT_NAMLEN.
76780
76781 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76784         around the absolute name, to work around a problem with the HP-UX
76785         11.23 native C compiler, reported by Bob Proulx.
76786
76787 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * doc/maintain.texi, make-stds.texi: Sync from
76790         <http://savannah.gnu.org/projects/gnustandards>.
76791
76792 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76793
76794         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76795
76796 2006-07-09  Jim Meyering  <jim@meyering.net>
76797
76798         * m4/glob.m4: Remove a doubled word in a comment.
76799
76800 2006-07-09  Jim Meyering  <jim@meyering.net>
76801
76802         * lib/argp-pv.c: Remove a doubled word in a comment.
76803         * lib/check-version.c (check_version): Likewise.
76804         * lib/javacomp.c (compile_java_class): Likewise.
76805
76806 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76809         for the benefit of people using Autoconf 2.60.  If you want to
76810         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76811         (or m4/onceonly.m4, if pre-2.57) manually.
76812
76813 2006-07-08  Jim Meyering  <jim@meyering.net>
76814
76815         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76816         comment.
76817         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76818         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76819         comment.
76820
76821 2006-07-08  Jim Meyering  <jim@meyering.net>
76822
76823         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76824
76825 2006-07-07  Simon Josefsson  <jas@extundo.com>
76826
76827         * tests/test-crc.c: Change expected crc value, the test vector
76828         were probably computed using the old broken crc.c?
76829
76830 2006-07-06  Simon Josefsson  <jas@extundo.com>
76831
76832         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76833         now the canonical place for the M4 file).
76834
76835         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76836         from the sys_socket dependency now.
76837
76838         * modules/inet_pton (Files): Ditto.
76839
76840         * modules/inet_ntop (Files): Ditto.
76841
76842 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76843
76844         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76845         not gl_PREREQ_GETUSERSHELL.
76846
76847 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76848
76849         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76850         with only one argument, for Autoconf 2.60.
76851         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76852         expand to nothing, so add a shell command to avoid syntax error.
76853         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76854
76855 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76856
76857         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76858
76859 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76862         no longer needed.  Check for isblank decl.
76863         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76864         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76865         of existence.
76866
76867 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * lib/getloadavg.c: Use __VMS, not VMS.
76870         * lib/getopt.c: Likewise.
76871         * lib/getpagesize.h: Likewise.
76872         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76873         and probably does not work.
76874
76875 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76876
76877         * lib/.cppi-disable: Add wcwidth.
76878         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76879         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76880         (ISGRAPH): Remove.  All uses changed to isgraph.
76881         (FOLD) [!defined _LIBC]: Remove special case.
76882         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76883         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76884         HAVE_ISBLANK.
76885         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76886         case.
76887
76888 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76889
76890         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76891         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76892         brackets.  Other minor changes to suppress some compiler
76893         warnings.
76894
76895 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76896         and Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76899         of invoking obsolescent AC_HEADER_DIRENT macro.
76900         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76901         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76902         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76904         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76905         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76906         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76907         * m4/readdir.m4: Remove; no longer needed.
76908
76909 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76910         and Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76913         Don't worry about this obsolete case any more.
76914         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76915         directories.
76916         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76917         worry about this obsolete case any more.
76918         * lib/fts.c: Likewise.
76919         * lib/getcwd.c: Likewise.
76920         * lib/glob.h: Likewise.
76921         * lib/savedir.c: Likewise.
76922
76923 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76926         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76927         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76928         needed.
76929         All uses removed.
76930         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76931         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76932         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76933         needed.
76934         * m4/getdate.m4 (gl_GETDATE): Likewise.
76935         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76936         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76937         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76938         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76939         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76940         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76941         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76942         needed.
76943
76944 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * lib/memcasecmp.c: Include <limits.h>.
76947         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76948         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76949         Don't assume isdigit succeeds only on '0' through '9'.
76950
76951 2006-07-05  Eric Blake  <ebb9@byu.net>
76952
76953         * modules/getaddrinfo (Depends-on): Add snprintf.
76954
76955 2006-07-05  Eric Blake  <ebb9@byu.net>
76956
76957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76958         to avoid 'header present but could not be compiled' on cygwin.
76959
76960 2006-07-05  Eric Blake  <ebb9@byu.net>
76961
76962         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76963         missing from netdb.h.
76964         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76965
76966 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76967
76968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76969         no longer needed.
76970         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76971         * m4/getdate.m4 (gl_GETDATE): Likewise.
76972         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76973         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76974         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76975         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76977
76978 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76979
76980         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76981         All uses of is_space replaced by isspace.
76982         * lib/exit.h: Don't talk about STDC_HEADERS.
76983         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76984         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76985         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76986         replaced by isprint etc.
76987         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76988         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76989         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76990         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76991         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76992         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76993
76994 2006-07-05  Bruno Haible  <bruno@clisp.org>
76995
76996         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76997         the function exists, before testing against AIX.
76998         Reported by Martin Lambers <marlam@marlam.de>.
76999
77000 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77003         From Mark D. Baushke.
77004
77005 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77008         to the absolute name, not just one, to bypass Sun C 5.8's
77009         "warning: #include of /usr/include/... may be non-portable".
77010
77011 2006-07-04  Eric Blake  <ebb9@byu.net>
77012
77013         * modules/dirname-tests: New test module.
77014         * tests/test-dirname.c: New file, replacing dirname.c
77015         TEST_DIRNAME section that was recently deleted.
77016
77017 2006-07-04  Bruno Haible  <bruno@clisp.org>
77018
77019         Assume ANSI C header files and <ctype.h> functions.
77020         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77021         (mbsnwidth): Use isprint, iscntrl instead.
77022
77023 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         Merge from coreutils.
77026         * MODULES.html.sh: Add xstrtold.
77027         * modules/xstrtold: New file.
77028         * modules/cycle-check (Files): Add lib/same-inode.h.
77029         * modules/dirname (Files): Add m4/double-slash-root.m4.
77030         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77031         * modules/mkdir-p (Files): Add lib/same-inode.h.
77032         * modules/same (Files): Add lib/same-inode.h.
77033
77034 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77037         This is to keep the terminology clean; POSIX talks about
77038         "absolute pathnames", not "full pathnames", but the GNU
77039         Coding Standards say to use "path" for something else;
77040         so use "absolute" to keep both sides happy.
77041         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77042         Set gl_absolute_header, not gl_full_header_path.
77043         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77044         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77045         All uses changed.
77046
77047         Merge from coreutils.
77048
77049         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77052         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77053         want to require the building of c-strtod.o.
77054         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77055         needs -lm directly.
77056         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77057
77058         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77061         --as-needed option if available.  Problem reported by Albert Chin in
77062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77063         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77064         cc merely issues a bunch of annoying warnings for --as-needed
77065         (this problem was reported by Bob Proulx).  Also, try linking with
77066         -lm to detect a bug in binutils 2.16 (this problem was reported
77067         by Ralf Wildenhues).
77068
77069         2006-06-18  Jim Meyering  <jim@meyering.net>
77070
77071         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77072         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77073         macro.
77074         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77075         also check for glibc-2.4's abort-inducing bug.
77076
77077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77078         Low-probability clean-up should be to use rmdir to get rid of
77079         the just-created directory, not unlink.
77080
77081         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77082         configure fail, and request a bug report to inform us about it.
77083         Add a comment that, barring reports to the contrary, in 2007 we'll
77084         assume ftruncate is universally available.
77085
77086         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77089
77090         2006-03-12  Jim Meyering  <jim@meyering.net>
77091
77092         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77093         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77094         * m4/same.m4 (gl_SAME): Likewise.
77095         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77096
77097         2006-03-11  Eric Blake  <ebb9@byu.net>
77098
77099         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77100         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77101         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77102         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77103
77104 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77107         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77108         reported by Mark D. Baushke, one in
77109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77110
77111         Merge from coreutils.
77112
77113         * lib/.cppi-disable: Add stdint_.h.
77114         * lib/.cvsignore: Add stdint.h.
77115
77116         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77119         both double and long double versions.
77120         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77121         * lib/xstrtold.c: New file.
77122         * lib/xstrtod.h (xstrtold): New decl.
77123
77124         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * lib/filemode.c (setst): Remove.
77127         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77128         (arguably) clearer, and the generated code is a bit smaller on my
77129         Debian GNU/Linux stable x86 host.
77130
77131         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77134         Assume that filemode.h includes sys/types.h and sys/stat.h.
77135         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77136         (ftypelet): Reorder to put common cases first, for efficiency.
77137         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77138         to do 'M'.
77139         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77140         of 10, for compatibility with FreeBSD.  All callers changed.
77141         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77142         types that can't be deduced solely from st_mode.  First arg is now a
77143         const pointer.
77144         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77145         (strmode): Renamed from mode_string.
77146         (filemodestring): New decl.
77147         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77148         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77149         needed.
77150         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77151
77152         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77155         fsusage.h now does that.  Include fsusage.h first, to test interface.
77156         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77157         at most one method (the old code could have generated decls that
77158         didn't conform to C89, not that this was ever exercised).
77159         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77160
77161         2006-03-19  Jim Meyering  <jim@meyering.net>
77162
77163         Work even in a chroot where d_ino values for entries in "/"
77164         don't match the stat.st_ino values for the same names.
77165         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77166         number, iterate through all entries again, using lstat instead.
77167         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77168         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77169
77170         * lib/getcwd.c (__getcwd): Clarify a comment.
77171         Use memcpy in place of a call to strcpy.
77172
77173         2006-03-12  Jim Meyering  <jim@meyering.net>
77174
77175         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77176         matches that of the current directory (which we're about to chdir ".."
77177         out of), then save the dev-ino of the parent, instead.
77178
77179         * lib/same-inode.h (SAME_INODE): New file/macro.
77180         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77181         Include "same-inode.h", instead.
77182         * lib/same.c: Likewise.
77183         * lib/cycle-check.h: Include "same-inode.h".
77184         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77185         * lib/cycle-check.c (SAME_INODE): Remove definition.
77186         * lib/root-dev-ino.h: Include "same-inode.h".
77187
77188         2006-03-11  Eric Blake  <ebb9@byu.net>
77189
77190         * lib/same.c (same_name): s/base_name/last_component/
77191         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77192         * lib/filenamecat.c (file_name_concat): Likewise.
77193
77194         2006-03-11  Eric Blake  <ebb9@byu.net>,
77195                     Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77198         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77199         drive prefix.
77200         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77201         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77202         (last_component): New method.
77203         * lib/dirname.c (dir_len): Determine when drive letters need a
77204         subsequent slash.  Preserve // when it is special.
77205         (dir_name): Don't append dot when drive letter is absolute.
77206         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77207         * lib/basename.c (base_name): New semantics - malloc the result.
77208         Preserve // when it is special.  Preserve relative files that look
77209         like drive letters.
77210         (base_len): Preserve // when it is special.
77211         (last_component): New method, similar to old base_name semantics.
77212         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77213         base_name.  Strip redundant slashes from ///.
77214
77215 2006-07-03  Jim Meyering  <jim@meyering.net>
77216
77217         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77218         macro is used before the first cycle_check call.
77219
77220 2006-07-03  Eric Blake  <ebb9@byu.net>
77221
77222         * modules/dirname (Depends-on): Add xstrndup.
77223
77224 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77227         test cases, so that config.log is a bit easier to follow.
77228
77229 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77232         both are 64 bits, since this seems to be the tradition, and this
77233         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77234         we ever run into a host that prefers long long to long in this
77235         case, we'll need another configure-time test.  Problem reported by
77236         Jim Meyering.
77237
77238 2006-07-02  Eric Blake  <ebb9@byu.net>
77239
77240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77241
77242 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * modules/inttypes (Depends-on): No longer depends on stdint.
77245         * modules/stdint (Description): Say more about assumptions.
77246         Say that the fast types might differ.  Say macros are used.
77247         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77248         (Makefile.am): Revise list of substituted symbols to match
77249         new stdint.m4.
77250         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77251         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77252         * tests/test-stdint.c (verify_same_types)
77253         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77254         the code conforms to C99/C89.
77255         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77256         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77257
77258 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77259
77260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77261         but fix a bug, by requiring at least 64 bits.
77262         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77263         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77264         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77265         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77266
77267         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77268         changes.  Make 2.59 a prerequisite.  Check and substitute for
77269         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77270         inttypes.h.  Do not use special include files; just use the
77271         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77272         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77273         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77274         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77275         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77276         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77277         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77278         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77279         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77280         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77281         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77282         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77283         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77284         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77285         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77286         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77287         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77288         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77289         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77290         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77291         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77292         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77293         not check for things that C99 does not require, e.g., int8_t.  If
77294         a test isn't needed unless <stdint.h> isn't working, and is
77295         unlikely to be needed for any other reason, then don't do it
77296         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77297         size_t, since we assume C89 freestanding at least.  Do not check
77298         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77299         the right thing even if the types are not defined.  Instead use:
77300         (gl_STDINT_TYPE_PROPERTIES): New macro.
77301         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77302         testing whether <sys/types.h> clashes, as Autoconf does this for
77303         us now.  All uses removed.
77304         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77305         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77306         (gl_CHECK_TYPE_SAME):
77307         Remove; no longer needed.
77308         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77309         exists, since we'll return 0 anyway in that case.
77310         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77311
77312 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77315         possible collision with system files.
77316         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77317         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77318         WCHAR_MIN and WCHAR_MAX in this case.
77319         (<stddef.h>): Do not include; no longer needed.
77320         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77321         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77322         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77323         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77324         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77325         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77326         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77327         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77328         !defined(__c99))]: Include in this case too, since it's harmless
77329         now.
77330         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77331         dangerous to do so.
77332         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77333         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77334         (_STDINT_MIN, _STDINT_MAX): New macros.
77335         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77336         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77337         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77338         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77339         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77340         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77341         macros, not typedefs; this simplifies things quite a bit.
77342         Use long int for all types narrower than int64_t.
77343         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77344         Define in terms of long long int or int64_t or long int,
77345         not int64_t or int32_t.  This saves some compile-time testing.
77346         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77347         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77348         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77349         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77350         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77351         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77352         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77353         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77354         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77355         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77356         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77357         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77358         undef any previous version and define our own version, for
77359         simplicity and consistency with the new macros for types.
77360         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77361         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77362         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77363         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77364         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77365         @WINT_T_SUFFIX@ to keep things simple here.
77366         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77367         Simplify by assuming typical 8/16/32/64 host, since we're
77368         already doing that elsewhere anyway.
77369         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77370         and assume long long int is 64 bits if available.  This
77371         speeds up 'configure'.
77372
77373 2006-07-01  Eric Blake  <ebb9@byu.net>
77374
77375         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77376         Reported by Andreas Buening.
77377
77378 2006-07-01  Eric Blake  <ebb9@byu.net>
77379
77380         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77381
77382 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77383
77384         * lib/getaddrinfo.c: fixed typo
77385
77386 2006-06-29  Jim Meyering  <jim@meyering.net>
77387
77388         * modules/strftime (Maintainer): Add my name, since with the
77389         FPRINTFTIME changes strftime.c has forked from glibc.
77390
77391 2006-06-29  Eric Blake  <ebb9@byu.net>
77392
77393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77394
77395 2006-06-29  Eric Blake  <ebb9@byu.net>
77396
77397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77398
77399 2006-06-29  Eric Blake  <ebb9@byu.net>
77400
77401         * lib/stat_.h: New file.
77402
77403 2006-06-29  Eric Blake  <ebb9@byu.net>
77404
77405         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77406         unused static function.
77407
77408 2006-06-29  Eric Blake  <ebb9@byu.net>
77409
77410         * doc/functions.texi (Function Portability): Document missing lstat
77411         on mingw.
77412
77413 2006-06-29  Eric Blake  <ebb9@byu.net>
77414
77415         * MODULES.html.sh: Add sys_stat.
77416         * modules/sys_stat: New module.
77417         * modules/mkstemp (Depends-on): Add sys_stat.
77418
77419 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77420
77421         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77422
77423 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77424
77425         * m4/c-bs-a.m4: Removed.
77426
77427 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77428
77429         * lib/strftime.c: Assume strftime() exists.
77430
77431 2006-06-29  Derek Price  <derek@ximbiot.com>
77432
77433         * modules/c-bs-a: Removed - \a is C89.
77434         * MODULES.html.sh: Remove c-bs-a.
77435
77436 2006-06-29  Bruno Haible  <bruno@clisp.org>
77437
77438         * modules/wcwidth (License): Change to LGPL.
77439
77440 2006-06-28  Simon Josefsson  <jas@extundo.com>
77441
77442         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77443         on _WIN32.
77444
77445         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77446         getnameinfo.
77447
77448 2006-06-28  Simon Josefsson  <jas@extundo.com>
77449
77450         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77451
77452 2006-06-28  Simon Josefsson  <jas@extundo.com>
77453
77454         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77455         functions there.  It will succeed on Windows XP, but on Windows
77456         2000 and (presumably) earlier, it will fail, and use the internal
77457         re-implementation.
77458         (use_win32_p): New function.
77459         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77460         Support AI_NUMERICSERV to disable getservbyname.
77461         (getnameinfo): New function, only supports
77462         NI_NUMERICHOST|NI_NUMERICSERV for now.
77463
77464         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77465         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77466         getnameinfo.
77467
77468 2006-06-28  Eric Blake  <ebb9@byu.net>
77469
77470         * modules/wcwidth: New file.
77471         * modules/mbchar (Depends-on): Add wcwidth.
77472         * modules/mbswidth (Depends-on): Add wcwidth.
77473         * MODULES.html.sh: Add wcwidth.
77474
77475 2006-06-28  Eric Blake  <ebb9@byu.net>
77476
77477         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77479
77480 2006-06-28  Eric Blake  <ebb9@byu.net>
77481
77482         * lib/xvasprintf.h: Fix comments.
77483
77484 2006-06-28  Eric Blake  <ebb9@byu.net>
77485
77486         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77487         * lib/mbswidth.c (wcwidth): Move from here...
77488         * lib/wcwidth.h: ...to this new file.
77489
77490 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77491
77492         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77493
77494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77495         it's obsolete.
77496         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77497
77498 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77499
77500         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77501         Autoconf 2.60 says this stuff was obsolete.
77502
77503 2006-06-28  Bruno Haible  <bruno@clisp.org>
77504
77505         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77506
77507 2006-06-28  Bruno Haible  <bruno@clisp.org>
77508
77509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77510         gt_TYPE_WCHAR_T.
77511
77512 2006-06-28  Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77515         declaration for wcwidth.
77516         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77517
77518 2006-06-28  Bruno Haible  <bruno@clisp.org>
77519
77520         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77521         (mkdir): Define using _mkdir.
77522
77523 2006-06-28  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/getaddrinfo.h: Fix POSIX URL.
77526         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77527         _WIN32.
77528         (use_win32_p): Make static.
77529         (getaddrinfo): Reject service name if it is empty or does not consist
77530         solely of decimal digits, or if its value is > 65535.
77531         (getnameinfo): Remove useless casts.
77532
77533 2006-06-27  Simon Josefsson  <jas@extundo.com>
77534
77535         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77536         Eggert and Martin Lambers.
77537
77538 2006-06-27  Simon Josefsson  <jas@extundo.com>
77539
77540         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77541         Eggert and Martin Lambers.
77542
77543 2006-06-27  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77546         result to 0, not to empty.
77547         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77548
77549 2006-06-27  Bruno Haible  <bruno@clisp.org>
77550
77551         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77552
77553 2006-06-26  Simon Josefsson  <jas@extundo.com>
77554
77555         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77556         present.
77557
77558 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77561         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77563
77564 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77565
77566         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77567
77568 2006-06-26  Bruno Haible  <bruno@clisp.org>
77569
77570         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77571
77572 2006-06-26  Bruno Haible  <bruno@clisp.org>
77573
77574         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77575
77576 2006-06-26  Bruno Haible  <bruno@clisp.org>
77577
77578         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77579         SGI C compiler in pre-C99 mode.
77580         Suggested by Mark D. Baushke and Larry Jones.
77581
77582 2006-06-26  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77585         WCHAR_MAX.
77586         Reported by Mark D. Baushke and Larry Jones.
77587
77588 2006-06-26  Bruno Haible  <bruno@clisp.org>
77589
77590         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77591         in pre-C99 mode.
77592         Suggested by Mark D. Baushke and Larry Jones.
77593
77594 2006-06-23  Simon Josefsson  <jas@extundo.com>
77595             Bruno Haible  <bruno@clisp.org>
77596
77597         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77598         Emit mostlyclean-local rule.
77599         (func_emit_tests_Makefile_am): Likewise.
77600         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77601
77602 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77603
77604         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77605
77606 2006-06-23  Bruno Haible  <bruno@clisp.org>
77607
77608         * tests/test-stdint.c: Update to match ISO C 99 Technical
77609         Corrigendum 1.
77610
77611 2006-06-23  Bruno Haible  <bruno@clisp.org>
77612
77613         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77614
77615 2006-06-23  Bruno Haible  <bruno@clisp.org>
77616
77617         * lib/stdint_.h: Treat IRIX like OpenBSD.
77618
77619 2006-06-23  Bruno Haible  <bruno@clisp.org>
77620
77621         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77622         ISO C 99 Technical Corrigendum 1.
77623
77624 2006-06-22  Simon Josefsson  <jas@extundo.com>
77625
77626         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77627         MinGW.
77628
77629 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77632         needed.  Some compiler complained about some of them.  Problem reported
77633         by Larry Jones in
77634         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77635
77636 2006-06-21  Simon Josefsson  <jas@extundo.com>
77637
77638         * tests/test-getaddrinfo.c: New file.
77639
77640         * modules/getaddrinfo-tests: New file.
77641
77642         * MODULES.html.sh: Add inet_pton.
77643
77644         * modules/inet_pton: New file.
77645
77646 2006-06-21  Simon Josefsson  <jas@extundo.com>
77647
77648         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77649         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77650         of using the (limited) gnulib implementation on Windows XP.
77651
77652         * m4/inet_pton.m4: New file.
77653
77654 2006-06-21  Simon Josefsson  <jas@extundo.com>
77655
77656         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77657         variable.
77658
77659         * lib/socket_.h: Don't define WINVER.
77660
77661         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77662         slightly modified to work in gnulib.
77663
77664 2006-06-21  Simon Josefsson  <jas@extundo.com>
77665
77666         * doc/gnulib.texi (Windows sockets): Add.
77667
77668 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         * lib/read-file.c (fread_file): Start with buffer allocation of
77671         0 bytes rather than 1 byte; this simplifies the code.
77672         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77673         code to free buffer and save/restore errno.
77674         (internal_read_file): Remove unused local.
77675
77676 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77679         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77680         Problem reported by Denis Excoffier in
77681         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77682
77683 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77684
77685         * modules/sys_socket, modules/socklen: Include sys/types since
77686         FreeBSD 4.x's sys/socket.h needs it.
77687
77688 2006-06-19  Simon Josefsson  <jas@extundo.com>
77689
77690         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77691
77692 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77695
77696 2006-06-19  Bruno Haible  <bruno@clisp.org>
77697
77698         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77699         and FULL_PATH_INTTYPES_H in angle brackets.
77700         Reported by Mark D. Baushke <mdb@gnu.org>.
77701
77702 2006-06-17  Eric Blake  <ebb9@byu.net>
77703
77704         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77705         errno.
77706
77707 2006-06-17  Bruno Haible  <bruno@clisp.org>
77708
77709         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77710         <sys/inttypes.h>.
77711
77712 2006-06-17  Bruno Haible  <bruno@clisp.org>
77713
77714         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77715         whether errno is declared. Assume <errno.h> declares errno.
77716
77717 2006-06-17  Bruno Haible  <bruno@clisp.org>
77718
77719         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77720
77721 2006-06-17  Bruno Haible  <bruno@clisp.org>
77722
77723         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77724         problem on Solaris 2.5.1.
77725
77726 2006-06-16  Eric Blake  <ebb9@byu.net>
77727
77728         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77729         * lib/unicodeio.c [!defined errno]: Likewise.
77730         * lib/strtol.c [!defined errno]: Likewise.
77731         * lib/strtod.c [!defined errno]: Likewise.
77732
77733 2006-06-15  Eric Blake  <ebb9@byu.net>
77734
77735         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77736
77737 2006-06-15  Eric Blake  <ebb9@byu.net>
77738
77739         * config/srclist.txt (ssize_t.m4): Lose sync.
77740
77741 2006-06-15  Bruno Haible  <bruno@clisp.org>
77742
77743         * modules/stdint (Files): Include m4/full-header-path.m4,
77744         m4/size_max.m4, m4/wchar_t.m4.
77745         (Makefile.am): Many more substitutions.
77746         * modules/stdint-tests: New file.
77747         * tests/test-stdint.c: New file.
77748
77749 2006-06-15  Bruno Haible  <bruno@clisp.org>
77750
77751         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77752         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77753         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77754         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77755         gl_CHECK_TYPE_SAME): New macros.
77756
77757 2006-06-15  Bruno Haible  <bruno@clisp.org>
77758
77759         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77760
77761 2006-06-15  Bruno Haible  <bruno@clisp.org>
77762
77763         * lib/stdint_.h: Rewritten to be fully auto-configured.
77764         Fixes bug on HP-UX/IA64.
77765
77766 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77767
77768         * lib/getdate.y (__attribute__): Don't define if already defined.
77769         Problem reported by Larry Jones.
77770         * lib/utimens.c (__attribute__): Likewise.
77771
77772 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77775         reported by Andreas Schwab.
77776
77777 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77778             Bruno Haible  <bruno@clisp.org>
77779
77780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77781         check for the declaration of strnlen and a run test that exposes the
77782         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77783         rpl_strndup.
77784
77785 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77786             Bruno Haible  <bruno@clisp.org>
77787
77788         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77789
77790 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77791
77792         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77793         compile test, for Tru64 4.0D.
77794
77795 2006-05-28  Karl Berry  <karl@gnu.org>
77796
77797         * config/srclist.txt (printf-args.c): lose sync.
77798
77799 2006-05-26  Martin Lambers  <marlam@marlam.de>
77800
77801         * lib/getpass.c: Updates the test for the native W32 API, and adds
77802         missing includes, thus fixing compilation warnings.
77803
77804 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77805
77806         * lib/exclude.c (exclude_fnmatch): New function.
77807         (excluded_file_name): Call exclude_fnmatch.
77808         * lib/exclude.h (excluded_file_name): New prototype
77809
77810 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/tempname.c (small_open, large_open): New macros.
77813         (__open, __open64) [!_LIBC]: Remove.
77814         (__gen_tempname): Use small_open and large_open instead of __open
77815         and __open64.  This fixes a portability bug on HP-UX 11.11i
77816         reported by Simon Wing-Tang in
77817         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77818
77819 2006-05-24  Bruno Haible  <bruno@clisp.org>
77820
77821         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77822         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77823         Reported by Thorsten Maerz <torte@netztorte.de> via
77824         Aaron Stone <aaron@serendipity.cx>.
77825
77826 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77829         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77830         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77831         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77832         not really conditional on the cache.
77833         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77834
77835 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77838         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77839         (my_usleep): Don't mishandle maximum value.
77840
77841 2006-05-19  Jim Meyering  <jim@meyering.net>
77842
77843         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77844
77845 2006-05-17  Bruno Haible  <bruno@clisp.org>
77846
77847         Cygwin portability.
77848         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77849
77850 2006-05-17  Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/stdint_.h: Fix recognition of Cygwin.
77853
77854 2006-05-15  Bruno Haible  <bruno@clisp.org>
77855
77856         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77857         on libtool patch by Ralf Wildenhues.
77858
77859 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77862         test for C99 conformance; (bool) 0.5 is an integer constant
77863         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77864         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77865
77866 2006-05-11  Simon Josefsson  <jas@extundo.com>
77867
77868         * m4/xvasprintf.m4: Fix obvious typo.
77869
77870 2006-05-11  Jim Meyering  <jim@meyering.net>
77871
77872         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77873         James Lemley.
77874
77875 2006-05-10  Simon Josefsson  <jas@extundo.com>
77876
77877         * lib/md4.c: Typo fix, update copyright years.
77878         (K1, K2): Don't use L because it turn computations into 64-bit on
77879         64-bit platforms.
77880
77881 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77884         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77885         unwanted sign propagation, e.g., on hosts with 64-bit int.
77886         There still are some problems with reeelly weird theoretical hosts
77887         (e.g., 33-bit int) but it's not worth worrying about now.
77888         * lib/sha1.c (rol): Likewise.
77889         (K1, K2, K3, K4): Remove unnecessary L suffix.
77890
77891 2006-05-10  Bruno Haible  <bruno@clisp.org>
77892
77893         * lib/des.c: Cast to avoid warnings.
77894
77895 2006-05-09  Bruno Haible  <bruno@clisp.org>
77896
77897         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77898         (Depends-on): Depend also on xsize, stdarg.
77899         (configure.ac): Add gl_XVASPRINTF.
77900
77901 2006-05-09  Bruno Haible  <bruno@clisp.org>
77902
77903         * m4/xvasprintf.m4: New file.
77904
77905 2006-05-09  Bruno Haible  <bruno@clisp.org>
77906
77907         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77908         (EOVERFLOW): Define fallback value.
77909         (xstrcat): New function.
77910         (xvasprintf): Recognize the special case of a string concatenation.
77911
77912 2006-05-08  Eric Blake  <ebb9@byu.net>
77913
77914         * gnulib-tool (func_version): Base copyright year on CVS date.
77915         (func_emit_copyright_notice): New function.
77916         (func_emit_lib_Makefile_am): Use it.
77917         (func_emit_tests_Makefile_am): Likewise.
77918         (func_import): Likewise.
77919
77920 2006-05-08  Bruno Haible  <bruno@clisp.org>
77921
77922         * modules/stdarg: New file.
77923         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77924
77925 2006-05-08  Bruno Haible  <bruno@clisp.org>
77926
77927         * m4/stdarg.m4: New file, from GNU gettext.
77928
77929 2006-05-08  Bruno Haible  <bruno@clisp.org>
77930
77931         * config/srclist.txt (build-aux/config.rpath): different from latest
77932         release.
77933
77934 2006-05-08  Bruno Haible  <bruno@clisp.org>
77935
77936         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77937
77938 2006-05-05  Jim Meyering  <jim@meyering.net>
77939
77940         * m4/warning.m4: New file, derived from bison's file by the same name.
77941
77942 2006-05-03  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/stdint_.h: Shorter URL.
77945         * lib/inttypes.h: Likewise.
77946
77947 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77948
77949         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77950
77951 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * lib/verify.h: Document the internals better.  Most of this change
77954         was written by Bruno Haible.
77955
77956 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * doc/verify.texi: New file, partly based on a proposal by
77959         Bruno Haible.
77960
77961 2006-05-02  Bruno Haible  <bruno@clisp.org>
77962
77963         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77964         test from here...
77965         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77966
77967 2006-04-29  Bruno Haible  <bruno@clisp.org>
77968
77969         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77970         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77971
77972 2006-04-29  Bruno Haible  <bruno@clisp.org>
77973
77974         * gnulib-tool: Make --update option actually work.
77975
77976 2006-04-29  Bruno Haible  <bruno@clisp.org>
77977
77978         * doc/gcd.texi: New file.
77979         * doc/gnulib.texi: Include it.
77980
77981 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * lib/getdate.y (get_date): When adding relative date, start with the
77984         initial time, not with the result of the first mktime call.
77985
77986 2006-04-25  Bruno Haible  <bruno@clisp.org>
77987
77988         * gnulib-tool (func_import): Output the include directives in three
77989         blocks, sorted separately.
77990         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77991
77992 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77995         to define main with arguments, for C++.  Reported by Eric Blake.
77996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77997         Prefer 'int main ()' to 'int main (void)', for C++.
77998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78000         for 'main', for C99 and C++.
78001
78002 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78003
78004         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78005         Don't assume that exit status -1 is valid.
78006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78007         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78008         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78009         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78010         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78012         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78013         functions can be used without declaring them, or that you can
78014         exit with status -1.
78015         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78016
78017 2006-04-24  Karl Berry  <karl@gnu.org>
78018
78019         * config/srclist.txt (longdouble.m4): sync lost.
78020
78021 2006-04-24  Eric Blake  <ebb9@byu.net>
78022
78023         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78024
78025 2006-04-24  Bruno Haible  <bruno@clisp.org>
78026
78027         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78028         poll() implementation in AIX.
78029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78030
78031 2006-04-24  Bruno Haible  <bruno@clisp.org>
78032
78033         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78034         assigned exactly once.
78035
78036 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78037             Bruno Haible  <bruno@clisp.org>
78038
78039         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78040         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78041         for AM_CPPFLAGS.
78042
78043 2006-04-23  Bruno Haible  <bruno@clisp.org>
78044
78045         * modules/copy-file: Depend on unistd.
78046         * modules/execute: Likewise.
78047         * modules/fatal-signal: Likewise.
78048         * modules/findprog: Likewise.
78049         * modules/mkdtemp : Likewise.
78050         * modules/pipe: Likewise.
78051         * modules/wait-process: Likewise.
78052
78053 2006-04-23  Bruno Haible  <bruno@clisp.org>
78054
78055         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78056         condition was already detected.
78057         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78058
78059 2006-04-23  Bruno Haible  <bruno@clisp.org>
78060
78061         * lib/copy-file.c: Include <unistd.h> unconditionally.
78062         * lib/execute.c: Likewise.
78063         * lib/fatal-signal.c: Likewise.
78064         * lib/findprog.c: Likewise.
78065         * lib/mkdtemp.c: Likewise.
78066         * lib/pipe.h: Likewise.
78067         * lib/pipe.c: Likewise.
78068         * lib/wait-process.h: Likewise.
78069
78070 2006-04-23  Bruno Haible  <bruno@clisp.org>
78071
78072         * gnulib-tool (func_usage): Fix --import description. Document
78073         --update.
78074         (func_import): Create temporary file in a temporary directory, if
78075         --dry-run is specified. Silence errors from 'grep' when there are no
78076         m4 files in $m4dir.
78077         (func_create_testdir): Silence errors from 'grep' when there are no
78078         m4 files in $m4dir.
78079         Reported by Karl Berry <karl@freefriends.org>.
78080
78081 2006-04-20  Bruno Haible  <bruno@clisp.org>
78082
78083         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78084         one argument, so that the code will be portable to Autoconf 2.60.
78085         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78086         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78087         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78088
78089 2006-04-19  Derek Price  <derek@ximbiot.com>
78090             Eric Blake  <ebb9@byu.net>
78091
78092         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78093         rather than "/full/path.h".  Update comment to match.  Shorten &
78094         generalize m4_translit call via AS_TR_CPP.
78095
78096 2006-04-19  Derek Price  <derek@ximbiot.com>
78097             Eric Blake  <ebb9@byu.net>
78098
78099         * lib/inttypes.h: Correct grammar in comment.
78100
78101 2006-04-18  Derek Price  <derek@ximbiot.com>
78102             Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         * modules/inttypes: New file.
78105         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78106
78107 2006-04-18  Derek Price  <derek@ximbiot.com>
78108             Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78111         New files.
78112
78113 2006-04-18  Derek Price  <derek@ximbiot.com>
78114             Paul Eggert  <eggert@cs.ucla.edu>
78115
78116         * lib/inttypes.h: New file.
78117         * lib/strtoimax.c: Assume <inttypes.h>.
78118
78119 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78122         isn't mounted.  Problem reported by Kir Kolyshkin.
78123
78124 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78127         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78128         Derek R. Price.
78129         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78130         implementation.
78131
78132 2006-04-12  Eric Blake  <ebb9@byu.net>
78133
78134         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78135         is now done automatically by the corresponding Autoconf macro.
78136
78137 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78140         time_r.h.
78141
78142 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         Merge regex changes from libc, removing some of our
78145         POSIX-conformance changes that were rejected and redoing them in a
78146         less-intrusive way.
78147
78148         * lib/regcomp.c (re_compile_internal, init_dfa):
78149         Length arg is now size_t, not Idx.  All uses changed.
78150         (peek_token): Forward decl now says internal_function.
78151         (__re_error_msgid, __re_error_msgid_idx):
78152         Now static rather than extern with attribute_hidden.
78153         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78154         For some reason libc prefers K&R style defns for external functions.
78155         (regerror) [!defined _LIBC]: Likewise.
78156         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78157         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78158         (build_range_exp, build_collating_symbol):
78159         Use K&R-style defn.
78160         (re_compile_fastmap): Use '\0' to memset, not 0.
78161         (utf8_sb_map): Make the calculations more obvious.
78162         (init_dfa, parse_bracket_exp, build_charclass_op):
78163         Call calloc and cast result, as glibc does.
78164         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78165         (build_range_exp, build_collating_symbol):
78166         Now internal functions.
78167
78168         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78169
78170         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78171         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78172         Don't depend on VMS; depend on __VMS instead, for POSIX
78173         namespace cleanness.
78174         (regoff_t): Define to ssize_t, not long int.
78175
78176         Remove the REG_ macros named below.  Instead, make the old names
78177         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78178         __USE_GNU_REGEX.
78179         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78180         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78181         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78182         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78183         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78184         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78185         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78186         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78187         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78188         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78189         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78190         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78191         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78192         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78193         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78194         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78195         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78196         (REG_NREGS):
78197         Remove.  All uses replaced by the old RE_* names.
78198         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78199         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78200         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78201         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78202         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78203         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78204         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78205         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78206         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78207         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78208         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78209         Don't bother having these macros be independent of each others'
78210         values, since they no longer exist in the POSIX name space.
78211
78212         Rename the following member names back to their old names,
78213         unless !__USE_GNU_REGEX.  All uses changed back.
78214         (buffer): Renamed from re_buffer.
78215         (allocated): Renamed from re_allocated.
78216         (used): Renamed from re_used.
78217         (syntax): Renamed from re_syntax.
78218         (fastmap): Renamed from re_fastmap.
78219         (translate): Renamed from re_translate.
78220         (can_be_null): Renamed from re_can_be_null.
78221         (regs_allocated): Renamed from re_regs_allocated.
78222         (fastmap_accurate): Renamed from re_fastmap_accurate.
78223         (no_sub): Renamed from re_no_sub.
78224         (not_bol): Renamed from re_not_bol.
78225         (not_eol): Renamed from re_not_eol.
78226         (newline_anchor): Renamed from re_newline_anchor.
78227         (num_regs): Renamed from rm_num_regs.
78228         (start): Renamed from rm_start.
78229         (end): Renamed from rm_end.
78230
78231         (free_state): Move up a bit.
78232
78233         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78234         #define to be empty.
78235         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78236         when that is what is intended.
78237         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78238         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78239         (MAX): New macro.
78240         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78241         All uses changed back to re_malloc, etc.  It's now the caller's
78242         responsibility to check for overflow; all callers changed.
78243         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78244         (re_x2nrealloc): Remove.
78245         (free_state): Remove decl.
78246
78247         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78248         (re_set_registers, re_exec):
78249         Use K&R-style defn.
78250
78251         2006-01-31  Roland McGrath  <roland@redhat.com>
78252
78253         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78254         Reported by Mike Frysinger <vapier@gentoo.org>.
78255
78256         2006-01-15  Andreas Jaeger  <aj@suse.de>
78257
78258         [BZ #1950]
78259         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78260         build_wcs_upper_buffer change.
78261         (build_wcs_upper_buffer): Change return type.
78262
78263         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78264
78265         * lib/regex_internal.h: Include <stdint.h> if available.
78266
78267         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78268
78269         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78270
78271         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78272
78273         * lib/regcomp.c: Adjust for changed secondary hash function.
78274
78275         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78276
78277         * lib/regex.h: Pretty printing.
78278         Clean up namespace a bit.
78279
78280         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78281
78282         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78283         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78284
78285         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78286                     Ulrich Drepper  <drepper@redhat.com>
78287
78288         [BZ #1302]
78289         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78290         changed.
78291         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78292
78293         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78294
78295         [BZ #281]
78296         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78297         * lib/regcomp.c: Remove unnecessary uses of
78298         unsigned RE_TRANSLATE_TYPE.
78299         * lib/regex_internal.h: Likewise.
78300         * lib/regex_internal.c: Likewise.
78301         * lib/regexec.c: Likewise.
78302         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78303
78304         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78305
78306         * lib/regexec.c (find_recover_state): Remove unnecessary
78307         initialization.
78308         (transit_state_bkref): Make DFA a const pointer.
78309         (get_subexp): Likewise.
78310         (check_arrival): Likewise.
78311         (update_cur_sifted_state): Likewise.
78312         (re_search_internal): Likewise.
78313         (prune_impossible_nodes): Likewise.
78314         (acquire_init_state_context): Likewise.
78315         (proceed_next_node): Likewise.
78316         (set_regs): Likewise.
78317         (free_fail_stack_return): Likewise.
78318         (check_arrival_expand_ecl): Mark DFA parameter as const.
78319         (check_arrival_expand_ecl_sub): Likewise.
78320         (check_subexp_limits): Likewise.
78321         (sub_epsilon_src_nodes):  Likewise.
78322         (add_epsilon_src_nodes):  Likewise.
78323         (merge_state_array): Likewise.
78324         (update_regs): Likewise.
78325         (build_trtable): Likewise.
78326         (sift_states_backward): Mark MCTX parameter as const.
78327         (build_sifted_states): Likewise.
78328         (update_cur_sifted_state): Likewise.
78329         (sift_states_mkref): Likewise.
78330         (check_arrival_expand_ecl): Mark eclosure as const.
78331         (check_dst_limits_calc_pos_1): Likewise.
78332         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78333         pointer.
78334
78335         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78336
78337         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78338         (transit_state_sb): Likewise.
78339         (transit_state_mb): Likewise.
78340         (sift_states_iter_mb): Likewise.
78341         (check_arrival_add_next_nodes): Likewise.
78342         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78343         [_LIBC] (re_search_2_stub): Use mempcpy.
78344
78345         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78346         mbrtowc for very simple UTF-8 case.
78347
78348         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78349         a pointer-to-const.
78350         (re_acquire_state_context): Likewise.
78351         * lib/regex_internal.h: Adjust prototypes.
78352
78353         * lib/regex.c: Prevent using C++ compilers.
78354
78355         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78356         (re_acquire_state_context): Likewise.
78357
78358 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         * modules/regex (Depends-on): Add ssize_t.
78361
78362 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78365         translation table.
78366
78367 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78370
78371 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78372             Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78375         <sys/types.h> and <inttypes.h>.
78376
78377 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78378
78379         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78380         `__error_t_defined', so argp.h will not typedef the former.
78381
78382 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78385         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78386         glibc names.  Even if glibc is changed to conform to POSIX, the
78387         traditional names will be available anyway, since regex depends on
78388         the extensions module.  Also, fix a longstanding typo in the
78389         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78390         reported by Emanuele Giaquinta.  Also, change sense of cached
78391         variable, so that the message makes sense.
78392
78393 2006-03-24  Simon Josefsson  <jas@extundo.com>
78394
78395         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78396         including some doc fixes.
78397         (base64_encode_alloc): Fix +1 bug on allocation failures.
78398
78399 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78400
78401         * lib/base64.c (base64_encode): Do not read past end of array with
78402         unsanitized input on systems with CHAR_BIT > 8.
78403
78404 2006-03-24  Eric Blake  <ebb9@byu.net>
78405
78406         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78407
78408 2006-03-22  Karl Berry  <karl@gnu.org>
78409
78410         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78411         * config/srclistvars.sh (COREUTILS): new var.
78412
78413 2006-03-17  Jim Meyering  <jim@meyering.net>
78414
78415         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78416         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78417
78418 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78419
78420         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78421         no longer needs it.  Instead, check that regoff_t is as least
78422         as wide as ptrdiff_t.
78423
78424         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78425         so that our regex.h stays compatible with the installed regex.
78426         This is helpful for installers who configure --without-included-regex.
78427         Problem reported by Emanuele Giaquinta.
78428
78429 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78432         Typedef to long int, not to off_, as POSIX will likely change
78433         in that direction.
78434
78435 2006-03-15  Eric Blake  <ebb9@byu.net>
78436
78437         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78438
78439 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78440
78441         * lib/argp-help.c (validate_uparams): Fix typo
78442         * lib/argp-parse.c (argp_default_options): Consistently begin help
78443         messages with a lowercase letter.
78444
78445 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78448         overrun buffers and shouldn't be used (much as gets shouldn't be
78449         used).
78450         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78451
78452 2006-03-08  Simon Josefsson  <jas@extundo.com>
78453
78454         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78455         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78456
78457 2006-03-08  Simon Josefsson  <jas@extundo.com>
78458
78459         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78460         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78461
78462 2006-03-08  Simon Josefsson  <jas@extundo.com>
78463
78464         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78465         signal that configure disabled the device.
78466
78467 2006-03-08  Simon Josefsson  <jas@extundo.com>
78468
78469         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78470         languages.
78471
78472 2006-03-07  Simon Josefsson  <jas@extundo.com>
78473
78474         * modules/getopt (Depends-on): Add unistd.
78475
78476         * modules/unistd: New file.
78477
78478 2006-03-07  Simon Josefsson  <jas@extundo.com>
78479
78480         * modules/gc-random: New file.
78481
78482 2006-03-07  Simon Josefsson  <jas@extundo.com>
78483
78484         * m4/unistd_h.m4: New file.
78485
78486 2006-03-07  Simon Josefsson  <jas@extundo.com>
78487
78488         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78489         test to be side-effect free by storing the result in the cache
78490         variable gl_cv_lib_readline, and moving the assignment of
78491         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78492         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78493
78494 2006-03-07  Simon Josefsson  <jas@extundo.com>
78495
78496         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78497         error on missing devices (the functions will return an error).
78498
78499         * m4/gc.m4: Move random stuff to gc-random.m4
78500
78501 2006-03-07  Simon Josefsson  <jas@extundo.com>
78502
78503         * lib/unistd_.h: New file.
78504
78505 2006-03-07  Simon Josefsson  <jas@extundo.com>
78506
78507         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78508
78509 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78512         Problem reported by Juan Manuel Guerrero.
78513
78514 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78517         the unistd module.
78518         * lib/getlogin_r.c: Likewise.
78519         * lib/getlogin_r.h: Likewise.
78520         * lib/glob.c: Likewise.
78521         * lib/pagealign_alloc.c: Likewise.
78522         * lib/unistd_.h: Remove; no longer needed.
78523
78524 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78527         Add unistd.
78528         * modules/c-stack (Depends-on): Add unistd.
78529         * modules/getlogin_r: Likewise.
78530         * modules/glob: Likewise.
78531         * modules/pagealign_alloc: Likewise.
78532         * modules/unistd (Files): Remove lib/unistd_.h.
78533         (EXTRA_DIST): Remove.
78534         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78535         need unistd_.h.
78536         (MOSTLYCLEANFILES): Remove unistd.h-t.
78537
78538 2006-03-03  Simon Josefsson  <jas@extundo.com>
78539
78540         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78541
78542 2006-03-03  Simon Josefsson  <jas@extundo.com>
78543
78544         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78545         libidn and bison.
78546
78547 2006-03-03  Simon Josefsson  <jas@extundo.com>
78548
78549         * build-aux/maint.mk: Add indent target.
78550
78551 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78552
78553         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78554         our replacement poll.h in any case, to avoid a differing
78555         declaration from a system header.  Seen on AIX.
78556
78557 2006-03-01  Simon Josefsson  <jas@extundo.com>
78558
78559         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78560         <kasal@ucw.cz>.
78561
78562 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * modules/gettime (Depends-on): Add extensions module.
78565         * modules/nanosleep (Depends-on): Likewise.
78566         * modules/settime (Depends-on): Likewise.
78567
78568 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78571         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78572         pedantically.
78573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78574         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78575
78576         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78577         not "==".  Reported by Ralf Wildenhues.
78578
78579 2006-03-01  Karl Berry  <karl@gnu.org>
78580
78581         * doc/Copyright/request-*: new files, synced from gnuorg.
78582
78583 2006-03-01  Karl Berry  <karl@gnu.org>
78584
78585         * config/srclist.txt (Copyright/*): new entries.
78586
78587 2006-02-28  Simon Josefsson  <jas@extundo.com>
78588
78589         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78590
78591 2006-02-27  Simon Josefsson  <jas@extundo.com>
78592
78593         * lib/base64.h: Indent #define's.  From Jim Meyering
78594         <jim@meyering.net>.
78595
78596 2006-02-27  Jim Meyering  <jim@meyering.net>
78597
78598         Revert the change of 2006-02-24, so these files can continue
78599         to be sync'd from gettext.
78600         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78601         of `config.h'.
78602
78603 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * modules/intprops: New file.
78606         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78607         Add intprops.
78608         * modules/getloadavg (Files): Remove lib/intprops.h.
78609         (Depends-on): Add intprops.
78610         * modules/human: Likewise.
78611         * modules/inttostr: Likewise.
78612         * modules/openat: Likewise.
78613         * modules/sig2str: Likewise.
78614         * modules/userspec: Likewise.
78615         * modules/utimecmp: Likewise.
78616         * modules/xnanosleep: Likewise.
78617         * modules/xstrtol: Likewise.
78618
78619 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78620
78621         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78622         * modules/lock-tests (TESTS): Use $(EXEEXT).
78623         * modules/tls-tests: Likewise.
78624         * modules/argp-tests: Likewise.
78625         (check_PROGRAMS): New var, replacing...
78626         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78627
78628 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78629
78630         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78631         `config.h'.
78632
78633 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78636
78637 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78638
78639         Sync from coreutils.
78640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78641         gl_CHDIR_SAFER.
78642
78643 2006-02-22  Jim Meyering  <jim@meyering.net>
78644
78645         Sync from coreutils.
78646         * m4/chdir-safer.m4: New file.
78647
78648 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78651         AT_FDCWD exceeds INT_MAX.
78652         * lib/openat.h (AT_FDCWD): Likewise.
78653
78654 2006-02-17  Eric Blake  <address@hidden>
78655
78656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78657
78658 2006-02-16  Simon Josefsson  <jas@extundo.com>
78659
78660         * modules/getaddrinfo (Depends-on): Add sys_socket.
78661
78662 2006-02-15  Simon Josefsson  <jas@extundo.com>
78663
78664         * build-aux/maint.mk: Add dsyntax-check rule.
78665
78666 2006-02-15  Eric Blake  <ebb9@byu.net>
78667
78668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78669         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78670         'present but cannot compile' warnings on cygwin.
78671         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78672         use ws2tcpip.h if sys/socket.h works.
78673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78674         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78675
78676 2006-02-14  Simon Josefsson  <jas@extundo.com>
78677
78678         * modules/maintainer-makefile (Files): Rename.
78679
78680         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78681         and (the local) Makefile.cfg to maint-cfg.mk.
78682
78683         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78684         to the latter.
78685
78686         * modules/maintainer-makefile: New module.
78687
78688         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78689         severaly stripped to make it possible to build it up from scratch
78690         with reliable tests.
78691
78692         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78693         fixes to permit overriding the default actions when configure and
78694         makefile are not available.
78695
78696 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78697
78698         Sync from coreutils.
78699         * modules/lstat (Depends-on): Don't depend on xalloc.
78700         (License): Change from GPL to LGPL, since this is now simply a
78701         replacement for a libc function.
78702
78703 2006-02-14  Jim Meyering  <jim@meyering.net>
78704
78705         Sync from coreutils.
78706
78707         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78708         failure on deficient systems, and simplify gnulib lgpl dependencies.
78709         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78710         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78711
78712         * lib/xalloc-die.c: Remove unused definition of N_.
78713
78714 2006-02-14  Jim Meyering  <jim@meyering.net>
78715
78716         Sync from coreutils.
78717         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78718         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78719         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78720         double-quote uses of that variable, to accommodate the rare case in
78721         which getmntent is available in none of the libraries checked.  This
78722         happens at least on FreeBSD 5.0.
78723
78724 2006-02-13  Simon Josefsson  <jas@extundo.com>
78725
78726         * gnulib-tool (Usage): Fix --import, from
78727         karl@freefriends.org (Karl Berry).
78728
78729 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78730
78731         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78732
78733 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78734
78735         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78736         "autoupdate" on 2005-12-12.
78737
78738 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         * modules/closeout (Depends-on): Remove atexit.
78741
78742 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78745         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78746
78747 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78750         __EXTENSIONS__ if this causes compilation to fail.  Problem
78751         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78752         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78753
78754 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78757         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78759         All uses changed.
78760
78761 2006-01-26  Simon Josefsson  <jas@extundo.com>
78762
78763         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78764         prototype is visible on mingw32.
78765
78766         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78767         for mingw32.
78768
78769         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78770         mingw32).
78771
78772 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78773
78774         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78775         attempt to open for write; this always fails, at least on POSIX
78776         hosts.  This reinstates the 2006-01-09 change, which was
78777         inadvertently removed.
78778
78779 2006-01-26  Bruno Haible  <bruno@clisp.org>
78780
78781         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78782         Reported by Paul Eggert.
78783
78784 2006-01-26  Bruno Haible  <bruno@clisp.org>
78785             Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * lib/stdbool_.h (_Bool)
78788         [(! (defined __cplusplus || defined __BEOS__)
78789           && !defined __GNUC__
78790           && !(defined __HP_cc || defined __xlc__
78791                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78792                || defined __sgi))]:
78793         #define to signed char in these cases too; this simplifies
78794         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78795         etc., separately) and makes it more conservative.
78796
78797 2006-01-25  Simon Josefsson  <jas@extundo.com>
78798
78799         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78800         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78801         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78802
78803 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78804
78805         * lib/argp-namefrob.h: Bugfix. Remove stray #
78806
78807 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78808
78809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78810         so that we test the test.
78811         Check for yet another HP-UX cc bug involving *bool |= bool.
78812
78813 2006-01-25  Karl Berry  <karl@gnu.org>
78814
78815         * config/srclist.txt (vasnprintf.c): sync lost.
78816
78817 2006-01-25  Jim Meyering  <jim@meyering.net>
78818
78819         Sync from the stable (b5) branch of coreutils:
78820
78821         * lib/fts.c (fts_children): Don't let close() clobber errno from
78822         failed fchdir().
78823
78824         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78825         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78826         a dangling symlink.  That can also happen at least for ELOOP.
78827         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78828         FYI, this bug predates the inclusion of fts.c in coreutils.
78829
78830         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78831         in their own block, so pre-c99 compilers don't object.
78832
78833         Avoid the double-free (first in fts_read, second in fts_close) that
78834         would occur when an `active' directory is made inaccessible (e.g.,
78835         via chmod a-x) during a traversal.
78836         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78837         before returning.  Reproduce this failure by
78838         mkdir -p a/b; cd a; chmod a-x . b
78839         Reported by Stavros Passas.
78840
78841 2006-01-25  Jim Meyering  <jim@meyering.net>
78842
78843         * lib/fileblocks.c: Remove more useless parentheses.
78844         * lib/readutmp.h: Likewise.
78845
78846 2006-01-25  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78849         warnings.
78850         Reported by Paul Eggert.
78851
78852 2006-01-25  Bruno Haible  <bruno@clisp.org>
78853
78854         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78855         rid of a trap command. For Solaris sh.
78856         Reported by Mark D. Baushke <mdb@gnu.org>.
78857
78858 2006-01-24  Simon Josefsson  <jas@extundo.com>
78859
78860         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78861         Bruno.
78862
78863 2006-01-24  Karl Berry  <karl@gnu.org>
78864
78865         * config/srclist.txt (argp-namefrob.h): sync lost.
78866
78867 2006-01-24  Jim Meyering  <jim@meyering.net>
78868
78869         * modules/openat (Files): Add lib/intprops.h.
78870         From Mark D. Baushke.
78871
78872 2006-01-24  Jim Meyering  <jim@meyering.net>
78873
78874         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78875         Reported by Mark D. Baushke.
78876
78877 2006-01-24  Jim Meyering  <jim@meyering.net>
78878
78879         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78880
78881 2006-01-24  Bruno Haible  <bruno@clisp.org>
78882
78883         * modules/strnlen (Maintainer): Change from glibc to all.
78884
78885 2006-01-24  Bruno Haible  <bruno@clisp.org>
78886
78887         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78888         Patch by Paul Eggert.
78889
78890 2006-01-24  Bruno Haible  <bruno@clisp.org>
78891
78892         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78893         already has it.
78894         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78895         2005-11-26.
78896
78897         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78898         'signed char' to avoid problems with the built-in _Bool type.
78899         Reported by Paul Eggert on 2005-11-26.
78900
78901 2006-01-24  Bruno Haible  <bruno@clisp.org>
78902
78903         * gnulib-tool (func_import): Avoid constructing complicated sed
78904         expressions inside backquote.
78905         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78906
78907 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78908
78909         These changes imported from libc.
78910         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78911         test and two separate function calls.
78912         * lib/strndup.c (__strndup): Add libc_hidden_def.
78913
78914 2006-01-23  Simon Josefsson  <jas@extundo.com>
78915
78916         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78917         Remove the test_*_SOURCES variable: automake infers it by default.
78918         * modules/tls-tests: Likewise.
78919
78920 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         Work around porting bugs reported by Dieter in
78923         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78924         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78925         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78926         Include "getopt.h" first, to check interface.
78927         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78928         !HAVE_DECL_GETENV.
78929         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78930         (__strndup): Revert to K&R-style function dfns, the glibc style.
78931         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78932         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78933         Include strnlen.h first, to get prototype properly.
78934         (strnlen): Renamed from __strnlen.
78935         Remove weak alias.
78936
78937 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78940
78941 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78942
78943         * config/srclist.txt: Adjust to reflect glibc reorganization.
78944         This affects only comments.
78945
78946 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78947
78948          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78949          Reported by Bruce Korb <bkorb@gnu.org>.
78950
78951 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78954         to pacify gcc -Wswitch-default.
78955
78956 2006-01-22  Bruno Haible  <bruno@clisp.org>
78957
78958         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78959         temporary buffer for sprintf, take into account the precision also
78960         for 'd', 'i', 'u', 'o', 'x', 'X'.
78961
78962 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78963
78964         * modules/argp-tests: New module
78965         * tests/test-argp.c: New file
78966         * tests/test-argp-2.sh: New file
78967
78968 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78969
78970         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78971         (__argp_base_name): Removed
78972         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78973         typo.
78974         (__argp_base_name): Provide macro definition or extern declaration
78975         depending on the configuration
78976
78977 2006-01-20  Simon Josefsson  <jas@extundo.com>
78978
78979         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78980
78981 2006-01-20  Simon Josefsson  <jas@extundo.com>
78982
78983         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78984
78985 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78988         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78989         Suggested by Bruno Haible.
78990
78991 2006-01-20  Karl Berry  <karl@gnu.org>
78992
78993         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78994         until changes propagate, I guess.
78995
78996 2006-01-19  Simon Josefsson  <jas@extundo.com>
78997
78998         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78999
79000 2006-01-19  Simon Josefsson  <jas@extundo.com>
79001
79002         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79003
79004 2006-01-19  Simon Josefsson  <jas@extundo.com>
79005
79006         * gnulib-tool: Set check_PROGRAMS.
79007
79008         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79009         modules/des-tests, modules/gc-arcfour-tests,
79010         modules/gc-arctwo-tests, modules/gc-des-tests,
79011         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79012         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79013         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79014         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79015         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79016         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79017         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79018         test_*_SOURCES.
79019
79020 2006-01-18  Simon Josefsson  <jas@extundo.com>
79021
79022         * modules/socklen (Depends-on): Depend on sys_socket.
79023
79024 2006-01-18  Simon Josefsson  <jas@extundo.com>
79025
79026         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79027         modules/des-tests, modules/gc-arcfour-tests,
79028         modules/gc-arctwo-tests, modules/gc-des-tests,
79029         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79030         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79031         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79032         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79033         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79034         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79035         $(EXEEXT) to automake TESTS variable, for mingw32.
79036
79037 2006-01-17  Simon Josefsson  <jas@extundo.com>
79038
79039         * modules/socklen (Include): Need sys/socket.h.
79040
79041 2006-01-17  Bruno Haible  <bruno@clisp.org>
79042
79043         * modules/ssize_t (Include): Add <sys/types.h>.
79044
79045 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79048         it's not portable and it doesn't work with cross-compiles.
79049         Problem reported by Bruno Haible.  Fix missing-$ typo in
79050         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79051         -zignore from being used with Sun's C compiler.
79052
79053 2006-01-12  Simon Josefsson  <jas@extundo.com>
79054
79055         * lib/base64.c: Fix warning, reported by Bruno Haible
79056         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79057
79058 2006-01-12  Bruno Haible  <bruno@clisp.org>
79059
79060         * modules/ldd: New file.
79061         * build-aux/ldd.sh.in: New file.
79062         * MODULES.html.sh (Support for building libraries and executables): Add
79063         ldd.
79064
79065 2006-01-12  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/ldd.m4: New file.
79068
79069 2006-01-12  Bruno Haible  <bruno@clisp.org>
79070
79071         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79072         endless loop while replacing $auxdir with build-aux.
79073
79074 2006-01-11  Simon Josefsson  <jas@extundo.com>
79075
79076         * lib/stdint_.h (SIZE_MAX): Add missing (.
79077
79078 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         Sync from coreutils.
79081         * lib/md5.c: Fix commentary typos.
79082         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79083         * lib/md5.h (__attribute__): Remove; unused.
79084         * lib/sha1.c: Fix commentary to match md5 better.
79085         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79086         so that we don't need to worry about alignment.  All uses changed.
79087         This merges the 2005-10-28 md5 change into sha1.
79088
79089 2006-01-11  Jim Meyering  <jim@meyering.net>
79090
79091         Sync from coreutils.
79092         * lib/md5.c (OP): Fix spacing.
79093
79094 2006-01-11  Bruno Haible  <bruno@clisp.org>
79095
79096         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79097         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79098         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79099
79100 2006-01-11  Bruno Haible  <bruno@clisp.org>
79101
79102         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79103         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79104         the "early" section as well.
79105
79106 2006-01-11  Bruno Haible  <bruno@clisp.org>
79107
79108         Avoid "ar: no archive members specified" error on MacOS X.
79109         * gnulib-tool (func_modules_add_dummy): New function.
79110         (func_import, func_create_testdir): Invoke it.
79111
79112 2006-01-11  Bruno Haible  <bruno@clisp.org>
79113
79114         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79115         with $auxdir in AC_CONFIG_FILES statements.
79116
79117 2006-01-11  Bruno Haible  <bruno@clisp.org>
79118
79119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79120         Initialize also noinst_HEADERS to empty.
79121
79122 2006-01-11  Bruno Haible  <bruno@clisp.org>
79123
79124         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79125         variables.
79126         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79127         autoreconf.
79128
79129 2006-01-11  Bruno Haible  <bruno@clisp.org>
79130
79131         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79132         overridable by the user.
79133         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79134
79135 2006-01-10  Simon Josefsson  <jas@extundo.com>
79136
79137         * modules/sys_socket: New file.
79138
79139 2006-01-10  Simon Josefsson  <jas@extundo.com>
79140
79141         * m4/sys_socket_h.m4: New file.
79142
79143 2006-01-10  Simon Josefsson  <jas@extundo.com>
79144
79145         * lib/socket_.h: New file.
79146
79147 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * modules/readutmp (Maintainer): Add myself.
79150
79151 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79152
79153         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79154         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79155         People who are still concerned with buggy memcmp implementations
79156         can invoke gl_FUNC_MEMCMP themselves.
79157
79158 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         * lib/regex_internal.h (BITSET_WORD_BITS):
79161         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79162         preprocessor mishandles large unsigned values as if they were signed.
79163         Problem reported by Claudio Fontana in
79164         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79165
79166 2006-01-10  Jim Meyering  <jim@meyering.net>
79167
79168         Avoid the double-free (first in fts_read, second in fts_close) that
79169         would occur when an `active' directory is made inaccessible (e.g.,
79170         via chmod a-x) during a traversal.
79171         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79172         before returning.  Reproduce this failure by
79173         mkdir -p a/b; cd a; chmod a-x . b
79174         Reported by Stavros Passas.
79175
79176         Sync from coreutils.
79177         * lib/sha1.c: Tweak grammar in a comment.
79178
79179 2006-01-10  Jim Meyering  <jim@meyering.net>
79180
79181         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79182         Patch by Joerg Sonnenberger.
79183
79184 2006-01-10  Bruno Haible  <bruno@clisp.org>
79185
79186         * modules/readutmp: Depend on module free.
79187         * modules/strtok_r: Depend on module restrict.
79188
79189 2006-01-10  Bruno Haible  <bruno@clisp.org>
79190
79191         * modules/gettext (configure.ac): Add an invocation of
79192         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79193
79194 2006-01-10  Bruno Haible  <bruno@clisp.org>
79195
79196         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79197         Reported by Werner Lemberg <wl@gnu.org>.
79198
79199 2006-01-10  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/localcharset.c: Update from GNU gettext.
79202
79203 2006-01-10  Bruno Haible  <bruno@clisp.org>
79204
79205         * lib/argp.h (__const): Remove macro. Use const instead.
79206         * lib/argp-fmtstream.h (__const): Likewise.
79207         * lib/glob_.h (__const): Remove macro.
79208         * lib/glob-libc.h: Use const instead of __const.
79209
79210 2006-01-10  Bruno Haible  <bruno@clisp.org>
79211
79212         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79213         variable.
79214         Needed to avoid an automake error regarding the 'gettext' module.
79215
79216 2006-01-09  Simon Josefsson  <jas@extundo.com>
79217
79218         * modules/inet_ntop (Depends-on): Add restrict.
79219
79220 2006-01-09  Simon Josefsson  <jas@extundo.com>
79221
79222         * modules/gc-rijndael-tests (License): Put under LGPL.
79223
79224         * modules/gc-des-tests (License): Likewise.
79225
79226         * modules/gc-arcfour-tests (License): Likewise.
79227
79228         * modules/gc-arctwo-tests (License): Likewise.
79229
79230         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79231
79232         * modules/gc-hmac-sha1-tests (Files): Likewise.
79233
79234         * modules/gc-hmac-md5-tests (License): Likewise.
79235
79236         * modules/gc-sha1-tests (License): Likewise.
79237
79238         * modules/gc-md5-tests (License): Likewise.
79239
79240         * modules/gc-md4-tests (License): Likewise.
79241
79242         * modules/gc-md2-tests (License): Likewise.
79243
79244         * modules/gc-tests (License): Likewise.
79245
79246         * modules/des-tests (License): Likewise.
79247
79248         * modules/md4-tests (License): Likewise.
79249
79250         * modules/md2-tests (License): Likewise.
79251
79252 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         Sync from coreutils:
79255
79256         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79257         * modules/lib-ignore: New file.
79258         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79259         chdir-safer.m4, lchmod.m4.
79260         * modules/openat: Add mkdirat.c, openat-priv.h.
79261
79262 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         Sync from coreutils.
79265         * m4/lib-ignore.m4: New file.
79266         * m4/lchmod.m4: New file.
79267
79268 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         Sync from coreutils.
79271         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79272         for write access: POSIX says that must fail.
79273         * lib/fts.c (diropen): Likewise.
79274         * lib/save-cwd.c (save_cwd): Likewise.
79275         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79276         well, for minor improvements on hosts that lack O_DIRECTORY.
79277         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79278         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79279         Fall back on chown if open failed with EACCES.
79280
79281         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79282         Report an error at compile-time if only a 1-second nominal clock
79283         resolution is found.
79284
79285         * lib/lchmod.h: New file.
79286         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79287         (make_dir_parents): Use lchown rather than chown, and
79288         lchmod rather than chmod.
79289
79290         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79291         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79292         "proc" reported by n0dalus.
79293
79294         * lib/mountlist.c: Include <limits.h>.
79295         (dev_from_mount_options)
79296         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79297         New function.  It no longer assumes "dev=" has the System V meaning
79298         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79299         (read_file_system_list)
79300         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79301         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79302         dev= in that case.
79303
79304         * lib/posixtm.h (PDS_PRE_2000): New macro.
79305         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79306         allow_century.  All usages changed.  Reject dates outside the range
79307         1969-1999 if PDS_PRE_2000 is used.
79308
79309 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         Sync from coreutils.
79312         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79313         (Time of day items): Mention the possibility of leap seconds.
79314         Problem reported by Dr. David Alan Gilbert.
79315
79316 2006-01-09  Jim Meyering  <jim@meyering.net>
79317
79318         Sync from coreutils.
79319
79320         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79321
79322         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79323
79324         * lib/modechange.c (mode_compile): Reject an invalid mode string
79325         that starts with an octal digit.  From Andreas Gruenbacher.
79326
79327         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79328         and dup to open_safer and dup_safer, respectively.
79329         (openat_permissive): Fix typo in comment.
79330
79331         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79332         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79333         (_): Remove; no longer needed.
79334         (openat): Renamed from rpl_openat; no need for rpl_openat
79335         since openat.h renames openat for us.
79336         Replace most of the body with a call to openat_permissive,
79337         to avoid duplicate code.
79338         Port to (probably hypothetical) environments were mode_t is
79339         wider than int.
79340         (openat_permissive): Require mode arg, so that we can check
79341         types better.  Put it just after flags.  Change cwd failure
79342         indicator from pointer-to-bool to pointer-to-errno-value.
79343         All callers changed.
79344         Invoke openat_save_fail and/or openat_restore_fail if
79345         cwd_errno is null, so that openat can call us.
79346         (openat_permissive, fdopendir, fstatat, unlinkat):
79347         Simplify errno handling to avoid some duplicate code,
79348         as it's OK to set errno on success.
79349         * lib/openat.h: Revamp code so that function macros depend on
79350         __OPENAT_PREFIX only, not also on AT_FDCWD.
79351         (openat_ro): Remove.  Caller changed to use openat_permissive.
79352         (openat_permissive): Now a macro, if not a function.
79353         (openat_restore_fail, openat_save_fail): Now always functions,
79354         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79355
79356         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79357         and openat.c.
79358         * lib/mkdirat.c: Include openat-priv.h.
79359         Remove definitions of macros defined therein.
79360         * lib/openat.c: Likewise.
79361
79362         * lib/mkdirat.c (mkdirat): New file and function.
79363         * lib/openat.h (mkdirat): Declare.
79364
79365         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79366
79367         * lib/openat.h (openat_permissive): Declare.
79368         (openat_ro): Define.
79369
79370         * lib/openat.c (EXPECTED_ERRNO): New macro.
79371         (openat_permissive): New function -- used in remove.c rewrite.
79372         (all functions): Set errno just before returning, only if there
79373         was an actual failure.
79374         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79375
79376         Emulate openat-family functions using Linux's procfs, if possible.
79377         Idea and some code based on Ulrich Drepper's glibc changes.
79378
79379         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79380         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79381         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79382         before falling back on save_cwd and restore_cwd.
79383         (fdopendir, fstatat, unlinkat): Likewise.
79384
79385         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79386         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79387
79388         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79389         as second argument to va_arg.  Otherwise, some versions of gcc
79390         warn that `if this code is reached, the program will abort'.
79391
79392 2006-01-09  Jim Meyering  <jim@meyering.net>
79393
79394         Sync from coreutils.
79395         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79396         Require openat-priv.h.
79397
79398 2006-01-09  Bruno Haible  <bruno@clisp.org>
79399
79400         * modules/strnlen (Include): Use strnlen.h.
79401
79402 2006-01-09  Bruno Haible  <bruno@clisp.org>
79403
79404         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79405
79406 2006-01-09  Bruno Haible  <bruno@clisp.org>
79407
79408         * lib/sysexit_.h (EX_OK): New macro.
79409         Suggested by Martin Lambers <marlam@marlam.de>.
79410
79411 2006-01-09  Bruno Haible  <bruno@clisp.org>
79412
79413         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79414         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79415
79416 2006-01-09  Bruno Haible  <bruno@clisp.org>
79417
79418         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79419         numbers.
79420
79421 2006-01-09  Bruno Haible  <bruno@clisp.org>
79422
79423         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79424         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79425         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79426         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79427
79428 2006-01-09  Bruno Haible  <bruno@clisp.org>
79429
79430         * build-aux/javacomp.sh.in: New file, moved from lib/.
79431         * modules/javacomp-script (Files): Update.
79432         (configure.ac): Add AC_CONFIG_FILES invocation.
79433         (EXTRA_DIST): Remove variable.
79434
79435         * build-aux/javaexec.sh.in: New file, moved from lib/.
79436         * modules/javaexec (Files): Update.
79437         (configure.ac): Add AC_CONFIG_FILES invocation.
79438         (EXTRA_DIST): Remove javaexec.sh.in.
79439
79440         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79441         * modules/csharpcomp-script (Files): Update.
79442         (configure.ac): Add AC_CONFIG_FILES invocation.
79443         (EXTRA_DIST): Remove variable.
79444
79445         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79446         * modules/csharpexec (Files): Update.
79447         (configure.ac): Add AC_CONFIG_FILES invocation.
79448         (EXTRA_DIST): Remove csharpexec.sh.in.
79449
79450 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79451
79452         Sync from coreutils.
79453
79454         Add POSIX ACL support
79455         * lib/acl.h (copy_acl, set_acl): Add declarations.
79456         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79457         systems other than Linux.
79458         (chmod_or_fchmod): New function: use fchmod when possible,
79459         and chmod otherwise.
79460         (file_has_acl): Add a POSIX ACL implementation, with a
79461         Linux-specific subcase.
79462         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79463         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79464         acls are unsupported.
79465         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79466         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79467         are unsupported.
79468
79469 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79470
79471         Sync from coreutils.
79472         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79473
79474 2006-01-07  Bruno Haible  <bruno@clisp.org>
79475
79476         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79477         gl_EARLY.
79478
79479 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79482         Problem reported for Mingw by Mark Junker.
79483
79484 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * README: Gnulib normally doesn't generate a tarball.
79487
79488 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79491         long int, not int, for nanosecond counts, so that people who are
79492         used to POSIX struct timespec won't be surprised.  Reported by Jim
79493         Meyering.
79494
79495 2005-12-28  Bruno Haible  <bruno@clisp.org>
79496
79497         * build-aux/config.rpath: Update from GNU gettext.
79498
79499 2005-12-16  Jim Meyering  <jim@meyering.net>
79500
79501         * modules/fprintftime: New module.
79502         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79503
79504 2005-12-16  Jim Meyering  <jim@meyering.net>
79505
79506         * m4/fprintftime.m4: New file.
79507
79508 2005-12-16  Jim Meyering  <jim@meyering.net>
79509
79510         * lib/fprintftime.c, lib/fprintftime.h: New files.
79511
79512 2005-12-15  Simon Josefsson  <jas@extundo.com>
79513
79514         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79515         new m4/socklen.m4.
79516
79517 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79518
79519         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79520         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79521
79522 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79523
79524         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79525         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79526         struct uparams is valid. Fall back to the default values if it is
79527         not.
79528
79529 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79530
79531         * modules/argp (Files): Add argp-pin.c
79532         (Depends-on): dirname
79533         (lib_SOURCES): Add argp-pin.c
79534
79535 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79536
79537         * m4/argp.m4:  Check if program_invocation_name and
79538         program_invocation_short_name are declared and define appropriate
79539         macros if they are not.
79540
79541 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79542
79543         * lib/argp-help.c (__argp_base_name): New function
79544         (__argp_short_program_name): Rewrite using __argp_base_name
79545         * lib/argp-namefrob.h: Define program_invocation_name and
79546         program_invocation_short_name if requested
79547         (__argp_base_name): Add prototype
79548         * lib/argp-parse.c (argp_def): Use gettext wrappers
79549         (argp_default_parser): Use __argp_base_name
79550         * lib/argp-pin.c: New file. Defines program_invocation_name and
79551         program_invocation_short_name on systems that lack them.
79552
79553 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79556         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79557         porting problem reported by Georg Schwarz in
79558         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79559
79560 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79563         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79564         porting problem reported by Georg Schwarz in
79565         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79566
79567 2005-12-05  Bruno Haible  <bruno@clisp.org>
79568
79569         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79570         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79571         Reported by Mark Junker <mjscod@gmx.de>.
79572
79573 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79576         Use implementation from Albert Chin, with some
79577         comments/corrections by Stepan Kasal and myself.
79578
79579 2005-12-02  Bruno Haible  <bruno@clisp.org>
79580
79581         * gnulib-tool (func_import): Accept GPLed build tool modules when
79582         --lgpl is given.
79583         * modules/csharpcomp-script: New file.
79584         * modules/csharpcomp: Depend on it.
79585         * modules/javacomp-script: New file.
79586         * modules/javacomp: Depend on it.
79587         Suggested by Simon Josefsson.
79588
79589 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79592         statement, to work around an HP-UX 10.20 compiler bug reported by
79593         Peter O'Gorman.
79594
79595 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         * modules/savedir (Depends-on): Add openat.
79598
79599 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79602         (uintmax_t) [defined uintmax_t]: Do not declare.
79603         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79604         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79605         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79606         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79607         sake of portability to weird hosts that C allows (though we don't
79608         know of any practical examples).
79609
79610         * lib/savedir.h (fdsavedir): New decl.
79611         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79612         contains most of the former guts of savedir.
79613         (savedir): Use savedirstream.
79614         Include "openat.h".
79615
79616 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * modules/obstack (Files): Add m4/ulonglong.m4.
79619         Problem reported by Davide Angelocola.
79620
79621 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79624         coreutils no longer futzes with rounding modes.
79625
79626 2005-11-14  Jim Meyering  <jim@meyering.net>
79627
79628         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79629         replacement of mkstemp.
79630
79631 2005-11-10  Simon Josefsson  <jas@extundo.com>
79632
79633         * lib/readline.c: Remove EOL.
79634
79635 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * modules/gethrxtime (Depends-on): Add gettime.
79638
79639 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79642         or gettimeofday; no longer needed.
79643
79644 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79647         time business.
79648         (gethrxtime) [! (HAVE_NANOUPTIME
79649         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79650         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79651         our own approximation.
79652
79653 2005-11-08  Eric Blake  <ebb9@byu.net>
79654
79655         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79656
79657 2005-11-08  Eric Blake  <ebb9@byu.net>
79658
79659         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79660
79661 2005-11-04  Bruno Haible  <bruno@clisp.org>
79662
79663         * gnulib-tool: Implement --update mode.
79664
79665 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         Fix porting problem reported by Theodoros V. Kalamatianos.
79668         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79669         Don't assume that futimes failing means we must fail.
79670
79671 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79674         variables to suggest the intended function of the PATH_MAX check.
79675
79676 2005-10-30  Kean Johnston  <jkj@sco.com>
79677
79678         Trivial changes to support SCO systems.
79679         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79680         as PATH_MAX.
79681         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79682         where __ptr is null when no I/O is pending.
79683
79684 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79687         leave errno alone.  Problem reported by Dmitry V. Levin.
79688
79689 2005-10-28  Simon Josefsson  <jas@extundo.com>
79690
79691         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79692         Test more.
79693
79694         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79695
79696         * modules/md2, modules/md2-tests: New files.
79697
79698 2005-10-28  Simon Josefsson  <jas@extundo.com>
79699
79700         * m4/inet_ntop.m4: More tests.
79701
79702         * m4/gc-md2.m4, md2.m4: New file.
79703
79704 2005-10-28  Simon Josefsson  <jas@extundo.com>
79705
79706         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79707         "restrict" keywords, as per POSIX.  Protect the function
79708         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79709         Don't use K&R prototypes.  Check the sprintf return values.
79710         Re-define EAFNOSUPPORT if not present.  Indent.
79711
79712         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79713         suggested by Bruno Haible <bruno@clisp.org>.
79714
79715         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79716
79717         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79718
79719         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79720         libgcrypt).
79721
79722         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79723
79724         * lib/md2.h, lib/md2.c: New files.
79725
79726 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79729         errno alone.  Problem reported by Frederic Jolliton.
79730
79731 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * modules/verify (License): Change from GPL to LGPL.  This is a
79734         tiny module and there are apparently near-equivalents that are
79735         under the BSD license.
79736
79737 2005-10-24  Simon Josefsson  <jas@extundo.com>
79738
79739         * modules/sha1: Relicense to LGPL.
79740
79741 2005-10-24  Simon Josefsson  <jas@extundo.com>
79742
79743         * lib/md4.h: Shrink buffer size, now that we changed the type.
79744
79745 2005-10-23  Simon Josefsson  <jas@extundo.com>
79746
79747         * gnulib-tool (func_import): Fix --tests-base.
79748
79749 2005-10-22  Simon Josefsson  <jas@extundo.com>
79750
79751         * modules/arcfour (Depends-on): Need stdint.
79752
79753 2005-10-22  Simon Josefsson  <jas@extundo.com>
79754
79755         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79756         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79757
79758 2005-10-22  Simon Josefsson  <jas@extundo.com>
79759
79760         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79761         suggested by Bruno Haible <bruno@clisp.org>.
79762
79763 2005-10-22  Simon Josefsson  <jas@extundo.com>
79764
79765         * lib/crc.h: Include stddef.h, for size_t.
79766
79767 2005-10-22  Simon Josefsson  <jas@extundo.com>
79768
79769         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79770         arcfour_context struct (simplify test vector testing in GNU
79771         Shishi).
79772
79773 2005-10-21  Simon Josefsson  <jas@extundo.com>
79774
79775         * modules/des, modules/des-tests: New files.
79776
79777         * modules/gc-des, modules/gc-des-tests: New files.
79778
79779         * tests/test-des.c, tests/test-gc-des.c: New file.
79780
79781 2005-10-21  Simon Josefsson  <jas@extundo.com>
79782
79783         * modules/arctwo, modules/arctwo-tests: New files.
79784
79785         * tests/test-arctwo.c: New file.
79786
79787         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79788
79789         * tests/test-gc-arctwo.c: New file.
79790
79791 2005-10-21  Simon Josefsson  <jas@extundo.com>
79792
79793         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79794         Bruno Haible <bruno@clisp.org>.
79795
79796         * m4/gc-des.m4: New file.
79797
79798 2005-10-21  Simon Josefsson  <jas@extundo.com>
79799
79800         * m4/arctwo.m4: New file.
79801
79802         * m4/gc-arctwo.m4: New file.
79803
79804 2005-10-21  Simon Josefsson  <jas@extundo.com>
79805
79806         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79807         block.
79808
79809 2005-10-21  Simon Josefsson  <jas@extundo.com>
79810
79811         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79812         <bruno@clisp.org>.
79813
79814         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79815
79816         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79817         Bruno Haible <bruno@clisp.org>.
79818
79819         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79820         <bruno@clisp.org>.
79821
79822 2005-10-21  Simon Josefsson  <jas@extundo.com>
79823
79824         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79825
79826 2005-10-21  Simon Josefsson  <jas@extundo.com>
79827
79828         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79829
79830 2005-10-21  Simon Josefsson  <jas@extundo.com>
79831
79832         * lib/des.h, lib/des.c: New files.
79833
79834         * lib/gc-gnulib.c: Support DES.c
79835
79836 2005-10-21  Simon Josefsson  <jas@extundo.com>
79837
79838         * lib/arctwo.h, lib/arctwo.c: New files.
79839
79840         * lib/gc-gnulib.c: Support ARCTWO.
79841
79842 2005-10-21  Simon Josefsson  <jas@extundo.com>
79843
79844         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79845         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79846
79847 2005-10-21  Simon Josefsson  <jas@extundo.com>
79848
79849         * gnulib-tool (func_import, func_create_testdir): Define automake
79850         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79851         Makefile.am snippet),
79852         suggested by Bruno Haible <bruno@clisp.org>.
79853
79854         * modules/gc (Makefile.am): Use it.
79855
79856 2005-10-21  Bruno Haible  <bruno@clisp.org>
79857
79858         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79859         patch.
79860
79861 2005-10-19  Simon Josefsson  <jas@extundo.com>
79862
79863         * tests/test-gc-rijndael.c: New file.
79864
79865         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79866
79867 2005-10-19  Simon Josefsson  <jas@extundo.com>
79868
79869         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79870         interface too.
79871
79872 2005-10-19  Simon Josefsson  <jas@extundo.com>
79873
79874         * tests/test-gc-arcfour.c: New file.
79875
79876         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79877
79878 2005-10-19  Simon Josefsson  <jas@extundo.com>
79879
79880         * modules/gc-md4, modules/gc-md4-tests: New file.
79881
79882         * tests/test-gc-md4.c: New file.
79883
79884 2005-10-19  Simon Josefsson  <jas@extundo.com>
79885
79886         * m4/gc-md4.m4: New file.
79887
79888 2005-10-19  Simon Josefsson  <jas@extundo.com>
79889
79890         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79891         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79892         <kasal@ucw.cz>.
79893
79894 2005-10-19  Simon Josefsson  <jas@extundo.com>
79895
79896         * m4/gc-arcfour.m4: New file.
79897
79898         * m4/gc-rijndael.m4: New file.
79899
79900 2005-10-19  Simon Josefsson  <jas@extundo.com>
79901
79902         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79903
79904 2005-10-19  Simon Josefsson  <jas@extundo.com>
79905
79906         * lib/gc-gnulib.c: Support ARCFOUR.
79907
79908 2005-10-19  Simon Josefsson  <jas@extundo.com>
79909
79910         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79911         support.
79912
79913         * lib/gc.h: Add ECB enum type.
79914
79915         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79916
79917 2005-10-18  Simon Josefsson  <jas@extundo.com>
79918
79919         * tests/test-md5.c: New file.
79920
79921         * modules/md5-tests: New file.
79922
79923 2005-10-18  Simon Josefsson  <jas@extundo.com>
79924
79925         * tests/test-md4.c: New file.
79926
79927         * modules/md4, modules/md4-tests: New files.
79928
79929 2005-10-18  Simon Josefsson  <jas@extundo.com>
79930
79931         * m4/md4.m4: New file.
79932
79933 2005-10-18  Simon Josefsson  <jas@extundo.com>
79934
79935         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79936
79937 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79938
79939         * gnulib-tool (func_create_testdir): Omit the second check whether
79940         BUILT_SOURCES in nonempty.
79941
79942 2005-10-17  Simon Josefsson  <jas@extundo.com>
79943
79944         * tests/test-rijndael.c: New file.
79945
79946 2005-10-17  Simon Josefsson  <jas@extundo.com>
79947
79948         * modules/sha1: Depend on stdint instead of md5.
79949
79950         * modules/md5: Depend on stdint, remove uint32_t.
79951
79952 2005-10-17  Simon Josefsson  <jas@extundo.com>
79953
79954         * modules/gc-sha1-tests: New file.
79955
79956         * tests/test-gc-sha1.c: New file.
79957
79958 2005-10-17  Simon Josefsson  <jas@extundo.com>
79959
79960         * m4/md5.m4: Remove call to uint32_t.m4.
79961
79962 2005-10-17  Simon Josefsson  <jas@extundo.com>
79963
79964         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79965
79966         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79967         md5.h.
79968
79969         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79970
79971         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79972
79973 2005-10-17  Simon Josefsson  <jas@extundo.com>
79974
79975         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79976
79977 2005-10-17  Simon Josefsson  <jas@extundo.com>
79978
79979         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79980
79981 2005-10-17  Simon Josefsson  <jas@extundo.com>
79982
79983         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79984
79985         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79986
79987 2005-10-17  Bruno Haible  <bruno@clisp.org>
79988
79989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79990         that it can also be used in a test.
79991
79992 2005-10-16  Bruno Haible  <bruno@clisp.org>
79993
79994         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79995         TESTS_ENVIRONMENT, so that individual tests can augment it.
79996
79997         * gnulib-tool (func_create_testdir): Use an intermediate target for
79998         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79999         macros, like $(ALLOCA_H), which cannot be passed through the command
80000         line.
80001
80002 2005-10-15  Simon Josefsson  <jas@extundo.com>
80003
80004         * modules/rijndael-tests: New file.
80005
80006         * modules/rijndael: New file.
80007
80008 2005-10-15  Simon Josefsson  <jas@extundo.com>
80009
80010         * m4/rijndael.m4: New file.
80011
80012 2005-10-15  Simon Josefsson  <jas@extundo.com>
80013
80014         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80015
80016         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80017
80018 2005-10-14  Simon Josefsson  <jas@extundo.com>
80019
80020         * tests/test-arcfour.c: New file.
80021
80022         * modules/arcfour, modules/arcfour-tests: New files.
80023
80024 2005-10-14  Simon Josefsson  <jas@extundo.com>
80025
80026         * m4/arcfour.m4: New file.
80027
80028 2005-10-14  Simon Josefsson  <jas@extundo.com>
80029
80030         * lib/arcfour.h, lib/arcfour.c: New files.
80031
80032 2005-10-14  Roland McGrath  <roland@redhat.com>
80033
80034         Import from libc.  [BZ #1331]
80035         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80036         macro argument.
80037         Reported by Matej Vela <vela@debian.org>.
80038
80039 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80042         include <wchar.h>; no longer needed.
80043
80044 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80047
80048 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80049         and  Ulrich Drepper  <drepper@redhat.com>
80050
80051         Import from libc.
80052         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80053         instead of inline stream orientation test and two separate
80054         function calls.  Pay no attention to USE_IN_LIBIO.
80055
80056 2005-10-13  Simon Josefsson  <jas@extundo.com>
80057
80058         * modules/gc-hmac-md5-tests: New file.
80059
80060         * tests/test-gc-hmac-sha1.c: New file.
80061
80062         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80063
80064         * modules/gc-hmac-md5-tests: New file.
80065
80066         * tests/test-gc-md5.c: New file.
80067
80068         * modules/gc-md5-tests: New file.
80069
80070 2005-10-13  Simon Josefsson  <jas@extundo.com>
80071
80072         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80073         Move memory allocation outside of loop.
80074
80075 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80078         intermediate directory is in a read-only file system.  Problem
80079         reported by Eric Blake.
80080
80081 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80082
80083         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80084
80085 2005-10-12  Simon Josefsson  <jas@extundo.com>
80086
80087         * tests/test-hmac-sha1.c: New file.
80088
80089         * modules/hmac-sha1-tests: New file.
80090
80091         * modules/hmac-sha1: New file.
80092
80093 2005-10-12  Simon Josefsson  <jas@extundo.com>
80094
80095         * modules/gc-sha1: New file.
80096
80097 2005-10-12  Simon Josefsson  <jas@extundo.com>
80098
80099         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80100
80101         * tests/test-gc-pbkdf2-sha1.c: New file.
80102
80103 2005-10-12  Simon Josefsson  <jas@extundo.com>
80104
80105         * modules/gc-md5, modules/gc-hmac-md5: New files.
80106
80107         * modules/gc (Files): Remove md5, memxor and hmac files.
80108
80109 2005-10-12  Simon Josefsson  <jas@extundo.com>
80110
80111         * m4/gc-pbkdf2-sha1.m4: New file.
80112
80113         * m4/gc-hmac-sha1.m4: New file.
80114
80115         * m4/gc-sha1: New file.
80116
80117         * m4/hmac-sha1.m4: New file.
80118
80119 2005-10-12  Simon Josefsson  <jas@extundo.com>
80120
80121         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80122
80123         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80124
80125 2005-10-12  Simon Josefsson  <jas@extundo.com>
80126
80127         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80128         suggested by Bruno Haible <bruno@clisp.org>.
80129
80130 2005-10-12  Simon Josefsson  <jas@extundo.com>
80131
80132         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80133
80134 2005-10-12  Simon Josefsson  <jas@extundo.com>
80135
80136         * lib/gc-pbkdf2-sha1.c: New file.
80137
80138         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80139
80140 2005-10-12  Simon Josefsson  <jas@extundo.com>
80141
80142         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80143
80144         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80145
80146 2005-10-12  Simon Josefsson  <jas@extundo.com>
80147
80148         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80149         GC_USE_HMAC_MD5, respectively.
80150
80151         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80152         (gc_md5): Fix typo.
80153
80154         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80155
80156         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80157
80158         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80159
80160 2005-10-12  Bruno Haible  <bruno@clisp.org>
80161
80162         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80163         Reported by Stepan Kasal <kasal@ucw.cz>.
80164
80165 2005-10-11  Simon Josefsson  <jas@extundo.com>
80166
80167         * tests/test-crc.c: New file.
80168
80169         * modules/crc, modules/crc-tests: New files.
80170
80171 2005-10-11  Simon Josefsson  <jas@extundo.com>
80172
80173         * m4/crc.m4: New file.
80174
80175 2005-10-11  Simon Josefsson  <jas@extundo.com>
80176
80177         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80178
80179         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80180
80181         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80182
80183 2005-10-11  Simon Josefsson  <jas@extundo.com>
80184
80185         * lib/crc.h, lib/crc.c: New files.
80186
80187         * lib/gc.h (gc_hash_buffer): Add doc.
80188
80189 2005-10-11  Bruno Haible  <bruno@clisp.org>
80190
80191         * modules/c-strcasestr: New file.
80192         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80193
80194 2005-10-11  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/c-strcase: New file.
80197         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80198
80199 2005-10-11  Bruno Haible  <bruno@clisp.org>
80200
80201         * lib/strcasecmp.c: Include limits.h.
80202         (strcasecmp): Avoid integer overflow on exotic platforms.
80203         * lib/strncasecmp.c: Include limits.h.
80204         (strncasecmp): Avoid integer overflow on exotic platforms.
80205         Reported by Paul Eggert.
80206
80207 2005-10-11  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/c-strcasestr.h: New file, from GNU gettext.
80210         * lib/c-strcasestr.c: New file, from GNU gettext.
80211
80212 2005-10-11  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/c-strcase.h: New file, from GNU gettext.
80215         * lib/c-strcasecmp.c: New file, from GNU gettext.
80216         * lib/c-strncasecmp.c: New file, from GNU gettext.
80217
80218 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * modules/mempcpy (License): GPL -> LGPL.
80221         * modules/strchrnul (License): Likewise.
80222         * modules/sysexits (License): Likewise.
80223
80224 2005-10-08  Simon Josefsson  <jas@extundo.com>
80225
80226         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80227
80228 2005-10-07  Simon Josefsson  <jas@extundo.com>
80229
80230         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80231
80232 2005-10-06  Simon Josefsson  <jas@extundo.com>
80233
80234         * tests/test-hmac-md5.c: New file.
80235
80236         * modules/hmac-md5-tests: New file.
80237
80238         * modules/hmac-md5: New file.
80239
80240 2005-10-06  Simon Josefsson  <jas@extundo.com>
80241
80242         * m4/hmac-md5.m4: New file.
80243
80244         * m4/memxor.m4: Require gl_C_RESTRICT.
80245
80246 2005-10-06  Simon Josefsson  <jas@extundo.com>
80247
80248         * lib/memxor.c (memxor): Avoid casts and warnings.
80249
80250 2005-10-06  Simon Josefsson  <jas@extundo.com>
80251
80252         * lib/hmac-md5.c: New file.
80253
80254         * lib/hmac.h: New file.
80255
80256 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80259         promotes to int, not unsigned int, to catch the AIX 5.3
80260         compiler bug.
80261
80262 2005-10-05  Simon Josefsson  <jas@extundo.com>
80263
80264         * modules/memxor: New file.
80265
80266         * modules/iconv (Files): Move config.rpath to havelib, it is used
80267         there.
80268
80269         * modules/havelib (Files): Add config.rpath.
80270
80271 2005-10-05  Simon Josefsson  <jas@extundo.com>
80272
80273         * m4/memxor.m4: New file.
80274
80275 2005-10-05  Simon Josefsson  <jas@extundo.com>
80276
80277         * lib/memxor.c (memxor): Fix compiler error.
80278
80279         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80280         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80281
80282         * lib/memxor.h, lib/memxor.c: New files.
80283
80284         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80285         we assume all systems have it, suggested by Jim Meyering
80286         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80287         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80288         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80289         same reasons.
80290
80291 2005-10-05  Simon Josefsson  <jas@extundo.com>
80292
80293         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80294
80295 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80298         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80299         needed, since the source code now assumes these .h files.
80300
80301 2005-10-05  Derek Price  <derek@ximbiot.com>
80302
80303         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80304
80305 2005-10-05  Bruno Haible  <bruno@clisp.org>
80306
80307         * modules/stdint (License): Change to LGPL.
80308
80309 2005-10-04  Simon Josefsson  <jas@extundo.com>
80310
80311         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80312         D. Baushke" <mdb@gnu.org>.
80313
80314 2005-10-04  Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/verify.h (verify_true): Provide alternative definition for C++.
80317
80318 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80321         (SSIZE_MAX): New macro, if not already defined.
80322         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80323         than 2 GiB.
80324
80325 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         Sync from coreutils.
80328         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80329         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80330         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80331         ULLONG_MAX doesn't work with 2.7.2.1.
80332
80333 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80334
80335         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80336         From Ben Pfaff.
80337
80338         * modules/exclude (Depends-on): Depend on verify.
80339         * modules/strtoimax (Depends-on): Likewise.
80340         * modules/utimecmp (Depends-on): Likewise.
80341
80342 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         * lib/exclude.c: Include verify.h.
80345         (verify): Remove.  All callers changed to use verify.h's version.
80346         * lib/strtoimax.c: Likewise.
80347         * lib/utimecmp.c: Likewis.e
80348
80349         Sync from coreutils.
80350         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80351         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80352         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80353         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80354         bother returning ENOSYS if settimeofday or stime fails; just let
80355         them return whatever errno they want to return.
80356         * lib/utimens.c: Include unistd.h, for dup2.
80357         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80358         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80359
80360 2005-10-02  Jim Meyering  <jim@meyering.net>
80361
80362         Sync from coreutils.
80363         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80364         from glibc-2.2.5 that fails for read-only files.
80365
80366 2005-10-02  Jim Meyering  <jim@meyering.net>
80367
80368         Sync from coreutils.
80369         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80370         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80371         `#if HAVE_CONFIG_H'.
80372         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80373         Remove AT_FDCWD test.
80374         Do not consume the fd unless successful.
80375         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80376         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80377         block, so that we don't even try to compile it if settimeofday is
80378         available.  This works around a compilation failure on OSF1 V5.1,
80379         due to stime requiring a `long int*' while tv_sec is `int'.
80380
80381 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80382
80383         Sync from coreutils.
80384         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80385         against `yes', rather than just testing for nonempty.
80386
80387 2005-10-01  Simon Josefsson  <jas@extundo.com>
80388
80389         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80390         and Darwin.
80391
80392         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80393         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80394         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80395         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80396         Check if struct addrinfo is declared.
80397
80398 2005-10-01  Simon Josefsson  <jas@extundo.com>
80399
80400         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80401         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80402         AI_* and EAI_* definitions.  Protect function declarations.
80403
80404 2005-10-01  Jim Meyering  <jim@meyering.net>
80405
80406         Sync from coreutils.
80407
80408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80409         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80410         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80412         in the inet and nsl libraries.  Required on Solaris 5.7.
80413
80414 2005-10-01  Jim Meyering  <jim@meyering.net>
80415
80416         Sync from coreutils.
80417         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80418         in the inet and nsl libraries.  Required on Solaris 5.7.
80419
80420 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80421
80422         * lib/getdelim.c (getdelim): Remove unused variables.
80423
80424 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80427         so that the code works even with ancient cpp.  Portability problem
80428         with GCC 2.7.2.1 reported by Thomas M.Ott.
80429
80430 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * modules/regex (Depends-on): Add strcase.
80433
80434         * modules/gethostname (Licence): Change from GPL to LGPL, since
80435         gethostname.c is a trivial implementation of a standard library
80436         function.
80437         * modules/poll (License): Change from GPL to LGPL, since it's
80438         derived from LGPL code.
80439
80440 2005-09-27  Jim Meyering  <jim@meyering.net>
80441
80442         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80443         HAVE_CONFIG_H.
80444
80445         * lib/intprops.h (signed_type_or_expr__): Define.
80446         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80447         for unsigned types.
80448
80449 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * lib/verify.h (verify_expr): Remove, replacing with:
80452         (verify_true): New macro that returns true instead of void.
80453         (verify_type__): Remove.
80454         (verify): Use verify_true rather than verify_type__.
80455
80456 2005-09-26  Bruno Haible  <bruno@clisp.org>
80457
80458         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80459         is necessary.
80460         (lib_SOURCES): Remove mbchar.c.
80461         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80462         (Files): Add m4/mbrtowc.m4.
80463         * modules/mbiter: Likewise.
80464         * modules/mbuiter: Likewise.
80465
80466 2005-09-26  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80469         compile mbchar.c if they are not both present.
80470         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80471         * m4/mbiter.m4 (gl_MBITER): Likewise.
80472         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80473         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80474         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80475
80476 2005-09-25  Jim Meyering  <jim@meyering.net>
80477
80478         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80479         also uses socklen_t.
80480
80481 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80482
80483         * lib/utimens.c (ENOSYS): Define if not already defined.
80484         (futimens): Support having a null PATH if the file descriptor
80485         is nonnegative.
80486
80487         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80488         Remove.
80489         (__attribute): Define to empty unless GCC 3.1 or later.
80490         This works around a core dump on OpenBSD 3.4, which has GCC
80491         2.95.3, which dumps core when given __attribute__(()).  It also
80492         simplifies other tests, since we really don't want to bother with
80493         worrying about which ancient version of GCC supported what.
80494         Original problem reported by Yoann Vandoorselaere, with part of
80495         the fix suggested by Derek Price.
80496
80497 2005-09-24  Jim Meyering  <jim@meyering.net>
80498
80499         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80500         so we can once again use a positive bitfield width of 1 -- now we
80501         don't have to explain why we were using a bitfield width of 2.
80502
80503 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80504
80505         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80506         and similarly for the other external symbols.  Problem reported
80507         by James Gallager.
80508
80509         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80510         bug reported by Jim Meyering.
80511
80512         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80514         not needed, since socklen is a prerequisite module.
80515
80516 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80519         Problem reported by Eric Blake.
80520         (getaddrinfo): Initialize se so that it's not garbage.
80521         Redo internal storage allocation so that it doesn't make unportable
80522         assumptions about alignment.
80523         Fix a memory leak.
80524
80525         * lib/utimens.c (futimens): Use futimesat if available.
80526         Prefer it to futimes since it doesn't have the futimes bug.
80527
80528         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80529         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80530         Instead, declare a function that returns a pointer to an array,
80531         and use verify_type__ to declare the size of the array.
80532         Problem and germ of a solution reported by Bruno Haible.
80533         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80534         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80535
80536 2005-09-23  Jim Meyering  <jim@meyering.net>
80537
80538         Sync from coreutils.
80539         Correct build failure (socklen_t not defined) on at least
80540         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80542
80543 2005-09-23  Jim Meyering  <jim@meyering.net>
80544
80545         * modules/getaddrinfo (Depends-on): Add socklen.
80546
80547 2005-09-23  Bruno Haible  <bruno@clisp.org>
80548
80549         * tests/test-verify.c: New file.
80550
80551 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         Sync from coreutils.
80554
80555         * modules/argmatch (Depends-on): Add verify.
80556         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80557         unistd-safer.
80558         * modules/save-cwd (Depends-on): Likewise.
80559
80560         * modules/openat (Files): Add lib/openat-die.c.
80561         (Depends-on): Remove error, exitfail.
80562         Add dirname.
80563
80564         * modules/verify: New file.
80565         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80566         with "verify" module.
80567
80568 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80569
80570         Sync from coreutils.
80571
80572         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80573         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80574         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80575         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80576         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80577         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80578         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80579         Don't bother checking for string.h, stdlib.h, unistd.h.
80580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80581         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80582         module's job.
80583         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80584         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80585
80586         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80587         (gl_GETDATE): Use it.
80588
80589         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80590
80591 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         Sync from coreutils.
80594
80595         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80596         stat-time.h.
80597         * lib/argmatch.h: Include verify.h
80598         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80599         (ARGMATCH_ASSERT): Remove; unused.
80600         * lib/canonicalize.c: Assume STDC_HEADERS.
80601         * lib/exclude.c: Include "strcase.h".
80602         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80603         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80604         and stdio-safer.h.
80605         (getusershell): Call fopen, not fopen_safer.
80606         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80607         Do not include unistd-safer.h.
80608         (save_cwd): Don't call fd_safer; no longer needed
80609         now that we include fcntl--.h.
80610
80611         * lib/getdate.y (relative_time): New type.
80612         (RELATIVE_TIME_0): New constant.
80613         (parser_control): Use relative_time instead of doing it ourselves.
80614         (%union): Add new relative_time rel member.
80615         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80616         Now typeless.
80617         (relunit, relunit_snumber): Now of type rel.
80618         (zone, rel, relunit, get_date): Adjust to above changes.
80619
80620         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80621         Do not include unistd-safer.h.
80622         (getloadavg): Don't call fd_safer; no longer needed
80623         now that we include fcntl--.h.
80624
80625         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80626         (make_dir_parents): Treat ENOSYS like EEXIST.
80627
80628         Improve quality of diagnostics on restore_cwd failure.
80629         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80630         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80631         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80632         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80633         each time through the loop.  Do not diagnose restore_cwd failure;
80634         that is the caller's job (and perhaps the caller does not care).
80635
80636         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80637         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80638         If the file already exists but is not a directory, don't bother
80639         to try to make its parents.
80640         Close potential file descriptor leak if we can't chdir("/") (!).
80641         Don't always return true if chdir($PWD) fails; return true only
80642         if the requested action was done successfully (except for the
80643         chdir($PWD)).
80644         Don't log final directory unless we actually made it.
80645         Refactor to avoid duplicate code to fix up permissions.
80646         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80647
80648         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80649         to make it a bit faster and (I hope) clearer.
80650         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80651         Fix bug in formats like %2N.
80652
80653         * lib/verify.h: New file.
80654
80655 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         Sync from coreutils.
80658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80659
80660 2005-09-22  Jim Meyering  <jim@meyering.net>
80661
80662         Sync from coreutils.
80663
80664         * m4/lstat.m4 (gl_FUNC_LSTAT):
80665         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80666         Remove obsolete comment.
80667         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80668         * m4/xstrtod.m4: Likewise.
80669
80670         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80671
80672 2005-09-22  Jim Meyering  <jim@meyering.net>
80673
80674         Sync from coreutils.
80675
80676         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80677
80678         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80679         the .tm_year member, since otherwise gcc-4.0 would now warn about
80680         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80681
80682         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80683         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80684
80685         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80686         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80687         when run in a time zone for which daylight savings time is in effect
80688         for the starting date.
80689
80690         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80691         stop us from restricting permissions of just-created absolute-named
80692         directories.
80693         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80694         to restore initial working directory.
80695         * lib/mkdir-p.c (make_dir_parents): New parameter:
80696         different_working_dir, to tell caller if/when we change the working
80697         directory and are unable to return to the initial one.
80698         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80699         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80700         `return false'.  This fixes a bug introduced on 2004-07-30.
80701
80702         * lib/openat.c (fdopendir): Be sure to close the supplied
80703         file descriptor before returning.  This makes our replacement
80704         implementation a little closer to Solaris's, where fdopendir
80705         ties the file descriptor to the returned DIR* pointer.
80706         * lib/openat.c (unlinkat): New function.
80707         * lib/openat.h (unlinkat): Add prototype.
80708         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80709         (openat_restore_fail): Rename from openat_restore_die.
80710         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80711
80712         Provide an alternative to exiting immediately upon save_cwd or
80713         restore_cwd failure.  Now, an application can arrange e.g.,
80714         to perform a longjump in that case.
80715         * lib/openat.c: Include dirname.h.
80716         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80717         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80718         and openat_restore_die rather than calling error directly.
80719         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80720
80721         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80722         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80723         define.
80724
80725         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80726         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80727                             int utc, int nanoseconds);
80728         Background:
80729         date should not have to allocate a megabyte of virtual memory to
80730         handle a format argument like +%1048575T.  When implemented with
80731         strftime, it must allocate such a buffer, use strftime to fill it
80732         in, print it, then free it.
80733         With fprintftime, it simply prints everything and exits.
80734         With no need for memory allocation, that's one fewer way to fail.
80735         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80736         optional field width, not before, so we accept %9:z, not %:9z.
80737         (my_strftime): Be sure to use L_('x') for literals.
80738
80739         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80740         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80741         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80742         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80743         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80744         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80745         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80746         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80747         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80748         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80749         * lib/xgethostname.c, lib/xreadlink.c:
80750         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80751
80752         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80753         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80754         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80755         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80756         and don't include <sys/file.h>).
80757
80758 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80759
80760         Sync from coreutils.
80761
80762         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80763         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80764         [!LDAV_DONE]: Avoid unused variable warning.
80765
80766 2005-09-21  Bruno Haible  <bruno@clisp.org>
80767
80768         * lib/unicodeio.h (unicode_to_mb): New declaration.
80769
80770 2005-09-20  Derek Price  <derek@ximbiot.com>
80771
80772         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80773         getaddrinfo.h.
80774
80775 2005-09-20  Bruno Haible  <bruno@clisp.org>
80776
80777         * gnulib-tool: Remove trailing slashes from the values specified for
80778         --source-base, --m4-base, --tests-base, --aux-dir.
80779         Suggested by Simon Josefsson <jas@extundo.com>.
80780
80781 2005-09-20  Bruno Haible  <bruno@clisp.org>
80782
80783         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80784         func_modules_to_filelist, func_import, func_create_testdir): Make all
80785         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80786         change when gnulib-tool is invoked in a different locale.
80787
80788 2005-09-19  Simon Josefsson  <jas@extundo.com>
80789
80790         * m4/socklen.m4: Fix typo.
80791
80792 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80793
80794         Use a consistent style for including <config.h>.
80795         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80796         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80797         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80798         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80799         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80800         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80801         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80802         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80803         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80804         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80805         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80806         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80807         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80808         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80809         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80810         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80811         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80812         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80813         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80814         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80815         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80816         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80817         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80818         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80819         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80820         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80821         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80822         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80823         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80824         lib/xstrtoumax.c, lib/yesno.c:
80825         Standardize inclusion of config.h.
80826         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80827         lib/inttostr.h:  Removed inclusion of config.h from header files.
80828         * lib/inttostr.c:  Adjusted in-tree users.
80829         * lib/timespec.h: Remove superfluous warning to include config.h.
80830         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80831         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80832         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80833         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80834         config.h with HAVE_CONFIG_H.
80835
80836 2005-09-19  Jim Meyering  <jim@meyering.net>
80837
80838         * modules/pathmax (License): Change to LGPL.
80839
80840 2005-09-19  Derek Price  <derek@ximbiot.com>
80841
80842         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80843
80844 2005-09-19  Bruno Haible  <bruno@clisp.org>
80845
80846         * gnulib-tool (import): Provide default for --tests-base.
80847
80848 2005-09-19  Bruno Haible  <bruno@clisp.org>
80849
80850         * doc/quote.texi: New file, extracted from gnulib.texi.
80851         * doc/ctime.texi: New file, extracted from gnulib.texi.
80852         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80853         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80854         * doc/gnulib.texi: Include them.
80855
80856 2005-09-18  Bruno Haible  <bruno@clisp.org>
80857
80858         Portability fix.
80859         * gnulib-tool (func_readlink): New function.
80860         (func_ln_if_changed): Use it.
80861
80862 2005-09-18  Bruno Haible  <bruno@clisp.org>
80863
80864         * gnulib-tool: Support --with-tests also with --import.
80865         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80866         (func_import): Use variables $testsbase and $inctests. Emit a
80867         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80868         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80869         SUBDIRS += $testsdir.
80870         (func_create_testdir): Update.
80871
80872 2005-09-18  Bruno Haible  <bruno@clisp.org>
80873
80874         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80875         instead of $dry_run.
80876         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80877         (func_ln_if_changed): Don't handle dry-run here.
80878         (func_import): In dry-run mode, detect more precisely which actions
80879         would be performed, and don't use "...ing" verbs.
80880
80881 2005-09-18  Bruno Haible  <bruno@clisp.org>
80882
80883         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80884         (func_import): Use join on two temporary files instead of three nested
80885         loops, in order to determine which files are new or old.
80886
80887 2005-09-18  Bruno Haible  <bruno@clisp.org>
80888
80889         * gnulib-tool (func_import): Comment out code that spits out the
80890         new files with --dry-run.
80891
80892 2005-09-18  Bruno Haible  <bruno@clisp.org>
80893
80894         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80895
80896 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         * lib/stat-time.h: New file.
80899         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80900         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80901         in a different way.
80902         (timespec_cmp): New function.
80903         * lib/utimecmp.c: Include stat-time.h.
80904         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80905         members exist, not on the obsolescent ST_MTIM_NSEC.
80906         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80907
80908 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80909
80910         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80911
80912 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80913
80914         * MODULES.html.sh (File system functions): Add stat-time.
80915         * modules/stat-time: New file.
80916         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80917         is now done in a different way, by the stat-time module.
80918         * modules/utimecmp (Depends-on): Add stat-time.
80919
80920 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80921
80922         * m4/st_mtim.m4: Remove.  Superseded by...
80923         * m4/stat-time.m4: New file.
80924         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80925         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80926
80927 2005-09-15  Derek Price  <derek@ximbiot.com>
80928
80929         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80930
80931 2005-09-15  Derek Price  <derek@ximbiot.com>
80932
80933         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80934         * lib/regex_internal.c: Ditto, using this...
80935         (__GNUC_PREREQ): ...new macro.
80936         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80937         using...
80938         (__GNUC_PREREQ): ...this new macro.
80939
80940         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80941
80942 2005-09-15  Derek Price  <derek@ximbiot.com>
80943             Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80946         changes, consolidating in...
80947         * lib/regex_internal.h: ...this file.
80948
80949 2005-09-13  Jim Meyering  <jim@meyering.net>
80950
80951         * lib/canon-host.c: Filter through gnu indent and reword comments
80952         slightly.
80953         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80954
80955 2005-09-13  Derek Price  <derek@ximbiot.com>
80956
80957         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80958         failure.
80959         Reported by Jim Meyering  <jim@meyering.net>.
80960
80961 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80962
80963         * lib/base64.c: Typo.
80964         (base64_encode): Put b64str in initialized data section.
80965
80966 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         Merge glibc and coreutils changes into gnulib, plus a few
80969         extra fixes.
80970         * lib/md5.c: Use #error rather than a string.
80971         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80972         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80973         (__attribute__): Define to empty for non recent-GCC.
80974         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80975         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80976         Renamed from their non-__ counterparts, with new macros replacing
80977         them if not _LIBC.  Add __THROW attribute.
80978         (rol): Remove.
80979         (struct md5_ctx): Align buffer if using GCC.
80980         * lib/sha1.h (struct sha1_ctx): Likewise.
80981         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80982         The old name was backwards.
80983         (NOTSWAP): Remove; not used.
80984         (rol): New macro, moved here from md5.h.
80985         (sha1_process_block): Remove a FIXME that doesn't make sense.
80986
80987 2005-09-12  Derek Price  <derek@ximbiot.com>
80988
80989         Return usable errors from canon-host.
80990         * lib/canon-host.h: New file.
80991         * lib/canon-host.c (canon_host): Wrap...
80992         (canon_host_r): ...this new function, which now relies exclusively on
80993         getaddrinfo.
80994         (ch_strerror): New function.
80995         (last_cherror): New global.
80996         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80997         interface.
80998         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80999         void *.
81000         (freeaddrinfo): Free ai->ai_canonname when set.
81001
81002 2005-09-12  Derek Price  <derek@ximbiot.com>
81003
81004         Make canon-host require getaddrinfo.
81005         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81006         AC_LIBSOURCE canon-host.h.  Call...
81007         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81008         gl_GETADDRINFO.
81009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81010
81011 2005-09-12  Derek Price  <derek@ximbiot.com>
81012
81013         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81014         LGPL.
81015         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81016
81017 2005-09-12  Derek Price  <derek@ximbiot.com>
81018
81019         * lib/gai_strerror.c: Include config.h when available.  Include
81020         getaddrinfo.h before other headers to test interface.
81021         Reported by Larry Jones <lawrence.jones@ugs.com>.
81022
81023 2005-09-12  Derek Price  <derek@ximbiot.com>
81024             Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * modules/glob (Files): Add glob-libc.h.
81027
81028 2005-09-12  Derek Price  <derek@ximbiot.com>
81029             Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81032         glob_.h, glob-libc.h.
81033         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81034
81035 2005-09-12  Derek Price  <derek@ximbiot.com>
81036             Paul Eggert  <eggert@cs.ucla.edu>
81037
81038         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81039         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81040         protecting things that should be done only in gnulib contexts.
81041         * lib/glob_.h: New file, containing only the glob things needed for
81042         gnulib.
81043         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81044         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81045         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81046         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81047         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81048         and to respect the namespace rules better.
81049
81050 2005-09-08  Simon Josefsson  <jas@extundo.com>
81051
81052         * modules/socklen: New file.
81053
81054 2005-09-08  Simon Josefsson  <jas@extundo.com>
81055
81056         * m4/socklen.m4: New file.
81057
81058 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81059
81060         * modules/utimens (Files): Add m4/utimbuf.m4, since
81061         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81062         Reported by Sergey Poznyakoff.
81063
81064 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81065
81066         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81067         definitions, since that's the preferred style in glibc.
81068         Fix a minor spacing issue, and update copyright notice to match
81069         glibc's.
81070
81071 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81074
81075 2005-09-06  Simon Josefsson  <jas@extundo.com>
81076
81077         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81078         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81079
81080 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81081
81082         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81083         warning.
81084
81085 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * config/srclist.txt: Add glibc bug 1302.
81088
81089 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         Change bitset word type from unsigned int to unsigned long int,
81092         as this has better performance on typical 64-bit hosts.
81093         Port bitset code to hosts with unusual word sizes.
81094         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81095         (build_collating_symbol):
81096         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81097         argument is a bitset.  This is merely a style issue, but it makes
81098         it clearer that an entire array is expected.
81099         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81100         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81101         Port to the case where bitset_word is not the same as unsigned int.
81102         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81103         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81104         Likewise.
81105         * lib/regexec.c (check_dst_limits_calc_pos_1,
81106         check_subexp_matching_top):
81107         (build_trtable, group_nodes_into_DFAstates):
81108         Likewise.
81109         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81110         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81111         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81112         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81113         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81114         * lib/regcomp.c (optimize_subexps, lower_subexp):
81115         Work even if bitset_word has holes in its bitwise representation.
81116         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81117         * lib/regexec.c (check_dst_limits_calc_pos_1,
81118         check_subexp_matching_top):
81119         Likewise.
81120         * lib/regex_internal.c (re_string_reconstruct):
81121         Don't assume UCHAR_MAX == 255.
81122         * lib/regex_internal.h (bitset_set_all): Likewise.
81123         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81124         All uses changed.
81125         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81126         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81127         All uses changed.
81128         (BITSET_WORD_MAX): New macro.
81129         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81130         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81131         (bitset_empty, bitset_copy):
81132         Prefer sizeof (bitset) to multiplying it out ourselves.
81133         (bitset_not_merge): Remove; unused.
81134         (bitset_contain): Return bool, not unsigned int with one bit on.
81135         All callers changed.
81136         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81137         alignment than re_node_set; do this by defining a new internal
81138         type struct dests_alloc and using it to allocate memory.
81139
81140 2005-09-05  Bruno Haible  <bruno@clisp.org>
81141
81142         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81143         links.
81144
81145 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81146
81147         * modules/size_max (Makefile.am): Add size_max.h
81148
81149 2005-09-04  Derek Price  <derek@ximbiot.com>
81150
81151         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81152
81153 2005-09-03  Simon Josefsson  <jas@extundo.com>
81154
81155         * gnulib-tool: Fix typo.
81156
81157 2005-09-03  Simon Josefsson  <jas@extundo.com>
81158
81159         * config/srclist.txt: Add glibc bug 1293.
81160
81161 2005-09-03  Derek Price  <derek@ximbiot.com>
81162
81163         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81164         From Larry Jones <lawrence.jones@ugs.com>.
81165
81166 2005-09-02  Simon Josefsson  <jas@extundo.com>
81167
81168         * modules/socklen: New file.
81169
81170 2005-09-02  Simon Josefsson  <jas@extundo.com>
81171
81172         * modules/havelib: New module.
81173
81174         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81175         Use havelib.
81176
81177 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81178
81179         Check for arithmetic overflow when calculating sizes, to prevent
81180         some buffer-overflow issues.  These patches are conservative, in the
81181         sense that when I couldn't determine whether an overflow was possible,
81182         I inserted a run-time check.
81183         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81184         macros.
81185         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81186         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81187         (re_xnrealloc, re_x2nrealloc): New inline functions.
81188         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81189         parse_bracket_exp):
81190         (build_equiv_class, build_charclass): Check for arithmetic overflow
81191         in size expression calculations.
81192         * lib/regex_internal.c (re_string_realloc_buffers):
81193         (build_wcs_upper_buffer, re_node_set_add_intersect):
81194         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81195         (re_dfa_add_node, register_state): Likewise.
81196         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81197         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81198         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81199         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81200
81201 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81204         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81205
81206 2005-09-02  Bruno Haible  <bruno@clisp.org>
81207
81208         Support for lib vs. lib64 distinction on biarch platforms.
81209         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81210         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81211         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81212
81213 2005-09-02  Bruno Haible  <bruno@clisp.org>
81214
81215         * gnulib-tool (import): In the other first-use case, provide defaults
81216         as well.
81217
81218 2005-09-02  Bruno Haible  <bruno@clisp.org>
81219
81220         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81221         patches not yet found in the latest gettext release.
81222
81223 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81226         to avoid a collision with bits/local_lim.h in glibc.
81227         All uses changed.  Problem reported by Dmitry V. Levin in
81228         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81229
81230         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81231         bugs in int versus size_t comparisons.
81232         (re_string_context_at): Fix bug where the code assumed that
81233         Idx is signed.
81234
81235         Use bool where appropriate.
81236         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81237         All callers changed.
81238         (calc_eclosure_iter): Likewise, for ROOT arg.
81239         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81240         (build_charclass_op): Likewise, for NON_MATCH arg.
81241         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81242         (re_string_construct_common): Likewise, for ICASE arg.
81243         * lib/regexec.c (re_search_2_stub, re_search_stub):
81244         Likewise, for RET_LEN arg.
81245         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81246         (set_regs): Likewise, for FL_BACKTRACK arg.
81247         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81248         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81249         (calc_eclosure_iter, parse_bracket_exp):
81250         Use bool for internal variables that are booleans.
81251         * lib/regexec.c (re_search_internal, check_matching,
81252         proceed_next_node):
81253         (set_regs, build_sifted_states, sift_states_bkref):
81254         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81255         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81256         (find_collation_sequence_value):
81257         Likewise.
81258         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81259         (re_node_set_compare):
81260         Return bool, not int. All callers changed.
81261         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81262         (build_trtable, check_node_accept): Likewise.
81263         * lib/regex_internal.h: Include stdbool.h.
81264
81265         Fix bugs uncovered when converting to bool.
81266         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81267         failure instead of charging ahead blindly.
81268         * lib/regex_internal.c (register_state): Likewise.
81269         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81270         for freeing internal storage.
81271         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81272         bitset pieces used as boolean, to avoid undefined behavior
81273         on hosts that do int overflow checking.
81274
81275 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * config/srclist.txt: Add glibc bugs 1285-1287.
81278
81279 2005-09-01  Jim Meyering  <jim@meyering.net>
81280
81281         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81282         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81283         Require gl_STAT_MACROS, too.
81284
81285 2005-09-01  Bruno Haible  <bruno@clisp.org>
81286
81287         * gnulib-tool (import): In the first-use case, provide defaults.
81288
81289 2005-09-01  Bruno Haible  <bruno@clisp.org>
81290
81291         * gnulib-tool (func_import): Remove the .tmp files.
81292
81293 2005-09-01  Bruno Haible  <bruno@clisp.org>
81294
81295         * gnulib-tool (func_import): Fix handling of symbolic links.
81296
81297 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81298
81299         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81300         old glibc regex code mishandles strings longer than 2**31 bytes.
81301         This patch fixes this when the regex code is used in gnulib
81302         (i.e., outside glibc).
81303
81304         This patch should not affect the use of the regex code inside
81305         glibc.  No doubt this problem also needs to be handled for glibc
81306         as well, but the result will be an incompatible change to the
81307         glibc ABI, and the old ABI will have to be supported too.  That
81308         can be the the subject for another patch.
81309
81310         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81311         governing whether the rest of this patch is active.  By default,
81312         the macro is disabled and the patch has no effect.
81313         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81314         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81315         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81316         (re_match_2, re_set_registers): Use the new types.
81317         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81318         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81319         New macros.
81320         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81321         (re_string_context_at, bin_tree_t, re_dfastate_t):
81322         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81323         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81324         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81325         (re_string_char_size_at, re_string_wchar_at):
81326         (re_string_elem_size_at):
81327         Use the new types and macros to port to 64-bit hosts.
81328         Use unsigned types for internal values, so that the code
81329         mostly works even for arrays larger than SSIZE_MAX.
81330         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81331         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81332         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81333         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81334         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81335         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81336         (calc_inveclosure, parse_dup_op, build_range_exp):
81337         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81338         (fetch_number, create_token_tree, mark_opt_subexp):
81339         Likewise.
81340         * lib/regex_internal.c (re_string_construct_common,
81341         create_ci_newstate):
81342         (create_cd_newstate, re_string_allocate, re_string_construct):
81343         (re_string_realloc_buffers, build_wcs_upper_buffer):
81344         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81345         (re_string_reconstruct, re_string_peek_byte_case):
81346         (re_string_fetch_byte_case, re_string_context_at):
81347         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81348         (re_node_set_init_copy, re_node_set_add_intersect):
81349         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81350         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81351         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81352         (re_acquire_state, re_acquire_state_context, register_state):
81353         Likewise.
81354         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81355         search_cur_bkref_entry):
81356         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81357         (re_search_internal, re_search_2_stub, re_search_stub)
81358         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81359         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81360         (update_cur_sifted_state, check_dst_limits):
81361         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81362         (check_subexp_limits, sift_states_bkref, merge_state_array):
81363         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81364         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81365         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81366         (expand_bkref_cache, check_node_accept_bytes):
81367         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81368         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81369         (acquire_init_state_context, check_halt_node_context):
81370         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81371         (sift_states_backward, clean_state_log_if_needed):
81372         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81373         (find_recover_state, transit_state_sb, transit_state_mb):
81374         (transit_state_bkref, build_trtable, match_ctx_clean):
81375         Likewise.
81376         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81377         to work around an assumption that REG_MISSING is negative.
81378
81379         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81380         (seek_collating_symbol_entry) [defined _LIBC]:
81381         (lookup_collation_sequence_value) [defined _LIBC]:
81382         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81383         Use prototypes rather than old-style function definitions.
81384         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81385         (transit_state_sb) [0]:
81386         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81387
81388         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81389         rm_eo.
81390
81391         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81392         (optimize_subexps, lower_subexp):
81393         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81394         since the signed shift might overflow.  Use 1u<<31 instead.
81395         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81396         Likewise.
81397         * lib/regexec.c (check_dst_limits_calc_pos_1,
81398         check_subexp_matching_top): Likewise.
81399
81400         * lib/regcomp.c (optimize_subexps, lower_subexp):
81401         Use CHAR_BIT rather than 8, for clarity.
81402         * lib/regexec.c (check_dst_limits_calc_pos_1):
81403         (check_subexp_matching_top): Likewise.
81404         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81405         have to worry about portability issues when shifting it left.
81406         Remove no-longer-needed test for table_size > 0.
81407         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81408         in a word, as the resulting behavior is undefined.
81409         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81410         in one case, a <= should have been an <, and in another case the
81411         whole test was missing.
81412         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81413         the standard name CHAR_BIT.
81414         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81415         this is not true on one's complement and signed-magnitude hosts.
81416
81417         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81418         next_last_offset.
81419         (struct re_dfa_t): Remove unused member states_alloc.
81420         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81421
81422 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81423
81424         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81425         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81426         and large-file glibc and in 32-bit large-file Solaris.
81427
81428 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81431         lengths fit in regoff_t; this isn't true if regoff_t is the same
81432         width as size_t.
81433         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81434         (= START + RANGE) instead of RANGE.  This avoids overflow
81435         problems when regoff_t is the same width as size_t.
81436         All callers changed.
81437         (re_search_2_stub): Check for overflow when adding the
81438         sizes of the two strings.
81439         (re_search_stub): Check for overflow when adding START
81440         to RANGE; if it occurs, substitute the extreme value.
81441
81442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81445
81446 2005-08-31  Jim Meyering  <jim@meyering.net>
81447
81448         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81449         a pointer-to-const.
81450         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81451         (register_state): Likewise.
81452         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81453         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81454         (group_nodes_into_DFAstates): Likewise.
81455
81456 2005-08-31  Jim Meyering  <jim@meyering.net>
81457
81458         * check-module: Add a FIXME comment.
81459
81460 2005-08-31  Eric Blake  <ebb9@byu.net>
81461
81462         * modules/unistd-safer (Files): Add unistd--.h.
81463         * modules/stdio-safer (Files): Add stdio--.h.
81464
81465 2005-08-31  Derek Price  <derek@ximbiot.com>
81466
81467         * lib/getdelim.c (getdelim): Return EOF on EOF.
81468         Reported by Larry Jones <lawrence.jones@ugs.com>.
81469
81470 2005-08-31  Bruno Haible  <bruno@clisp.org>
81471
81472         Avoid unnecessary diffs in the generated lib/Makefile.am.
81473         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81474         the generated files.
81475         (func_import): Don't set cmd.
81476
81477 2005-08-31  Bruno Haible  <bruno@clisp.org>
81478
81479         * lib/strstr.c: Include <stddef.h>, for NULL.
81480         * lib/strcasestr.c: Likewise.
81481         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81482
81483 2005-08-31  Bruno Haible  <bruno@clisp.org>
81484
81485         * gnulib-tool: New option --macro-prefix.
81486         (func_import): Use macro_prefix.
81487         (import): Handle option --macro-prefix.
81488
81489 2005-08-31  Bruno Haible  <bruno@clisp.org>
81490
81491         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81492         Also use new variables cached_lgpl, cached_libtool.
81493
81494 2005-08-31  Bruno Haible  <bruno@clisp.org>
81495
81496         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81497         always instantiating them.
81498
81499 2005-08-31  Bruno Haible  <bruno@clisp.org>
81500
81501         * gnulib-tool (func_import): Read the previous cached settings
81502         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81503         earlier added by gnulib but are now dropped. Warn when a gnulib file
81504         overwrites a non-gnulib file.
81505
81506 2005-08-31  Bruno Haible  <bruno@clisp.org>
81507
81508         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81509         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81510         projects that don't keep autogenerated files in CVS. Put into
81511         actioncmd only the specified modules, not the transitive closure.
81512
81513 2005-08-31  Bruno Haible  <bruno@clisp.org>
81514
81515         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81516         Create directories that shall be filled.
81517         (import): Don't look for gl_* macros in configure.ac. Recurse across
81518         all directories containing a gnulib-cache.m4 files, if meaningful.
81519
81520 2005-08-31  Bruno Haible  <bruno@clisp.org>
81521
81522         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81523         (import): Set seen_libtool when we see gl_LIBTOOL.
81524
81525 2005-08-31  Bruno Haible  <bruno@clisp.org>
81526
81527         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81528         declaration macro definitions from generated gnulib.m4.
81529
81530 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81531
81532         * lib/iconvme.h: Add prototype for iconv_alloc.
81533
81534 2005-08-29  Simon Josefsson  <jas@extundo.com>
81535
81536         * lib/iconvme.c: Fix errno.
81537
81538 2005-08-29  Bruno Haible  <bruno@clisp.org>
81539
81540         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81541         that it works when the directory contains spaces.
81542
81543 2005-08-29  Bruno Haible  <bruno@clisp.org>
81544
81545         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81546
81547 2005-08-29  Bruno Haible  <bruno@clisp.org>
81548
81549         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81550         Emit more advice.
81551
81552 2005-08-29  Bruno Haible  <bruno@clisp.org>
81553         and Stepan Kasal  <kasal@ucw.cz>
81554
81555         * check-module: If more parameters are given, check each of them
81556         separately; add more exceptions, as noted by Jim Meyering.
81557         (check_module): New procedure.
81558         (%exempt_header): Now contains all exceptions.
81559
81560 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81561
81562         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81563
81564 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81565
81566         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81567
81568 2005-08-28  Bruno Haible  <bruno@clisp.org>
81569
81570         * m4/gnulib-tool.m4: New file.
81571
81572 2005-08-27  Jim Meyering  <jim@meyering.net>
81573
81574         * modules/unistd-safer (Files): Add pipe-safer.c.
81575         * modules/fcntl-safer (Files): Add creat-safer.c.
81576
81577 2005-08-27  Jim Meyering  <jim@meyering.net>
81578
81579         * m4/stdlib-safer.m4: New file.  From coreutils.
81580         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81581         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81582         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81583         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81584         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81585
81586 2005-08-27  Jim Meyering  <jim@meyering.net>
81587
81588         * lib/fopen-safer.c: Merge minor changes from coreutils.
81589         * lib/dup-safer.c: Likewise.
81590         * lib/fd-safer.c: Likewise.
81591
81592         Merge from coreutils.
81593         * lib/stdio--.h: New file.
81594         * lib/stdlib--.h: New file.
81595         * lib/mkstemp-safer.c: New file.
81596
81597         GNU tar needs these.
81598         * lib/pipe-safer.c: New file.
81599         * lib/creat-safer.c: New file.
81600         * lib/fcntl--.h (creat): Define to creat_safer.
81601         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81602         * lib/unistd--.h (pipe): Define to pipe_safer.
81603         * lib/unistd-safer.h: Declare pipe_safer.
81604
81605 2005-08-26  Simon Josefsson  <jas@extundo.com>
81606
81607         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81608         Haible <bruno@clisp.org>.
81609
81610 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81611
81612         * lib/regex_internal.h: Remove all references to
81613         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81614         or better.
81615         (bitset_not, bitset_merge, bitset_not_merge):
81616         (bitset_mask, re_string_allocate, re_string_construct):
81617         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81618         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81619         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81620         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81621         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81622         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81623         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81624         (re_acquire_state_context):
81625         Remove unnecessary forward decls.
81626         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81627         Put __attribute at function definition,
81628         now that the function decl has been removed.
81629         * lib/regex_internal.c (re_string_peek_byte_case):
81630         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81631         Likewise.
81632
81633 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81634
81635         * m4/regex.m4: Add AC_PREREQ(2.50).
81636         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81637
81638 2005-08-25  Simon Josefsson  <jas@extundo.com>
81639
81640         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81641         __fsetlocking.
81642
81643 2005-08-25  Simon Josefsson  <jas@extundo.com>
81644
81645         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81646         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81647         GLIBC specific code.
81648
81649 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81650
81651         Make regex safe for g++.  This fixes one real bug (an "err"
81652         that should have been "*err").  g++ problem reported by
81653         Sam Steingold.
81654         * lib/regex_internal.h (re_calloc): New macro, consistent with
81655         re_malloc etc.  All callers of calloc changed to use re_calloc.
81656         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81657         not int.  All callers changed.
81658         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81659         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81660         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81661         (find_recover_state): Change "err" to "*err"; this fixes what
81662         appears to be a real bug.
81663         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81664         versus int.
81665
81666 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * modules/regex (Depends-on): Add malloc, since the code
81669         assumes that !malloc(0) means failure.
81670
81671 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81674
81675         alloca modernization/simplification for regex.
81676         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81677         needs to be at the start of the file, and can be moved into
81678         regex_internal.h and simplified.
81679         * lib/regex_internal.h: Include <alloca.h>.
81680         (__libc_use_alloca) [!defined _LIBC]: New macro.
81681         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81682         now works outside glibc.
81683
81684 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81685
81686         * config/srclist.txt: Add glibc bugs 1241, 1245.
81687
81688 2005-08-25  Jim Meyering  <jim@meyering.net>
81689
81690         * lib/open-safer.c: Include <config.h>.
81691         Otherwise, we'd lose LARGEFILE support in any file using
81692         e.g. "fcntl--.h"
81693
81694 2005-08-25  Bruno Haible  <bruno@clisp.org>
81695
81696         * m4/minmax.m4: Require autoconf 2.52.
81697         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81698         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81699         alternatives of translit over the alphabet.
81700         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81701
81702 2005-08-24  Simon Josefsson  <jas@extundo.com>
81703
81704         * tests/test-getpass.c: New file.
81705
81706 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81707
81708         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81709         for GNU regex features.
81710
81711 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81714         * lib/regex.h (regerror): Likewise.
81715
81716         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81717         requires this.  (The code never needed it.)
81718
81719         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81720         All uses of recently-renamed identifiers changed to use the new,
81721         POSIX-compliant names.  The code will build and run just fine
81722         without these changes, but it's better to eat our own dog food
81723         and use the standard-conforming names.
81724
81725         * lib/regex.h: Fix a multitude of POSIX name space violations.
81726         These changes have an effect only for programs that define
81727         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81728         do not change anything for programs compiled in the normal way.
81729         Also, there is no effect on the ABI.
81730
81731         (_REGEX_SOURCE): New macro.
81732         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81733         defined and _GNU_SOURCE is not; this fixes a name space violation.
81734
81735         Rename the following macros to obey POSIX requirements.
81736         The old names are still visible as macros if _REGEX_SOURCE is defined.
81737         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81738         RE_BACKSLASH_ESCAPE_IN_LISTS.
81739         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81740         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81741         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81742         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81743         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81744         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81745         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81746         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81747         (REG_INTERVALS): renamed from RE_INTERVALS.
81748         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81749         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81750         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81751         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81752         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81753         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81754         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81755         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81756         RE_UNMATCHED_RIGHT_PAREN_ORD.
81757         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81758         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81759         (REG_DEBUG): renamed from RE_DEBUG.
81760         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81761         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81762         unusual, since we can't clash with the POSIX REG_ICASE.
81763         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81764         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81765         (REG_NO_SUB): renamed from RE_NO_SUB.
81766         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81767         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81768         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81769         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81770         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81771         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81772         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81773         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81774         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81775         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81776         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81777         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81778         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81779         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81780         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81781         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81782         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81783         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81784         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81785         (REG_FIXED): Renamed from REGS_FIXED.
81786         (REG_NREGS): Renamed from RE_NREGS.
81787
81788         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81789         of other REG_* macros, since POSIX says the user is allowed to
81790         #undef these macros selectively.
81791
81792         (reg_errcode_t): Update comment stating what other tables need
81793         to be consistent.
81794
81795         Rename the following enum values to obey POSIX requirements.
81796         The old names are still visible as macros.
81797         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81798         is not defined, since GNU is supposed to be a superset of POSIX as
81799         much as possible, and since we want reg_errcode_t to be a signed
81800         type for implementation consistency.
81801         (_REG_NOERROR): Renamed from REG_NOERROR.
81802         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81803         (_REG_BADPAT): Renamed from REG_BADPAT.
81804         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81805         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81806         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81807         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81808         (_REG_EBRACK): Renamed from REG_EBRACK.
81809         (_REG_EPAREN): Renamed from REG_EPAREN.
81810         (_REG_EBRACE): Renamed from REG_EBRACE.
81811         (_REG_BADBR): Renamed from REG_BADBR.
81812         (_REG_ERANGE): Renamed from REG_ERANGE.
81813         (_REG_ESPACE): Renamed from REG_ESPACE.
81814         (_REG_BADRPT): Renamed from REG_BADRPT.
81815         (_REG_EEND): Renamed from REG_EEND.
81816         (_REG_ESIZE): Renamed from REG_ESIZE.
81817         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81818         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81819         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81820         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81821         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81822
81823         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81824         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81825         changed.  But support the old name if the new one is not defined
81826         and if _REGEX_SOURCE.
81827
81828         Change the following member names in struct re_pattern_buffer.
81829         The old names are still supported if !_REGEX_SOURCE.
81830         The new names are always supported, regardless of _REGEX_SOURCE.
81831         (re_buffer): Renamed from buffer.
81832         (re_allocated): Renamed from allocated.
81833         (re_used): Renamed from used.
81834         (re_syntax): Renamed from syntax.
81835         (re_fastmap): Renamed from fastmap.
81836         (re_translate): Renamed from translate.
81837         (re_can_be_null): Renamed from can_be_null.
81838         (re_regs_allocated): Renamed from regs_allocated.
81839         (re_fastmap_accurate): Renamed from fastmap_accurate.
81840         (re_no_sub): Renamed from no_sub.
81841         (re_not_bol): Renamed from not_bol.
81842         (re_not_eol): Renamed from not_eol.
81843         (re_newline_anchor): Renamed from newline_anchor.
81844
81845         Change the following member names in struct re_registers.
81846         The old names are still supported if !_REGEX_SOURCE.
81847         The new names are always supported, regardless of _REGEX_SOURCE.
81848         (rm_num_regs): Renamed from num_regs.
81849         (rm_start): Renamed from start.
81850         (rm_end): Renamed from end.
81851
81852         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81853         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81854         Prepend __ to parameter names.
81855
81856         Undo yesterday's changes.
81857
81858 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81859
81860         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81861         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81862         lib/regex.c.
81863
81864 2005-08-24  Jim Meyering  <jim@meyering.net>
81865
81866         Sync from coreutils.
81867         * m4/fcntl-safer.m4: New file.
81868
81869         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81870         and object files for this module.
81871
81872 2005-08-24  Jim Meyering  <jim@meyering.net>
81873
81874         Sync from coreutils.
81875         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81876
81877 2005-08-24  Jim Meyering  <jim@meyering.net>
81878
81879         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81880         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81881
81882 2005-08-24  Jim Meyering  <jim@meyering.net>
81883
81884         * modules/fcntl-safer: New module.
81885         * modules/fts (Depends-on): Add fcntl-safer.
81886         * MODULES.html.sh (File descriptor based Input/Output):
81887         Add fcntl-safer.
81888
81889 2005-08-24  Bruno Haible  <bruno@clisp.org>
81890
81891         Support for unit test modules.
81892         * modules/README: Mention tests modules.
81893         * modules/TEMPLATE-TESTS: New file.
81894         * gnulib-tool: New options --extract-tests-module, --with-tests and
81895         --tests-base (unused for the moment).
81896         (testsbase, inctests): New variables.
81897         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81898         (func_verify_module): Exclude TEMPLATE-TESTS.
81899         (func_verify_nontests_module, func_verify_tests_module): New functions.
81900         (func_get_dependencies): Add implicit dependency for tests modules.
81901         (func_get_tests_module): New function.
81902         (func_modules_transitive_closure): When --with-tests was specified,
81903         include the unit tests as well, unless explicitly avoided.
81904         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81905         (func_emit_tests_Makefile_am): New function.
81906         (func_create_testdir): When --with-tests was specified, emit a
81907         tests/ directory.
81908         * MODULES.html.sh (Future developments): Update.
81909
81910 2005-08-24  Bruno Haible  <bruno@clisp.org>
81911
81912         * modules/tls-tests: New file.
81913         * tests/test-tls.c: New file, from GNU gettext.
81914
81915 2005-08-24  Bruno Haible  <bruno@clisp.org>
81916
81917         * modules/lock-tests: New file.
81918         * tests/test-lock.c: New file, from GNU gettext.
81919
81920 2005-08-24  Bruno Haible  <bruno@clisp.org>
81921
81922         * lib/lock.h: Add multiple inclusion guard.
81923         * lib/tls.h: Add multiple inclusion guard.
81924
81925 2005-08-24  Bruno Haible  <bruno@clisp.org>
81926
81927         * gnulib-tool: Add support for the --aux-dir option to
81928         --create-testdir, --create-megatestdir, --test, --megatest.
81929         (func_create_testdir, func_create_megatestdir): Optionally emit a
81930         AC_CONFIG_AUX_DIR directive.
81931         (create-testdir, create-megatestdir, test, megatest): Provide a
81932         default value for $auxdir.
81933
81934 2005-08-24  Bruno Haible  <bruno@clisp.org>
81935
81936         * gnulib-tool (import): Use compound statement instead of subshell
81937         where possible.
81938
81939 2005-08-24  Bruno Haible  <bruno@clisp.org>
81940
81941         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81942
81943 2005-08-24  Bruno Haible  <bruno@clisp.org>
81944
81945         * gnulib-tool (func_version): Update.
81946
81947 2005-08-24  Bruno Haible  <bruno@clisp.org>
81948
81949         * gnulib-tool (func_import, func_create_testdir,
81950         func_create_megatestdir): Quote all autoconf macro arguments.
81951
81952 2005-08-24  Bruno Haible  <bruno@clisp.org>
81953
81954         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81955         option --force, because --force causes the aclocal.m4 of each
81956         subdirectory to be newer than the corresponding config.h.in.
81957
81958 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81961         All contents moved to gl_REGEX.
81962         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81963         assume that it does.
81964
81965 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * lib/regex.h (REG_NOSYS)
81968         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81969         Define, since POSIX requires it as of 2001.
81970         (_REG_ENOSYS)
81971         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81972         New private symbol, used to keep the enum signed in all cases.
81973         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81974         Youngman in
81975         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81976
81977         * lib/regex_internal.c (re_string_skip_chars, register_state):
81978         (calc_state_hash):
81979         Remove forward decls; no longer needed now that we use prototypes.
81980         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81981         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81982         (clean_state_log_if_needed): Likewise.
81983
81984 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * config/srclist.txt: Add glibc bugs 1231-1233.
81987
81988 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         Fix problems reported by Sam Steingold in
81991         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81992         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81993         assumed that reg_errcode_t is a signed type, which is not
81994         necessarily true if _XOPEN_SOURCE is not defined.
81995         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81996         since some compilers warn about it otherwise.
81997
81998 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82001         (init_word_char, create_initial_state, duplicate_node_closure):
82002         (fetch_token, peek_token_bracket, build_range_exp):
82003         (build_collating_symbol): Remove forward decls; no longer needed
82004         now that we use prototypes.
82005
82006         * lib/regcomp.c:
82007         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82008         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82009         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82010         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82011         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82012         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82013         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82014         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82015         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82016         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82017         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82018         (build_charclass, build_charclass_op, fetch_number, create_tree):
82019         (create_token_tree, mark_opt_subexp, duplicate_tree):
82020         Use prototypes rather than old-style definitions.
82021
82022         * lib/regex_internal.c:
82023         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82024         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82025         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82026         (re_string_reconstruct, re_string_peek_byte_case):
82027         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82028         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82029         (re_node_set_init_copy, re_node_set_add_intersect):
82030         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82031         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82032         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82033         (re_acquire_state, re_acquire_state_context, register_state):
82034         (create_ci_newstate, create_cd_newstate, free_state):
82035         Likewise.
82036         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82037         re_search_2):
82038         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82039         (re_search_internal, prune_impossible_nodes):
82040         (acquire_init_state_context, check_matching, static):
82041         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82042         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82043         (update_regs, sift_states_backward, build_sifted_states):
82044         (clean_state_log_if_needed, merge_state_array):
82045         (update_cur_sifted_state, add_epsilon_src_nodes):
82046         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82047         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82048         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82049         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82050         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82051         (check_arrival, check_arrival_add_next_nodes):
82052         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82053         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82054         (check_node_accept_bytes, check_node_accept, extend_buffers):
82055         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82056         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82057         (sift_ctx_init):
82058         Likewise.
82059
82060         * lib/regex_internal.h:
82061         (re_string_allocate, re_string_construct, re_string_reconstruct):
82062         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82063         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82064         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82065         (re_string_context_at, re_string_peek_byte_case):
82066         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82067         is defined, since we now use prototypes always.
82068
82069         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82070         C89 or better.  All uses removed.
82071
82072 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82073
82074         * config/srclist.txt: Add glibc bugs 1220-1227.
82075
82076 2005-08-20  Jim Meyering  <jim@meyering.net>
82077
82078         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82079         of unused local, dfa.
82080
82081 2005-08-20  Bruno Haible  <bruno@clisp.org>
82082
82083         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82084
82085 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82088         (re_node_set_insert_last, re_dfa_add_node):
82089         Rename local variables to avoid GCC shadowing warnings.
82090
82091 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82092
82093         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82094         [defined lint]: Suppress bogus uninitialized-variable warnings.
82095
82096         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82097         and let the caller return REG_ESPACE if out of space.  This
82098         removes an uninitialied-variable warning with GCC 4.0.1, and also
82099         avoids taking the address of a local variable.  All callers
82100         changed.
82101
82102 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82103
82104         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82105         $LIBCSRC/posix/regexec.c.
82106         Add glibc bug 1217 for regcomp.c.
82107
82108 2005-08-19  Jim Meyering  <jim@meyering.net>
82109
82110         * lib/regexec.c (proceed_next_node): Redo local variables to
82111         avoid GCC shadowing warnings.
82112
82113 2005-08-18  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/strstr.c (strstr): Fix return value in multibyte case.
82116         * lib/strcasestr.c (strcasestr): Likewise.
82117
82118 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82119
82120         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82121
82122 2005-08-17  Jim Meyering  <jim@meyering.net>
82123
82124         Make the %s format (seconds since the epoch) work for a negative
82125         number and when used with a zero-padded field width, e.g. %015s.
82126
82127         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82128         label so that it precedes the code to set `digits'.  Otherwise,
82129         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82130         print `00-22'.  Now, it prints `-0022', as it should.
82131
82132 2005-08-17  Bruno Haible  <bruno@clisp.org>
82133
82134         * modules/strstr (Files): Add m4/mbrtowc.m4.
82135         (Depends-on): Add mbuiter.
82136
82137 2005-08-17  Bruno Haible  <bruno@clisp.org>
82138
82139         * modules/strcasestr: New file.
82140         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82141         strcasestr.
82142
82143 2005-08-17  Bruno Haible  <bruno@clisp.org>
82144
82145         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82146
82147 2005-08-17  Bruno Haible  <bruno@clisp.org>
82148
82149         * modules/mbuiter: New file.
82150         * MODULES.html.sh (Extended multibyte and wide character utilities):
82151         Add mbuiter.
82152
82153 2005-08-17  Bruno Haible  <bruno@clisp.org>
82154
82155         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82156         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82157
82158 2005-08-17  Bruno Haible  <bruno@clisp.org>
82159
82160         * m4/strcasestr.m4: New file.
82161
82162 2005-08-17  Bruno Haible  <bruno@clisp.org>
82163
82164         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82165         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82166
82167 2005-08-17  Bruno Haible  <bruno@clisp.org>
82168
82169         * lib/strcasestr.h: New file.
82170         * lib/strcasestr.c: New file.
82171
82172 2005-08-17  Bruno Haible  <bruno@clisp.org>
82173
82174         * lib/strcasecmp.c: Use mbuiter.h.
82175
82176 2005-08-17  Bruno Haible  <bruno@clisp.org>
82177
82178         * lib/mbuiter.h: New file.
82179
82180 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82183         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82184         and gl_GETOPT are both invoked via different paths (as happens
82185         with GNU tar CVS because it uses both argp and getopt), the former
82186         wins.
82187
82188 2005-08-16  Bruno Haible  <bruno@clisp.org>
82189
82190         * modules/tls: New file.
82191         * MODULES.html.sh (Multithreading): Add tls.
82192
82193 2005-08-16  Bruno Haible  <bruno@clisp.org>
82194
82195         * modules/strnlen1: New file.
82196         * MODULES.html.sh (String handling): Add strnlen1.
82197
82198 2005-08-16  Bruno Haible  <bruno@clisp.org>
82199
82200         * modules/strcase (Files): Add m4/mbrtowc.m4.
82201         (Depends-on): Add strnlen1, mbchar.
82202
82203 2005-08-16  Bruno Haible  <bruno@clisp.org>
82204
82205         * modules/mbiter: New file.
82206         * MODULES.html.sh (Extended multibyte and wide character utilities):
82207         Add mbiter.
82208
82209 2005-08-16  Bruno Haible  <bruno@clisp.org>
82210
82211         * modules/mbfile: New file.
82212         * MODULES.html.sh (Extended multibyte and wide character utilities):
82213         Add mbfile.
82214
82215 2005-08-16  Bruno Haible  <bruno@clisp.org>
82216
82217         * modules/mbchar: New file.
82218         * MODULES.html.sh (Extended multibyte and wide character utilities):
82219         New section.
82220
82221 2005-08-16  Bruno Haible  <bruno@clisp.org>
82222
82223         * m4/tls.m4: New file, from GNU gettext.
82224
82225 2005-08-16  Bruno Haible  <bruno@clisp.org>
82226
82227         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82228         always.
82229         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82230
82231 2005-08-16  Bruno Haible  <bruno@clisp.org>
82232
82233         * m4/mbiter.m4: New file.
82234
82235 2005-08-16  Bruno Haible  <bruno@clisp.org>
82236
82237         * m4/mbfile.m4: New file.
82238
82239 2005-08-16  Bruno Haible  <bruno@clisp.org>
82240
82241         * m4/mbchar.m4: New file.
82242
82243 2005-08-16  Bruno Haible  <bruno@clisp.org>
82244
82245         * lib/tls.h: New file, from GNU gettext.
82246         * lib/tls.c: New file, from GNU gettext.
82247
82248 2005-08-16  Bruno Haible  <bruno@clisp.org>
82249
82250         * lib/strnlen1.h: New file.
82251         * lib/strnlen1.c: New file.
82252
82253 2005-08-16  Bruno Haible  <bruno@clisp.org>
82254
82255         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82256         (mbi_init): Update.
82257         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82258         NUL byte, not after it.
82259
82260 2005-08-16  Bruno Haible  <bruno@clisp.org>
82261
82262         * lib/strcase.h (strcasecmp): Add note in comments.
82263         * lib/strncasecmp.c: Use code from strcasecmp.c.
82264         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82265         (strcasecmp): Work correctly in multibyte locales.
82266
82267 2005-08-16  Bruno Haible  <bruno@clisp.org>
82268
82269         * lib/mbiter.h: New file.
82270
82271 2005-08-16  Bruno Haible  <bruno@clisp.org>
82272
82273         * lib/mbfile.h: New file.
82274
82275 2005-08-16  Bruno Haible  <bruno@clisp.org>
82276
82277         * lib/mbchar.h: New file.
82278         * lib/mbchar.c: New file.
82279
82280 2005-08-16  Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82283         the valid ones. Makes the comparison operations transitive:
82284         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82285         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82286
82287 2005-08-15  Simon Josefsson  <jas@extundo.com>
82288
82289         * modules/ssize_t (License): Change to 'unlimited'.
82290
82291         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82292
82293 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82296         Add comments for each pending glibc patch.
82297
82298 2005-08-15  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82301         __cplusplus is defined.
82302
82303 2005-08-14  Jim Meyering  <jim@meyering.net>
82304
82305         Sync from coreutils.
82306
82307         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82308         Use the hash-table-based cycle-detection code not just when
82309         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82310         Reported by James Youngman in
82311         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82312         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82313         FTS_TIGHT_CYCLE_CHECK.
82314         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82315         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82316         once again.
82317         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82318         * lib/fts.c (fd_safer): Remove decl.
82319         Include fcntl--.h rather than unistd-safer.h
82320         (fts_safe_changedir): Don't call fd_safer; no longer needed
82321         now that we include fcntl--.h.
82322
82323 2005-08-12  Simon Josefsson  <jas@extundo.com>
82324
82325         * modules/getndelim2: Use ssize_t module.
82326         * modules/getnline: Likewise.
82327         * modules/safe-read: Likewise.
82328         * modules/xreadlink: Likewise.
82329
82330         * modules/ssize_t: New file.
82331
82332 2005-08-12  Simon Josefsson  <jas@extundo.com>
82333
82334         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82335
82336 2005-08-12  Simon Josefsson  <jas@extundo.com>
82337
82338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82339         ssize_t.
82340
82341 2005-08-12  Simon Josefsson  <jas@extundo.com>
82342
82343         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82344         readline, getdelim and check_version.
82345         (Support for systems lacking ISO C 99: Sizes of integer types):
82346         Add size_max.
82347
82348 2005-08-12  Bruno Haible  <bruno@clisp.org>
82349
82350         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82351
82352 2005-08-11  Simon Josefsson  <jas@extundo.com>
82353
82354         * modules/readline: New file.
82355
82356         * modules/strnlen (Files): Add strnlen.h.
82357
82358 2005-08-11  Simon Josefsson  <jas@extundo.com>
82359
82360         * m4/readline.m4: New file.
82361
82362 2005-08-11  Simon Josefsson  <jas@extundo.com>
82363
82364         * lib/readline.h, readline.c: New file.
82365
82366 2005-08-11  Simon Josefsson  <jas@extundo.com>
82367
82368         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82369         gl_AVOID.
82370
82371 2005-08-11  Bruno Haible  <bruno@clisp.org>
82372
82373         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82374
82375 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82376
82377         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82378
82379 2005-08-10  Simon Josefsson  <jas@extundo.com>
82380
82381         * tests/test-iconvme.c: New file.
82382
82383 2005-08-10  Simon Josefsson  <jas@extundo.com>
82384
82385         * m4/strnlen.m4: New file.
82386
82387         * m4/strndup.m4: Don't check for strnlen declaration, done in
82388         strnlen.m4.
82389
82390 2005-08-10  Simon Josefsson  <jas@extundo.com>
82391
82392         * lib/strndup.c: Use strnlen.h.
82393
82394         * lib/strnlen.h: New file.
82395
82396 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82397
82398         * README: Typos.
82399
82400 2005-08-02  Simon Josefsson  <jas@extundo.com>
82401
82402         * modules/readline: New file.
82403
82404 2005-08-02  Simon Josefsson  <jas@extundo.com>
82405
82406         * modules/getdelim: New file.
82407
82408         * modules/getline: Rewrite, don't use getndelim2.
82409
82410 2005-08-02  Simon Josefsson  <jas@extundo.com>
82411
82412         * m4/getline.m4: Separate out getdelim stuff into separate module.
82413
82414         * m4/getdelim.m4: New file.
82415
82416 2005-08-02  Simon Josefsson  <jas@extundo.com>
82417
82418         * lib/getline.h, getline.c: Rewrite.
82419
82420         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82421
82422 2005-07-31  Bruno Haible  <bruno@clisp.org>
82423
82424         * lib/lock.h (gl_lock_initializer): New macro.
82425         (gl_lock_define_initialized): Use it.
82426         (gl_rwlock_initializer): New macro.
82427         (gl_rwlock_define_initialized): Use it.
82428         (gl_recursive_lock_initializer): New macro.
82429         (gl_recursive_lock_define_initialized): Use it.
82430
82431 2005-07-30  Karl Berry  <karl@gnu.org>
82432
82433         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82434         Report from Ben Pfaff, regarding getopt.
82435
82436 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82437
82438         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82439         normal way.
82440         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82441         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82442         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82443         (gl_GETOPT): Use the new macros.  Most of the implementation
82444         is moved to the new macros.  This is for programs like Emacs
82445         that don't want all the functionality of gl_GETOPT.
82446
82447 2005-07-26  Bruno Haible  <bruno@clisp.org>
82448
82449         * m4/lock.m4: Update from GNU gettext.
82450
82451 2005-07-26  Bruno Haible  <bruno@clisp.org>
82452
82453         * lib/lock.h: Update from GNU gettext.
82454         * lib/lock.c: Update from GNU gettext.
82455
82456 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82459         obsolescent AC_TRY_RUN.  Include the default includes files, for
82460         'exit'.
82461
82462 2005-07-24  Bruno Haible  <bruno@clisp.org>
82463
82464         * modules/visibility: New file.
82465         * MODULES.html.sh (Misc): Add visibility.
82466
82467 2005-07-24  Bruno Haible  <bruno@clisp.org>
82468
82469         * m4/visibility.m4: New file.
82470
82471 2005-07-24  Bruno Haible  <bruno@clisp.org>
82472
82473         * doc/visibility.texi: New file.
82474
82475 2005-07-22  Bruno Haible  <bruno@clisp.org>
82476
82477         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82478         $(ALLOCA_H), redundant through BUILT_SOURCES.
82479         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82480         redundant through BUILT_SOURCES.
82481         * modules/byteswap (Makefile.am): Remove explicit dependency on
82482         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82483         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82484         $(FNMATCH_H), redundant through BUILT_SOURCES.
82485         * modules/getopt (Makefile.am): Remove explicit dependency on
82486         $(GETOPT_H), redundant through BUILT_SOURCES.
82487         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82488         redundant through BUILT_SOURCES.
82489         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82490         redundant through BUILT_SOURCES.
82491         * modules/stdbool (Makefile.am): Remove explicit dependency on
82492         $(STDBOOL_H), redundant through BUILT_SOURCES.
82493         * modules/stdint (Makefile.am): Remove explicit dependency on
82494         $(STDINT_H), redundant through BUILT_SOURCES.
82495         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82496         Remove explicit dependency on $(SYSEXITS_H).
82497         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82498
82499 2005-07-18  Simon Josefsson  <jas@extundo.com>
82500
82501         * lib/check-version.c (check_version): Accept identical versions too.
82502
82503 2005-07-18  Bruno Haible  <bruno@clisp.org>
82504
82505         * modules/lock: New file.
82506         * MODULES.html.sh (Multithreading): New section.
82507
82508 2005-07-18  Bruno Haible  <bruno@clisp.org>
82509
82510         * m4/lock.m4: New file, from GNU gettext.
82511
82512 2005-07-18  Bruno Haible  <bruno@clisp.org>
82513
82514         * lib/lock.h: New file, from GNU gettext.
82515         * lib/lock.c: New file, from GNU gettext.
82516
82517 2005-07-18  Bruno Haible  <bruno@clisp.org>
82518
82519         * lib/lock.h (gl_once_t): New type.
82520         (gl_once_define, gl_once): New macros.
82521         * lib/lock.c (fresh_once): New variable.
82522         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82523         functions.
82524
82525 2005-07-16  Simon Josefsson  <jas@extundo.com>
82526
82527         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82528         workaround, suggested by Bruno.
82529
82530 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82531
82532         * modules/xalloc (Depends-on): Add xalloc-die.
82533         * modules/xvasprintf (Depends-on): Add xalloc-die.
82534
82535 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82536
82537         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82538         with a minor change.
82539
82540 2005-07-15  Bruno Haible  <bruno@clisp.org>
82541
82542         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82543         When using lib/poll.c, define poll as rpl_poll.
82544
82545 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         * modules/argp (Depends-on): Remove unlocked-io.
82548
82549 2005-07-14  Derek Price  <derek@ximbiot.com>
82550
82551         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82552         for glob symlink bug.
82553
82554 2005-07-14  Bruno Haible  <bruno@clisp.org>
82555
82556         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82557         Instead, test for *_unlocked function declarations directly.
82558
82559 2005-07-11  Simon Josefsson  <jas@extundo.com>
82560
82561         * modules/size_max: New file.
82562
82563         * modules/xsize: Depend on size_max module for size_max.m4.
82564
82565 2005-07-11  Simon Josefsson  <jas@extundo.com>
82566
82567         * lib/size_max.h: New file.
82568
82569 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82570
82571         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82572         copyright symbol and the year.
82573         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82574         (version_etc_va): Use parameterized copyright notice.
82575         Reword to conform to the current GNU coding standards.
82576
82577 2005-07-11  Karl Berry  <karl@gnu.org>
82578
82579         * doc/gnulib.texi (Quoting): new node.
82580         (Initial import): more info, from Patrice.
82581
82582 2005-07-11  Bruno Haible  <bruno@clisp.org>
82583
82584         * gnulib-tool (func_usage): Document option --avoid.
82585         (Command line options): Handle --avoid.
82586         (func_acceptable): New function.
82587         (func_modules_transitive_closure): Use it.
82588
82589 2005-07-11  Bruno Haible  <bruno@clisp.org>
82590
82591         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82592         Reported by Jim Meyering.
82593
82594 2005-07-10  Bruno Haible  <bruno@clisp.org>
82595
82596         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82597         Needed when size_t is smaller than 'unsigned int'.
82598         Reported by Paul Eggert.
82599
82600 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82601
82602         * modules/argp (Depends-on): Add unlocked-io
82603
82604 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82605
82606         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82607         block of defines.
82608
82609 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82612         fix now.
82613
82614 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82615         and Paul Eggert  <eggert@cs.ucla.edu>
82616
82617         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82618         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82619
82620 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * modules/regex (Files): Add lib/regex_internal.c,
82623         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82624         (Depends-on): Add extensions.
82625         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82626
82627 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82628
82629         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82630         pathconf.
82631         * m4/same.m4 (gl_SAME): Likewise.
82632         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82633
82634         * m4/regex.m4: Adjust to new libc regex implementation.
82635         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82636         all the .c and .h parts of (the new) regex.
82637         Quote the m4 stuff better.
82638         Check for RE_ICASE bug of old gnulib.
82639         Check for REG_STARTEND of recent libc.
82640         Rename local variables from jm_* to gl_*.
82641         Quote operand of "test -f".
82642         Say "recent enough" version of libc, not "version 2".
82643         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82644         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82645         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82646         Remove check for btowc, isascii.
82647         Require AM_LANGINFO_CODESET.
82648
82649 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82650
82651         * lib/regex.c, regex.h: Sync from libc.
82652         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82653         * lib/regexec.c:
82654         New files, synced from libc, except that regex_internal.h
82655         currently has a small porting fix.
82656
82657 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82658
82659         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82660         regex_internal.c, regexec.c.
82661         Add regex_internal.h too, but as a comment, since the libc version
82662         is currently broken in gnulib mode.
82663
82664 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         Support programs like Emacs that use gnulib but not gettext.
82667         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82668         * modules/gettext-h: New file.
82669         * modules/gettext (Files): Remove lib/gettext.h.
82670         (Depends-on): Add gettext-h.
82671         (Makefile.am): Remove lib_SOURCES.
82672         * modules/argmatch, modules/c-stack, modules/closeout:
82673         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82674         * modules/execute, modules/file-type, modules/getaddrinfo:
82675         * modules/getopt, modules/human, modules/javacomp:
82676         * modules/javaexec, modules/mkdir-p, modules/obstack:
82677         * modules/openat, modules/pagealign_alloc, modules/pipe:
82678         * modules/quotearg, modules/regex, modules/rpmatch:
82679         * modules/unicodeio, modules/userspec, modules/version-etc:
82680         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82681         * modules/xsetenv:
82682         Depend on gettext-h, not gettext.
82683
82684 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82685
82686         * gnulib-tool (func_import): Add support for 'public domain' license.
82687         * modules/alloca, modules/atexit, modules/memmove:
82688         Now public domain, not GPL.
82689         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82690         * modules/realloc, modules/strerror, modules/strtod:
82691         Now LGPL, not GPL.
82692
82693 2005-07-05  Bruno Haible  <bruno@clisp.org>
82694
82695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82696         autoconf CVS. Needed for mingw.
82697
82698 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         Remove the dependency of the strftime module on the tzset module.
82701         * modules/strftime (Depends-on): Remove dependency on tzset.
82702
82703 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         Remove the dependency of the strftime module on the tzset module.
82706         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82707         gl_FUNC_TZSET_CLOBBER.
82708
82709 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         Remove the dependency of the strftime module on the tzset module.
82712         * lib/strftime.c (my_strftime)
82713         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82714         Copy the input structure, to work around some of the bug with
82715         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82716         Solaris releases, you should also use the tzset module, but we won't
82717         require it as a dependency any more since we don't want LGPLed code
82718         to depend on GPLed code.
82719
82720 2005-07-02  Jim Meyering  <jim@meyering.net>
82721
82722         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82723         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82724         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82725         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82726
82727 2005-07-02  Jim Meyering  <jim@meyering.net>
82728
82729         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82730
82731 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82734         declares only 'struct timespec;' (!).
82735
82736 2005-07-01  Jim Meyering  <jim@meyering.net>
82737
82738         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82739         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82740         * lib/save-cwd.c, tempname.c:
82741         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82742         and don't include <sys/file.h>).
82743
82744 2005-06-29  Jim Meyering  <jim@meyering.net>
82745
82746         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82747         type name.  Use the variable name instead.
82748         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82749         Likewise.
82750
82751 2005-06-28  Simon Josefsson  <jas@extundo.com>
82752
82753         * modules/check-version (Files): Add check-version.m4.
82754
82755 2005-06-28  Simon Josefsson  <jas@extundo.com>
82756
82757         * m4/check-version.m4: New file, suggested by Jim Meyering
82758         <jim@meyering.net>.
82759
82760 2005-06-28  Simon Josefsson  <jas@extundo.com>
82761
82762         * lib/check-version.h, lib/check-version.c: New files.
82763
82764 2005-06-28  Simon Josefsson  <jas@extundo.com>
82765
82766         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82767         collision with global variable.  Better indentation.  Don't
82768         increment buffer pointer beyond buffer end.  Based on comments
82769         from Paul Eggert <eggert@cs.ucla.edu>.
82770
82771         * lib/base64.h: Indent.
82772
82773 2005-06-28  Simon Josefsson  <jas@extundo.com>
82774
82775         * doc/gnulib.texi (Library version handling): New section.
82776
82777 2005-06-28  Jim Meyering  <jim@meyering.net>
82778
82779         * check-module (find_included_lib_files): Hard-code another
82780         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82781         but modules/fts-lgpl (correctly) does not list those files.
82782
82783         * modules/canonicalize (Files): Add lib/pathmax.h.
82784
82785 2005-06-25  Simon Josefsson  <jas@extundo.com>
82786
82787         * modules/check-version: New file.
82788
82789 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82792         initializer of struct addrinfo, as an indication that we don't
82793         care how many members the structure has.
82794
82795 2005-06-24  Derek Price  <derek@ximbiot.com>
82796         and Bruno Haible  <bruno@clisp.org>
82797
82798         Remove stat module & update lstat.
82799         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82800         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82801         * m4/stat.m4: Remove this file.
82802
82803 2005-06-24  Derek Price  <derek@ximbiot.com>
82804         and Bruno Haible  <bruno@clisp.org>
82805
82806         Remove stat module & update lstat.
82807         * lib/stat.c: Remove this file...
82808         (slash_aware_lstat): ...moving this content and its support...
82809         * lib/lstat.c (rpl_lstat): ...into here.
82810         * lib/lstat.h: New file.
82811
82812 2005-06-24  Derek Price  <derek@ximbiot.com>
82813         and Bruno Haible  <bruno@clisp.org>
82814
82815         Remove stat module & update lstat.
82816         * config/srclist.txt (libc sources): Remove stat.
82817
82818 2005-06-24  Derek Price  <derek@ximbiot.com>
82819         and Bruno Haible  <bruno@clisp.org>
82820
82821         Remove stat module & update lstat.
82822         * MODULES.html.sh (stat): Remove.
82823         * MODULES.html: Regenerated.
82824         * modules/lstat (Description): Correct function name.
82825         (Files): Add "lstat.h".
82826         (Depends-on): Remove stat, add xalloc, stat-macros.
82827         * modules/stat: Remove this file.
82828         (Include): Add "lstat.h", remove <sys/stat.h>.
82829
82830 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82833         (ranged_convert): Don't save conversion in a temporary struct.
82834         This causes a warning with GCC 4.0.0, and anyway in the typical
82835         case it's not worth the extra 100 bytes or so of code.
82836         (ranged_convert, __mktime_internal): When calling a function via a
82837         pointer P, use P () rather than (*P) (), as we now assume C89 or
82838         better.
82839
82840 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82843         "who -r" failed to give output.  Problem reported by Tim Waugh.
82844
82845         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82846         (xcalloc): Use it to avoid needless tests.
82847         Problem reported by Jim Meyering.
82848
82849 2005-06-20  Derek Price  <derek@ximbiot.com>
82850
82851         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82852         unnecessary for Autoconfs > 2.59c.
82853
82854 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82855
82856         * lib/argp.h (__option_is_short): Check upper limit of
82857         __key. Isprint() requires its argument to have the value
82858         of an unsigned char or EOF.
82859
82860 2005-06-16  Jim Meyering  <jim@meyering.net>
82861
82862         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82863         when either N or S is zero.
82864
82865 2005-06-16  Derek Price  <derek@ximbiot.com>
82866
82867         * m4/bison.m4: Declare YACC & YFLAGS precious.
82868
82869 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82870
82871         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82872         multibyte string or pattern, fall back on unibyte matching.
82873         Problem reported by James Youngman.
82874
82875 2005-06-08  Bruno Haible  <bruno@clisp.org>
82876
82877         * modules/csharpcomp: New file.
82878         * MODULES.html.sh (C#): Add csharpcomp.
82879
82880 2005-06-08  Bruno Haible  <bruno@clisp.org>
82881
82882         * m4/csharpcomp.m4: New file, from GNU gettext.
82883
82884 2005-06-08  Bruno Haible  <bruno@clisp.org>
82885
82886         * lib/csharpcomp.h: New file, from GNU gettext.
82887         * lib/csharpcomp.c: New file, from GNU gettext.
82888         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82889
82890 2005-06-08  Bruno Haible  <bruno@clisp.org>
82891
82892         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82893         warning on mingw.
82894
82895 2005-06-07  Derek Price  <derek@ximbiot.com>
82896
82897         Sync from CVS.
82898         * lib/glob_.h: Indent nested #ifdef.
82899
82900 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82901
82902         Sync from coreutils.
82903         Use "file name" when talking about file names, instead of "filename"
82904         or "path", as per the GNU coding standards.
82905         * lib/mkdir-p.c: Renamed from makepath.c.
82906         (make_dir_parents): Renamed from make_path.  All callers changed.
82907         * lib/mkdir-p.h: Likewise.  All includers changed.
82908         * lib/filenamecat.c: Renamed from path-concat.c.
82909         (file_name_concat): Renamed from path_concat.  All callers changed.
82910         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82911         * lib/filenamecat.h: Likewise.  All includers changed.
82912         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82913         in comments or local variable names.
82914         * lib/basename.c: Likewise.
82915         * lib/canonicalize.c, canonicalize.h: Likewise.
82916         * lib/dirname.c, dirname.h: Likewise.
82917         * lib/euidaccess.c: Likewise.
82918         * lib/exclude.c: Likewise
82919         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82920         * lib/fsusage.c, fsuage.h: Likewise.
82921         * lib/fts.c, fts_.h: Likewise.
82922         * lib/getcwd.c: Likewise.
82923         * lib/getloadavg.c: Likewise.
82924         * lib/mkstemp.c: Likewise.
82925         * lib/mountlist.c, mountlist.h: Likewise.
82926         * lib/openat.c, openat.h: Likewise.
82927         * lib/readlink-stub.c: Likewise.
82928         * lib/readutmp.c, readutmp.h: Likewise.
82929         * lib/rename.c: Likewise.
82930         * lib/rmdir.c: Likewise.
82931         * lib/same.c: Likewise.
82932         * lib/savedir.c: Likewise.
82933         * lib/stripslash.c: Likewise.
82934         * lib/tempname.c: Likewise.
82935         * lib/xreadlink.c: Likewise.
82936         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82937         All uses changed.
82938         * lib/exclude.h: Likewise.
82939
82940         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82941         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82942         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82943         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82944         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82945         files have been getting away with it for years (MORE/BSD 4.3
82946         is extinct now).
82947         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82948         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82949
82950         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82951         Define to 256, not 255, as per modern POSIX.
82952
82953 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82954
82955         Sync from coreutils.
82956         Use "file name" when talking about file names, instead of "filename"
82957         or "path", as per the GNU coding standards.
82958         * MODULES.html.sh: mkdir-p renamed from makepath.
82959         filenamecat renamed from path-concat.
82960         * modules/filenamecat: Renamed from modules/path-concat.
82961         (Files): filenamecat.h and filenamecat.c renamed from
82962         path-concat.h and path-concat.c.
82963         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82964         (Include): filenamecat.h, not path-concat.h.
82965         * modules/mkdir-p: Renamed from modules/makepath.
82966         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82967         makepath.c.
82968         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82969         (Include): mkdir-p.h, not makepath.h.
82970
82971 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         Sync from coreutils.
82974         * m4/mkdir-p.m4: Renamed from makepath.m4.
82975         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82976         Rename files from makepath.c to mkdir-p.c, and from
82977         makepath.h to mkdir-p.h.
82978         * m4/filenamecat.m4: Renamed from path-concat.m4.
82979         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82980         Rename files from path-concat.c to filenamecat.c,
82981         and from path-concat.h to filenamecat.h.
82982         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82983         "file name" in local variables or comments.
82984         * m4/rename.m4: Likewise.
82985
82986 2005-06-01  Bruno Haible  <bruno@clisp.org>
82987
82988         * modules/csharpexec: New file.
82989         * MODULES.html.sh (C#): New section.
82990
82991 2005-06-01  Bruno Haible  <bruno@clisp.org>
82992
82993         * m4/csharp.m4: New file, from GNU gettext.
82994         * m4/csharpexec.m4: New file, from GNU gettext.
82995
82996 2005-06-01  Bruno Haible  <bruno@clisp.org>
82997
82998         * lib/csharpexec.h: New file, from GNU gettext.
82999         * lib/csharpexec.c: New file, from GNU gettext.
83000         * lib/csharpexec.sh.in: New file, from GNU gettext.
83001
83002 2005-05-31  Derek Price  <derek@ximbiot.com>
83003             Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         Sync from cvs.
83006         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83007
83008 2005-05-31  Derek Price  <derek@ximbiot.com>
83009             Paul Eggert  <eggert@cs.ucla.edu>
83010
83011         Sync from cvs.
83012         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83013
83014 2005-05-29  Derek Price  <derek@ximbiot.com>
83015
83016         * config/srclist.txt (glob_.h, glob.c): Add these files.
83017
83018 2005-05-29  Derek Price  <derek@ximbiot.com>
83019
83020         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83021         * modules/glob: New file.
83022         * modules/getlogin_r: Add link to POSIX spec in description.
83023
83024 2005-05-29  Derek Price  <derek@ximbiot.com>
83025             Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * m4/glob.m4: New file.
83028
83029 2005-05-29  Derek Price  <derek@ximbiot.com>
83030             Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/glob_.h, lib/glob.c: New files.
83033
83034 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83035
83036         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83037         * modules/fts-lgpl (Depends-on): Remove gettext.
83038
83039 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83042         and don't require gt_INTTYPES_PRI.
83043
83044 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83047
83048         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83049         the configuration hassle isn't worth it.
83050         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83051         (LONGEST_MODIFIER, PRIuMAX): Remove.
83052
83053 2005-05-27  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83056
83057 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83060         _POSIX_PTHREAD_SEMANTICS for Solaris.
83061
83062 2005-05-25  Derek Price  <derek@ximbiot.com>
83063
83064         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83065
83066 2005-05-25  Derek Price  <derek@ximbiot.com>
83067             Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83070         * lib/getlogin_r.c, getlogin_r.h: New files.
83071
83072 2005-05-25  Bruno Haible  <bruno@clisp.org>
83073             Derek Price  <derek@ximbiot.com>
83074
83075         * lib/getlogin_r.h: Simplify API documentation.
83076
83077 2005-05-23  Derek Price  <derek@ximbiot.com>
83078
83079         * modules/minmax (Files): Add m4/minmax.m4.
83080         (configure.ac): Add gl_MINMAX.
83081
83082 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83085         so that unistd-safer.h (GPL'ed code) need not be included.
83086
83087 2005-05-22  Bruno Haible  <bruno@clisp.org>
83088
83089         * m4/minmax.m4: New file.
83090         Based on a patch by Derek Price <derek@ximbiot.com>.
83091
83092 2005-05-22  Bruno Haible  <bruno@clisp.org>
83093
83094         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83095         (INT64_MIN): Fix definition.
83096         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83097
83098         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83099         NEED_SIGNED_INT_TYPES.
83100
83101         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83102         HAVE_SYSTEM_INTTYPES.
83103
83104 2005-05-22  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83107         Also include <sys/param.h> if it defines MIN, MAX.
83108         Based on a patch by Derek Price <derek@ximbiot.com>.
83109
83110 2005-05-21  Jim Meyering  <jim@meyering.net>
83111
83112         * modules/fts (Files): Add m4/inttypes-pri.m4.
83113         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83114
83115 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83116
83117         New fts module.
83118         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83119         (setup_dir, free_dir): New functions.
83120         (enter_dir, leave_dir): Define trivial
83121         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83122         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83123         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83124         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83125         Move to fts-cycle.c.
83126         (fts_open): Use setup_dir.
83127         (fts_close): Use free_dir.
83128         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83129         This adds a label and some gotos, but the alternatives were messier.
83130         Check for memory allocation failure when entering a dir.
83131         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83132         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83133         (FTS): New member fts_cycle, that is a union that contains the
83134         old active_dir_ht and cycle_state.  All uses changed to mention
83135         fts_cycle.ht and fts_cycle.state.
83136         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83137         fts.c, with the following changes:
83138         (setup_dir, free_dir): New functions.
83139         (enter_dir): Now returns bool.  Return true if successful, false
83140         if memory exhausted.  All callers changed.
83141         Do not bother partly cleaning up on
83142         memory allocation failure; that is free_dir's job.
83143         However, free ad if hash_insert fails, to avoid memory leak.
83144         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83145         fts->fts_options to see which union member to use.
83146
83147 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83150         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83151
83152 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83153
83154         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83155
83156 2005-05-20  Jim Meyering  <jim@meyering.net>
83157
83158         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83159         Now a macro, to pacify GCC.
83160
83161 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83162
83163         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83164         of -1.
83165
83166 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83167
83168         * lib/chown.c (rpl_chown): Return -1 on failure.
83169
83170 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83173         Don't check for stddef.h.
83174         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83175         don't use its results.
83176         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83177         since we include them unconditionally.  Don't require
83178         AM_STDBOOL_H, since stdbool is a prerequisite.
83179         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83180         since we assume C89 or better.
83181         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83182         as we don't use their results.
83183         Don't check for fchdir, memmove, memset, strrchr, as we use
83184         them unconditionally.
83185         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83186         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83187
83188 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83189
83190         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83191         Include <stddef.h> unconditionally, since we assume C89 now.
83192         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83193         * lib/fts.c: Include fts_.h first, to check interface.
83194         Do not include intprops.h; no longer needed.
83195         Include cycle-check.h and hash.h, since fts_.h no longer does.
83196         Remove unnecessary casts of closedir to void.
83197         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83198         decide whether to decrement nlinks.
83199         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83200         (FTS): Use struct hash_table * instead of Hash_table, so that
83201         we no longer need to include hash.h here.
83202
83203 2005-05-18  Jim Meyering  <jim@meyering.net>
83204
83205         * modules/dirfd (License): Change to LGPL.  Most of the code
83206         is already in the public domain.
83207
83208 2005-05-18  Jim Meyering  <jim@meyering.net>
83209
83210         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83211         Reported by Yoann Vandoorselaere.
83212
83213 2005-05-17  Jim Meyering  <jim@meyering.net>
83214
83215         * m4/fts.m4: New file, from coreutils.
83216
83217 2005-05-17  Jim Meyering  <jim@meyering.net>
83218
83219         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83220
83221 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83222
83223         Sync from coreutils.
83224         * m4/unlinkdir.m4: New file.
83225
83226 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         Sync from coreutils.
83229         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83230         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83231         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83232         White space changes only.
83233         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83234         special.
83235         * lib/yesno.c: Include getline.h, not ctype.h.
83236         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83237         Use getline to remove arbitrary restriction on response length.
83238
83239 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         * config/srclist-update: Spell out "Street" in FSF postal
83242         mail address; this is the style the FSF seems to prefer.
83243
83244         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83245         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83246         this updates FSF postal mail address.
83247
83248         Sync from coreutils.
83249         * modules/unlinkdir: New file.
83250         * modules/yesno (Depends-on): Add getline.
83251         * MODULES.html.sh (File system functions): Add unlinkdir.
83252
83253 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83254
83255         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83256         lib/strsep.h:
83257         Change the initial comment to refer to GPL, not LGPL.
83258         gnulib-tool will change it to LGPL as needed.
83259
83260         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83261         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83262         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83263         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83264         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83265         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83266         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83267         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83268         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83269         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83270         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83271         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83272         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83273         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83274         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83275         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83276         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83277         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83278         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83279         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83280         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83281         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83282         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83283         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83284         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83285         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83286         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83287         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83288         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83289         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83290         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83291         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83292         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83293         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83294         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83295         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83296         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83297         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83298         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83299         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83300         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83301         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83302         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83303         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83304         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83305         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83306         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83307         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83308         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83309         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83310         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83311         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83312         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83313         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83314         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83315         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83316         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83317         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83318         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83319         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83320         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83321         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83322         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83323         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83324         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83325         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83326         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83327         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83328         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83329         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83330         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83331         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83332         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83333         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83334         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83335         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83336         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83337         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83338         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83339         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83340         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83341         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83342         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83343         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83344         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83345         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83346         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83347         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83348         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83349         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83350         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83351         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83352         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83353         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83354         lib/yesno.c, lib/yesno.h:
83355         Update FSF postal mail address.
83356
83357 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83360         tests/test-memmem.c, tests/test-stpncpy.c:
83361         Update FSF postal mail address.
83362
83363 2005-05-13  Bruno Haible  <bruno@clisp.org>
83364
83365         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83366         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83367         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83368         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83369         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83370         Add support for 64-bit integers in the MSVC compiler.
83371
83372 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83373
83374         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83375
83376 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83377
83378         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83379
83380 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         * doc/getdate.texi (General date syntax): Don't say that date
83383         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83384         Problem reported by Nic Ferrier.
83385
83386 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83387
83388         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83389         specified in ai_socktype. Fix invalid ai_protocol
83390         check. ai_protocol is usually set to 0 or depending on
83391         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83392         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83393         ai_socktype / ai_protocol in the returned addrinfo structure.
83394
83395 2005-05-10  Simon Josefsson  <jas@extundo.com>
83396
83397         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83398         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83399
83400 2005-05-10  Karl Berry  <karl@gnu.org>
83401
83402         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83403         (from http://www.gnu.org/licenses).
83404         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83405         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83406         fdl.texi suffices.
83407
83408 2005-05-10  Karl Berry  <karl@gnu.org>
83409
83410         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83411         (COPYING.DOC): remove.
83412
83413         * config/srclist-update: new FSF address.
83414
83415 2005-05-10  Derek Price  <derek@ximbiot.com>
83416
83417         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83418         possible.
83419
83420 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83421             Bruno Haible  <bruno@clisp.org>
83422
83423         * modules/inet_ntop: New file.
83424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83425         inet_ntop.
83426
83427 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83428             Bruno Haible  <bruno@clisp.org>
83429
83430         * m4/inet_ntop.m4: New file.
83431
83432 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83433             Bruno Haible  <bruno@clisp.org>
83434
83435         * lib/inet_ntop.h: New file.
83436         * lib/inet_ntop.c: New file, from glibc with modifications.
83437
83438 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83439
83440         * modules/time_r (License): Change to LGPL.
83441         * modules/extensions (License): Change to LGPL.  Actually,
83442         the license is more permissive than that, but currently gnulib-tool
83443         doesn't know how to handle more-permissive licenses.
83444
83445         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83446         Problem reported by Dave Love.
83447
83448 2005-05-08  Jim Meyering  <jim@meyering.net>
83449
83450         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83451         blank.
83452
83453 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         * modules/argmatch (Depends-on): Add stdbool.
83456         * modules/backupfile (Depends-on): Likewise.
83457         * modules/chdir-long (Depends-on): Likewise.
83458         * modules/closeout (Depends-on): Likewise.
83459         * modules/cycle-check (Depends-on): Likewise.
83460         * modules/dirname (Depends-on): Likewise.
83461         * modules/fnmatch (Depends-on): Likewise.
83462         * modules/fsusage (Depends-on): Likewise.
83463         * modules/fwriteerror (Depends-on): Likewise.
83464         * modules/getcwd (Depends-on): Likewise.
83465         * modules/getloadavg (Depends-on): Likewise.
83466         * modules/hard-locale (Depends-on): Likewise.
83467         * modules/makepath (Depends-on): Likewise.
83468         * modules/mountlist (Depends-on): Likewise.
83469         * modules/nanosleep (Depends-on): Likewise.
83470         * modules/posixtm (Depends-on): Likewise.
83471         * modules/quotearg (Depends-on): Likewise.
83472         * modules/readtokens (Depends-on): Likewise.
83473         * modules/readtokens0 (Depends-on): Likewise.
83474         * modules/readutmp (Depends-on): Likewise.
83475         * modules/save-cwd (Depends-on): Likewise.
83476         * modules/strftime (Depends-on): Likewise.
83477         * modules/userspec (Depends-on): Likewise.
83478         * modules/utimecmp (Depends-on): Likewise.
83479         * modules/xgetcwd (Depends-on): Likewise.
83480         * modules/xnanosleep (Depends-on): Likewise.
83481         * modules/xstrtod (Depends-on): Likewise.
83482         * modules/yesno (Depends-on): Likewise.
83483
83484 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83487         needless checks.
83488
83489 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83490
83491         Merge from coreutils.  Among other things,
83492         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83493         * lib/fd-safer.c: New file.
83494         * lib/fcntl-safer.h, open-safer.c: Remove.
83495         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83496         * lib/dup-safer.c: Include unistd-safer.h first.
83497         Don't include errno.h.
83498         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83499         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83500         * lib/file-type.c: Rely on file-type.h change.
83501         * lib/getloadavg.c: Include unistd-safer.h.
83502         (getloadavg): Use safer open.
83503         * lib/getusershell.c: Include "stdio-safer.h".
83504         (getusershell): Use safer fopen.
83505         * lib/long-options.c (long_options): Use NULL rather than 0.
83506         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83507         'free'.
83508         * lib/modechange.c: Likewise.
83509         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83510         (MODE_DONE): New constant.
83511         (struct mode_change): Remove 'next' member.
83512         (make_node_op_equals): New function; like the old one of the
83513         same name, except it allocates an array.
83514         (mode_compile, mode_create_from_ref): Use it.
83515         (mode_compile): Allocate result as an array, not a linked list.
83516         Parse octal string ourself, so that we catch mistakes like "+0".
83517         (mode_adjust): Arg is an array, not a linked list.
83518         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83519         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83520         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83521         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83522         Remove.  This is now stat-macros.h's job.
83523         (talloc): Remove.  All callers replaced by xalloc, so that
83524         our invokers don't have to worry about reporting memory failures.
83525         (make_node_op_equals): Remove.
83526         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83527         New constants.
83528         (struct mode_change): Moved here from modechange.h.
83529         (mode_append_entry): Remove.
83530         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83531         apps to have incorrect behavior.  Use simpler algorithm for head
83532         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83533         Detect more invalid usages rather than having somewhat-random behavior.
83534         Don't insert an "a=" action, as that leads to incorrect behavior.
83535         (mode_compile, mode_create_from_ref): Return NULL on error instead
83536         of an enum, since now there's only one way to have an error.  All
83537         callers changed.
83538         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83539         at the correct time.  Simplify calculation of "+u" and its ilk.
83540         Don't mishandle "+X".
83541         (mode_free): Remove "register" and localize decls.
83542         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83543         (struct mode_change): Move to modechange.c; callers don't
83544         need to see this stuff.
83545         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83546         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83547         (mode_change, mode_adjust): Reflect the new signatures noted above.
83548         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83549         that might redefine system include files.
83550         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83551         (my_usleep): Use NULL rather than (void *) 0.
83552         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83553         Use siginterrupt to specify that system calls should be interrupted.
83554         (rpl_nanosleep): Move initialization of suspended closer to call of
83555         my_usleep.
83556         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83557         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83558         (desirable_utmp_entry): New function.
83559         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83560         using x2nrealloc, to simplify logic.
83561         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83562         size calculation.  Do not assume utmp file is a regular file.
83563         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83564         (READ_UTMP_CHECK_PIDS): New constant.
83565         * lib/save-cwd.c: Include unistd-safer.h.
83566         (save_cwd): Use fd_safer.
83567         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83568         [!_LIBC] Include "stat-macros.h" instead.
83569         * lib/unistd-safer.h (fd_safer): New decl.
83570
83571 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83572
83573         * modules/getloadavg (Depends-on): Add unistd-safer.
83574         * modules/getusershell (Depends-on): Add stdio-safer.
83575         * modules/lstat (Depends-on): Remove xalloc.
83576         * modules/mkstemp (Depends-on): Add stat-macros.
83577         * modules/modechange (Depends-on): Remove xstrtol.
83578         Add stat-macros, xalloc.
83579         * modules/save-cwd (Depends-on): Add unistd-safer.
83580         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83581         * modules/unistd-safer (Files): Add lib/fd-safer.c
83582         (Makefile.am): Remove lib_SOURCES.
83583
83584         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83585         Remove fcntl-safer; unistd-safer supersedes it.
83586
83587 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83588
83589         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83590         AC_HEADER_STAT.
83591         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83592         (gl_PREREQ_CHOWN): Remove.
83593         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83594         it.  Don't require AC_HEADER_STAT.
83595         (gl_PREREQ_LSTAT): Remove.
83596         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83597         Don't require AC_HEADER_STAT.
83598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83599         (gl_PREREQ_RMDIR): Remove.
83600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83601         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83602         the stat-macros module a prerequisite.
83603         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83604         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83605         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83606         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83607         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83608         variable names.
83609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83610         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83611         variable prefixes.
83612         * m4/fcntl-safer.m4: Remove.
83613         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83614         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83615         Invoke gl_PREREQ_FD_SAFER.
83616         (gl_PREREQ_FD_SAFER): New macro.
83617         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83618         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83619         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83620         Remove duplicate call to AC_LIBOBJ(readutmp).
83621         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83622
83623         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83624         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83625
83626 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83627
83628         * MODULES.html.sh (Misc): Add byteswap.
83629
83630 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83631
83632         * modules/getcwd (Depends-on): Add extensions.
83633         * modules/openat (Depends-on): Likewise.
83634
83635 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83636
83637         * modules/byteswap: New file.
83638
83639 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83640
83641         * m4/byteswap.m4: New file.
83642
83643 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83644
83645         * lib/byteswap_.h: New file.
83646
83647 2005-04-25  Karl Berry  <karl@gnu.org>
83648
83649         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83650
83651 2005-04-25  Albert Chin  <china@thewrittenword.com>
83652
83653         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83654         Toolkit C bug.
83655
83656 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83657
83658         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83659         (func_ln_if_changed): Remove forcibly for no error message
83660         in case file does not exist.
83661
83662 2005-04-19  Simon Josefsson  <jas@extundo.com>
83663
83664         * gnulib-tool (Options): Make --symlink mean --symbolic.
83665
83666 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83667
83668         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83669
83670 2005-04-16  Simon Josefsson  <jas@extundo.com>
83671
83672         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83673
83674 2005-04-15  Simon Josefsson  <jas@extundo.com>
83675
83676         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83677
83678 2005-04-15  Simon Josefsson  <jas@extundo.com>
83679
83680         * gnulib-tool: Rename --symlink to --symbolic.
83681
83682 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83683
83684         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83685         symbolic links to files instead of copying/moving.  Add --aux-dir,
83686         specifying directory relative --dir where auxiliary build tools
83687         are placed.
83688
83689 2005-04-14  Bruno Haible  <bruno@clisp.org>
83690
83691         * modules/allocsa (License): Change to LGPL.
83692         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83693
83694 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83695
83696         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83697         that "UTC +1 second" continues to work.  Problem reported
83698         by Dmitry V. Levin.
83699         (relunit_snumber): New rule.
83700         (relunit): Use it.
83701
83702 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * lib/getdate.y (universal_time_zone_table): New constant.
83705         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83706         universal_time_zone_table.
83707         (lookup_zone): Prefer universal_time_zone_table to
83708         local_time_zone_table, so that "GMT" time stamps are allowed in
83709         London during the summer.  Problem reported by Ian Abbott.
83710
83711 2005-04-12  Jim Meyering  <jim@meyering.net>
83712
83713         * lib/human.c (humblock): Set *options even when returning due to
83714         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83715         warning from gcc-4.
83716
83717 2005-04-09  Jim Meyering  <jim@meyering.net>
83718
83719         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83720         -Wuninitialized: initialize tm0.tm_year.
83721
83722 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83723
83724         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83725         count, since there's no maximum.  All uses changed.
83726         Add member dsts_seen.
83727         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83728         not being INT_MAX.
83729         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83730         Use pc_rels_seen to decide whther a date is absolute.
83731
83732         * lib/getdate.y (number): Don't overwrite year.
83733         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83734         check.
83735
83736 2005-04-02  Simon Josefsson  <jas@extundo.com>
83737
83738         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83739         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83740
83741 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83742
83743         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83744         where no absolute path name can be longer than PATH_MAX.
83745
83746 2005-03-27  Jim Meyering  <jim@meyering.net>
83747
83748         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83749
83750 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83753         "one's complement" -> "ones' complement" in comment, as per Knuth.
83754         "value of type" -> "type or expression" in comment.
83755         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83756
83757 2005-03-26  Jim Meyering  <jim@meyering.net>
83758
83759         Comment nits.
83760         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83761         Correct typos: s/or/of/.
83762
83763 2005-03-26  Jim Meyering  <jim@meyering.net>
83764
83765         * modules/check-include-files: Move to ../ and rename to...
83766         * check-module: ...this.
83767
83768 2005-03-25  Jim Meyering  <jim@meyering.net>
83769
83770         * modules/xvasprintf (Files): Add xalloc.h.
83771
83772 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83773
83774         * modules/gettext (Files): config/config.rpath ->
83775         build-aux/config.rpath
83776         * modules/iconv (Files): Likewise.
83777         Problem reported by Oskar Liljeblad.
83778
83779 2005-03-23  Jim Meyering  <jim@meyering.net>
83780
83781         * modules/check-include-files: New script to check for
83782         missing dependencies, multiple includes, etc.
83783
83784         * modules/c-strtold (Depends-on): Add xalloc.
83785         * modules/c-strtod (Depends-on): Add xalloc.
83786         * modules/hash (Depends-on): Add xalloc.
83787         (Files): Remove lib/xalloc.h.
83788
83789         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83790         * modules/userspec (Files): Add lib/inttostr.h.
83791
83792 2005-03-23  Jim Meyering  <jim@meyering.net>
83793
83794         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83795
83796 2005-03-22  Jim Meyering  <jim@meyering.net>
83797
83798         * modules/stat-macros: New module.
83799         * modules/canonicalize, modules/euidaccess, modules/file-type,
83800         * modules/filemode, modules/lchown, modules/makepath,
83801         * modules/rmdir, modules/stat: Depend on new stat-macros module
83802         rather than listing lib/stat-macros.h manually.
83803         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83804
83805 2005-03-22  Jim Meyering  <jim@meyering.net>
83806
83807         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83808
83809 2005-03-22  Bruno Haible  <bruno@clisp.org>
83810
83811         * config/srclist.txt: Replace target directory 'config' with
83812         'build-aux'.
83813         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83814         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83815         ../build-aux/.
83816
83817 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * modules/chdir-long (Depends-on): Add mempcpy.
83820
83821         * modules/acl, modules/backupfile, modules/c-strtod,
83822         modules/c-strtold, modules/canon-host, modules/canonicalize,
83823         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83824         modules/exclude, modules/exitfail, modules/file-type,
83825         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83826         modules/getdate, modules/getline, modules/getpagesize,
83827         modules/getpass, modules/getugroups, modules/group-member,
83828         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83829         modules/inttostr, modules/long-options, modules/makepath,
83830         modules/md5, modules/memcasecmp, modules/memcoll,
83831         modules/modechange, modules/mountlist, modules/path-concat,
83832         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83833         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83834         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83835         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83836         modules/strftime, modules/strndup, modules/strverscmp,
83837         modules/timespec, modules/unlocked-io, modules/userspec,
83838         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83839         modules/yesno:
83840         Remove lib_SOURCES line from Makefile.am section, as this is now
83841         done automatically by the corresponding Autoconf macro.
83842
83843 2005-03-21  Jim Meyering  <jim@meyering.net>
83844
83845         Changes imported from coreutils.
83846
83847         * lib/cycle-check.c: Don't include xalloc.h.
83848
83849         * lib/path-concat.c: Don't include assert.h.
83850         (path_concat): Remove assertion that would have triggered
83851         for ABASE starting with more than one slash.
83852         Reported by Andreas Schwab.
83853
83854         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83855         properly when ABASE is an absolute file name.
83856         Correct the description of this function.
83857         Include <assert.h>.
83858         Add an assertion and a test driver.
83859         This fixes a bug introduced on 2004-07-02.
83860         Andreas Schwab reported the resulting failure of cp --parents:
83861         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83862
83863 2005-03-21  Jim Meyering  <jim@meyering.net>
83864
83865         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83866         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83867
83868 2005-03-21  Jim Meyering  <jim@meyering.net>
83869         and  Paul Eggert  <eggert@cs.ucla.edu>
83870
83871         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83872         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83873         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83874         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83875         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83876         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83877         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83878         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83879         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83880         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83881         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83882         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83883         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83884         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83885         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83886         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83887         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83888         for these modules.
83889
83890 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83893         (which shouldn't happen), generate nothing instead of returning 0
83894         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83895
83896 2005-03-16  Bruno Haible  <bruno@clisp.org>
83897
83898         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83899         HAVE_LONGLONG_64BIT.
83900
83901 2005-03-16  Bruno Haible  <bruno@clisp.org>
83902
83903         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83904         HAVE_LONGLONG_64BIT.
83905
83906 2005-03-16  Bruno Haible  <bruno@clisp.org>
83907
83908         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83909         HAVE_LONGLONG_64BIT.
83910
83911 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83914         reliably distinguish strftime failure from empty output on POSIX
83915         hosts.
83916
83917 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83918
83919         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83920         (iconv_string): Don't guess a size-zero buffer, as that might cause
83921         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83922         result would be 'too large', where 'too large' is (heuristically)
83923         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83924         overflow concerns.  This will prevent some unwanted malloc failures
83925         when the inputs are very large.
83926
83927 2005-03-15  Karl Berry  <karl@gnu.org>
83928
83929         * config/srclist.txt (config.rpath): from gettext.
83930         * config/config.rpath: update.
83931
83932 2005-03-15  Bruno Haible  <bruno@clisp.org>
83933
83934         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83935         to 'negate'.
83936
83937         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83938         variable.
83939
83940         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83941         results.
83942
83943 2005-03-14  Simon Josefsson  <jas@extundo.com>
83944
83945         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83946         <fx@gnu.org>.
83947
83948 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83951         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83952         intprops.h.
83953         * lib/strtol.c: Likewise.
83954
83955 2005-03-14  Jim Meyering  <jim@meyering.net>
83956
83957         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83958         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83959         to be nonzero so that we (and caller) can detect the difference
83960         between a valid zero-length expansion and an error return, even
83961         when the underlying strftime fails before writing anything into
83962         that location.
83963
83964 2005-03-14  Bruno Haible  <bruno@clisp.org>
83965
83966         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83967         Update from GNU gettext 0.14.3.
83968
83969 2005-03-10  Jim Meyering  <jim@meyering.net>
83970
83971         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83972
83973 2005-03-10  Jim Meyering  <jim@meyering.net>
83974
83975         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83976         so that this module works on systems without fchdir.
83977
83978 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83979
83980         Factor int-properties macros into a single file, except for
83981         glibc-related files.
83982         * lib/intprops.h: New file.
83983         * lib/getloadavg.c: Include it instead of limits.h.
83984         (INT_STRLEN_BOUND): Remove.
83985         * lib/human.c: Include intprops.h.
83986         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83987         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83988         302/1000.
83989         * lib/inttostr.h: Include intprops.h instead of limits.h.
83990         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83991         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83992         for consistency with intprops.h.
83993         (time_t_is_integer, twos_complement_arithmetic): Use them.
83994         * lib/sig2str.h: Include <signal.h>, intprops.h.
83995         (INT_STRLEN_BOUND): Remove.
83996         * lib/strftime.c (TYPE_SIGNED): Remove.
83997         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83998         * lib/strtol.c: Adjust comments to match intprops.h.
83999         * lib/userspec.c: Include intprops.h.
84000         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84001         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84002         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84003         instead of rolling our own expressions.
84004         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84005
84006         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84007         instead of int.
84008         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84009         the right thing even if adding 1900 would overflow.  Similarly
84010         for tm_mon + 1 and tm_yday + 1.
84011         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84012         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84013         (DO_SIGNED_NUMBER): New macro.
84014         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84015
84016 2005-03-07  Bruno Haible  <bruno@clisp.org>
84017
84018         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84019
84020 2005-03-07  Bruno Haible  <bruno@clisp.org>
84021
84022         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84023
84024 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84025
84026         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84027         (func_import): Only replace files via --import when they have actually
84028         changed.
84029
84030 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84031
84032         * m4/mmap-anon.m4: New file.
84033         * m4/pagealign_alloc.m4: New file.
84034
84035 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84036             Bruno Haible  <bruno@clisp.org>
84037
84038         * modules/pagealign_alloc: New file.
84039         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84040
84041 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84042             Bruno Haible  <bruno@clisp.org>
84043
84044         * lib/pagealign_alloc.h: New file.
84045         * lib/pagealign_alloc.c: New file.
84046
84047 2005-03-03  Bruno Haible  <bruno@clisp.org>
84048
84049         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84050         Use an all-permissive copyright notice, recommended by RMS.
84051
84052 2005-03-02  Bruno Haible  <bruno@clisp.org>
84053
84054         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84055         of AIX, the replacement has to be done only after <string.h> is
84056         included, therefore not in config.h. stpncpy.h does the replacement,
84057         and stpncpy.c uses it.
84058
84059 2005-03-02  Bruno Haible  <bruno@clisp.org>
84060
84061         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84062         stpncpy.c uses it.
84063
84064 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84067         The workaround isn't strictly needed for POSIX conformance, and
84068         it's too much of a pain to configure and maintain.  We'll ask
84069         people to fix their kernels instead.
84070         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84071         (NANOSLEEP_BUG_WORKAROUND): Remove.
84072         (xnanosleep): Remove the workaround.
84073
84074 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84077         Reported by Derek Price.
84078         (Include): Add "timespec.h".
84079
84080         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84081
84082 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84083
84084         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84085         to detect nanosleep bug.
84086
84087 2005-03-01  Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84090
84091 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84092
84093         * modules/gethrxtime: New file.
84094         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84095         (Depends-on): Add gethrxtime.
84096         (configure.ac): Add gl_XNANOSLEEP.
84097         (Makefile.am): Remove lib_SOURCES line.
84098
84099 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84100
84101         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84102         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84103
84104 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84107         * lib/timespec.h (gettime): Return void, since it always
84108         succeeds now.  All uses changed.
84109         * lib/gettime.c (gettime): Likewise.
84110         [HAVE_NANOTIME]: Prefer nanotime.
84111         Assume gettimeofday succeeds, as POSIX requires.
84112         Assime time () succeeds, since other code already does.
84113         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84114         (timespec_subtract): Remove.
84115         (NANOSLEEP_BUG_WORKAROUND): New constant.
84116         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84117         things considerably.  Use it only on GNU/Linux hosts, since the
84118         workaround shouldn't be needed elsewhere.
84119
84120 2005-02-24  Bruno Haible  <bruno@clisp.org>
84121
84122         * modules/gettext (Files): Add m4/glibc2.m4.
84123
84124 2005-02-24  Bruno Haible  <bruno@clisp.org>
84125
84126         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84127         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84128         * m4/progtest.m4:
84129         Update from GNU gettext 0.14.2.
84130         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84131
84132 2005-02-24  Bruno Haible  <bruno@clisp.org>
84133
84134         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84135         * lib/config.charset: Update from GNU gettext 0.14.2.
84136
84137 2005-02-24  Bruno Haible  <bruno@clisp.org>
84138
84139         * lib/gettext.h: Update from GNU gettext 0.14.2.
84140
84141 2005-02-23  Simon Josefsson  <jas@extundo.com>
84142
84143         * m4/iconvme.m4: New file.
84144
84145 2005-02-23  Jim Meyering  <jim@meyering.net>
84146
84147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84148         change.
84149         Thanks to Bruno Haible for catching it.
84150
84151 2005-02-22  Simon Josefsson  <jas@extundo.com>
84152
84153         * modules/iconvme: New file.
84154
84155         * MODULES.html.sh: Add iconvme.
84156
84157 2005-02-22  Simon Josefsson  <jas@extundo.com>
84158
84159         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84160
84161 2005-02-22  Simon Josefsson  <jas@extundo.com>
84162
84163         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84164
84165 2005-02-22  Jim Meyering  <jim@meyering.net>
84166
84167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84168         s/ifndef/ifdef/.
84169
84170 2005-02-20  Neil Conway  <neilc@samurai.com>
84171
84172         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84173         returned by OSX/Darwin if the specified buffer is not large
84174         enough for the hostname.
84175
84176 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84177
84178         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84179         pass it to _help, otherwise the latter coredumps trying to
84180         dereference state.root_argp.
84181
84182 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * modules/chdir-long (Depends-on): Add memrchr.
84185         * modules/memrchr (Files): Add lib/memrchr.h.
84186         (Include): "memrchr.h".
84187
84188 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84191
84192 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84193
84194         * lib/memrchr.h: New file.
84195         * lib/chdir-long.c: Include it.
84196         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84197         Don't bother including stddef.h.
84198
84199 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84202         inclusion.
84203         Include <sys/types.h>, for dev_t.
84204         (ME_DUMMY, ME_REMOTE): Move from here....
84205         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84206         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84207         Dmitry V. Levin.
84208         Include mountlist.h first, to test the interface.
84209
84210 2005-01-29  Bruno Haible  <bruno@clisp.org>
84211
84212         * lib/progname.c (program_name): Initialize.
84213         Needed when linking statically on MacOS X.
84214
84215 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84216
84217         Sync from coreutils.
84218         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84219         (Depends-on): Add c-strtod.
84220         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84221
84222 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84223
84224         Sync from coreutils.
84225         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84226
84227         Remove files that are specific to coreutils.
84228         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84229
84230 2005-01-28  Bruno Haible  <bruno@clisp.org>
84231
84232         * modules/javacomp: New file.
84233         * MODULES.html.sh (Java): Add javacomp.
84234
84235 2005-01-28  Bruno Haible  <bruno@clisp.org>
84236
84237         * m4/javacomp.m4: New file, from GNU gettext.
84238
84239 2005-01-28  Bruno Haible  <bruno@clisp.org>
84240
84241         * lib/javacomp.sh.in: New file, from GNU gettext.
84242         * lib/javacomp.h: New file, from GNU gettext.
84243         * lib/javacomp.c: New file, from GNU gettext.
84244
84245 2005-01-26  Simon Josefsson  <jas@extundo.com>
84246
84247         * lib/gai_strerror.c: Use GPL in header.
84248
84249 2005-01-26  Bruno Haible  <bruno@clisp.org>
84250
84251         * modules/javaexec: New file.
84252         * MODULES.html.sh (Java): Add javaexec.
84253
84254 2005-01-26  Bruno Haible  <bruno@clisp.org>
84255
84256         * m4/javaexec.m4: New file, from GNU gettext.
84257
84258 2005-01-26  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/javaexec.sh.in: New file, from GNU gettext.
84261         * lib/javaexec.h: New file, from GNU gettext.
84262         * lib/javaexec.c: New file, from GNU gettext.
84263
84264 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84265
84266         * modules/lchown (Depends-on): Remove lchown.h
84267
84268 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84269
84270         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84271         must be defined if the header file was not found, in order
84272         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84273
84274 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84275
84276         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84277         initializers for struct pentry_state.
84278         (__argp_error): Check return value of __asprintf
84279         (__argp_failure): Translate error message
84280
84281         * lib/argp-parse.c: Removed braces around the expansion of N_()
84282
84283 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84284
84285         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84286         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84287         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84288         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84289         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84290         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84291         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84292         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84293         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84294         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84295         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84296         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84297         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84298         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84299         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84300         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84301         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84302         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84303         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84304         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84305         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84306         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84307         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84308         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84309         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84310         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84311         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84312         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84313         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84314         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84315         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84316         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84317         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84318         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84319         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84320         Use an all-permissive copyright notice, recommended by RMS.
84321
84322 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * modules/chdir-long (Depends-on): Remove mempcpy.
84325
84326 2005-01-21  Jim Meyering  <jim@meyering.net>
84327
84328         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84329         same value as for Solaris 9.
84330
84331         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84332         component length.  This included changing the parameter to be
84333         of type `char *' rather than `char const *'.
84334         * lib/chdir-long.h (chdir_long): Update prototype.
84335
84336         * lib/openat.c (fdopendir, fstatat): New functions.
84337         * lib/openat.h: Include headers required for use of DIR and struct
84338         stat.
84339         [AT_SYMLINK_NOFOLLOW]: Define.
84340         (fdopendir, fstatat): Add prototypes.
84341
84342 2005-01-21  Bruno Haible  <bruno@clisp.org>
84343
84344         * modules/classpath: New file.
84345         * MODULES.html.sh (Java): Add classpath.
84346
84347 2005-01-21  Bruno Haible  <bruno@clisp.org>
84348
84349         * lib/classpath.h: New file, from GNU gettext.
84350         * lib/classpath.c: New file, from GNU gettext.
84351
84352 2005-01-20  Simon Josefsson  <jas@extundo.com>
84353
84354         * modules/version-etc-fsf: New file.
84355
84356 2005-01-20  Simon Josefsson  <jas@extundo.com>
84357
84358         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84359         * lib/version-etc.c: Remove version_etc_copyright.
84360         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84361         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84362
84363 2005-01-20  Simon Josefsson  <jas@extundo.com>
84364
84365         * lib/base64.h (isbase64): Add.
84366
84367         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84368         using a unsigned prototype, don't inline.
84369         (base64_decode): Use it.
84370
84371 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84374         it.
84375
84376 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         * lib/save-cwd.c (save_cwd): Remove code to support the case
84379         where fchdir is missing or flaky.
84380
84381 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84384
84385 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84388         AC_LIBSOURCES now does this.
84389         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84390         with new ullong_max module.
84391
84392 2005-01-19  Bruno Haible  <bruno@clisp.org>
84393
84394         * modules/sh-quote: New file.
84395         * MODULES.html.sh (Executing programs): Add sh-quote.
84396
84397 2005-01-19  Bruno Haible  <bruno@clisp.org>
84398
84399         * lib/sh-quote.h: New file, from GNU gettext.
84400         * lib/sh-quote.c: New file, from GNU gettext.
84401
84402 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         Merge from coreutils.
84405         * m4/ullong_max.m4: New file.
84406         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84407         (gl_MACROS): Assume localeconv exists.
84408
84409 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         Merge changes from coreutils, as described below in several
84412         changelogs dated today.
84413
84414         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84415         (O_DIRECTORY): Remove; not needed here, since "." must be
84416         a directory.  All uses removed.
84417         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84418         universal on Suns, and we also need to test for IRIX.
84419         Revamp code to use 'if' rather than '#if'.
84420         Avoid unnecessary comparison of cwd->desc to 0.
84421
84422         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84423         for known valid error numbers rather than observed invalid ones.
84424
84425 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         * modules/ullong_max: New file.
84428
84429         * modules/chdir-long, modules/openat: New files.
84430         * modules/save-cwd (Depends-on): Depend on chdir-long.
84431         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84432
84433 2005-01-18  Jim Meyering  <jim@meyering.net>
84434
84435         Merge from coreutils.
84436         * m4/chdir-long.m4, m4/openat.m4: New files.
84437         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84438         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84439         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84440         is sane and DOES follow symlinks.  Besides, testing 20 different
84441         systems found no broken chown implementations.
84442         Prompted by a change in rsync's copy of this macro.
84443         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84444
84445         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84446
84447         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84448         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84449         NULL-means-set-to-current-time semantics.
84450         Remove temporary file immediately, rather than waiting
84451         for configure's at-exit trap code to do it.
84452
84453 2005-01-18  Jim Meyering  <jim@meyering.net>
84454
84455         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84456
84457         * lib/utimens.c (futimens): Account for the fact that futimes
84458         can also fail with errno == ENOSYS or errno == ENOENT.
84459         Patch from Dmitry V. Levin.
84460
84461         Change the name of the robust chdir function from chdir to chdir_long.
84462         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84463         (restore_cwd): Use chdir_long, not chdir.
84464         * lib/chdir-long.c: Renamed from chdir.c.
84465         * lib/chdir-long.h: Renamed from chdir.h.
84466         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84467         Hurd.
84468
84469 2005-01-18  Bruno Haible  <bruno@clisp.org>
84470
84471         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84472         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84473         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84474         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84475         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84476         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84477         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84478         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84479         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84480         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84481         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84482         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84483         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84484         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84485         Use an all-permissive copyright notice, recommended by RMS.
84486
84487 2005-01-18  Bob Proulx  <bob@proulx.com>
84488
84489         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84490         simplify offsetof() macro construct to avoid compile failure with
84491         native HP-UX 11.0 ANSI C compiler.
84492
84493 2005-01-17  Bruno Haible  <bruno@clisp.org>
84494
84495         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84496         redundant because stpncpy.m4 takes care of it.
84497
84498 2005-01-17  Bruno Haible  <bruno@clisp.org>
84499
84500         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84501
84502 2005-01-17  Bruno Haible  <bruno@clisp.org>
84503
84504         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84505         used.
84506
84507 2005-01-17  Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/fwriteerror.h (fwriteerror): Change specification to include
84510         fclose.
84511         * lib/fwriteerror.c: Include <stdbool.h>.
84512         (fwriteerror): At the end, close the file stream. Record whether
84513         stdout was already closed.
84514
84515 2005-01-17  Bruno Haible  <bruno@clisp.org>
84516
84517         * lib/execute.c (environ): Declare if needed.
84518         * lib/pipe.c (environ): Likewise.
84519         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84520
84521 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84522
84523         * modules/argp: Depend on vsnprintf
84524
84525 2005-01-10  Jim Meyering  <jim@meyering.net>
84526
84527         * modules/closeout (Depends-on): Add atexit.
84528
84529 2005-01-06  Bruno Haible  <bruno@clisp.org>
84530
84531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84532
84533 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84534
84535         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84536         definitions to be after all include files, to avoid collisions.
84537         Problem reported by Bob Proulx.
84538
84539 2005-01-04  Jim Meyering  <jim@meyering.net>
84540
84541         Changes imported from coreutils.
84542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84543         as the mkstemp template, use a temporary directory and an
84544         8.3-friendly template to avoid trouble on systems like DJGPP.
84545         Reported by Juan M. Guerrero via Stepan Kasal.
84546         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84547         close. Remove the temporary directory right away, rather than waiting
84548         for configure's at-exit trap code to do it.
84549         Suggestion from Stepan Kasal.
84550
84551 2005-01-01  Simon Josefsson  <jas@extundo.com>
84552
84553         * gnulib-tool: Print #include directives when --import'ing.
84554
84555 2004-12-28  Simon Josefsson  <jas@extundo.com>
84556
84557         * tests/test-base64.c: Include required header files.  Remove
84558         unused variables.
84559
84560 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84561
84562         * modules/error (Depends-on): Remove gettext.
84563
84564 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84565
84566         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84567         not needed.  This removes a dependency on the gettext module.
84568         [defined _LIBC]: Do not include <libintl.h>; not needed.
84569
84570 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84571
84572         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84573         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84574
84575 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84578         HAVE_DECL_STRTOLD.
84579
84580 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * modules/getdate (Depends-on): Remove alloca-opt.
84583
84584 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84587
84588 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * lib/argp-parse.c: Include <stddef.h>.
84591         (alignof, alignto): New macros.
84592         (parser_init): Don't assume that void * is aligned sufficiently
84593         for struct option.
84594
84595         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84596         need to extend the stack.
84597         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84598         large.
84599
84600 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84601
84602         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84603
84604 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84607         (2004-10-24) change.  Apparently this was a false alarm.
84608
84609         * modules/getdate: Depend on alloca-opt, not alloca.
84610
84611 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84614         Remove now-obsolete comment about AIX.
84615         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84616         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84617         (YYMAXDEPTH): New macro.
84618
84619 2004-12-18  Simon Josefsson  <jas@extundo.com>
84620
84621         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84622
84623 2004-12-18  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84626
84627 2004-12-18  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/fatal-signal.c (fatal_signals): Make non-const.
84630         (init_fatal_signals): New function.
84631         (uninstall_handlers, install_handlers): Ignore signals that were set to
84632         SIG_IGN.
84633         (at_fatal_signal): Call init_fatal_signals.
84634         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84635         SIG_IGN.
84636         Reported by Paul Eggert.
84637
84638 2004-12-18  Bruno Haible  <bruno@clisp.org>
84639
84640         * doc/alloca.texi: New file.
84641         * doc/alloca-opt.texi: New file.
84642
84643 2004-12-17  Jim Meyering  <jim@meyering.net>
84644
84645         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84646         Otherwise, install-sh could exit with improper exit status when
84647         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84648
84649 2004-12-16  Simon Josefsson  <jas@extundo.com>
84650
84651         * tests/test-base64.c: Add license.
84652
84653 2004-12-15  Stepan Kasal  <address@hidden>
84654
84655         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84656
84657 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84658
84659         * modules/getcwd (Files): Add m4/d-ino.m4.
84660         Suggested by Mark D. Baushke.
84661
84662 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * lib/getdate.y (textint): New member "negative".
84665         (time_zone_hhmm): New function.
84666         Expect 14 shift-reduce conflicts, not 13.
84667         (o_colon_minutes): New rule.
84668         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84669         (yylex): Set the "negative" member of signed numbers.
84670
84671 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84672
84673         * doc/getdate.texi (Time of day items, Time zone items):
84674         Describe new formats +00:00, UTC+00:00.
84675
84676 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84679         spurious "-l"s.  Problem reported by Stepan Kasal.
84680
84681 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84682
84683         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84684         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84685
84686 2004-12-04  Simon Josefsson  <jas@extundo.com>
84687
84688         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84689         Vandoorselaere <yoann@prelude-ids.org>.
84690
84691 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         Changes imported from coreutils.
84694         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84695         exist.
84696         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84697
84698 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84699
84700         Changes imported from coreutils.
84701         * lib/hard-locale.c: Assume <locale.h> exists.
84702         Include "strdup.h".
84703         (GLIBC_VERSION): New macro.
84704         (hard_locale): Assume setlocale exists.
84705         Rewrite to avoid #ifdef.
84706         Use strdup rather than malloc + strcpy.
84707         * lib/human.c: Assume <locale.h> exists.
84708         (human_readable): Assume localeconv exists.
84709
84710 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * modules/hard-locale (Depends-on): Add strdup.
84713
84714 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84715
84716         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84717         convert T2, not T.  (Imported from libc.)
84718
84719 2004-11-30  Simon Josefsson  <jas@extundo.com>
84720
84721         * modules/restrict (License): Change to LGPL.
84722
84723 2004-11-30  Simon Josefsson  <jas@extundo.com>
84724
84725         * m4/restrict.m4: Add copyright and copying conditions.
84726
84727 2004-11-30  Simon Josefsson  <jas@extundo.com>
84728
84729         * m4/base64.m4: New file.
84730
84731 2004-11-30  Simon Josefsson  <jas@extundo.com>
84732
84733         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84734         base64.
84735
84736         * tests/test-base64.c: New file.
84737
84738         * modules/base64: New file.
84739
84740 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84741
84742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84743         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84744
84745         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84746
84747 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84750         (__getcwd.c): Don't restore errno; glibc doesn't.
84751         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84752         first, falling back to our code only if its results look suspicious.
84753         Ensure that the resulting buffer is only as large as necessary.
84754
84755         * lib/readutmp.c: Include readutmp.h first.
84756         Include <errno.h>, since readutmp.h no longer does that.
84757         * lib/readutmp.h: Don't include <errno.h>,
84758         <sys/param.h>, <time.h>; not needed to establish interface.
84759         (errno): Remove decl.
84760         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84761         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84762         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84763
84764 2004-11-28  Simon Josefsson  <jas@extundo.com>
84765
84766         * lib/base64.h, base64.c: New file.
84767
84768 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84769
84770         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84771
84772 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84773
84774         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84775         (Depends-on): Remove pathmax, same.  Add mempcpy.
84776         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84777         (Makefile.am): Append getcwd.h to lib_SOURCES.
84778         (Include): Add getcwd.h.
84779         (Maintainer): Change from Jim Meyering to "all, glibc",
84780         since getdate now uses intended-for-glibc code.
84781         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84782         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84783
84784 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84787         HP's ANSI C compiler.
84788         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84789         Declaring int functions causes warnings on some modern systems and
84790         shouldn't be needed to compile on ancient ones.
84791         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84792         defined.
84793
84794         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84795         with the following changes.
84796         (__set_errno): Parenthesize properly.
84797         Include <stdbool.h>.
84798         (MIN, MAX, MATCHING_INO): New macros.
84799         (__getcwd): Define with prototype, not K&R form.
84800         Use heuristics to allocate default buffer on stack if possible.
84801         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84802         behavior, and to avoid the PATH_MAX limit when computing
84803         ../../../../...
84804         Use MATCHING_INO to compare inode number to file.
84805         Check for arithmetic overflow in size calculations.
84806         Fix bug in reallocation of dot array that caused getcwd to fail
84807         on directories nested deeper than 75.
84808         Be more careful about saving errno on error.
84809         Do not use realloc; use only free+malloc, as this is a bit
84810         more flexible and avoids a needless copy operation.
84811         Do not inspect st_dev and st_ino for symbolic links; POSIX
84812         doesn't specify the latter.
84813         Check for closedir errors.
84814         Avoid needless casts.
84815         Use "#ifdef weak_alias" around weak_alias, to be like other
84816         glibc code.
84817         The following changes to getcwd.c have effect only when used in
84818         gnulib; they have no effect inside glibc proper.
84819         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84820         as alloca isn't used.
84821         (alloca, __alloca): Likewise.
84822         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84823         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84824         unconditionally, as gnulib assumes C89 or better.
84825         Do not include <sys/param.h>.
84826         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84827         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84828         better.
84829         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84830         Include <dirent.h> in a way that is compatible with modern Autoconf.
84831         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84832         New macros, if not already defined.
84833         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84834         Use "_LIBC", not "defined _LIBC", for consistency.
84835         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84836         a mempcpy module.
84837         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84838         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84839         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84840         credit only to Jim Meyering and adjust the copyright dates.
84841         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84842         <stdlib.h>, <unistd.h>, "pathmax.h".
84843         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84844         (INITIAL_BUFFER_SIZE): Remove.
84845         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84846
84847 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84848
84849         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84850         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84851         Use the _ONCE methods, for efficiency.
84852         Check for fcntl.h.  In test program, include <errno.h>
84853         and <fcntl.h> if available.  Remove old K&R cruft from
84854         test program.  Check for common errors in GNU/Linux,
84855         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84856         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84857         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84858         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84859         name accordingly.
84860         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84861         accommodate new getcwd.c.
84862         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84863         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84864         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84865         that's all we need now.
84866
84867 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84868
84869         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84870         argp-parse.c depends on getopt internals, that means we should
84871         always use our getopt, to be on the safe side.
84872         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84873         order not to spoil the result of an eventual previous invocation
84874         of gl_GETOPT_SUBSTITUTE.
84875
84876 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84877
84878         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84879         redefinition warnings. To avoid them, include the defines
84880         in `#if !defined __need_getopt ... #endif'. The only place
84881         where __getopt_argv_const is used is in definitions
84882         of getopt_long and getopt_long_only below, which are as well
84883         protected by `#ifndef __need_getopt'.
84884         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84885         __need_getopt after including <stdio.h> and <unistd.h> These
84886         headers might have defined it.
84887
84888 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84891
84892 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84895         (futimens): New function, which uses futimes if available.
84896         (futimens, utimens): Support timespec==NULL, with same semantics
84897         as utime and utimens.
84898         * lib/utimens.h (futimens): New decl.
84899
84900 2004-11-23  Jim Meyering  <jim@meyering.net>
84901
84902         * lib/getopt_.h: Remove trailing blanks.
84903
84904 2004-11-23  Jim Meyering  <jim@meyering.net>
84905
84906         * lib/__fpending.c: Add comment.
84907
84908 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84909
84910         * modules/canonicalize (Depends-on): Add xreadlink.
84911         Problem reported by James Youngman.
84912
84913 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84914
84915         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84916         New macros.
84917         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84918         optopt): Use them instead of invoking ## directly; otherwise, the
84919         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84920
84921 2004-11-19  Bruno Haible  <bruno@clisp.org>
84922
84923         * lib/strtok_r.c: Move comments from here...
84924         * lib/strtok_r.h: ... to here.
84925
84926 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84929         implementations that mishandle size_t overflow.
84930
84931 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84932
84933         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84934         might fail.  Problem reported by Yoann Vandoorselaere.
84935         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84936         implementations that mishandle size_t overflow.
84937
84938 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84939
84940         * modules/canon-host (Depends-on): Add strdup.
84941
84942 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84943
84944         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84945
84946 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * lib/canon-host.c: Include "strdup.h".
84949         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84950         Use strdup instead of malloc/strcpy to duplicate strings.
84951
84952         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84953         (human_space_before_unit): New constant.
84954         * lib/human.c (human_readable): Support it.
84955
84956         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84957         (xgetcwd): Set errno correctly when failing.
84958         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84959         the failure is actually due to a PATH_MAX problem.
84960
84961         Further getopt changes to make it more likely that glibc will
84962         buy the changes back.
84963         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84964         (getopt): Use it, so to preserve glibc semantic
84965         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84966         when compiling for libc.
84967         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84968         (getopt_long, getopt_long_only): Use it.
84969
84970         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84971         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84972         (getopt): Argv is now char * const *, as per standard.
84973         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84974         not char *__getopt_argv_const *.
84975         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84976         _getopt_long_only_r): Likewise.
84977         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84978         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84979         _getopt_long_r, _getopt_long_only_r): Likewise.
84980         * lib/getopt_.h (__getopt_argv_const): Remove.
84981         (getopt): Argv is now char * const *, as per standard.
84982
84983         * lib/getdate.y (tORDINAL): New token.
84984         (day, relunit): Allow it for relative times.
84985         (relative_time_table): Use tORDINAL for ordinals.
84986
84987 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84990         Document that "second" isn't allowed as an ordinal number.
84991
84992 2004-11-16  Jim Meyering  <jim@meyering.net>
84993
84994         * modules/closeout (Depends-on): Add fpending.
84995
84996 2004-11-15  Jim Meyering  <jim@meyering.net>
84997
84998         * lib/closeout.c: Include "__fpending.h" once again.
84999         Include <stdbool.h>.
85000         (close_stdout): Don't fail just because stdout was closed initially,
85001         since some programs don't write to stdout in the normal course of
85002         operation (other than --version and --help), and we don't want this
85003         function to make e.g. `touch file >&-' fail.
85004         But do fail if it was closed and someone has tried to write to it.
85005         E.g., `printf foo >&-' must fail.
85006
85007 2004-11-13  Jim Meyering  <jim@meyering.net>
85008
85009         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85010
85011 2004-11-12  Simon Josefsson  <jas@extundo.com>
85012
85013         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85014         small doc fix is still pending.
85015
85016 2004-11-11  Simon Josefsson  <jas@extundo.com>
85017
85018         * modules/strtok_r: New file.
85019
85020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85021         strtok_r.
85022
85023 2004-11-11  Simon Josefsson  <jas@extundo.com>
85024
85025         * m4/strtok_r.m4: New file.
85026
85027         * m4/getopt.m4: Replace opterr.
85028
85029 2004-11-11  Simon Josefsson  <jas@extundo.com>
85030
85031         * lib/strtok_r.h, strtok_r.c: New file.
85032
85033 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85036         of replacing opterr, getopt, etc.  This should handle the
85037         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85038
85039 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85040
85041         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85042         we can stop lying to compilers about the constness of argv when we
85043         are compiled outside glibc.
85044         (getopt, getopt_long, getopt_long_only): Use it.
85045         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85046         _getopt_internal, getopt): Likewise.
85047         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85048         _getopt_long_only_r): Likewise.
85049         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85050         _getopt_long_r, _getopt_long_only_r): Likewise.
85051
85052         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85053         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85054         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85055         the other external symbols.
85056         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85057         declaration, since the above renaming now works around collisions.
85058
85059 2004-11-11  Jim Meyering  <jim@meyering.net>
85060
85061         * lib/linebreak.c: Remove trailing blanks.
85062         * lib/alloca_.h: Likewise.
85063         * lib/acosl.c: Likewise.
85064         * lib/euidaccess.c: Likewise.
85065         * lib/allocsa.h: Likewise.
85066
85067 2004-11-10  Simon Josefsson  <jas@extundo.com>
85068
85069         * m4/getaddrinfo.m4: New file.
85070
85071 2004-11-10  Simon Josefsson  <jas@extundo.com>
85072
85073         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85074
85075 2004-11-10  Simon Josefsson  <jas@extundo.com>
85076
85077         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85078         getaddrinfo.
85079
85080         * modules/getaddrinfo: New file.
85081
85082 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85085
85086 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         * lib/mktime.c (SHR): New macro, which is a portable
85089         substitute for >> that should work even on Crays.
85090         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85091         Problem reported by Mark D. Baushke in
85092         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85093         * lib/getdate.y (SHR): Likewise.
85094         (tm_diff): Use it.
85095         * lib/strftime.c (SHR): Likewise.
85096         (tm_diff): Use it.
85097         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85098         quote_these_too, so that right shifts are well defined.  All uses
85099         changed.
85100
85101 2004-11-10  Jim Meyering  <jim@meyering.net>
85102
85103         Ensure that no close failure goes unreported.
85104         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85105         return early when it seems there's nothing to flush.
85106         Don't include __fpending.h.
85107
85108 2004-11-10  Jim Meyering  <jim@meyering.net>
85109
85110         * modules/closeout (Depends-on): Remove fpending.
85111
85112 2004-11-10  Jim Meyering  <jim@meyering.net>
85113
85114         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85115
85116 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85117
85118         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85119         gl_FUNC_STRFTIME.
85120         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85121         and AC_REQUIRE when possible, to avoid duplicate checks.
85122         Check for <wchar.h>.
85123
85124 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85127
85128 2004-11-09  Bruno Haible  <bruno@clisp.org>
85129
85130         * m4/sockpfaf.m4: New file.
85131
85132 2004-11-05  Bruno Haible  <bruno@clisp.org>
85133
85134         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85135         Reported by Mark D. Baushke <mdb@cvshome.org>.
85136
85137 2004-11-04  Bruno Haible  <bruno@clisp.org>
85138
85139         2004-09-11  Bruno Haible  <bruno@clisp.org>
85140                 * allocsa.valgrind: New file.
85141         2004-02-06  Bruno Haible  <bruno@clisp.org>
85142                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85143                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85144                 Reported by Christopher Seip <chris.seip@hp.com>.
85145
85146 2004-11-04  Bruno Haible  <bruno@clisp.org>
85147
85148         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85149         (Makefile.am): Distribute it.
85150
85151 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85152
85153         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85154         with errno == ERANGE if the buffer is too small.
85155         Problem reported by Mark D. Baushke.
85156
85157 2004-11-03  Albert Chin  <china@thewrittenword.com>
85158             Paul Eggert  <eggert@cs.ucla.edu>
85159
85160         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85161         equivalent, substitute $ac_type for equivalent type rather than
85162         blindly using uint32_t *always* which won't work if uint32_t is not
85163         available.  Define _UINT32_T to work around typedef of uint32_t if
85164         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85165         2.5.1.
85166
85167 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85168
85169         * m4/jm-macros.m4: Sync from coreutils.
85170         (gl_MACROS): Check for mbrlen, for pathchk.
85171         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85172
85173 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85174
85175         * lib/xreadlink.c (MAXSIZE): New macro.
85176         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85177         size does not exceed MAXSIZE.  Avoid cast.
85178         As suggested by Mark D. Baushke in
85179         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85180         if readlink fails with buffer size just under MAXSIZE, try again
85181         with MAXSIZE.
85182
85183 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85186
85187 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85188         and  Paul Eggert  <eggert@cs.ucla.edu>
85189
85190         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85191         (get_date): Overparenthesize to avoid GCC warning.
85192
85193 2004-11-02  Bruno Haible  <bruno@clisp.org>
85194
85195         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85196         returns void.
85197
85198 2004-11-02  Bruno Haible  <bruno@clisp.org>
85199
85200         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85201         function returns void.
85202
85203 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85206         fflush_unlocked, flockfile, funlockfile, funlockfile,
85207         fputs_unlocked, putc_unlocked.
85208
85209 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85212         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85213         already declared.
85214
85215 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85216
85217         * modules/getdate (Files): Add doc/getdate.texi.
85218         (Depends-on): Add setenv, xalloc.
85219
85220 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         * lib/getdate.y: Add support for TZ="foo" within a date string.
85223         Fix some bugs near time_t boundaries.  Reject dates with
85224         out-of-range components, e.g., "Sept 31".
85225         Include <stdlib.h>, "setenv.h", "xalloc.h".
85226         (ISDIGIT_LOCALE): Remove; unused.
85227         Note that the TZ and time functions used here are not reentrant.
85228         (mktime_ok, get_tz): New functions.
85229         (TZBUFSIZE): New constant.
85230         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85231         This requires that we sometimes generate our own TZ="XXX..." setting.
85232
85233 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * doc/getdate.texi: New file, from coreutils with modifications for
85236         the new TZ parsing.
85237
85238 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85239
85240         * lib/mktime.c (not_equal_tm): Remove redundant check.
85241
85242 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * modules/regex (lib_SOURCES): Add regex.c.
85245         Reported by James Youngman in
85246         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85247
85248 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * lib/getdate.y: Use Bison 1.875 features, and some minor
85251         code cleanups.  This change does not affect semantics.
85252         Don't include <stdlib.h>; no longer needed.
85253         Don't include unlocked-io.h; only the "#if TEST" code uses
85254         stdio, and performance isn't crucial there.
85255         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85256         Bison 1.875 features as described below.
85257         All uses of "PC." replaced by "pc->".
85258         (YYSTYPE): Add a forward declaration.
85259         (yylex, yyerror): Use full prototypes in forward decls.
85260         Use "%pure-parser" rather than obsolescent "%pure_parser".
85261         Use %parse-param and %lex-param instead of obsolescent
85262         YYPARSE_PARAM and YYLEX_PARAM.
85263         (meridian_table, month_and_day_table, time_units_table,
85264         relative_time_table, time_zone_table, military_table,
85265         lookup_zone, lookup_word, get_date):
85266         Use NULL instead of 0 where appropriate.
85267         (to_hour): Avoid abort (), to avoid a dependency on
85268         stdlib.h.
85269         (yyerror, yylex): Now accepts parser_control * arg.
85270         (main) [TEST]: Use '\0' rather than 0 for char.
85271
85272 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85275
85276 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85277
85278         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85279         It's now the caller's responsibility to handle the case where
85280         !HAVE_GETPAGESIZE && !defined getpagesize.
85281
85282         * lib/mktime.c (leapyear): Arg is long int, not int.
85283
85284 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85287
85288 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85291         missing.  Problem reported by James Youngman.
85292
85293 2004-10-16  Simon Josefsson  <jas@extundo.com>
85294
85295         * gnulib-tool: Fix comments.  Fix parse problem.
85296         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85297
85298 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85301         implementation of getopt_long.  Problem reported by Alexander Taler in:
85302         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85303
85304 2004-10-15  Bruno Haible  <bruno@clisp.org>
85305
85306         * gnulib-tool: Untabify. Initialize supplied_libname.
85307         (func_usage): More homogenous output.
85308         (func_modules_transitive_closure, func_modules_to_filelist,
85309         func_emit_lib_Makefile_am): New functions.
85310         (func_import): New function, extracted from big case statement. Use
85311         func_get_license, func_modules_transitive_closure,
85312         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85313         opt_lgpl. Don't use test -a, as it's not portable.
85314         (func_create_testdir): Use func_modules_transitive_closure,
85315         func_modules_to_filelist, func_emit_lib_Makefile_am.
85316
85317 2004-10-15  Bruno Haible  <bruno@clisp.org>
85318
85319         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85320
85321 2004-10-15  Bruno Haible  <bruno@clisp.org>
85322
85323         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85324         the portions belonging to each module.
85325         Suggested by Derek Robert Price <derek@ximbiot.com>.
85326
85327 2004-10-12  Simon Josefsson  <jas@extundo.com>
85328
85329         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85330         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85331         to real functions.
85332
85333 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85334
85335         * modules/vsnprintf: New file.
85336
85337 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85338
85339         * m4/vsnprintf.m4: New file.
85340
85341 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85342
85343         * lib/vsnprintf.h: New file.
85344         * lib/vsnprintf.c: New file.
85345
85346 2004-10-11  Bruno Haible  <bruno@clisp.org>
85347
85348         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85349         vsnprintf.
85350
85351 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85352
85353         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85354
85355 2004-10-07  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85358         fits into the provided buffer.
85359
85360 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85361
85362         * lib/diacrit.c, diacrit.h: Add GPL notice.
85363
85364         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85365         notice.
85366         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85367         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85368         This avoids a potential constant-folding bug.
85369
85370 2004-10-05  Bruno Haible  <bruno@clisp.org>
85371
85372         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85373         for the declaration of strsep.
85374
85375 2004-10-05  Bruno Haible  <bruno@clisp.org>
85376
85377         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85378
85379 2004-10-04  Simon Josefsson  <jas@extundo.com>
85380
85381         * modules/memmem: New file.
85382         * tests/test-memmem.c: New file.
85383         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85384
85385 2004-10-04  Simon Josefsson  <jas@extundo.com>
85386
85387         * m4/memmem.m4: New file.
85388
85389 2004-10-04  Simon Josefsson  <jas@extundo.com>
85390
85391         * lib/memmem.h: New file.
85392         * lib/memmem.c: New file, taken from glibc.
85393
85394 2004-10-04  Simon Josefsson  <jas@extundo.com>
85395
85396         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85397         '#ifdef USE_UNLOCKED_IO'.
85398
85399 2004-10-04  Simon Josefsson  <jas@extundo.com>
85400
85401         * config/srclist.txt: Add memmem from glibc.
85402
85403 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85406
85407         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85408         modules/exclude, modules/getdate, modules/getline,
85409         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85410         modules/getusershell, modules/linebuffer, modules/md5,
85411         modules/mountlist, modules/posixtm, modules/readtokens,
85412         modules/readutmp, modules/regex, modules/sha1,
85413         modules/version-etc, modules/yesno:
85414         Remove dependency on unlocked-io.
85415
85416 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85419
85420         * m4/unlocked-io.m4: Add copyright notice.
85421         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85422
85423 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85426         * lib/xmalloc.c (xmemdup): Likewise.
85427         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85428         XFREE): Remove these long-obsolescent macros.
85429         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85430         * lib/xstrdup.c: Remove.
85431
85432         * lib/regex.c (re_comp): Cast gettext return value to char *,
85433         Problem reported by Martin Neitzel via Mark D. Baushke.
85434
85435 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85438         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85439         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85440         regex.c, sha1.c, version-etc.c, yesno.c:
85441         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85442         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85443         the includer's responsibility.
85444
85445         Sync from coreutils.
85446
85447         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85448         points to the start of a string, as the C Standard says the
85449         resulting behavior is undefined.
85450
85451         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85452         simple -> simple_backups, numbered_existing ->
85453         numbered_existing_backups, numbered -> numbered_backups
85454         to avoid shadowing problems.  All uses changed.
85455         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85456         * lib/backupfile.c (check_extension, numbered_backup):
85457         Rename locals to avoid shadowing 'basename'.
85458         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85459         once.
85460
85461         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85462         * lib/.cvsignore: Add getopt.h.
85463
85464 2004-10-04  Bruno Haible  <bruno@clisp.org>
85465
85466         * modules/README: New file.
85467         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85468         not a module.
85469
85470 2004-10-02  Jim Meyering  <jim@meyering.net>
85471
85472         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85473
85474 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85475
85476         * modules/strsep: New file.
85477
85478 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85479
85480         * m4/strsep.m4: New file.
85481
85482 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85483
85484         * lib/strsep.h: New file.
85485         * lib/strsep.c: New file.
85486
85487 2004-10-01  Simon Josefsson  <jas@extundo.com>
85488
85489         * lib/snprintf.c (snprintf): Handle size==0.
85490
85491 2004-10-01  Simon Josefsson  <jas@extundo.com>
85492             Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85495         (snprintf): Declare 'args'.
85496
85497 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * lib/snprintf.c: Remove comments as to why each header is needed.
85500
85501 2004-10-01  Bruno Haible  <bruno@clisp.org>
85502
85503         * MODULES.html.sh: Add strsep.
85504
85505 2004-09-30  Simon Josefsson  <jas@extundo.com>
85506
85507         * modules/snprintf: New file.
85508
85509 2004-09-30  Simon Josefsson  <jas@extundo.com>
85510
85511         * m4/snprintf.m4: New file.
85512
85513 2004-09-30  Simon Josefsson  <jas@extundo.com>
85514
85515         * lib/snprintf.h, lib/snprintf.c: New files.
85516
85517 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85518
85519         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85520         (hol_entry_help): Never translate an empty string.
85521         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85522         * lib/argp.h (OPTION_NO_TRANS): New option.
85523
85524 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85525
85526         * modules/argp (Maintainer): Replace Simon Josefsson
85527         by Sergey Poznyakoff.
85528
85529 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85532         changes merged back into glibc.
85533
85534 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85537
85538 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85539
85540         * lib/xvasprintf.c: Include xalloc.h.
85541         (xvasprintf): Use xalloc_die, not xmalloc_die.
85542
85543 2004-09-29  Bruno Haible  <bruno@clisp.org>
85544
85545         * modules/alloca-opt: New file, derived from modules/alloca.
85546         * modules/allocsa: Depend on alloca-opt instead of alloca.
85547         * modules/setenv: Likewise.
85548         * modules/vasnprintf: Likewise.
85549         * MODULES.html.sh: Add alloca-opt.
85550
85551 2004-09-28  Simon Josefsson  <jas@extundo.com>
85552
85553         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85554         LGPL, and to replace license template from GPL to LGPL.
85555
85556 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85557
85558         * modules/dummy: Change license to LGPL.
85559
85560 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85563
85564 2004-09-24  Simon Josefsson  <jas@extundo.com>
85565
85566         * modules/minmax (License): Change from GPL to LGPL.
85567
85568 2004-09-23  Simon Josefsson  <jas@extundo.com>
85569
85570         * gnulib-tool (--import): Typo.
85571
85572 2004-09-23  Simon Josefsson  <jas@extundo.com>
85573
85574         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85575
85576 2004-09-22  Bruno Haible  <bruno@clisp.org>
85577
85578         * modules/*: Add 'License' field.
85579         * gnulib-tool: Accept --extract-license option.
85580         (func_get_license): New function.
85581
85582 2004-09-21  Bruno Haible  <bruno@clisp.org>
85583
85584         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85585         Reported by Simon Josefsson.
85586
85587 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85588
85589         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85590         gl_AC_TYPE_LONG_LONG.
85591
85592 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85593
85594         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85595
85596 2004-09-18  Simon Josefsson  <jas@extundo.com>
85597         and  Paul Eggert  <eggert@cs.ucla.edu>
85598
85599         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85600         calls with autoreconf.  Define GL_LIB.
85601
85602 2004-09-14  Karl Berry  <karl@gnu.org>
85603
85604         * config/srclist.txt: unsync setenv.c, sigh.
85605
85606 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85607
85608         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85609         Problem reported by Bruno Haible in:
85610         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85611
85612 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         * config/srclist.txt: Comment out argp-pvh.c.
85615
85616 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85619         in case some system header has #define'd it.  Problem reported by
85620         Soeren D. Schulze in
85621         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85622
85623 2004-09-09  Karl Berry  <karl@gnu.org>
85624
85625         * regex.[ch]: delete from the root.  These were supposed to be
85626                 synced with emacs cvs, but this has not happened for about
85627                 a year, and anyway nothing else uses emacs regex.[ch].
85628                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85629                 lib/regex[.ch] is untouched.
85630
85631 2004-09-09  Bruno Haible  <bruno@clisp.org>
85632
85633         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85634
85635 2004-09-09  Bruno Haible  <bruno@clisp.org>
85636
85637         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85638         modifications.
85639         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85640
85641 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85642
85643         * modules/xvasprintf: New file.
85644         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85645
85646 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85647
85648         * lib/xvasprintf.h: New file.
85649         * lib/xvasprintf.c: New file.
85650         * lib/xasprintf.c: New file.
85651
85652 2004-09-08  Bruno Haible  <bruno@clisp.org>
85653
85654         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85655
85656 2004-09-08  Bruno Haible  <bruno@clisp.org>
85657
85658         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85659         length is > INT_MAX.
85660         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85661         more.
85662
85663 2004-09-08  Bruno Haible  <bruno@clisp.org>
85664
85665         * lib/stdint_.h: New file, taken from GNU clisp.
85666
85667 2004-09-08  Bruno Haible  <bruno@clisp.org>
85668             Oskar Liljeblad  <oskar@osk.mine.nu>
85669
85670         * modules/stdint: New file.
85671         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85672
85673 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85674
85675         Import from coreutils.
85676         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85677         strings on unbounded length.  alloca's performance benefits aren't
85678         that important here.
85679         (V_STRDUP): Remove.
85680         (parse_with_separator): New function, with most of the internals
85681         of the old parse_user_spec.  Allow user to omit both user and group,
85682         for compatibility with FreeBSD.
85683         Clone only the user name, not the entire spec.
85684         Do not set *uid, *gid unless entirely successful.
85685         Avoid memory leak in some failing cases.
85686         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85687         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85688         (parse_user_spec): Rewrite to use parse_with_separator.
85689
85690 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85691
85692         * modules/userspec: Don't depend on alloca.
85693
85694 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85697
85698 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85699
85700         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85701         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85702         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85703
85704 2004-08-16  Simon Josefsson  <jas@extundo.com>
85705
85706         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85707         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85708         Add --dry-run for --import.
85709         Let user provided command line parameters override configure.ac
85710         settings.
85711
85712 2004-08-12  Simon Josefsson  <jas@extundo.com>
85713
85714         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85715         as discussed with Paul Eggert in threads rooted at
85716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85717         and
85718         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85719         Before, the test was empty, and relied on ELIDE_CODE in source
85720         code.)
85721         (gl_PREREQ_GETOPT): New macro.
85722         (gl_GETOPT): Use them.
85723
85724 2004-08-12  Simon Josefsson  <jas@extundo.com>
85725
85726         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85727         * lib/getopt_.h: Renamed from getopt.h.
85728
85729 2004-08-12  Simon Josefsson  <jas@extundo.com>
85730
85731         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85732         Change default library name from libfoo to libgnu.
85733         Now, if you have a configure.ac that says:
85734                 gl_SOURCE_BASE(gl)
85735                 gl_M4_BASE(gl/m4)
85736                 gl_MODULES(error getopt etcetera)
85737                 gl_INIT
85738         you can import all you need by running:
85739                 ../gnulib/gnulib-tool --import
85740
85741         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85742         (Makefile.am): Rewrite, use logic from argz.
85743         (Include): Use <getopt.h> instead of "getopt.h".
85744
85745 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * modules/argp (Files): Add m4/unlocked-io.m4.
85748         (Depends-on): Add extensions.
85749
85750 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85751
85752         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85753         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85754         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85755         Check for program_invocation_name, program_invocation_short_name,
85756         flockfile, funlockfile, features.h, _getopt_long_only_r.
85757
85758 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85761         its complicated substitute.
85762         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85763         and program_invocation_name.
85764         (__argp_basename) [!_LIBC]: Remove; the only use was
85765         replaced by its body.
85766         (__argp_short_program_name): Change condition from
85767         !defined __argp_short_program_name to
85768         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85769         to match argp-namefrob.h.
85770         (__argp_failure): Don't assume strerror_r returns char *.
85771         * lib/argp-parse.c (N_): Define unconditionally.
85772         (argp_default_options): Fill out initializers with 0 to avoid
85773         gcc warnings.
85774
85775 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85776
85777         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85778         getopt1.c.
85779
85780 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85781
85782         Merge from coreutils.
85783
85784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85785
85786         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85787         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85788
85789 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85790
85791         Merge from coreutils.
85792
85793         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85794         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85795         for Reliant Unix 5.43.
85796
85797         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85798         (union fooround): Use uintmax_t, not long int.
85799         The rest is a merge from libc:
85800         [defined _LIBC]: Include <shlib-compat.h>.
85801         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85802
85803         * lib/settime.c (settime): Recode to avoid warning with
85804         Sun Forte C 6U2.
85805
85806         * lib/strverscmp.c: Convert to UTF-8.
85807
85808 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85809
85810         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85811         m4/uintmax_t.m4.
85812
85813 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85814
85815         * modules/xalloc-die: New file.
85816         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85817
85818         * modules/md5 (Files): Add m4/uint32_t.m4.
85819         * modules/sha1: Renamed from modules/sha.
85820         (Files):
85821         Rename lib/sha.h to lib/sha1.h.
85822         Rename lib/sha.c to lib/sha1.c.
85823         Rename m4/sha.m4 to m4/sha1.m4.
85824         (lib_SOURCES): Likewise.
85825         (configure.ac): Rename gl_SHA to gl_SHA1.
85826         (Include): sha.h -> sha1.h.
85827
85828 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85831         * m4/sha1.m4: Renamed from sha.m4.
85832         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85833
85834 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85835
85836         * lib/obstack.h (obstack_empty_p):
85837         Don't assume that chunk->contents is suitably aligned.
85838         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85839         Likewise. Problem reported by Benno in
85840         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85841
85842         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85843         readable.  This could be improved further but it'd take some work.
85844
85845 2004-08-08  Simon Josefsson  <jas@extundo.com>
85846
85847         * modules/xgethostname (Depends-on): Remove exit and error (not
85848         used).
85849
85850         * modules/getpass-gnu: Add getpass.h.
85851         (Depends-on): Add stdbool.
85852         * modules/getpass: Add getpass.h.
85853
85854 2004-08-08  Simon Josefsson  <jas@extundo.com>
85855
85856         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85857         Check getpass declaration.
85858
85859 2004-08-08  Simon Josefsson  <jas@extundo.com>
85860
85861         * lib/xgethostname.c: Don't include error.h (not used).
85862
85863         * lib/getpass.h: Add.
85864         * lib/getpass.c: Include getpass.h first.
85865
85866 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * lib/xalloc-die.c: New file.
85869         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85870         All uses removed.
85871         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85872         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85873         xalloc-die.c.
85874         (_, N_, xalloc_die): Move to xalloc-die.c.
85875         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85876         so that we needn't mess with xalloc_msg_memory_exhausted.
85877
85878         * lib/sha1.h: Renamed from sha.h.
85879         (SHA1_H): Renamed from _SHA_H.
85880         (sha1_ctx): Renamed from sha_ctx.
85881         (sha1_init_ctx): Renamed from sha_init_ctx.
85882         (sha1_process_block): Renamed from sha_process_block.
85883         (sha1_process_bytes): Renamed from sha_process_bytes.
85884         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85885         (sha1_read_ctx): Renamed from sha_read_ctx.
85886         (sha1_stream): Renamed from sha_stream.
85887         (sha1_buffer): Renamed from sha_buffer.
85888         * lib/sha1.c: Likewise; renamed from sha.c.
85889         Do not include <sys/types.h>.
85890         Include <stddef.h> rather than <stdlib.h>.
85891
85892 2004-08-08  Bruno Haible  <bruno@clisp.org>
85893
85894         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85895         FILESYSTEM_PREFIX_LEN.
85896         * lib/progreloc.c: Likewise.
85897         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85898
85899 2004-08-06  Simon Josefsson  <jas@extundo.com>
85900
85901         * modules/progname (Depends-on): Don't depend on stdbool.
85902
85903 2004-08-06  Simon Josefsson  <jas@extundo.com>
85904
85905         * modules/getsubopt: New file.
85906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85907         getsubopt.
85908
85909 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85910
85911         More merge from coreutils.
85912
85913         * m4/utimens.m4, m4/utimecmp.m4: New files.
85914         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85915         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85916         prereq.m4, sha.m4: Import changes from coreutils.
85917
85918 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         More merge from coreutils.
85921         * modules/raise, modules/readtokens0, modules/utimens:
85922         * modules/utimecmp, module/xnanosleep: New files.
85923         * modules/strftime: Add lib/strftime.h.
85924         Change include from <time.h> to "strftime.h".
85925         * modules/yesno: Add lib/yesno.h.
85926         * modules/backupfile: Remove lib/addext.c.
85927         * modules/euidaccess: Add stat-macros.h.
85928         * modules/canonicalize, modules/euidaccess,
85929         modules/filemode, modules/lchown, modules/makepath,
85930         modules/rmdir, modules/stat: Likewise.
85931
85932 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85933
85934         Merge from tar.
85935         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85936         SIZE_MAX is a valid preprocessor constant.
85937         (__argp_basename): Change from "#ifndef _LIBC"
85938         to "#ifndef __argp_short_program_name", so that
85939         we don't compile these functions for tar.
85940
85941         More merges from coreutils.
85942         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85943         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85944         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85945         * lib/addext.c: Remove; no longer needed.
85946         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85947         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85948         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85949         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85950         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85951         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85952         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85953         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85954         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85955         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85956         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85957         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85958         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85959         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85960         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85961         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85962         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85963         Import changes from coreutils.
85964
85965 2004-08-05  Simon Josefsson  <jas@extundo.com>
85966
85967         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85968
85969 2004-08-05  Simon Josefsson  <jas@extundo.com>
85970
85971         * m4/getsubopt.m4: New file.
85972
85973 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85974
85975         Merge from coreutils.
85976
85977         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85978         * m4/getcwd-path-max.m4: New files.
85979
85980         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85981         FILESYSTEM_PREFIX_LEN ->
85982         FILE_SYSTEM_PREFIX_LEN.
85983         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85984         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85985         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85986         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85987
85988         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85989         prerequisite modules now handle the DOS stuff.
85990         Don't check for unistd.h.
85991
85992 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         Merge from coreutils.
85995
85996         * lib/.gdb-history: Remove; this doesn't belong here.
85997
85998         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85999         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86000         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86001         * lib/getcwd.c: New files.
86002
86003         * lib/dirname.h: Include <stdbool.h>.
86004         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86005         for consistency with POSIX terminology.  All uses changed.
86006         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86007         (strip_trailing_slashes): Use bool for booleans.
86008         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86009
86010         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86011         sometimes returns a positive errno value even when it succeeds.
86012         (print_errno_message) [!LIBC]: Fall back on strerror if
86013         __strerror_r fails.
86014
86015         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86016         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86017         (longest_relative_suffix): New function.
86018         (path_concat): Use it.  Assume first argument is not NULL.
86019         Port to DOS.  Omit redundant separators.
86020         Report an error instead of returning NULL.
86021         Use mempcpy instead of memcpy.
86022         (xpath_concat): Remove: not declared or used.
86023
86024         * lib/same.h: Include <stdbool.h>
86025         (same_name): Return bool, not int.
86026         * lib/same.c (same_name): Likewise.
86027         (errno): Don't declare; we assume C89 or better now.
86028
86029         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86030         if not already defined.
86031
86032         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86033         * lib/dup-safer.c (errno): Likewise.
86034
86035 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86036
86037         Merge from coreutils.
86038         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86039         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86040         * modules/path-concat: Don't depend on strdup.
86041
86042 2004-08-03  Simon Josefsson  <jas@extundo.com>
86043
86044         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86045         * lib/progname.h: Don't include stdbool.h.
86046
86047 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86050         * MODULES.html.sh (func_all_modules): Remove fatal.
86051
86052 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86055
86056 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86059         working.
86060
86061 2004-08-02  Simon Josefsson  <jas@extundo.com>
86062
86063         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86064         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86065         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86066
86067 2004-08-01  Simon Josefsson  <jas@extundo.com>
86068
86069         * lib/xgetdomainname.c: Include stdlib.h, for free().
86070
86071 2004-07-19  Bruno Haible  <bruno@clisp.org>
86072
86073         * MODULES.html.sh (func_all_modules): Add dummy.
86074
86075 2004-07-16  Simon Josefsson  <jas@extundo.com>
86076
86077         * modules/dummy: New file.
86078
86079 2004-07-16  Simon Josefsson  <jas@extundo.com>
86080
86081         * lib/dummy.c: New file.
86082
86083 2004-07-16  Bruno Haible  <bruno@clisp.org>
86084
86085         * lib/backupfile.h: Add extern "C" for C++.
86086         * lib/closeout.h: Likewise.
86087         * lib/copy-file.h: Likewise.
86088         * lib/findprog.h: Likewise.
86089         * lib/full-write.h: Likewise.
86090         * lib/pathname.h: Likewise.
86091         * lib/progname.h: Likewise.
86092         * lib/stpcpy.h: Likewise.
86093         * lib/stpncpy.h: Likewise.
86094         * lib/strcase.h: Likewise.
86095         * lib/strstr.h: Likewise.
86096         * lib/xalloc.h: Likewise.
86097
86098         * lib/mbswidth.h: Add extern "C" for C++.
86099         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86100
86101 2004-07-13  Robert Millan  <robertmh@gnu.org>
86102
86103         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86104
86105 2004-07-09  Simon Josefsson  <jas@extundo.com>
86106
86107         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86108         failed without this.)
86109
86110 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86111
86112         * modules/chown (Files): Add lib/fchown-stub.c, since
86113         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86114
86115 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         * lib/fchown-stub.c: New file.
86118
86119 2004-06-24  Jim Meyering  <jim@meyering.net>
86120
86121         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86122
86123 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * modules/argz: Omit "#include".
86126
86127         * MODULES.html.sh (func_all_modules): Add calloc, to match
86128         2004-06-01 addition of calloc module.
86129
86130 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * m4/argz.m4: New file, which is autoupdated from libtool.
86133
86134 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86135
86136         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86137         libtool.
86138
86139 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * config/srclist-update: Don't insist on "USA." before the
86142         close-comment, as libtool omits the period and puts the */ on a
86143         separate line.
86144         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86145         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86146
86147 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86148
86149         * modules/argz: New file.
86150         * MODULES.html.sh (func_all_modules): Add argz.
86151
86152 2004-06-12  Jim Meyering  <jim@meyering.net>
86153         and  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         * modules/hash (Files): Add lib/xalloc.h.
86156         * modules/pipe (Depends-on): Add wait-process.
86157         * modules/stat (Depends-on): Add xalloc.
86158         * modules/userspec (Files): Add lib/userspec.h.
86159         * modules/xstrto
86160
86161         Upgrade from gettext-0.13.
86162         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86163         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86164         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86165
86166 2004-06-10  Jim Meyering  <jim@meyering.net>
86167
86168         * lib/calloc.c: New file.
86169
86170 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * lib/getdate.y (yylex): Allow space between sign and number.
86173         Problem reported by Dan Jacobson.
86174
86175 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86176
86177         Merge from coreutils CVS.
86178
86179         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86180         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86181         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86182         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86183         xstrtol.m4: Fix copyright date and/or serial number.
86184
86185         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86186         See if we need an fchown replacement.
86187         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86188         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86189         and use the replacement function if we detect either defect.
86190
86191         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86192         gl_UTIMECMP.
86193
86194 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86195         and  Jim Meyering  <jim@meyering.net>
86196
86197         Merge from coreutils CVS.
86198
86199         * lib/stat-macros.h: New file, with contents from file-type.h
86200         and coreutils' system.h.
86201         * lib/file-type.c: Include "stat-macros.h".
86202         * lib/file-type.h (file_type): Move all macro definitions to new file,
86203         stat-macros.h.
86204
86205         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86206         Wrap old code with this conditional.
86207         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86208         function that does not dereference symlinks.
86209         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86210
86211         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86212         dependency problems.
86213         (xreadlink): Accept new arg SIZE, for efficiency.
86214         All decls and uses changed.
86215         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86216
86217         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86218         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86219
86220         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86221         sysexits.h.
86222
86223 2004-06-01  Jim Meyering  <jim@meyering.net>
86224
86225         * m4/calloc.m4: New file.
86226
86227 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86230         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86231         Also, fix a typo in a diagnostic.
86232
86233 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86236         or AC_FUNC_REALLOC.
86237
86238 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86241         macros to be defined.
86242         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86243         the allocator returns NULL because the requested size is zero.
86244
86245 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86248         var.  Add comment explaining why libc still defines it.  This
86249         merges the following patch from glibc:
86250         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86251
86252 2004-05-20  Andreas Schwab  <schwab@suse.de>
86253
86254         * m4/free.m4: Replace free if it not known to work, not the other
86255         way round.
86256
86257 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86258
86259         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86260         present in glibc since revision 1.1 of this file.
86261         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86262         obstack_alignment_mask, obstack_alloc, obstack_base,
86263         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86264         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86265         obstack_grow0, obstack_init, obstack_int_grow,
86266         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86267         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86268         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86269         nonexistent functions.
86270
86271 2004-05-18  Karl Berry  <karl@gnu.org>
86272
86273         * config/srclist.txt: break link for vasnprintf.c.
86274
86275 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86276
86277         Port obstack to the AS/400, where pointers are 16 bytes wide and
86278         you cannot cast an integer to a valid pointer.  This patch is
86279         currently waiting to be integrated into glibc; see
86280         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86281
86282         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86283         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86284         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86285         (struct obstack): temp member is now a union of a pointer and
86286         an integer, instead of an integer.  All integer uses changed.
86287         This does not affect the physical layout of struct obstack,
86288         except on hosts (like the AS/400) where the size or alignment of
86289         void * is greater than that of ptrdiff_t.
86290         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86291         __STDC__)]: Store temporary in pointer member of union, not
86292         integer member.
86293         * lib/obstack.c: Include <stddef.h>, for offsetof.
86294         (struct fooalign): Remove; it doesn't need a name.
86295         (union fooround): Change double to long double, and add void *.
86296         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86297         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86298         not a macro.  Hence the values are always int; so remove all
86299         casts-to-int in uses.
86300
86301 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86302
86303         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86304         we can get this patch merged into glibc.
86305
86306 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86307             Paul Eggert  <eggert@cs.ucla.edu>
86308
86309         * m4/argp: Depend on alloca.
86310
86311 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86312             Paul Eggert  <eggert@cs.ucla.edu>
86313
86314         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86315         freecoding.
86316
86317 2004-05-17  Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86320         precision that consists of a '.' followed by an empty digit string.
86321         Patch by Tor Lillqvist <tml@iki.fi>.
86322
86323 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86324
86325         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86326         for backward compatibility with older code.  We need our own
86327         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86328         it under some other name, and our alloca.h will define it.
86329
86330 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86331             Derek Price  <derek@ximbiot.com>
86332
86333         * lib/alloca.c: Include <alloca.h>, to get our interface.
86334         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86335         include <alloca.h> first.  Use C89 prototype for alloca; this
86336         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86337         Use #elif for simplicity, since we can assume C89 now.
86338         Don't try to source the system alloca.h since it will not be found
86339         and to prevent recursively including its replacement.
86340         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86341         * lib/regex.c: Likewise.
86342
86343 2004-05-16  Derek Price  <derek@ximbiot.com>
86344             Paul Eggert  <eggert@cs.ucla.edu>
86345
86346         getline cleanup.  This changes the getndelim2 API: both order of
86347         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86348         no delimiter).
86349
86350         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86351         interface does that.
86352         (getline): Always use getdelim, so that we don't have two
86353         copies of this code.
86354         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86355         if available.
86356         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86357         (GETNDELIM2_MAXIMUM): New macro.
86358         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86359         instead of the old practice of delim2==0.  All callers changed.
86360         Return -1 on overflow, instead of returning junk.
86361         Do not set *linesize unless allocation succeeds.
86362         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86363         that we include sys/types.h.
86364         * lib/getnline.h: Likewise.
86365         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86366         (getndelim2): Reorder arguments.
86367         * lib/getnline.c (getnline, getndelim):
86368         Don't discard the NMAX argument.
86369         (getnline): Invoke getndelim, to avoid code duplication.
86370         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86371         of (size_t) -1 by callers of the getnline family.
86372
86373 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86374
86375         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86376         Check for gettimeofday.
86377         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86378         Check for settimeofday, stime.
86379
86380 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86381
86382         * lib/nanosleep.c (suspended): Change its type from int to
86383         sig_atomic_t volatile.
86384         (first_call): Make it private to rpl_nanosleep, and have it
86385         be zero initially as that's a bit faster.
86386         (my_usleep): Round up fractional times instead of truncating them,
86387         as this is the usual meaning for 'sleep'.
86388
86389         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86390         doesn't work.
86391         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86392         (ENOSYS): Define if not defined.
86393         (settime): Fall back on stime if it exists and settimeofday fails.
86394         But don't bother with fallbacks if a method fails with errno == EPERM.
86395
86396 2004-05-11  Jim Meyering  <jim@meyering.net>
86397
86398         Prior to this change, the save_cwd caller required read access to the
86399         current directory on most systems (ones with the fchdir function).
86400
86401         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86402         fails, try write-only, and finally, resort to using xgetcwd.
86403
86404 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86405
86406         * lib/obstack.c, obstack.h: Import changes from libc.
86407
86408 2004-04-28  Bruno Haible  <bruno@clisp.org>
86409
86410         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86411         also implicitly appends .exe to executables.
86412         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86413         accepts Windows pathnames.
86414         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86415         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86416         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86417         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86418         Reported by Derek Robert Price <derek@ximbiot.com>.
86419
86420 2004-04-21  Karl Berry  <karl@gnu.org>
86421
86422         * config/srclist.txt (localcharset.c): break sync.
86423
86424 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86425
86426         * m4/host-os.m4: Add a copyright notice.
86427
86428 2004-04-20  Jim Meyering  <jim@meyering.net>
86429
86430         Change UTILS_ to gl_ in AC_DEFINE'd names.
86431         Change utils_- and jm_-prefixed variables, too.
86432         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86433         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86435
86436         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86437         Don't emit trailing blanks.
86438         Also rename jm_-prefixed variables to have gl_ prefix.
86439
86440         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86441         Also rename jm_-prefixed variables to have gl_ prefix.
86442
86443         * m4/jm-macros.m4: Reflect the renamings.
86444         * m4/prereq.m4: Likewise.
86445
86446 2004-04-20  Jim Meyering  <jim@meyering.net>
86447
86448         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86449         memory.
86450
86451 2004-04-20  Jim Meyering  <jim@meyering.net>
86452             Bruno Haible  <bruno@clisp.org>
86453
86454         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86455         memory when realloc fails.
86456
86457 2004-04-19  Jim Meyering  <jim@meyering.net>
86458
86459         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86460         now that readutmp.c may call `free (0)'.
86461
86462 2004-04-19  Bruno Haible  <bruno@clisp.org>
86463
86464         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86465         * m4/inttypes_h.m4: Likewise.
86466         * m4/stdint_h.m4: Likewise.
86467         * m4/intmax_t.m4: Likewise.
86468         * m4/uintmax_t.m4: Likewise.
86469
86470 2004-04-18  Jim Meyering  <jim@meyering.net>
86471
86472         * m4/prereq.m4: Don't forbid jm_ prefix.
86473
86474         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86475         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86476         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86477         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86478         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86479         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86480         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86481         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86482         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86483         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86484         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86485         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86486         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86487         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86488         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86489         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86490         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86491         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86492         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86493
86494 2004-04-18  Jim Meyering  <jim@meyering.net>
86495
86496         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86497         failure, don't leak memory and do call END_UTMP_ENT.
86498
86499 2004-04-16  Jim Meyering  <jim@meyering.net>
86500
86501         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86502         coreutils' stat program.
86503         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86504
86505 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86506
86507         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86508         C89.
86509         (CHAR_BIT): Remove, since we assume C89.
86510         Include <stdint.h> if available, as per current Autoconf CVS advice.
86511
86512 2004-03-31  Jim Meyering  <jim@meyering.net>
86513
86514         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86515         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86516         * m4/xalloc.m4: Likewise.
86517
86518 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86519
86520         Merge from coreutils.
86521
86522         * m4/inttostr.m4: New file.
86523         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86524         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86525         Require gl_CLOCK_TIME.
86526         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86527
86528 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86529
86530         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86531         not bool, to be more consistent with Unix conventions.
86532         Suggested by Bruno Haible.
86533
86534         Merge from coreutils.
86535
86536         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86537         * lib/umaxtostr.c: New files.
86538
86539         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86540         the usual <time.h> dance.
86541         (get_date): Change signature to support fractional time stamps.
86542         All callers changed.
86543         * lib/getdate.y: Include "getdate.h" first, as we can now
86544         assume C89 and don't need to worry about 'const'.
86545         Similarly, include "unlocked-io.h" near start, not in middle.
86546         Include <limits.h>.
86547         (textint.value): Use long int rather than int.
86548         (textint.digits): Use size_t rather than int.
86549         (BILLION, LOG10_BILLION): New constants.
86550         (parser_control): New member rel_ns.  Members day_ordinal,
86551         time_zone, month, day, hour, minutes, rel_year, rel_month,
86552         rel_day, rel_hour, rel_minutes, rel_seconds
86553         are now long int, not int.  Member seconds is now struct timespec,
86554         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86555         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86556         not int.
86557         (%union.intval): Now long int, not int.
86558         New member timespec.
86559         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86560         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86561         (spec): Now is a timespec or an item list.
86562         (timespec, items): New nonterminals.
86563         (time, rel, relunit, number, get_date):
86564         Add support for fractional seconds.
86565         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86566         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86567         (to_hour): First arg is now long int, not int.
86568         (to_year): Returns long int, not int.
86569         Don't treat year -70 like 70.
86570         (tm_diff): Returns long int, not int.
86571         (lookup_word): Use bool instead of int when appropriate.
86572         (yylex): Use size_t for count, not int.
86573         Detect overflow when parsing large integer constants.
86574         Add support for fractions.
86575         (get_date): Make pointers 'const' if possible.
86576         Use more-portable code to detect integer overflow.
86577         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86578         Don't use ctime; it's not reliable if the year has >4 digits.
86579
86580         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86581         This is for compatibility with BSD.
86582
86583         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86584         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86585         From coreutils' system.h.
86586
86587         * lib/userspec.c: Don't include "posixver.h".
86588         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86589         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86590         compatible extension.  Simplify code by removing a boolean int
86591         that was always nonzero if a string was nonnull.
86592
86593 2004-03-30  Jim Meyering  <jim@meyering.net>
86594
86595         Merge from coreutils.
86596
86597         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86598         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86599         on some systems one must include <grp.h> before it.
86600         Reported by Christian Krackowizer.
86601
86602 2004-03-30  Jim Meyering  <jim@meyering.net>
86603
86604         Merge from coreutils.
86605
86606         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86607
86608         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86609         an empty input stream.
86610
86611         * lib/readtokens.c: Include <stdbool.h>.
86612         (readtoken): Use `size_t' rather than int/long.
86613         All callers adjusted.
86614         Use `bool' rather than `int' where appropriate.
86615         Use memset rather than an explicit loop.
86616         Use x2nrealloc rather than xrealloc.
86617         Allow the use of `\0' as a delimiter.
86618         (readtokens): Likewise.
86619         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86620
86621 2004-03-30  Jim Meyering  <jim@meyering.net>
86622
86623         * m4/realloc.m4: Remove file, since now it does no more than
86624         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86625         the `configure.ac' section of module/realloc.
86626         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86627
86628 2004-03-30  Bruno Haible  <bruno@clisp.org>
86629
86630         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86631         nonnull.
86632
86633 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86634
86635         Merge changes to getloadavg.c from coreutils and Emacs.
86636
86637         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86638         Define to an expression, not to the empty string.
86639         Include cloexec.h and xalloc.h.
86640         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86641         Use set_cloexec_flag rather than rolling our own.
86642         * lib/cloexec.c, lib/cloexec.h: New files.
86643
86644 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86645
86646         * m4/cloexec.m4: New file.
86647
86648 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86649
86650         * lib/getopt.h: Sync with libc CVS.
86651
86652 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86653             Bruno Haible  <bruno@clisp.org>
86654
86655         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86656         mbswidth.
86657
86658 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86659             Bruno Haible  <bruno@clisp.org>
86660
86661         * lib/mbswidth.h: Include <wchar.h> only if
86662         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86663         <wchar.h>.
86664         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86665
86666 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86667
86668         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86669         Sync with libc CVS.
86670         * lib/getopt_int.h: New file, also synced from libc.
86671
86672 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86673
86674         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86675         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86676         Bring back getopt.c, getopt.h, getopt1.c.
86677
86678 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86679
86680         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86681         All uses changed.  Check for sa_sigaction member; this fixes
86682         a bug first reported by Jason Andrade in
86683         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86684
86685 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86688         '#if' expressions.  Unlike the code it replaces, it does not
86689         depend on (defined _SC_PAGESIZE).  However, it does depend on
86690         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86691         first reported by Jason Andrade in
86692         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86693
86694 2004-02-25  Simon Josefsson  <jas@extundo.com>
86695
86696         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86697
86698 2004-02-25  Simon Josefsson  <jas@extundo.com>
86699
86700         * lib/strdup.h: New file.
86701         * lib/strdup.c: Include it.
86702         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86703         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86704
86705 2004-02-23  Karl Berry  <karl@gnu.org>
86706
86707         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86708         (from fencepost.gnu.org:/gd/gnuorg).
86709
86710 2004-02-23  Karl Berry  <karl@gnu.org>
86711
86712         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86713         * config/srclist.txt: add maintain/standards documents.
86714
86715 2004-02-18  Bruno Haible  <bruno@clisp.org>
86716
86717         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86718         Reported by Derek Robert Price <derek@ximbiot.com>.
86719
86720 2004-02-16  Karl Berry  <karl@gnu.org>
86721
86722         * config/mkinstalldirs, install-sh: update from automake.
86723
86724 2004-02-06  Karl Berry  <karl@gnu.org>
86725
86726         * m4/po.m4: update from gettext 0.14.1.
86727
86728 2004-02-06  Karl Berry  <karl@gnu.org>
86729
86730         * lib/config.charset: update from gettext 0.14.1.
86731
86732 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86733
86734         Add comments and code, prompted by suggestions from Bruno Haible
86735         for sh-quote.
86736         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86737         describing the enum quoting_style values.
86738         * lib/quotearg.c (quotearg_alloc): New function.
86739         (quotearg_buffer_restyled): Treat lone { and } as special.
86740         Treat = as special.  Work around bug with older shells
86741         that "see" a '\' that is really the 2nd byte of a multibyte char.
86742         Quote empty string with shell_quoting_style.
86743
86744 2004-02-03  Bruno Haible  <bruno@clisp.org>
86745
86746         * m4/pipe.m4: New file, from GNU gettext.
86747
86748 2004-02-03  Bruno Haible  <bruno@clisp.org>
86749
86750         * lib/pipe.h: New file, from GNU gettext.
86751         * lib/pipe.c: New file, from GNU gettext.
86752
86753 2004-01-27  Bruno Haible  <bruno@clisp.org>
86754
86755         * m4/execute.m4: New file, from GNU gettext.
86756
86757 2004-01-27  Bruno Haible  <bruno@clisp.org>
86758
86759         * lib/execute.h: New file, from GNU gettext.
86760         * lib/execute.c: New file, from GNU gettext.
86761         * lib/w32spawn.h: New file, from GNU gettext.
86762
86763 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86764
86765         Merge from diffutils.
86766
86767         * lib/file-type.c (file_type): Add typed memory objects.
86768         * lib/file-type.h (S_TYPEISTMO): New macro.
86769
86770         * lib/c-stack.h (c_stack_action): Remove argv argument.
86771         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86772         (die): Don't calculate message unless segv_action returns.
86773         (get_stack_location, min_address_from_argv, max_address_from_argv,
86774         volatile stack_base, volatile_stack_size): Remove.
86775         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86776         that every segmentation violation is a stack overflow.  (Ouch!)
86777         See Debian bug 136249 (still outstanding) for more info about why
86778         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86779
86780 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86781
86782         Exit-status fix from coreutils.
86783
86784         Use exit_failure consistently in place of EXIT_FAILURE,
86785         so that program exit statuses are consistent on failure.
86786
86787         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86788         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86789         * lib/argmatch.h: Comment fix to match the above.
86790         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86791         Now a macro referring to exit_failure, instead of a separate
86792         variable.  Include "exitfail.h" to get it.
86793         * lib/xstrtol.h: Include "exitfail.h".
86794         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86795
86796         * lib/long-options.c (parse_long_options): Use prototype
86797         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86798         for clarity.
86799
86800 2004-01-21  Jim Meyering  <jim@meyering.net>
86801
86802         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86803         so as not to conflict with a different-sized __mktime_internal
86804         function in GNU libc.
86805         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86806         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86807
86808 2004-01-20  Karl Berry  <karl@gnu.org>
86809
86810         * config/config.guess: update from config.
86811
86812         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86813
86814 2004-01-20  Bruno Haible  <bruno@clisp.org>
86815
86816         Safer stack allocation.
86817         * lib/setenv.c: Include allocsa.h.
86818         (alloca): Remove fallback definition.
86819         (freea): Remove macro.
86820         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86821         instead of freea.
86822
86823 2004-01-20  Bruno Haible  <bruno@clisp.org>
86824
86825         * m4/eealloc.m4: New file, from GNU gettext.
86826
86827 2004-01-20  Bruno Haible  <bruno@clisp.org>
86828
86829         * m4/allocsa.m4: New file, from GNU gettext.
86830
86831 2004-01-20  Bruno Haible  <bruno@clisp.org>
86832
86833         * lib/xallocsa.h: New file, from GNU gettext.
86834         * lib/xallocsa.c: New file, from GNU gettext.
86835
86836 2004-01-20  Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86839
86840 2004-01-20  Bruno Haible  <bruno@clisp.org>
86841
86842         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86843         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86844         specially.
86845
86846 2004-01-20  Bruno Haible  <bruno@clisp.org>
86847
86848         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86849         patch.
86850
86851 2004-01-20  Bruno Haible  <bruno@clisp.org>
86852
86853         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86854
86855 2004-01-20  Bruno Haible  <bruno@clisp.org>
86856
86857         * lib/eealloc.h: New file.
86858
86859 2004-01-20  Bruno Haible  <bruno@clisp.org>
86860
86861         * lib/binary-io.h: Avoid warnings on Cygwin.
86862
86863 2004-01-20  Bruno Haible  <bruno@clisp.org>
86864
86865         * lib/allocsa.h: New file, from GNU gettext.
86866         * lib/allocsa.c: New file, from GNU gettext.
86867
86868 2004-01-18  Karl Berry  <karl@gnu.org>
86869
86870         * doc/gpl.texi, doc/lgpl.texi: new files.
86871
86872 2004-01-18  Karl Berry  <karl@gnu.org>
86873
86874         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86875         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86876
86877 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86878
86879         Merge from coreutils.
86880
86881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86882         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86883         (gl_DEFAULT_POSIX2_VERSION): Move
86884         the documentation from 'configure' into 'config.hin',
86885         so that 'configure --help' isn't burdened by it and
86886         we don't have to worry about its formatting there.
86887         Reword the documentation so that it's more succinct
86888         and can be run together into a single paragraph.
86889         * m4/same.m4 (gl_SAME): Check for pathconf.
86890
86891 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86892
86893         Merge from coreutils.
86894
86895         * lib/posixver.c: Include posixver.h.
86896
86897         * lib/same.c: Include <stdbool.h>, <limits.h>.
86898         (_POSIX_NAME_MAX): Define if not defined.
86899         (MIN): New macro.
86900         (same_name): If file names are silently truncated, report
86901         that the file names are the same if they are the same after
86902         the silent truncation.
86903
86904         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86905         conversion function.
86906         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86907         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86908         longer needed.
86909
86910 2004-01-15  Jim Meyering  <jim@meyering.net>
86911
86912         Merge from coreutils.
86913
86914         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86915         if no library is required.
86916         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86917         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86918         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86919         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86920         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86921         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86922         value, $ac_cv_search_crypt, if it's "none required".
86923         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86924         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86925         not gl_FUNC_GETLOADAVG.
86926         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86927         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86928
86929 2004-01-15  Jim Meyering  <jim@meyering.net>
86930
86931         Merge from coreutils.
86932
86933         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86934         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86935         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86936
86937         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86938         optional configure-time default.
86939
86940         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86941
86942         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86943
86944 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86945
86946         Merge from coreutils.
86947
86948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86949         value, $ac_cv_search_nanosleep, if it's "none required".
86950
86951 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86952
86953         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86954         with like-named macro in fnmatch.c.
86955         (EXT): Use an internal constant instead.
86956
86957         Merge fnmatch patches from glibc.
86958         * lib/fnmatch.c (mbsinit): Remove define.
86959         Add libc_hidden_ver (__fnmatch, fnmatch).
86960         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86961         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86962
86963 2004-01-14  Karl Berry  <karl@gnu.org>
86964
86965         * config/install-sh: update from automake.
86966
86967 2004-01-13  Karl Berry  <karl@gnu.org>
86968
86969         * config/install-sh: update from automake.
86970
86971 2004-01-09  Karl Berry  <karl@gnu.org>
86972
86973         * config/install-sh: update from automake.
86974
86975 2004-01-05  Karl Berry  <karl@gnu.org>
86976
86977         * config/config.{sub,guess}: update from config.
86978
86979 2003-12-31  Karl Berry  <karl@gnu.org>
86980
86981         * config/depcomp: update from automake.
86982
86983 2003-12-14  Karl Berry  <karl@gnu.org>
86984
86985         * lib/config.charset: update from gettext-runtime.
86986
86987 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86988
86989         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86990         Bug reported by Alfred M. Szmidt.
86991
86992 2003-12-03  Bruno Haible  <bruno@clisp.org>
86993
86994         * m4/gettext.m4: Upgrade from gettext-0.13.
86995         * m4/po.m4: Upgrade from gettext-0.13.
86996         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86997         * m4/intmax.m4: New file, from gettext-0.13.
86998         * m4/printf-posix.m4: New file, from gettext-0.13.
86999
87000 2003-11-29  Karl Berry  <karl@gnu.org>
87001
87002         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87003
87004 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87005             Bruno Haible  <bruno@clisp.org>
87006
87007         * lib/printf-parse.h: Don't include sys/types.h.
87008         (ARG_NONE): New macro.
87009         (char_directive): Change type of *arg_index fields to size_t.
87010         * lib/printf-parse.c: Don't include sys/types.h.
87011         (SSIZE_MAX): Remove macro.
87012         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87013         Remove unnecessary overflow check.
87014         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87015         fields.
87016
87017 2003-11-25  Bruno Haible  <bruno@clisp.org>
87018
87019         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87020
87021 2003-11-25  Bruno Haible  <bruno@clisp.org>
87022
87023         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87024         gt_TYPE_SSIZE_T.
87025
87026 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87027
87028         * modules/alloca: Remove dependency on xalloc.
87029
87030 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87031
87032         * lib/alloca.c: Remove dependency on xalloc module.
87033         (xalloc_die): Remove.
87034         (memory_full) [!defined emacs]: New macro.
87035         [!defined emacs]: Don't include xalloc.h.
87036         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87037         address arithmetic overflows.  Change datatypes a bit to avoid
87038         unnecessary casts.
87039
87040 2003-11-22  Jim Meyering  <jim@meyering.net>
87041
87042         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87043         s/size/size_t/.
87044
87045 2003-11-21  Karl Berry  <karl@gnu.org>
87046
87047         * config/config.{sub,guess}: update from config.
87048
87049 2003-11-18  Karl Berry  <karl@gnu.org>
87050
87051         * config/config.{sub,guess}: update from config.
87052
87053         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87054
87055 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87056
87057         * README: Mention that S+T cannot overflow if S is the size of
87058         an existing object and T is sufficiently small.
87059
87060 2003-11-17  Jim Meyering  <jim@meyering.net>
87061
87062         On systems without utime and without a utimes function capable of
87063         dealing with a NULL struct utimbuf* argument, this utime replacement
87064         could -- in unusual circumstances -- leak a file descriptor.
87065         * lib/utime.c: Include <unistd.h> and <errno.h>.
87066         (utime_null): Be sure to close `fd' and to preserve errno.
87067         Reported by Geoff Collyer via Arnold Robbins.
87068
87069 2003-11-17  Bruno Haible  <bruno@clisp.org>
87070
87071         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87072         (Depends-on): Add xsize.
87073
87074 2003-11-17  Bruno Haible  <bruno@clisp.org>
87075
87076         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87077
87078 2003-11-17  Bruno Haible  <bruno@clisp.org>
87079
87080         * lib/vasnprintf.c (alloca): Remove fallback definition.
87081         (freea): Remove definition.
87082         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87083         Reported by Paul Eggert.
87084
87085 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87086             Bruno Haible  <bruno@clisp.org>
87087
87088         Protect against address arithmetic overflow.
87089         * lib/printf-args.h: Include stddef.h.
87090         (arguments): Change type of field 'count' to size_t.
87091         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87092         'unsigned int' where appropriate.
87093         * lib/printf-parse.h: Include sys/types.h.
87094         (char_directive): Change type of *arg_index fields to ssize_t.
87095         (char_directives): Change type of fields 'count', max_*_length to
87096         size_t.
87097         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87098         (SSIZE_MAX): Define fallback value.
87099         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87100         instead of 'int' where appropriate. Check a_allocated, d_allocated
87101         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87102         * lib/vasnprintf.c: Include xsize.h.
87103         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87104         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87105         overflow. Avoid wraparound when converting a width or precision from
87106         decimal to binary.
87107
87108 2003-11-16  Bruno Haible  <bruno@clisp.org>
87109
87110         Update from GNU gettext.
87111         * lib/printf-parse.c: Generalize to it can be compiled for wide
87112         strings.
87113         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87114         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87115         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87116         SNPRINTF): New macros.
87117         Don't include <alloca.h> if the file is used inside libintl.
87118         (local_wcslen): New function, for Solaris 2.5.1.
87119         (VASNPRINTF): Use it instead of wcslen.
87120
87121 2003-11-16  Bruno Haible  <bruno@clisp.org>
87122
87123         * lib/xsize.h (xmax): New function.
87124         (xsum, xsum3, xsum4): Declare as "pure" functions.
87125
87126 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87127
87128         * modules/xalloc (Files): Undo latest change, since xalloc.h
87129         no longer needs SIZE_MAX or PTRDIFF_MAX.
87130
87131 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87132
87133         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87134         gl_PTRDIFF_MAX.
87135
87136 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87137
87138         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87139         "return", to pacify some unknown compiler.  Problem reported
87140         by Joerg Schilling.
87141
87142 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87143
87144         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87145         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87146         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87147         heuristic is just as accurate as far as we know, and it removes a
87148         dependency on size_max.m4 and ptrdiff_max.m4.
87149
87150 2003-11-11  Bruno Haible  <bruno@clisp.org>
87151
87152         * modules/xsize (Files): Add m4/size_max.m4.
87153         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87154
87155 2003-11-11  Bruno Haible  <bruno@clisp.org>
87156
87157         * m4/size_max.m4: New file.
87158         * m4/ptrdiff_max.m4: New file.
87159         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87160         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87161         (gl_XALLOC): Invoke it.
87162
87163 2003-11-11  Bruno Haible  <bruno@clisp.org>
87164
87165         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87166         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87167         defined.
87168
87169 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87170
87171         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87172         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87173         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87174         From Bruno Haible.
87175         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87176         not (size_t) -1, since it's defined here.
87177
87178 2003-11-09  Karl Berry  <karl@gnu.org>
87179
87180         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87181
87182 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87183
87184         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87185         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87186         Reject sizes of exactly SIZE_MAX bytes.
87187         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87188         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87189
87190 2003-11-05  Bruno Haible  <bruno@clisp.org>
87191
87192         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87193         SIZE_MAX defined in <limits.h> on Solaris.
87194
87195 2003-11-04  Jim Meyering  <jim@meyering.net>
87196
87197         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87198         variable names, rather than @VAR@.
87199         * modules/poll: Likewise.
87200
87201 2003-11-04  Bruno Haible  <bruno@clisp.org>
87202
87203         * modules/xsize: New file.
87204         * modules/linebreak: Depend on xsize.
87205         * MODULES.html.sh (func_all_modules): Add xsize.
87206
87207 2003-11-04  Bruno Haible  <bruno@clisp.org>
87208
87209         * m4/xsize.m4: New file.
87210
87211 2003-11-04  Bruno Haible  <bruno@clisp.org>
87212
87213         * lib/xsize.h: New file.
87214         * lib/linebreak.c: Include xsize.h.
87215         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87216         argument for overflow.
87217         Suggested by Paul Eggert.
87218
87219 2003-11-03  Karl Berry  <karl@gnu.org>
87220
87221         * config/config.{guess,sub}: update from config.
87222
87223 2003-11-03  Jim Meyering  <jim@meyering.net>
87224
87225         * modules/userspec (lib_SOURCES): Add userspec.h.
87226         (Include): Add "userspec.h".
87227         Improve description.
87228
87229 2003-11-03  Jim Meyering  <jim@meyering.net>
87230
87231         * lib/userspec.c: Include "userspec.h".
87232         * lib/userspec.h: New file.
87233
87234 2003-11-03  Bruno Haible  <bruno@clisp.org>
87235
87236         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87237
87238 2003-11-03  Bruno Haible  <bruno@clisp.org>
87239
87240         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87241         available, to avoid (extremely rare) race condition.
87242         Suggested by Paul Eggert.
87243
87244 2003-11-02  Karl Berry  <karl@gnu.org>
87245
87246         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87247
87248 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87249
87250         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87251         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87252         (read_filesystem_list): Set and use me_type_malloced.
87253         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87254         whatever the type happens to be), for brevity and consistency.
87255         Check for size calculation overflow on Alphas running OSF/1.
87256
87257 2003-10-31  Jim Meyering  <jim@meyering.net>
87258
87259         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87260
87261         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87262
87263 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87264             Bruno Haible  <bruno@clisp.org>
87265
87266         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87267         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87268
87269 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87272         netbsd*-gnu*.  Suggested by Robert Millan.
87273
87274 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87275
87276         * modules/group-member: Depend on stdbool.
87277
87278 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87279
87280         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87281
87282 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87283
87284         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87285         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87286         after the 'gnu' in these cases.  This fixes some bugs in the
87287         previous change, and is based on suggestions by Robert Millan.
87288
87289 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87290
87291         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87292         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87293         no longer needed.
87294         * lib/quotearg.c (quotearg_n_options): Use it.
87295         * lib/group-member.c: Include <stdbool.h>.
87296         (free_group_info): Arg is now const *; don't free arg.
87297         (get_group_info): Now returns bool and accepts struct group_info *,
87298         rather than returning a malloc'ed struct group_info *.
87299         All uses changed.  Check for overflow in internal size calculation.
87300
87301         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87302         rather than xmalloc/xrealloc.
87303         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87304         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87305         conformance bug: the old code used a pointer after freeing the
87306         storage that it addressed.
87307         * lib/hash.c (hash_initialize): Simplify the code by using
87308         xalloc_oversized rather than doing it by hand.
87309         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87310         the buffer preserved.  Use free and xmalloc instead.
87311         * lib/quotearg.c (quotearg_n_options): Likewise.
87312         Use a simpler test for size overflow.  Don't use xalloc_oversized
87313         because unsigned int might be wider than size_t (!); this suggests
87314         that we should switch from unsigned int to size_t for slot numbers.
87315
87316 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87317
87318         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87319         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87320         NetBSD kernels.  Requested by Richard Stallman.
87321
87322 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87323
87324         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87325         to allocate the returned structure.  Do not allocate a subarray,
87326         as x2nrealloc will do that.
87327         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87328         instead of xnrealloc.
87329         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87330
87331 2003-10-27  Bruno Haible  <bruno@clisp.org>
87332
87333         * lib/stdbool_.h: Better support for BeOS.
87334
87335 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87336
87337         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87338         now uses inline.
87339
87340 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87341
87342         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87343         callers that want to do their own size-overflow checking.  Include
87344         <stdbool.h>, since xalloc_oversized returns bool.
87345         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87346         to use xalloc_oversized.
87347
87348         Add two functions x2realloc, x2nrealloc, for programs that grow
87349         arrays dynamically by doubling their sizes.
87350         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87351         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87352         New functions.
87353
87354         Port to C99 semantics for 'inline' of external functions.
87355         Bug reported by Bruno Haible.
87356         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87357         with the old contents of xnmalloc.
87358         (xnmalloc, xmalloc): Use it.
87359         (xnrealloc_inline): New static inline function,
87360         with the old contents of xnrealloc.
87361         (xnrealloc, xrealloc): Use it.
87362
87363         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87364         that.
87365
87366 2003-10-26  Karl Berry  <karl@gnu.org>
87367
87368         * config/srclist.txt (COPYING.DOC): no longer available from
87369         /gd/gnuorg; don't know where the ultimate source is.
87370
87371 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87372
87373         Fix several address-calculation bugs in the hash modules,
87374         plus some minor code cleanup.
87375
87376         * lib/hash.h: Include <stdbool.h>, for bool.
87377         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87378         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87379         hash_get_n_entries, hash_get_max_bucket_length,
87380         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87381         hash_rehash): Use size_t rather than unsigned.
87382         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87383         hash_get_n_buckets_used, hash_get_n_entries,
87384         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87385         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87386         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87387         Likewise.
87388         (SIZE_MAX): Define if not defined.
87389         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87390         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87391         hash_print):
87392         Use const * when possible.
87393         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87394         (check_tuning): Fix bug: if tuning parameters were very close to
87395         0 or 1, rounding errors could have caused subscript violations.
87396         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87397         (hash_initialize): Add 'fail:' label
87398         to free table and return NULL, and use it to simplify code.
87399         Use calloc rather than clearing the storage ourself.
87400         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87401         buffer size calculations.
87402         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87403         Include <stddef.h>, for size_t.
87404         * lib/hash-pjw.c (hash_pjw): Likewise.
87405         Switch to method described by Bruno Haible.
87406         Include <limits.h>, for CHAR_BIT.
87407         (SIZE_BITS): New macro.
87408
87409 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87410
87411         * m4/getline.m4 (AM_FUNC_GETLINE):
87412         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87413         hosts.  Problem reported by Derek Robert Price in
87414         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87415         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87416         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87417
87418 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87419
87420         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87421         ceiling the allocation at NMAX bytes rather than silently
87422         discarding input bytes before NMAX is reached.  This makes
87423         a difference only if NMAX exceeds SIZE_MAX / 2.
87424
87425         * lib/obstack.c: Merge from glibc.
87426         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87427         Add libc_hidden_def (_obstack_newchunk).
87428         (_obstack_free) [! defined _LIBC]: Remove.
87429         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87430         a clone of the function body.
87431         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87432         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87433
87434         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87435         glibc.
87436         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87437         arg to memcpy.
87438
87439         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87440         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87441         Don't use lvalue casts, as GCC plans to remove support for them
87442         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87443         was also present in the non-GCC version, indicating that this
87444         code had always been buggy and had never been widely used.
87445         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87446         Use the fast variant of each macro, rather than copying the
87447         definiens of the fast variant; that way, we'll be more likely to
87448         catch future bugs in the fast variants.
87449
87450 2003-10-20  Bruno Haible  <bruno@clisp.org>
87451
87452         * modules/wait-process: New file.
87453         * MODULES.html.sh (func_all_modules): Add wait-process.
87454
87455 2003-10-20  Bruno Haible  <bruno@clisp.org>
87456
87457         * m4/wait-process.m4: New file.
87458
87459 2003-10-20  Bruno Haible  <bruno@clisp.org>
87460
87461         * lib/wait-process.h: New file, from GNU gettext.
87462         * lib/wait-process.c: New file, from GNU gettext.
87463
87464 2003-10-19  Jim Meyering  <jim@meyering.net>
87465
87466         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87467         HPUX 10.20.
87468
87469 2003-10-18  Karl Berry  <karl@gnu.org>
87470
87471         * config/config.guess: update from config.
87472
87473 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87474
87475         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87476         (getgroups): First arg is int, not size_t.
87477         Don't let 'free' mangle errno.
87478
87479 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87480
87481         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87482
87483 2003-10-16  Karl Berry  <karl@gnu.org>
87484
87485         * config/config.{guess,sub}: update from config.
87486
87487 2003-10-16  Jim Meyering  <jim@meyering.net>
87488
87489         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87490         memcpy.
87491
87492 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87493
87494         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87495         (SIZE_MAX): Remove.
87496         (new_exclude, add_exclude_file): Initial size no longer needs to
87497         be a power of 2.
87498         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87499         our own address arithmetic overflow checking.
87500
87501         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87502         (fnmatch): Do not alloca more than 2000 wide characters;
87503         instead, use malloc for large buffers.
87504         Check for address arithmetic overflow, and return -1
87505         with errno set to ENOMEM in that case.
87506         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87507         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87508         instead, return -1.  Check for address arithmetic overflow.
87509
87510 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87511
87512         Handle invalid suffixes and overflow independently, so that
87513         callers can treat them independently as needed.  Fix some bugs in
87514         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87515         suffix for a human-readable blocksize.  The major caller-visible
87516         change is the addition of a new
87517         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87518         that both overflow and suffix chars were found.
87519
87520         * lib/human.c (humblock): Don't check separately for invalid suffix
87521         char; that is xstrtoumax's job (now that its bug is fixed).
87522         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87523         INTMAX_MAX]: New macros.
87524         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87525         TYPE_MAXIMUM): New macros.
87526         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87527         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87528         if overflow occurs, as it's what __strtol does and it's more useful
87529         in practice.
87530         (__xstrtol): If __strtol reports some error other than ERANGE,
87531         reflect it to the caller as LONGINT_INVALID.  If it reports
87532         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87533         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87534         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87535         value.
87536         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87537         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87538         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87539         [defined UINTMAX_MAX]: New macros.
87540
87541 2003-10-14  Bruno Haible  <bruno@clisp.org>
87542
87543         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87544
87545 2003-10-14  Bruno Haible  <bruno@clisp.org>
87546
87547         * m4/sig_atomic_t: New file, from GNU gettext.
87548         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87549
87550 2003-10-14  Bruno Haible  <bruno@clisp.org>
87551
87552         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87553         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87554         Also use volatile where needed.
87555
87556 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87557
87558         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87559         Change maintainer from Bruno Haible to 'all'.
87560
87561 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87562
87563         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87564
87565 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87566
87567         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87568         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87569         and define in terms of the other primitives.
87570         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87571         (SIZE_MAX): Define if not already defined.
87572         (array_size_overflow): New function.
87573         (xalloc_die): Abort instead of exiting if 'error' returns.
87574         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87575         (xmalloc, xrealloc): Use them.
87576         (xcalloc): Check for address arithmetic overflow.
87577         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87578         a bit faster than strcpy.
87579
87580 2003-10-10  Simon Josefsson  <jas@extundo.com>
87581
87582         * modules/argp (Depends-on): Add restrict and strcase.
87583
87584 2003-10-10  Simon Josefsson  <jas@extundo.com>
87585
87586         * m4/argp.m4: Add AC_C_INLINE.
87587
87588 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87589
87590         Merge getpass from libc, plus a few fixes.
87591
87592         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87593         Include <stdbool.h>.
87594         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87595         __fsetlocking to empty.
87596         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87597         do include <bits/libc-lock.h>.
87598         Do not include <fcntl.h>; not needed.
87599         [_LIBC]: Include <wchar.h>.
87600         (NOTCANCEL_MODE): New macro.
87601         (flockfile, funlockfile) [_LIBC]: New macros.
87602         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87603         [!_LIBC]: New macros.
87604         (call_fclose): New function.
87605         (getpass): Use it.  Save tty stream separately; this simplifies the
87606         code and makes it more reliable if stdin happens to equal stdout.
87607         Invoke __fsetlocking on tty.
87608         Handle thread cancellation if needed.
87609         Namespace cleanup (use __tcgetattr, __getline).
87610         Use bool for Booleans.
87611         [USE_IN_LIBIO]: Handle wide streams.
87612         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87613         stream might go where.
87614
87615         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87616         doesn't have to include <stdio.h> before us.
87617         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87618         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87619         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87620         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87621         if not declared, so that we can use getpass.c code from libc without
87622         rewriting it.
87623         (flockfile, ftrylockfile, funlockfile): New macros.
87624
87625 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87626
87627         * modules/getpass: Depend on stdbool.
87628
87629 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87630
87631         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87632
87633 2003-10-07  Karl Berry  <karl@gnu.org>
87634
87635         * config/config.{guess,sub}: update from config.
87636
87637 2003-10-06  Jim Meyering  <jim@meyering.net>
87638             Bruno Haible  <bruno@clisp.org>
87639
87640         This lets translators provide better translations for the
87641         "Written by ..." part of --version output.
87642         * lib/version-etc.h: Include stdarg.h.
87643         (version_etc_copyright): Declare as readonly.
87644         (version_etc): Make this function variadic with a NULL-terminated list
87645         of author name strings.
87646         (version_etc_va): New declaration.
87647         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87648         (version_etc_copyright): Declare as readonly.
87649         (version_etc_va): New function. Provide a different translatable string
87650         for each possible number of authors < 10. Abbreviate when there are 10
87651         authors or more.
87652         (version_etc): Make this function variadic. Call version_etc_va.
87653         Suggestion from Gary V. Vaughan.
87654
87655         * lib/long-options.h (parse_long_options): Change prototype: the
87656         authors string is moved to the end and becomes variadic.
87657         * lib/long-options.c: Include stdarg.h.
87658         (parse_long_options): Make this function variadic, too.
87659         Call version_etc_va, not version_etc.
87660
87661 2003-10-06  Bruno Haible  <bruno@clisp.org>
87662
87663         * modules/version-etc-2: Remove file.
87664         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87665
87666 2003-10-06  Bruno Haible  <bruno@clisp.org>
87667
87668         * modules/fatal-signal: New file.
87669         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87670
87671 2003-10-06  Bruno Haible  <bruno@clisp.org>
87672
87673         * m4/fatal-signal.m4: New file.
87674         * m4/signalblocking.m4: New file, from GNU gettext.
87675
87676 2003-10-06  Bruno Haible  <bruno@clisp.org>
87677
87678         * lib/version-etc-2.h: Remove file.
87679         * lib/version-etc-2.c: Remove file.
87680
87681 2003-10-06  Bruno Haible  <bruno@clisp.org>
87682
87683         * lib/fatal-signal.h: New file, from GNU gettext.
87684         * lib/fatal-signal.c: New file, from GNU gettext.
87685
87686 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87687
87688         * README: Rework advice for preventing empty .o files.
87689         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87690         not <sys/types.h>.
87691
87692 2003-10-04  Karl Berry  <karl@gnu.org>
87693
87694         * lib/argp*: update from libc.
87695
87696 2003-10-04  Karl Berry  <karl@gnu.org>
87697
87698         * config/config.{guess,sub}: update from config.
87699
87700 2003-10-02  Bruno Haible  <bruno@clisp.org>
87701
87702         * modules/lchown (Include): Add lchown.h.
87703         * modules/time_r (Include): Use "..." syntax.
87704         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87705
87706 2003-10-01  Simon Josefsson  <jas@extundo.com>
87707
87708         * MODULES.html.sh (func_all_modules): Move gethostname from section
87709         'based on' to section 'lacking' POSIX:2001.
87710
87711 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87712
87713         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87714         to output mode on the same stream.
87715
87716 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87717
87718         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87719         Fix arg typo in previous patch.
87720
87721 2003-09-28  Jim Meyering  <jim@meyering.net>
87722
87723         * lib/error.c: Correct cpp indentation.
87724
87725 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87726
87727         * modules/free: New file.
87728
87729 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87730
87731         * m4/free.m4: New file.
87732
87733 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87734
87735         * lib/minmax.h (MIN, MAX)
87736         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87737         Omit the special code that used __typeof__, since we worry that
87738         it could be more trouble than it's worth.  See:
87739         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87740         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87741
87742         * lib/free.c: New file.
87743
87744 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87745
87746         Trivial fixes to Makefile.am parts of module listings.
87747         * modules/strstr: Append strstr.h to lib_SOURCES.
87748         * modules/strcase: Likewise, for strcase.h.
87749
87750 2003-09-27  Karl Berry  <karl@gnu.org>
87751
87752         * config/mkinstalldirs: update from automake.
87753
87754 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87755
87756         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87757         (error_tail): Do not loop, reallocating temporary buffer, since
87758         the output cannot contain more wide characters than the input
87759         contains bytes, the size must be big enough already.  This avoids
87760         one potential size overflow calculation.  Check for size overflow
87761         when calculating temporary buffer size.  Free temporary buffer
87762         when done, if it was allocated with malloc; this plugs a memory
87763         leak.  Remove casts from void * to pointers, that are no longer
87764         needed now that we're assuming C89 or better.
87765
87766         Merge error changes from glibc.
87767
87768         * lib/error.c, error.h: Update copyright notice header to match glibc.
87769         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87770         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87771         Disable cancellation while printing error.
87772         * lib/error.h: Prepend __ to parameter names.
87773
87774 2003-09-26  Jim Meyering  <jim@meyering.net>
87775
87776         * lib/error.c (error_tail): Move some declarations
87777         into inner scope where the local variables are used.
87778
87779 2003-09-26  Bruno Haible  <bruno@clisp.org>
87780
87781         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87782         stpncpy().
87783         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87784
87785 2003-09-26  Bruno Haible  <bruno@clisp.org>
87786
87787         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87788         (stpncpy): Define as alias for gnu_stpncpy.
87789         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87790
87791 2003-09-25  Simon Josefsson  <jas@extundo.com>
87792
87793         * lib/xgetdomainname.h: New file.
87794         * lib/xgetdomainname.c: New file.
87795
87796 2003-09-25  Simon Josefsson  <jas@extundo.com>
87797             Bruno Haible  <bruno@clisp.org>
87798
87799         * modules/getdomainname: New file.
87800         * modules/xgetdomainname: New file.
87801         * MODULES.html.sh (func_all_modules): Add getdomainname,
87802         xgetdomainname.
87803
87804 2003-09-25  Simon Josefsson  <jas@extundo.com>
87805             Bruno Haible  <bruno@clisp.org>
87806
87807         * m4/getdomainname.m4: New file.
87808
87809 2003-09-25  Simon Josefsson  <jas@extundo.com>
87810             Bruno Haible  <bruno@clisp.org>
87811
87812         * lib/getdomainname.h: New file.
87813         * lib/getdomainname.c: New file.
87814
87815 2003-09-25  Karl Berry  <karl@gnu.org>
87816
87817         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87818
87819 2003-09-25  Karl Berry  <karl@gnu.org>
87820
87821         * config/install-sh: update from automake.
87822
87823 2003-09-25  Bruno Haible  <bruno@clisp.org>
87824
87825         * modules/version-etc-2: New file, from modules/version-etc with
87826         modifications.
87827         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87828
87829 2003-09-25  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87832         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87833
87834 2003-09-24  Simon Josefsson  <jas@extundo.com>
87835
87836         * modules/xgethostname: Add xgethostname.h.
87837
87838 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87839
87840         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87841         the buffer associated with the argument.  Bug reported by
87842         Simon Josefsson.
87843
87844 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87845
87846         * README: Document assumptions that 'int' is at least 32 bits
87847         wide, that integer arithmetic is 2's complement without overflow,
87848         that there are no holes in integer values, that adding sizes of
87849         two nonoverlapping objects can't overflow, and that all-bits-zero
87850         yields scalar zero.  Fix spelling and capitalization typos.
87851
87852 2003-09-19  Karl Berry  <karl@gnu.org>
87853
87854         * lib/argp.h: update from libc.
87855
87856 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87857
87858         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87859         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87860         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87861
87862 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87863
87864         * gnulib-tool: Use "test -h", not "test -L", for portability
87865         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87866         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87867         (sed_extract_prog): Issue s commands one-by-one, rather than
87868         using \| in one s command.
87869
87870 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87871
87872         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87873         input error, instead of returning NULL the next time we are called
87874         (and therefore losing track of errno).
87875
87876 2003-09-16  Bruno Haible  <bruno@clisp.org>
87877
87878         * gnulib-tool (func_create_testdir): Warn about duplicated
87879         dependencies.
87880
87881 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87882
87883         * modules/argmatch, modules/fatal, modules/obstack,
87884         modules/xalloc, modules/xgethostname: Sort dependencies by
87885         importance, not alphabetically.
87886
87887 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87888
87889         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87890         fails, so that the caller gets the proper errno.
87891
87892         * lib/readutmp.c (read_utmp): Likewise.
87893         Check for fstat error.  Close stream and free storage
87894         when failing.
87895
87896 2003-09-14  Karl Berry  <karl@gnu.org>
87897
87898         * config/srclist.txt (strdup.c): disable for c89 changes.
87899
87900 2003-09-14  Jim Meyering  <jim@meyering.net>
87901
87902         * lib/getloadavg.c: Correct cpp indentation.
87903         * lib/strdup.c: Likewise.
87904         * lib/vasnprintf.c: Likewise.
87905
87906 2003-09-14  Bruno Haible  <bruno@clisp.org>
87907
87908         * modules/fwriteerror: New file.
87909         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87910
87911 2003-09-14  Bruno Haible  <bruno@clisp.org>
87912
87913         * lib/fwriteerror.h: New file.
87914         * lib/fwriteerror.c: New file.
87915
87916 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87917
87918         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87919         modules/xgethostname, modules/xalloc: Depend on exit.
87920
87921 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87922
87923         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87924
87925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87926         and AC_MINIX, too, so that their extensions are available.
87927
87928         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87929         This macro has been superseded by gl_BACKUPFILE.
87930
87931         More patches to assume C89 or better.
87932
87933         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87934
87935         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87936         unconditionally.
87937         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87938         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87939         Include <string.h>, <stdlib.h> unconditionally.
87940         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87941         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87942         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87943         headers or for string.h.
87944         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87945         or strtoul.
87946
87947         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87948         headers.
87949         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87950         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87951         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87952         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87954         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87955         memcpy, memset.
87956         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87957         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87958         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87959         strtol.
87960         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87961         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87962         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87963         strtoul.
87964
87965 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87966
87967         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87968         * lib/obstack.c [!defined _LIBC]: Likewise.
87969         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87970         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87971         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87972
87973         More changes to assume C89 or better.
87974
87975         * lib/error.c (error_tail): Assume vprintf.
87976
87977         * lib/argmatch.c (getenv): Remove decl.
87978         * lib/progreloc.c (get_full_program_name): Define via prototype.
87979         * lib/setenv.c (clearenv): Likewise.
87980         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87981         needed.
87982         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87983         (malloc, memcpy): Remove decls.
87984         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87985         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87986         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87987         (memcpy): Remove macro.
87988         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87989         (__P): Remove.  All uses removed.
87990         (PTR): Remove.  All uses changed to void *.
87991         (CHAR_BIT, NULL): Remove.
87992         (spaces, zeros, memset_space, memset_zero)
87993         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87994         Remove.
87995         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87996         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87997         Define with prototype.
87998         Remove now-unnecessary prototype decl.
87999         (extra_args_spec): Assume ANSI C.  All uses changed.
88000         (extra_args_spec_iso): Remove.
88001         (my_strftime, emacs_strftimeu): Define via prototype.
88002         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88003         unconditionally.
88004         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88005         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88006         (strtoul, strtol): Remove decls.
88007         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88008         LONG_MAX): Remove.
88009         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88010         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88011         (LOCALE_PARAM_PROTO): New macro.
88012         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88013         (INTERNAL (strtol), strtol): Define with a prototype.
88014         (PARAMS): Remove.  All uses removed.
88015         * lib/tempname.c: Include <string.h> unconditionally.
88016         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88017         * lib/xgethostname.c (main): Define with a prototype.
88018         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88019         Include <stdlib.h> unconditionally.
88020         (calloc, malloc, realloc, free): Remove decls.
88021         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88022         Include <stdlib.h> unconditionally.  Sort include file names.
88023         (strtod): Remove.
88024         (xstrtod): Define with a prototype.
88025         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88026         (strtol, strtoul): Remove decls.
88027
88028 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88029
88030         More patches to assume C89 or better.
88031         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88032         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88033         string.h, memchr, STDC_HEADERS.
88034
88035 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88036
88037         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88038         Include <stdlib.h>, <string.h> unconditionally.
88039         Remove now-unnecessary cast to char *.
88040         * lib/strnlen.c: Include <string.h> unconditionally.
88041         * lib/yesno.c (yesno): Define with a prototype.
88042
88043 2003-09-11  Bruno Haible  <bruno@clisp.org>
88044
88045         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88046
88047 2003-09-10  Jim Meyering  <jim@meyering.net>
88048
88049         * lib/error.c: Correct indentation of cpp directives.
88050
88051 2003-09-10  Bruno Haible  <bruno@clisp.org>
88052
88053         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88054         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88055         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88056         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88057         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88058         <stdlib.h> and <string.h> checks.
88059         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88060         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88061
88062 2003-09-10  Bruno Haible  <bruno@clisp.org>
88063
88064         * lib/strcspn.c: Include <string.h> unconditionally.
88065         * lib/strpbrk.c: Include <string.h> unconditionally.
88066         * lib/strstr.c: Include <string.h> unconditionally.
88067         * lib/unicodeio.c: Include <string.h> unconditionally.
88068         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88069         * lib/unsetenv.c: Likewise.
88070         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88071         * lib/yesno.c: Include <stdlib.h> unconditionally.
88072         (rpmatch): Add prototype.
88073
88074 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88075
88076         More patches to assume C89 or better.
88077         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88078         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88079         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88080         or for string.h.
88081         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88082         stdlib.h.
88083         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88084         C headers.
88085         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88086         string.h.
88087         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88088         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88089         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88090         or for string.h.
88091         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88092         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88093         C headers.
88094         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88095         memcpy.
88096         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88097         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88098         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88099         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88100         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88101         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88102         string.h, free.
88103         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88104         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88105         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88106         C headers, or for string.h.
88107         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88108         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88109         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88110         headers, memory.h, stdlib.h, string.h, strings.h.
88111         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88112         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88113         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88114         strchr.
88115         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88116         headers, memory.h, string.h.
88117         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88118         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88119         free.
88120         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88121         headers.
88122         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88123         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88124         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88125         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88126         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88127
88128 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88129
88130         More K&R removal.
88131
88132         * lib/acosl.c (main): Use a prototype.
88133         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88134         tanl.c: Likewise.
88135
88136         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88137
88138         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88139         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88140         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88141         with a prototype.
88142         * lib/getopt.c (const): Remove macro.
88143         Include <string.h> unconditionally.
88144         (my_index): Remove; all uses changed to strchr.
88145         (strlen): Remove decl.
88146         (exchange): Remove forward decl; no longer needed.
88147         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88148         Define with prototype.
88149         * lib/getopt1.c (const): Remove macro.
88150         (getopt_long, getopt_long_only, main): Define with prototype.
88151
88152         * lib/getugroups.c: Include <string.h> unconditionally.
88153
88154         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88155         (getusershell, setusershell, endusershell, readname, main):
88156         Define with prototypes.
88157
88158         * lib/group-member.c: Include group-member.h first.
88159         Include <stdlib.h> unconditionally.
88160
88161         * lib/hard-locale.c: Include hard-locale.h first.
88162         Include <stdlib.h>, <string.h> unconditionally.
88163
88164         * lib/hash.c (free, malloc): Remove decls.
88165         Include <stdlib.h> unconditionally.
88166
88167         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88168         (getenv): Do not declare.
88169
88170         * lib/idcache.c: Include <string.h> unconditionally.
88171
88172         * lib/long-options.c: Include long-options.h first, to test interface.
88173         Include <stdlib.h> unconditionally.
88174
88175         * lib/makepath.c: Include makepath.h first, to test interface.
88176         Include <stdlib.h> and <string.h> unconditionally.
88177
88178         * lib/linebuffer.c: Include <stdlib.h>.
88179         (free): Remove decl.
88180
88181         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88182         stddef.h. rpl_malloc returns void *, not char *.
88183         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88184         prototype.
88185
88186         * lib/md5.h: Include <limits.h> unconditionally.
88187         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88188         (__P): Remove; all uses removed.
88189         * lib/md5.c: Include "md5.h" first.
88190         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88191         md5_buffer, md5_process_bytes, md5_process_block):
88192         Define with prototypes.
88193         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88194         * lib/sha.c: Include "sha.h" first.
88195         Include <stdlib.h>, <string.h> unconditionally.
88196
88197         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88198         * lib/memcmp.c (__ptr_t): Likewise.
88199         * lib/memrchr.c (__ptr_t): Likewise.
88200         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88201         Include <string.h> unconditionally.
88202         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88203         * lib/memchr.c: Include <stdlib.h> unconditionally.
88204         * lib/memchr.c (LONG_MAX): Remove.
88205         * lib/memrchr.c (LONG_MAX): Likewise.
88206         * lib/memchr.c (__memchr): Define via a prototype.
88207         * lib/memrchr.c (__memrchr): Likewise.
88208         * lib/memcmp.c (__P): Remove, and remove all uses.
88209         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88210         Remove forward decls; no longer needed.
88211         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88212         Use types required by C89 in prototype.
88213
88214         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88215         * lib/savedir.c: Likewise.
88216         * lib/mkdir.c (free): Remove decl.
88217         * lib/rmdir.c (rmdir): Define with a prototype.
88218         * lib/savedir.c: Include savedir.h first, to test interface.
88219
88220         * lib/mktime.c (STDC_HEADERS): Remove.
88221         Include <stdlib.h>, <string.h> unconditionally.
88222
88223         * lib/modechange.c: Include <stdlib.h> unconditionally.
88224         (malloc): Remove decl.
88225
88226         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88227         (free): Remove decl.
88228
88229         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88230         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88231         (This type really should be intptr_t, but that's a C99ism.)
88232         (_obstack_memcpy): Remove: all uses changed to memcpy.
88233         Include <string.h> unconditionally.
88234         (struct obstack): Assume __STDC__ for types of members
88235         chunkfun, freefun, extra_arg.
88236         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88237         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88238         obstack_begin, obstack_specify_allocation,
88239         obstack_specify_allocation_with_arg, obstack_chunkfun,
88240         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88241         Remove unprototyped decls and the macros that use them.
88242         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88243         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88244         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88245         (defined __STDC__ && __STDC__)]:
88246         Remove nonprototyped code.
88247         Include <stdlib.h> unconditionally.
88248         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88249         _obstack_allocated_p, _obstack_free, obstack_free,
88250         _obstack_memory_used, print_and_abort):
88251         Define using prototypes.
88252         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88253         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88254         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88255         obstack_next_free, obstack_object_size, obstack_room) [0]:
88256         Remove unused, unprototyped code.
88257
88258         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88259
88260         * lib/physmem.c (physmem_total, physmem_available, main): Define
88261         with prototypes.
88262
88263         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88264         (main): Define with a prototype.
88265
88266         * lib/posixver.c (getenv): Remove decl.
88267
88268         * lib/putenv.c (malloc): Returns void *, not char *.
88269         Include <string.h> unconditionally.
88270         (strchr, memcpy, NULL): Do not define.
88271
88272         * lib/readtokens.c: Include readtokens.h first, to test interface.
88273         Include <stdlib.h>, <string.h> unconditionally.
88274         (init_tokenbuffer): Define with a prototype.
88275
88276         * lib/regex.c (PARAMS): Remove.  All uses removed.
88277         All uses of _RE_ARGS removed, too.
88278         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88279         unconditionally.
88280         (bzero): Assume memset exists.
88281         (memcmp, memcpy, NULL): Remove.
88282         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88283         char, or assignments to local vars of type signed char.
88284         (init_syntax_once, PREFIX(extract_number_and_incr),
88285         PREFIX(print_partial_compiled_pattern),
88286         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88287         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88288         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88289         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88290         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88291         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88292         wcs_compile_range, byte_compile_range, truncate_wchar,
88293         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88294         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88295         count_mbs_length, wcs_re_match_2_internal,
88296         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88297         PREFIX(alt_match_null_string_p),
88298         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88299         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88300         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88301         now-unnecessary declaration, if any.
88302         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88303         regcomp, regexec):
88304         Remove now-unnecessary casts among pointer types.
88305         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88306
88307         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88308         (free): Remove decl.
88309
88310         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88311
88312         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88313         (free): Remove decl.
88314
88315         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88316         * lib/xgetcwd.c: Likewise.
88317
88318         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88319         (free): Remove decl.
88320
88321         * lib/strchrnul.c (strchrnul): Define with a prototype.
88322         Fix bug: c_in was not converted to char before searching.
88323
88324         The following changes are not K&R related:
88325
88326         * lib/group-member.h: Include <sys/types.h>, so that this file is
88327         self-contained.
88328         * lib/makepath.h: Likewise.
88329
88330         * lib/getusershell.c (readname, default_index, line_size, readname):
88331         Use size_t, not int, for sizes.
88332         (readname): If the size overflows, report an error instead of
88333         looping forever.
88334
88335 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88336
88337         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88338         libc.
88339
88340 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88341
88342         * README: New section: portability guidelines.
88343
88344 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88345
88346         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88347         C89 spec.
88348
88349 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88350
88351         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88352
88353 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88354
88355         Assume C89 or better; remove K&R cruft.
88356         A few of these changes were first proposed by Derek Robert Price
88357         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88358
88359         * lib/addext.c: Include <string.h> unconditionally.
88360         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88361         Don't declare getenv or malloc.
88362
88363         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88364         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88365         (NULL): Remove.
88366         (find_stack_direction, alloca): Use prototypes.
88367
88368         * lib/atexit.c (atexit): Define using a prototype.
88369
88370         * lib/basename.c, dirname.c, stripslash.c:
88371         Include <string.h> unconditionally.
88372
88373         * lib/bcopy.c: Include <stddef.h>.
88374         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88375
88376         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88377
88378         * lib/error.h (error, error_at_line, error_print_progname)
88379         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88380         * lib/error.c: Include error.h first, to check interface.
88381         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88382         (VA_START): Remove; all uses changeed to va_start.
88383         (exit, strerror): Remove decls.
88384         (error_print_progname): Prototype uncondionally.
88385         Don't include <errno.h>; no longer needed.
88386         (private_strerror): Remove.
88387         (error_tail): Always define.
88388         (error, error_at_line): Assume C89 or better; always use prototypes.
88389         * lib/fatal.c: Include "fatal.h" first, to test interface.
88390         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88391         (VA_START): Remove; all uses changed to va_start.
88392         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88393         this case.
88394         (exit): Remove decl.
88395         (fatal): Prototype unconditionally.  Assume va_start works.
88396         Abort at end, to pacify gcc.
88397
88398         * lib/euidaccess.c (main): Define with a prototype.
88399
88400         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88401
88402         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88403
88404         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88405         prototypes.
88406         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88407         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88408         (getenv): Remove decl.
88409         (fnmatch): Define using a prototype.
88410         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88411         (FCT): Define using a prototype.
88412
88413         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88414
88415         * lib/gethostname.c: Include <stddef.h>.
88416         (gethostname): Define with prototype.  Length is size_t, not int.
88417
88418 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88419
88420         Assume C89 or better; remove K&R cruft.
88421         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88422         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88423         string.h, getenv, malloc.
88424         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88425         headers.
88426         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88427         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88428         do not check for strerror.
88429         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88430         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88431         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88432         do not check for doprnt or vprintf.
88433         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88434         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88435
88436 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88437
88438         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88439         getversion.c should have been removed then, but was accidentally
88440         preserved.
88441
88442         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88443         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88444
88445 2003-09-08  Karl Berry  <karl@gnu.org>
88446
88447         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88448                 config, forget about prep.
88449
88450         * config/depcomp, missing: update from automake.
88451
88452 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88453
88454         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88455         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88456
88457 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88458
88459         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88460         copy_tm_result.  Bug reported by Simon Josefsson in
88461         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88462
88463 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88464
88465         * m4/time_r.m4: New file.
88466         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88467         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88468         is. Check for timegm declaration.
88469         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88470         Do not check for gmtime_r.
88471         Replace mktime if __mktime_internal does not exist and if mktime
88472         hasn't been replaced already.
88473
88474 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88475
88476         * lib/time_r.c, lib/time_r.h: New files.
88477
88478         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88479         __localtime_r.
88480         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88481         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88482
88483         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88484         __gmtime_r.
88485         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88486         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88487         Include <time_r.h>.
88488
88489         * lib/timegm.c: Switch to glibc implementation, with the following
88490         changes:
88491         [defined HAVE_CONFIG_H]: Include <config.h>.
88492         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88493         (__mktime_internal) [!defined _LIBC]: New decl.
88494         (__gmtime_r) [!defined _LIBC]: New macro and function.
88495         (timegm): Use a prototype, since gnulib assumes C89.
88496         Do not bother declaring tmp to be const, as it's not really usefu.
88497         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88498         (timegm): Declare only if HAVE_DECL_TIMEGM.
88499
88500 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88501
88502         * MODULES.html.sh (func_all_modules): Add time_r.
88503         * modules/time_r: New file.
88504         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88505         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88506
88507 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88508
88509         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88510         Bug reported by Lute Kamstra in
88511         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88512
88513         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88514         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88515         course with correspondingly smaller numbers for tomorrow and
88516         yesterday.  From Tadayoshi Funaba.  Originally installed into
88517         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88518         coreutils merge?).
88519
88520 2003-08-31  Simon Josefsson  <jas@extundo.com>
88521
88522         * modules/timegm: New file.
88523         * MODULES.html.sh (func_all_modules): Add timegm.
88524
88525 2003-08-31  Simon Josefsson  <jas@extundo.com>
88526
88527         * m4/timegm.m4: New file.
88528
88529 2003-08-31  Simon Josefsson  <jas@extundo.com>
88530
88531         * lib/timegm.h: New file.
88532         * lib/timegm.c: New file.  Based on
88533         wget-1.8.2/src/http.c:mktime_from_utc.
88534
88535 2003-08-31  Karl Berry  <karl@gnu.org>
88536
88537         * lib/argp.h: update from libc.
88538
88539 2003-08-28  Bruno Haible  <bruno@clisp.org>
88540
88541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88542         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88543         followed by '#define fnmatch fnmatch_posix' gives an error.
88544
88545 2003-08-28  Bruno Haible  <bruno@clisp.org>
88546
88547         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88548         warning on QNX, which defines O_BINARY to 000000.
88549
88550 2003-08-27  Jim Meyering  <jim@meyering.net>
88551
88552         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88553         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88554         would fail after 32.  Reported by Danny Levinson.  Details here:
88555         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88556
88557 2003-08-24  Bruno Haible  <bruno@clisp.org>
88558
88559         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88560         MSVC7 <stdio.h> is included later.
88561
88562 2003-08-22  Simon Josefsson  <jas@extundo.com>
88563
88564         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88565
88566 2003-08-20  Karl Berry  <karl@gnu.org>
88567
88568         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88569
88570 2003-08-20  Bruno Haible  <bruno@clisp.org>
88571
88572         * modules/progname: New file.
88573         * MODULES.html.sh (func_all_modules): Add progname.
88574
88575 2003-08-20  Bruno Haible  <bruno@clisp.org>
88576
88577         * lib/progname.h: New file, from GNU gettext.
88578         * lib/progname.c: New file, from GNU gettext.
88579         * lib/progreloc.c: New file, from GNU gettext.
88580
88581 2003-08-19  Jim Meyering  <jim@meyering.net>
88582
88583         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88584         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88585
88586 2003-08-19  Bruno Haible  <bruno@clisp.org>
88587
88588         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88589         more.
88590
88591 2003-08-19  Bruno Haible  <bruno@clisp.org>
88592
88593         * lib/xstrdup.c: Assume <string.h> exists.
88594
88595 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88596
88597         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88598         in makefile rules.
88599
88600 2003-08-18  Jim Meyering  <jim@meyering.net>
88601
88602         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88603         * m4/lib-ld.m4: Likewise.
88604
88605 2003-08-18  Jim Meyering  <jim@meyering.net>
88606
88607         * lib/setenv.h: Indent nested cpp directive.
88608         * lib/vasnprintf.c: Remove trailing blanks.
88609
88610 2003-08-17  Simon Josefsson  <jas@extundo.com>
88611
88612         * modules/xstrndup: New file.
88613         * MODULES.html.sh (func_all_modules): Add xstrndup.
88614
88615 2003-08-17  Simon Josefsson  <jas@extundo.com>
88616
88617         * modules/argp: Fix autoconf macro name. Add more dependencies.
88618
88619 2003-08-17  Simon Josefsson  <jas@extundo.com>
88620
88621         * m4/xstrndup.m4: New file.
88622
88623 2003-08-17  Simon Josefsson  <jas@extundo.com>
88624
88625         * m4/argp.m4: New file.
88626
88627 2003-08-17  Simon Josefsson  <jas@extundo.com>
88628             Bruno Haible  <bruno@clisp.org>
88629
88630         * lib/xstrndup.h: New file.
88631         * lib/xstrndup.c: New file.
88632
88633 2003-08-17  Bruno Haible  <bruno@clisp.org>
88634
88635         * modules/strndup (Files, Include): Add lib/strndup.h.
88636
88637 2003-08-17  Bruno Haible  <bruno@clisp.org>
88638
88639         * modules/euidaccess (Files): Add lib/euidaccess.h.
88640
88641 2003-08-17  Bruno Haible  <bruno@clisp.org>
88642
88643         * lib/strndup.h: New file.
88644
88645 2003-08-17  Bruno Haible  <bruno@clisp.org>
88646
88647         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88648         like AC_GNU_SOURCE.
88649         * modules/extensions (configure.ac): Comment out the invocation of
88650         gl_USE_SYSTEM_EXTENSIONS.
88651
88652 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88653
88654         Merges from coreutils, etc.
88655         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88656         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88657         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88658         fixing a typo.
88659         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88660         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88661
88662 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88663
88664         Document merge from coreutils.
88665         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88666         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88667         * modules/utime: Add m4/utimes-null.m4.
88668
88669 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88670
88671         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88672         space, undoing this 2003-08-12 change:
88673         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88674
88675 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88676
88677         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88678         strtoul.c from libc, undoing this 2003-08-12 change:
88679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88680
88681 2003-08-16  Jim Meyering  <jim@meyering.net>
88682
88683         Merges from coreutils.
88684         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88685         prefix.  Adjust cache variables similarly.  Create 500 rather than
88686         just 300 files, to exercise bug on Darwin6.5, too.
88687         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88688         $missing_dir.
88689         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88690         AM_SYS_POSIX_TERMIOS.
88691         Reported by mkc@mathdogs.com.
88692         Also change use of $am_cv_sys_posix_termios
88693         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88694         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88695         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88696         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88697         in /proc/mounts until it finds one with matching device number.  This
88698         is unnecessary when the FILE argument *is* a mount point.  No stat call
88699         is necessary in that case.  So, disable the statvfs-testing code on
88700         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88701         as RedHat bug# 84846.
88702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88703         to 1MB, so as not to render systems with no stack size limit (e.g.,
88704         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88705         Include <unistd.h>.  On some systems,
88706         it is required for the definition of _SC_PAGESIZE.
88707
88708 2003-08-16  Jim Meyering  <jim@meyering.net>
88709
88710         Merge from coreutils.
88711         * lib/xstrtoimax.c: #else #if -> #elif.
88712         * lib/xstrtoumax.c: Likewise.
88713
88714 2003-08-16  Jim Meyering  <jim@meyering.net>
88715
88716         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88717         * m4/utimes.m4: Removed.
88718         * m4/utimes-null.m4: Renamed from utimes.m4.
88719
88720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88721         to 1MB, so as not to render systems with no stack size limit (e.g.,
88722         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88723         Include <unistd.h>.  On some systems,
88724         it is required for the definition of _SC_PAGESIZE.
88725
88726 2003-08-16  Jim Meyering  <jim@meyering.net>
88727         and Paul Eggert  <eggert@cs.ucla.edu>
88728
88729         Merges from coreutils, etc.
88730
88731         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88732         using the latest version from cvs.  This avoids problems with #line
88733         directives using a vendor (Sun) compiler.
88734         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88735         Don't set GETGROUPS_LIB here; now it's
88736         done via getgroups.m4's wrapper function.
88737         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88738         rather than just in sh-util/configure.in, so that the
88739         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88740         same.
88741         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88742         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88743         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88744         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88745         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88746         Remove code that is now done by the newly-required macros.
88747         Append $(EXEEXT) to DF_PROG.
88748         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88749         Do not invoke or require the following here,
88750         since prereq.m4 or some gnulib .m4 now does this for us:
88751         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88752         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88753         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88754         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88755         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88756         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88757         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88758         AC_FUNC_OBSTACK.
88759         Do not replace the following functions, as this is now the job
88760         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88761         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88762         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88763         atexit getpass, strdup, getpagesize.
88764         Replace 'raise'.
88765         Do not check for the following functions, as this is now the job
88766         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88767         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88768         setregid.
88769         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88770         Check for sys/sysctl.h.
88771         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88772         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88773         of checking for ssize_t ourselves.
88774
88775         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88776         Require every macro that gnulib/modules/* suggests for us.
88777         (jm_PREREQ_ADDEXT): New macro.
88778         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88779         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88780
88781         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88782         (gl_PHYSMEM): Use it.
88783         Also check for `table' function.
88784         Check for new headers and functions.
88785         Add check for sys/sysmp.h.
88786         With suggestions from Kaveh Ghazi.
88787         Ignore headers that are present but cannot be compiled.  This
88788         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88789         C 5.4.
88790
88791 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88792
88793         Document merge from coreutils.
88794         * modules/userspec: Depend on posixver.
88795         * modules/strftime: Depend on tzset.
88796
88797 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88798
88799         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88800         rather than tab, after '#' in shell-script copyright notices.
88801         Suggested by Bruno Haible.
88802
88803 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88804
88805         * config/srclist-update: Use three spaces, rather than tab, after '#'
88806         in shell-script copyright notices.  Suggested by Bruno Haible.
88807         Remove unnecessary parenthesization in regular expression.
88808
88809 2003-08-15  Jim Meyering  <jim@meyering.net>
88810
88811         Merge from coreutils.
88812         * lib/xgethostname.c: Include <stdlib.h>.
88813         (xghostname): Don't exit for anything other than memory-related
88814         failure; just return NULL.
88815         * lib/userspec.c: Include "posixver.h".
88816         (parse_user_spec): Accept `.' as a separator only
88817         in pre-POSIX-200112 mode.
88818         * lib/strtoimax.c: Use #elif rather than #else #if.
88819         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88820         Remove function, now that we can rely on a working tzset function.
88821         [!_LIBC]: Ensure that the required autoconf test has been run.
88822         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88823         Use underlying_strftime for %r.
88824         * lib/sha.c: Merge in some clean-up and optimization changes from
88825         glibc.
88826         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88827         Ensure that it is a multiple of 64.
88828         Rearrange loop exit tests so as to avoid performing an
88829         additional fread after encountering an error or EOF.
88830         * lib/realloc.c: Update copyright date.
88831
88832 2003-08-15  Jim Meyering  <jim@meyering.net>
88833         and Paul Eggert  <eggert@twinsun.com>
88834
88835         Merge from coreutils.
88836         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88837         member but strut utmpx does not.  Needed for AIX 4.3.3.
88838         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88839
88840 2003-08-15  Jim Meyering  <jim@meyering.net>
88841         and Paul Eggert  <eggert@cs.ucla.edu>
88842
88843         Merges from coreutils, etc.
88844         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88845         Require gl_FUNC_TZSET_CLOBBER.
88846         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88847         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88848         members.
88849
88850 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88851
88852         Help the merge from coreutils.
88853         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88854         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88855         * m4/tzset.m4: Use it too.
88856
88857 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88858
88859         * modules/tzset: New file.
88860
88861 2003-08-14  Jim Meyering  <jim@meyering.net>
88862
88863         Merges from coreutils.
88864         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88865         variable names, rather than @FNMATCH_H@.
88866         * modules/alloca: Likewise for $(ALLOCA_H).
88867
88868         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88869         the three copies of the literal target, `fnmatch.h'.
88870         * modules/alloca (alloca.h): Likewise.
88871
88872 2003-08-14  Jim Meyering  <jim@meyering.net>
88873
88874         Merge from coreutils.
88875         * m4/tzset.m4: New file.
88876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88877         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88878         otherwise, AIX 5.1 systems would end up using the latter.
88879         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88880         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88881         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88882         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88883
88884 2003-08-14  Jim Meyering  <jim@meyering.net>
88885
88886         Merge from coreutils.
88887         * lib/obstack.h: Whitespace changes.
88888         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88889         and xcalloc return values.
88890         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88891         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88892         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88893         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88894         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88895         error from mntctl.
88896         Use mntctl's return value to drive the entry-processing loop, since
88897         we can't rely on the value of the vmt_length member in the last
88898         entry.  On some systems doing so could result in exhausting
88899         virtual memory.  Based in part on a patch from Mike Jetzer.
88900
88901 2003-08-14  Jim Meyering  <jim@meyering.net>
88902         and Paul Eggert  <eggert@twinsun.com>
88903
88904         Merges from coreutils, plus other fixes.
88905         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88906         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88907         for credits and details.  Thanks to Kaveh Ghazi for helping
88908         to keep these files in sync.
88909         (ARRAY_SIZE): Define it.
88910         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88911         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88912         (memcasecmp): Don't assume size_t fits in unsigned int.
88913         Remove casts and duplicate code.
88914         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88915         (memcpy): Remove definition.
88916         Merge in some clean-up and optimization changes from glibc.
88917         [BLOCKSIZE]: Move definition to top of file.
88918         Ensure that it is a multiple of 64.
88919         Rearrange loop exit tests so as to avoid performing an
88920         additional fread after encountering an error or EOF.
88921         * lib/md5.h (md5_uintptr): Define.
88922         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88923         return to the initial working directory.  Preserve errno
88924         for caller.
88925         * lib/idcache.c: Include "xalloc.h".
88926         (xmalloc, xrealloc): Remove decls.
88927         (getuser): Remove casts no longer required in C89.
88928         * lib/human.c: Include stdio.h, for sprintf.
88929         * lib/group-member.c: Include "xalloc.h".
88930         (xmalloc, xrealloc): Remove decls.
88931         (get_group_info): Remove casts no longer required in C89.
88932         * lib/getusershell.c (readname): Remove casts no longer required in
88933         C89.
88934         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88935         * lib/getline.c: Whitespace fix, from coreutils.
88936
88937 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88938
88939         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88940         Check for isascii.
88941
88942         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88943         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88944         Undo previous (whitespace-only) change.
88945
88946 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88947
88948         * lib/exclude.c: Include <ctype.h>
88949         (IN_CTYPE_DOMAIN): New macro.
88950         (is_space): New fn.
88951         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88952         and empty lines.
88953
88954         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88955         Undo previous (whitespace-only) change.
88956
88957 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88958
88959         * config/srclist-update: Change update back to the old behavior,
88960         leaving whitespace alone.  Use one 'sed' command rather than a
88961         pipeline.
88962         (fixlicense): Now a variable, not a function.
88963         (remove_trailing_blanks): Remove.
88964         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88965         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88966         Undo previous (whitespace-only) change.
88967
88968 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88969
88970         Merge from coreutils.
88971         * modules/euidaccess: Add lib_SOURCES, include for new
88972         file euidaccess.h
88973
88974 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88975
88976         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88977         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88978         Normalize leading white space and remove trailing white space.
88979
88980         Merge from coreutils
88981         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88982
88983         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88984         0.12.1.  These files are now being upgraded automatically by
88985         ../config/srclist-update.
88986
88987 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88988
88989         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88990         Normalize leading white space and remove trailing white space.
88991         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88992         notice, as per ../config/srclist-update.
88993
88994         Merge from coreutils.
88995         * lib/euidaccess.h: New file.
88996         * lib/euidaccess.c: Include it.
88997         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88998         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88999         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89000
89001 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89002
89003         * config/srclist-update: Add copyright notice.
89004         (remove_id_lines, remove_trailing_blanks): New constants.
89005         (fixfile): Use them to normalize spacing a bit in copied files.
89006         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89007         Normalize leading white space and remove trailing white space.
89008
89009         * config/texinfo.tex: Sync with texinfo.
89010
89011         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89012         strtoul.c from libc, to merge coreutils whitespace changes.
89013
89014         * config/srclist.txt: Get the following m4 files from gettext:
89015         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89016         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89017         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89018         wint_t.m4.
89019
89020 2003-08-12  Karl Berry  <karl@gnu.org>
89021
89022         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89023         been made.
89024
89025 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89026
89027         * modules/gnu-source, m4/gnu-source.m4:
89028         Remove; we're assuming Autoconf 2.54 or later now.
89029         Suggested by Bruno Haible.
89030         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89031
89032 2003-08-11  Bruno Haible  <bruno@clisp.org>
89033
89034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89035
89036 2003-08-11  Bruno Haible  <bruno@clisp.org>
89037
89038         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89039         (vasnprintf): Use it instead of wcslen.
89040
89041 2003-08-11  Bruno Haible  <bruno@clisp.org>
89042
89043         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89044         value to ensure that _Bool promotes to int. Use #define for _Bool when
89045         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89046
89047 2003-08-10  Karl Berry  <karl@gnu.org>
89048
89049         * lib/regex.h: update from libc (whitespace fix).
89050
89051 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89052
89053         Merge some files from coreutils.  These changes were
89054         originally made by Jim Meyering.
89055         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89056         many older Unixes require this.
89057         * lib/alloca.c (alloca): Remove cast to argument of free;
89058         no longer needed in C89.
89059         * lib/alloca_.h, regex.h: Fix white space to match
89060         what GNU indent does.
89061
89062 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89063
89064         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89065         apparently Emacs's Unicode mode got confused before my 2003-08-05
89066         checkin.
89067
89068 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89069
89070         * m4/extensions.m4: New file.
89071         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89072         Require gl_USE_SYSTEM_EXTENSIONS.
89073         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89074         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89075
89076 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89077
89078         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89079         * modules/extensions, modules/gnu-source: New files.
89080         * modules/timespec, modules/unlocked-io: Depend on extensions.
89081
89082 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89083
89084         * modules/restrict: New file.
89085         * MODULES.html.sh (func_all_modules): Add restrict.
89086         * modules/regex: Depend on restrict.
89087
89088 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89089
89090         * m4/restrict.m4: New file.
89091         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89092
89093 2003-08-07  Bruno Haible  <bruno@clisp.org>
89094
89095         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89096         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89097
89098 2003-08-07  Bruno Haible  <bruno@clisp.org>
89099
89100         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89101         makes the module 'getndelim2' compatible with the module 'getline'.
89102
89103 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89104
89105         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89106         byte with "\201" to avoid glitches when editing that source file
89107         with multi-gnome-terminal.
89108
89109 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89110
89111         * lib/bumpalloc.h: Remove.
89112
89113 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89114
89115         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89116         * modules/bumpalloc: Remove.
89117
89118 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89119
89120         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89121         GNU coding style.
89122
89123         Merge from coreutils.
89124         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89125         1. From glibc.
89126         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89127         from Karl Berry, implemented by Jim Meyering.
89128         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89129         from Dmitry V. Levin.
89130         Remove anachronistic cast of xrealloc.
89131         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89132         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89133         type. Otherwise, it wouldn't compile with at least /bin/cc on
89134         ymp-cray-unicos9.0.2.X.
89135         Combine two mostly-identical uses of alloca into one.
89136         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89137
89138 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89139
89140         [From Emacs.]
89141
89142         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89143         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89144         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89145         obsolete NLIST_NAME_UNION.
89146         [__GNU__]: Undef BSD and FSCALE.
89147         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89148
89149 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89150
89151         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89152         an enum type, so that it's guaranteed to promote to int.  See:
89153         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89154
89155 2003-08-03  Karl Berry  <karl@gnu.org>
89156
89157         * config/depcomp: update from automake.
89158
89159 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89162         (strerror): Don't assume that a printable int fits in 14 bytes.
89163
89164 2003-07-31  Bruno Haible  <bruno@clisp.org>
89165
89166         * modules/getpass-gnu: New file.
89167         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89168
89169 2003-07-31  Bruno Haible  <bruno@clisp.org>
89170
89171         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89172
89173 2003-07-24  Karl Berry  <karl@gnu.org>
89174
89175         * config/missing: update from automake.
89176
89177 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89178             Bruno Haible  <bruno@clisp.org>
89179
89180         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89181         * lib/getline.c (getline, getdelim): Likewise.
89182         Remove _GNU_SOURCE define; now it's defined in config.h through
89183         m4/getline.m4.
89184
89185 2003-07-23  Karl Berry  <karl@gnu.org>
89186
89187         * config/config.sub: update from prep.
89188
89189 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89190
89191         * modules/xalloc (Depends-on): Add exitfail.
89192         * modules/xmemcoll: Likewise.
89193
89194 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89195
89196         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89197         over-parenthesization in macros.
89198
89199         Sync with coreutils.
89200
89201         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89202         required by C99.
89203
89204         Use `exit_failure' for xalloc and xmemcoll instead of their own
89205         private exit-failure variables.
89206         * lib/xalloc.h (xalloc_exit_failure): Remove.
89207         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89208         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89209         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89210         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89211         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89212
89213 2003-07-20  Jim Meyering  <jim@meyering.net>
89214
89215         * modules/closeout (Depends-on): Add exitfail.
89216         Suggestion from Bruno Haible.
89217
89218 2003-07-19  Karl Berry  <karl@gnu.org>
89219
89220         * config/config.sub: update from prep.
89221
89222 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89223
89224         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89225         Remove.
89226         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89227         to test that it can stand by itself.  Include "exitfail.h".
89228         Clients should set exit_failure instead.
89229         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89230
89231 2003-07-18  Bruno Haible  <bruno@clisp.org>
89232
89233         * modules/getndelim2: New file.
89234         * modules/getline: Share files with module getndelim2.
89235         * modules/getnline: Depend on getndelim2 instead of sharing files with
89236         it. Add getnline.c to lib_SOURCES.
89237         * MODULES.html.sh (func_all_modules): Add getndelim2.
89238
89239 2003-07-18  Bruno Haible  <bruno@clisp.org>
89240
89241         * m4/getndelim2.m4: New file.
89242         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89243         invoke gl_PREREQ_GETNDELIM2.
89244         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89245         gl_PREREQ_GETNDELIM2.
89246         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89247         gl_GETNDELIM2.
89248
89249 2003-07-18  Bruno Haible  <bruno@clisp.org>
89250
89251         * lib/getndelim2.h: New file.
89252         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89253         getndelim2.h.
89254         (getndelim2): Make non-static. Change return type to ssize_t.
89255         * lib/getline.h: Change argument names.
89256         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89257         * lib/getnline.c: Include getndelim2.h.
89258
89259 2003-07-18  Andreas Schwab  <schwab@suse.de>
89260
89261         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89262
89263 2003-07-17  Karl Berry  <karl@gnu.org>
89264
89265         * config/config.sub: update from prep.
89266
89267 2003-07-17  Bruno Haible  <bruno@clisp.org>
89268
89269         * modules/getnline: New file.
89270         * modules/getline: Add lib/getndelim2.c to source file list.
89271         * MODULES.html.sh (func_all_modules): Add getnline.
89272
89273 2003-07-17  Bruno Haible  <bruno@clisp.org>
89274
89275         * m4/getnline.m4: New file.
89276
89277 2003-07-17  Bruno Haible  <bruno@clisp.org>
89278
89279         * m4/Makefile.am.in: Remove file.
89280         * m4/Makefile.am: Remove file.
89281         * m4/Makefile.in: Remove file.
89282
89283 2003-07-17  Bruno Haible  <bruno@clisp.org>
89284
89285         * lib/getnline.h: New file.
89286         * lib/getnline.c: New file.
89287         * lib/getndelim2.c: New file, extracted from getline.c.
89288         (getndelim2): Renamed from getdelim2, with added nmax argument.
89289         * lib/getline.c: Include getndelim2.c.
89290         (getdelim2): Moved out to getndelim2.c.
89291         (getline, getdelim): Update.
89292
89293 2003-07-17  Bruno Haible  <bruno@clisp.org>
89294
89295         * lib/Makefile.am: Remove file.
89296         * lib/Makefile.in: Remove file.
89297
89298 2003-07-17  Bruno Haible  <bruno@clisp.org>
89299
89300         * configure.in: Remove file.
89301         * Makefile.in: Remove file.
89302
89303 2003-07-17  Bruno Haible  <bruno@clisp.org>
89304
89305         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89306
89307 2003-07-16  Karl Berry  <karl@gnu.org>
89308
89309         * config/srclist-update: was running fixlicense twice, which caused
89310                 texinfo.tex to be nullified for some reason.  Simplify,
89311                 $gplsrc is no longer needed as far as I can see?
89312
89313 2003-07-16  Jim Meyering  <jim@meyering.net>
89314
89315         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89316
89317 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89318
89319         * config/srclist.txt: Get the following files from gettext-runtime/intl
89320         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89321         ref-del.sin.  From Bruno Haible.
89322         * config/srclist-update (fixfile): Change grep pattern again, since the
89323         previous fix didn't work (there was another trailing $).  Use
89324         '[$]' to escape the $s.
89325
89326 2003-07-15  Karl Berry  <karl@gnu.org>
89327
89328         * lib/vasnprintf.c: update from gettext.
89329
89330 2003-07-15  Karl Berry  <karl@gnu.org>
89331
89332         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89333         gets expanded when surrounded by '$'.
89334
89335 2003-07-15  Jim Meyering  <jim@meyering.net>
89336
89337         * modules/save-cwd: Don't depend on error.  From Derek Price.
89338
89339 2003-07-15  Jim Meyering  <jim@meyering.net>
89340
89341         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89342
89343 2003-07-14  Simon Josefsson  <jas@extundo.com>
89344
89345         * modules/mempcpy: New file.
89346         * MODULES.html.sh (func_all_modules): Add mempcpy.
89347
89348 2003-07-14  Simon Josefsson  <jas@extundo.com>
89349
89350         * m4/mempcpy.m4: New file.
89351
89352 2003-07-14  Simon Josefsson  <jas@extundo.com>
89353
89354         * lib/mempcpy.h: New file.
89355         * lib/mempcpy.c: New file.
89356
89357 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89358
89359         * modules/getdate, modules/posixtm: Depend on mktime.
89360
89361 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89362
89363         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89364         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89365         unicodeio.c, unicodeio.h, unlocked-io.h:
89366         Switch from LGPL to GPL.
89367
89368 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89369
89370         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89371         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89372         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89373         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89374         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89375         updated automatically by ../config/srclist-update.  This changes
89376         their license from LPGL to GPL.
89377
89378 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89379
89380         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89381         assumed to refer to the root of the most recent stable gettext version.
89382         * config/srclistvars.sh: Add defaults for eggert.
89383         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89384         Match "This program" as well as "The program".  This is needed
89385         for gettext.
89386
89387 2003-07-14  Jim Meyering  <jim@meyering.net>
89388
89389         Don't emit diagnostics.  Let callers do that.
89390         * lib/save-cwd.c: Don't include "error.h".
89391         (save_cwd): Don't call error.  Ensure that errno is valid
89392         when returning nonzero.
89393
89394         * lib/save-cwd.h (restore_cwd): Update prototype.
89395         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89396         Simplify.  Don't call error upon failure.  Let callers do that.
89397         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89398         when auditing is enabled.  But don't bother updating the #if.
89399
89400 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89401
89402         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89403         it breaks C++ compilation.
89404         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89405
89406 2003-07-10  Simon Josefsson  <jas@extundo.com>
89407
89408         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89409
89410 2003-07-10  Jim Meyering  <jim@meyering.net>
89411
89412         * m4/clock_time.m4: Remove trailing blank.
89413         * m4/intmax_t.m4: Likewise.
89414
89415 2003-07-10  Jim Meyering  <jim@meyering.net>
89416
89417         * lib/vasnprintf.c: Remove trailing blanks.
89418         Make cpp indentation consistent.
89419
89420 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89421
89422         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89423         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89424         Switch from LGPL to GPL.
89425
89426 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89427
89428         * config/srclist.txt: Sort sublists.  Add
89429         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89430         that differ from gnulib for one reason or another; we'd like this list
89431         to be smaller but for now let's document what we have.
89432
89433 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89434
89435         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89436         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89437         and sweeter "eval x=$x".
89438         * config/srclist.txt: Get lib/argp* from glibc.
89439
89440 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89441
89442         * lib/mktime.c: Fix some boundary cases and remove need for floating
89443         point.
89444
89445         Issue a compile-time diagnostic if time_t is floating point, or if
89446         two's complement arithmetic is not in effect, or if arithmetic
89447         right shift does not propagate the sign.  These assumptions were
89448         all in the original code but they weren't checked.
89449
89450         (TIME_T_MIDPOINT, verify): New macros.
89451         (__isleap): Remove; it has integer overflow problems.
89452         (leapyear): New function, without those problems.
89453         (ydhms_tm_diff): Remove; splitting into two parts.
89454         (ydhms_diff): New function, containing the arithmetic part of
89455         the old ydhms_tm_diff function.  Issue a compile-time
89456         diagnostic if we are not using C99 integer division.
89457         Avoid casts when possible.
89458         (guess_time_tm): New function, containing the checking part of
89459         the old ydhms_tm_diff function.  Return the new value, rather than
89460         the difference between it and the old.  Accept a new argument T
89461         so that *T specifies the old value.  Check for overflow in the result.
89462
89463         (__mktime_internal): Use a time_t offset, not a long int offset.
89464         This undoes the 2003-06-04 change, which is no longer needed now
89465         that we have better overflow checking.
89466         (localtime_offset): Likewise.
89467
89468         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89469         and long are 64-bit but int is only 32-bit.
89470         (ydhms_diff): Use long int to store year1 and yday1.
89471         Issue a compile-time diagnostic if long int is not wide enough.
89472
89473         (__mktime_internal): Use long int to store adjusted year and yday.
89474         Use plain C rather than preprocessor commands, if that doesn't
89475         affect efficiency.
89476         Check for overflow (and try to repair) after each probe
89477         rather than checking only at the very end.  This avoids some bugs
89478         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89479         does not equal GMT offset at maximum time).
89480         Use integer to check for overflow rather than floating point; this
89481         is more portable to non-IEEE hosts, and is a tad faster.
89482         When we detect that we are oscillating between two values,
89483         don't check whether tm_isdst has the requested value, since
89484         we already know the answer.  When tm_isdst has the wrong value,
89485         use a different heuristic to find the right one, based on the
89486         extreme values actually observed in practice in tz2003a,
89487         rather than the (overly optimistic) "previous 3 calendar quarters".
89488
89489         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89490         "T const" to accommodate glibc style.
89491         (check_result): Use less-confusing report format.  "long" -> "long int.
89492         (main): Likewise.
89493         Don't loop if the iteration overflows time_t.
89494         Allow a negative step in the iteration.
89495
89496 2003-07-06  Karl Berry  <karl@gnu.org>
89497
89498         * config/depcomp: update from automake.
89499         * config/config.sub: update from prep.
89500
89501 2003-07-03  Karl Berry  <karl@gnu.org>
89502
89503         * config/config.guess: update from prep.
89504
89505 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89506
89507         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89508         xreadlink.c now includes it unconditionally.
89509
89510 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89511
89512         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89513         having it depend on HAVE_SYS_TYPES_H.
89514
89515 2003-07-01  Bruno Haible  <bruno@clisp.org>
89516
89517         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89518         <sys/types.h> should be sufficient.
89519         Reported by Paul Eggert.
89520
89521 2003-06-26  Karl Berry  <karl@gnu.org>
89522
89523         * config/depcomp: update from automake.
89524
89525 2003-06-26  Bruno Haible  <bruno@clisp.org>
89526
89527         * modules/human: Depend on module stdbool.
89528
89529 2003-06-25  Bruno Haible  <bruno@clisp.org>
89530
89531         * modules/readlink: New file.
89532         * modules/xreadlink: Depend on it.
89533         * MODULES.html.sh (func_all_modules): Add readlink.
89534
89535 2003-06-25  Bruno Haible  <bruno@clisp.org>
89536
89537         * m4/readlink.m4: New file.
89538
89539 2003-06-25  Bruno Haible  <bruno@clisp.org>
89540
89541         * lib/readlink.c: New file.
89542
89543 2003-06-22  Karl Berry  <karl@gnu.org>
89544
89545         * config/srclist.txt: update mkinstalldirs from automake.
89546         * config/mkinstalldirs: update.
89547
89548 2003-06-22  Bruno Haible  <bruno@clisp.org>
89549
89550         Portability to mingw32.
89551         * m4/ssize_t.m4: New file, from GNU gettext.
89552         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89553         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89554
89555 2003-06-22  Bruno Haible  <bruno@clisp.org>
89556
89557         * modules/safe-read: Add m4/ssize_t.m4.
89558         * modules/xreadlink: Add m4/ssize_t.m4.
89559
89560 2003-06-20  Bruno Haible  <bruno@clisp.org>
89561
89562         Assume C89, so PARAMS isn't needed.
89563         * lib/unicodeio.h (PARAMS): Remove.
89564         * lib/unicodeio.c: Don't use PARAMS.
89565
89566 2003-06-18  Karl Berry  <karl@gnu.org>
89567
89568         * config/config.{guess,sub}: update from prep.
89569
89570 2003-06-18  Jim Meyering  <jim@meyering.net>
89571
89572         Merge changes from coreutils.
89573         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89574         Remove explicit declarations of xmalloc and realloc.
89575         Include xalloc.h.
89576         (read_utmp): Remove anachronistic cast of xmalloc.
89577
89578 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89579
89580         Assume C89, so PARAMS isn't needed.
89581         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89582         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89583         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89584         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89585         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89586         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89587         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89588         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89589         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89590         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89591         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89592         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89593         no longer needed. Anyway, config.h should always be included before any
89594         other file.
89595
89596 2003-06-11  Simon Josefsson  <jas@extundo.com>
89597
89598         * modules/sysexits: New file.
89599         * MODULES.html.sh (func_all_modules): Add sysexits.
89600
89601 2003-06-11  Simon Josefsson  <jas@extundo.com>
89602
89603         * lib/sysexit_.h: New file.
89604
89605 2003-06-11  Derek Price  <derek@ximbiot.com>
89606
89607         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89608         necessary.
89609
89610 2003-06-11  Bruno Haible  <bruno@clisp.org>
89611
89612         * m4/sysexits.m4: New file.
89613
89614 2003-06-10  Simon Josefsson  <jas@extundo.com>
89615
89616         * lib/argp.h: New file, from glibc.
89617         * lib/argp-ba.c: New file, from glibc.
89618         * lib/argp-eexst.c: New file, from glibc.
89619         * lib/argp-fmtstream.c: New file, from glibc.
89620         * lib/argp-fmtstream.h: New file, from glibc.
89621         * lib/argp-fs-xinl.c: New file, from glibc.
89622         * lib/argp-help.c: New file, from glibc.
89623         * lib/argp-namefrob.h: New file, from glibc.
89624         * lib/argp-parse.c: New file, from glibc.
89625         * lib/argp-pv.c: New file, from glibc.
89626         * lib/argp-pvh.c: New file, from glibc.
89627         * lib/argp-xinl.c: New file, from glibc.
89628
89629 2003-06-10  Simon Josefsson  <jas@extundo.com>
89630
89631         * modules/strchrnul: New file.
89632
89633 2003-06-10  Simon Josefsson  <jas@extundo.com>
89634
89635         * modules/argp: New file.
89636
89637 2003-06-10  Simon Josefsson  <jas@extundo.com>
89638
89639         * m4/strchrnul.m4: New file.
89640
89641 2003-06-10  Simon Josefsson  <jas@extundo.com>
89642
89643         * lib/strchrnul.h: New file.
89644         * lib/strchrnul.c: New file.
89645
89646 2003-06-10  Bruno Haible  <bruno@clisp.org>
89647
89648         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89649
89650 2003-06-07  Karl Berry  <karl@gnu.org>
89651
89652         * config/config.{guess,sub}: update from prep.
89653
89654 2003-06-07  Jim Meyering  <jim@meyering.net>
89655
89656         * modules/strtod: Use $(...) notation, not @...@ for
89657         AC_REPLACE'd variables.
89658         * modules/localcharset: Likewise.
89659
89660 2003-06-07  Jim Meyering  <jim@meyering.net>
89661
89662         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89663         in place of my name in the copyright comment.
89664         Remove definition and uses of __P.
89665
89666         From coreutils.
89667         * lib/stat.c: Don't declare xmalloc explicitly.
89668         Instead, include "xalloc.h".
89669         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89670         xrealloc, and xcalloc return values.
89671         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89672         Improve comment.
89673         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89674
89675 2003-06-07  Bruno Haible  <bruno@clisp.org>
89676
89677         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89678         avoid AC_CONFIG_LINKS.
89679         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89680         fnmatch.h, to avoid AC_CONFIG_LINKS.
89681         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89682
89683 2003-06-07  Bruno Haible  <bruno@clisp.org>
89684
89685         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89686         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89687         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89688         directory.
89689         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89690         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89691         directory.
89692
89693 2003-06-06  Jim Meyering  <jim@meyering.net>
89694
89695         Merge from coreutils.
89696         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89697         Consolidate declarations and initializations of *_base* locals.
89698
89699         Merge from coreutils.
89700         This avoids a core dump on systems without GNU putenv,
89701         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89702         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89703         (unsetenv): New static function, from GNU libc.
89704         (rpl_putenv): Use it.
89705
89706         * lib/modechange.c: Remove trailing blanks.
89707
89708         Merge from coreutils.
89709         * lib/fsusage.c: Remove declaration of statfs.
89710         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89711
89712         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89713
89714 2003-06-06  Jim Meyering  <jim@meyering.net>
89715
89716         * lib/stdbool_.h: Renamed from stdbool.h.in.
89717
89718 2003-06-06  Jim Meyering  <jim@meyering.net>
89719             Bruno Haible  <bruno@clisp.org>
89720
89721         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89722         Adjust Makefile.am snippet not to redirect directly to target.
89723         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89724
89725 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89726
89727         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89728         mismatch, look in future quarters as well as past.  This fixes a
89729         bug when processing fall-backwards gaps immediately after a long
89730         period of daylight-saving time.
89731
89732         * lib/mktime.c: Assume freestanding C89 or better.
89733         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89734         (__P): Remove; not used.
89735         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89736         (mktime, not_equal_tm, print_tm, check_result,
89737         main): Use prototypes.  Use const * where appropriate.
89738         (main): Fix typo in testing code that uncovered by above changes.
89739         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89740
89741 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89742
89743         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89744         locale.h, localeconv.  This merges changes from coreutils.
89745
89746         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89747         It can be removed after the next Autoconf is released.
89748         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89749         needed.
89750
89751 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89752
89753         * lib/mktime.c: Fix Debian bug 177940
89754         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89755         (localtime_offset): Now long int, not time_t, because we want it
89756         to be guaranteed to be signed.  All uses changed.
89757         (__mktime_internal): If overflow would occur when adding offset,
89758         don't add it.
89759
89760         Merge 'human' changes from coreutils.  Rewrite to support
89761         locale-specific notations like thousands separators.
89762         * lib/human.c: Simplify authorship notice.
89763         Include human.h immediately after config.h.
89764         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89765         <limits.h>: Do not include, since human.h does.
89766         (SIZE_MAX, UINTMAX_MAX): New macros.
89767         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89768         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89769         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89770         (power_letter): Renamed from suffixes.
89771         (generate_suffix_backwards): Remove.
89772         (adjust_value): Now takes int style (because of human.h changes)
89773         and long double value (for greater precision on some platforms).
89774         (group_number): New function.
89775         (human_readable): Use it.  Use integer options, not enum.
89776         Put the options before the sizes in the arg list.
89777         Support all the new options.
89778         The old human_readable function has been removed;
89779         use inttostr.h instead.
89780         (human_readable, default_block_size, humblock):
89781         Use uintmax_t, not int, for block sizes.
89782         (human_readable_inexact, block_size_types): Remove.
89783         (block_size_opts): New constant.
89784         (human_options): Renamed from human_block_size, with new signature
89785         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89786         * lib/human.h: Add copyright and authorship notice.
89787         Include <limits.h> and <stdbool.h> unconditionally.
89788         (PARAMS): Remove.  All uses removed.
89789         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89790         (enum human_inexact_style): Remove tag; now a nameless enum.
89791         (human_floor, human_ceiling, human_round_to_even): Now have
89792         values 2, 0, 1 rather than -1, 1, 0.
89793         (human_group_digits, human_suppress_point_zero, human_autoscale,
89794         human_base_1024, human_SI, human_B): New constants.
89795         (human_readable_inexact, human_block_size): Remove.
89796         (human_readable): Size args are now uintmax_t, not int.
89797         (human_options): New decl.
89798
89799         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89800         unnecessary now that we assume C89 or better.  This change
89801         imported from coreutils.
89802
89803         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89804         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89805         in the 2003-05-30 sync from glibc.
89806
89807         .h files should stand alone, but we shouldn't include <sys/types.h>
89808         if we can get away with just <stddef.h>.
89809
89810         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89811         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89812         rather than <sys/types.h>, as we merely need size_t.
89813         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89814         to get size_t.
89815         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89816         Include <stdio.h>, to get FILE.
89817         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89818         memcasecmp.h has included <stddef.h> and all we need is size_t.
89819         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89820         our interface, instead of including <sys/types.h>
89821
89822 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89823
89824         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89825         now, as glibc mktime is buggy on non-glibc systems.
89826
89827 2003-06-03  Karl Berry  <karl@gnu.org>
89828
89829         * config/config.sub: update from prep.
89830
89831 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89832
89833         [from coreutils]
89834         Fix some minor time-related bugs with POSIX time arguments.
89835         Some valid time stamps were being rejected (notably -1, and
89836         time stamps before 1900 on 64-bit hosts).  And some invalid
89837         time stamps were being accepted, e.g. September 31.
89838
89839         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89840         that we can return (time_t) -1 successfully.
89841         * lib/posixtm.c: Likewise.
89842         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89843         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89844         (t): Remove static var.
89845         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89846         of static var.  All uses changed.
89847         (year): Do not reject years before 1900; they can occur with
89848         64-bit time_t.
89849         (posix_time_parse): Do not check for out-of-range components;
89850         that is now the caller's responsibility, since our checks were
89851         only approximations.
89852         (posixtime): Use mktime to check for out-of-range components,
89853         since it knows them exactly.
89854         If mktime returns (time_t) -1, check whether an error actually occurred
89855         by invoking localtime on -1.
89856         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89857         posixtime failures better.
89858         Improve the test data (in comments only).
89859
89860 2003-06-02  Karl Berry  <karl@gnu.org>
89861
89862         * config/mkinstalldirs (version): new variable.
89863         (--version): new option.
89864         (usage): improve message.
89865
89866 2003-05-30  Karl Berry  <karl@gnu.org>
89867
89868         * lib/mktime.c: update from libc.
89869
89870 2003-05-30  Bruno Haible  <bruno@clisp.org>
89871
89872         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89873         * config/config.rpath: Upgrade to gettext-0.12.1.
89874
89875 2003-05-30  Bruno Haible  <bruno@clisp.org>
89876
89877         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89878         * m4/nls.m4: New file, from gettext-0.12.1.
89879         * m4/po.m4: New file, from gettext-0.12.1.
89880         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89881
89882 2003-05-30  Bruno Haible  <bruno@clisp.org>
89883
89884         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89885         * lib/localcharset.h: Likewise.
89886         * lib/localcharset.c: Likewise.
89887
89888 2003-05-29  Karl Berry  <karl@gnu.org>
89889
89890         * config/config.rpath: update from gettext.
89891
89892 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89893
89894         Assume the headers required for C89 freestanding compilers.
89895         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89896         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89897         * m4/human.m4 (gl_HUMAN): Likewise.
89898         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89899         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89900         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89901         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89903         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89904
89905 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89906
89907         Assume the headers required for C89 freestanding compilers.
89908         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89909         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89910         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89911         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89912         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89913         define, since <limits.h> is guaranteed to do that.
89914         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89915         * lib/exclude.c: Include <stdbool.h> unconditionally.
89916         * lib/tempname.c: Include <stddef.h> unconditionally.
89917         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89918         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89919         <stddef.h> does that.
89920         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89921         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89922         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89923         needed.
89924         * lib/xstrtol.c: Likewise.
89925         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89926         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89927
89928         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89929         warnings on some platforms.
89930
89931         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89932         arbitrarily.
89933
89934 2003-05-26  Jim Meyering  <jim@meyering.net>
89935
89936         Merge in a change from coreutils:
89937         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89938         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89939         that condition, rather than `-1' which is slightly misleading.
89940         Change the name of the cache variable to have the gl_ prefix.
89941         Prompted by a patch from Richard Dawe for DJGPP.
89942
89943 2003-05-24  Karl Berry  <karl@gnu.org>
89944
89945         * config/config.guess: update from prep.
89946
89947 2003-05-22  Karl Berry  <karl@gnu.org>
89948
89949         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89950
89951 2003-05-20  Karl Berry  <karl@gnu.org>
89952
89953         * config/config.guess: update from prep.
89954
89955 2003-05-18  Karl Berry  <karl@gnu.org>
89956
89957         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89958         might actually be set by the user.
89959
89960         * config/depcomp, install-sh, mdate-sh: update from automake.
89961
89962 2003-05-17  Bruno Haible  <bruno@clisp.org>
89963
89964         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89965         invalid expansion for AC_EGREP_CPP.
89966         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89967         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89968         Suggested by Akim Demaille <akim@epita.fr> in
89969         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89970
89971 2003-05-12  Jim Meyering  <jim@meyering.net>
89972
89973         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89974         the space-padded-by-default conversion specifiers, %e, %k, %l.
89975
89976 2003-05-12  Bruno Haible  <bruno@clisp.org>
89977
89978         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89979         the string is longer than 4 KB.
89980
89981 2003-05-11  Karl Berry  <karl@gnu.org>
89982
89983         * config/config.{guess,sub}: update from prep.
89984
89985 2003-05-09  Bruno Haible  <bruno@clisp.org>
89986
89987         * modules/error: Add m4/strerror_r.m4 to file list.
89988
89989 2003-05-03  Bruno Haible  <bruno@clisp.org>
89990
89991         Upgrade to Unicode-4.0.
89992         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89993         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89994         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89995         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89996         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89997         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89998         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89999         Change width of U+E0100..U+E01EF from 1 to 0.
90000
90001 2003-04-25  Jim Meyering  <jim@meyering.net>
90002
90003         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90004         of type size_t, not int.
90005
90006 2003-04-25  Bruno Haible  <bruno@clisp.org>
90007
90008         * lib/copy-file.c: Include <stddef.h>, for size_t.
90009
90010 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90011
90012         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90013         code which expansion is under static control.  Patch imported from
90014         Akim Demaille's patch to Bison; see
90015         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90016
90017 2003-04-14  Bruno Haible  <bruno@clisp.org>
90018
90019         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90020
90021 2003-04-11  Jim Meyering  <jim@meyering.net>
90022
90023         Merge changes from Coreutils.
90024
90025         2003-03-22  Jim Meyering  <jim@meyering.net>
90026
90027         * lib/strftime.c (widen): Cast alloca return value to proper type.
90028
90029         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90030
90031         From GNU libc.
90032         * lib/strftime.c (my_strftime): Handle very large width
90033         specifications for numeric values correctly.  Improve checks for
90034         overflow.
90035
90036         2003-01-19  Jim Meyering  <jim@meyering.net>
90037
90038         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90039         definitions.
90040         (nl_get_alt_digit) [! defined my_strftime]: Define.
90041         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90042         _nl_get_alt_digit and _nl_get_walt_digit.
90043
90044         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90045         libc. These changes have no effect outside of _LIBC.
90046
90047 2003-04-10  Bruno Haible  <bruno@clisp.org>
90048
90049         * modules/findprog: New file.
90050         * MODULES.html.sh (func_all_modules): Add it.
90051
90052 2003-04-10  Bruno Haible  <bruno@clisp.org>
90053
90054         * m4/findprog.m4: New file.
90055         * m4/eaccess.m4: New file.
90056
90057 2003-04-10  Bruno Haible  <bruno@clisp.org>
90058
90059         * lib/findprog.h: New file, from GNU gettext.
90060         * lib/findprog.c: New file, from GNU gettext.
90061
90062 2003-04-05  Jim Meyering  <jim@meyering.net>
90063
90064         Merge changes from Coreutils.
90065
90066         * lib/exclude.h (PARAMS): Remove definition and uses.
90067         * lib/exclude.c: Remove uses of `PARAMS'.
90068
90069         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90070         Add test-cases for DOS filenames. Declare program_name.
90071         (main): Set up program_name.  Patch by Rich Dawe.
90072
90073         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90074         error from mntctl.
90075         Use mntctl's return value to drive the entry-processing loop, since
90076         we can't rely on the value of the vmt_length member in the last
90077         entry.  On some systems doing so could result in exhausting
90078         virtual memory.  Based in part on a patch from Mike Jetzer.
90079
90080 2003-04-04  Bruno Haible  <bruno@clisp.org>
90081
90082         * modules/linebreak: New file.
90083         * MODULES.html.sh (func_all_modules): Add it.
90084
90085 2003-04-04  Bruno Haible  <bruno@clisp.org>
90086
90087         * m4/linebreak.m4: New file.
90088
90089 2003-04-04  Bruno Haible  <bruno@clisp.org>
90090
90091         * lib/linebreak.h: New file, from GNU gettext.
90092         * lib/linebreak.c: New file, from GNU gettext with slight
90093         modifications.
90094         * lib/lbrkprop.h: New file, from GNU gettext.
90095
90096 2003-04-03  Bruno Haible  <bruno@clisp.org>
90097
90098         * modules/utf8-ucs4: New file.
90099         * modules/utf16-ucs4: New file.
90100         * modules/ucs4-utf8: New file.
90101         * modules/ucs4-utf16: New file.
90102         * MODULES.html.sh (func_all_modules): Add them.
90103
90104 2003-04-03  Bruno Haible  <bruno@clisp.org>
90105
90106         * m4/utf-ucs4.m4: New file.
90107         * m4/ucs4-utf.m4: New file.
90108
90109 2003-04-03  Bruno Haible  <bruno@clisp.org>
90110
90111         * lib/utf8-ucs4.h: New file, from GNU gettext.
90112         * lib/utf16-ucs4.h: New file, from GNU gettext.
90113         * lib/ucs4-utf8.h: New file, from GNU gettext.
90114         * lib/ucs4-utf16.h: New file, from GNU gettext.
90115
90116 2003-04-02  Bruno Haible  <bruno@clisp.org>
90117
90118         * modules/binary-io: New file.
90119         * MODULES.html.sh (func_all_modules): Add it.
90120
90121 2003-04-02  Bruno Haible  <bruno@clisp.org>
90122
90123         * lib/binary-io.h: New file, from GNU gettext.
90124
90125 2003-04-01  Bruno Haible  <bruno@clisp.org>
90126
90127         * modules/pathname: New file.
90128         * MODULES.html.sh (func_all_modules): Add it.
90129
90130 2003-04-01  Bruno Haible  <bruno@clisp.org>
90131
90132         * lib/pathname.h: New file, from GNU gettext.
90133         * lib/concatpath.c: New file, from GNU gettext.
90134
90135 2003-03-30  Bruno Haible  <bruno@clisp.org>
90136
90137         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90138
90139 2003-03-30  Bruno Haible  <bruno@clisp.org>
90140
90141         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90142         function chown() doesn't exist.
90143
90144 2003-03-28  Bruno Haible  <bruno@clisp.org>
90145
90146         * modules/copy-file: New file.
90147         * MODULES.html.sh (func_all_modules): Add it.
90148
90149 2003-03-28  Bruno Haible  <bruno@clisp.org>
90150
90151         * m4/copy-file.m4: New file.
90152
90153 2003-03-28  Bruno Haible  <bruno@clisp.org>
90154
90155         * lib/copy-file.h: New file, from GNU gettext.
90156         * lib/copy-file.c: New file, from GNU gettext.
90157
90158 2003-03-18  Jim Meyering  <jim@meyering.net>
90159
90160         * lib/quote.c (quote_n): Fix typo in comment.
90161
90162 2003-03-18  Bruno Haible  <bruno@clisp.org>
90163
90164         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90165         checking.
90166         * m4/onceonly_2_57.m4: Likewise.
90167
90168 2003-03-17  Bruno Haible  <bruno@clisp.org>
90169
90170         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90171         (m4_quote): Remove macro.
90172         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90173
90174 2003-03-14  Jim Meyering  <jim@meyering.net>
90175
90176         Merge changes from Coreutils.
90177         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90178         to be const, in order to avoid warnings.
90179         (obstack_room): Likewise.
90180         (obstack_empty_p): Likewise.
90181
90182 2003-03-14  Bruno Haible  <bruno@clisp.org>
90183
90184         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90185         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90186
90187 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90188
90189         Merge changes from Bison.
90190         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90191         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90192         when compiling Bison 1.875's `bitset bset = obstack_alloc
90193         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90194         * lib/hash.c: Include <stdbool.h> unconditionally.
90195
90196 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90197
90198         * m4/onceonly.m4 (m4_quote): New macro.
90199         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90200         Quote AC_FOREACH variable-expansions properly.
90201
90202 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90203
90204         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90205
90206 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90207
90208         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90209         Reported by Bruce Becker; see:
90210         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90211
90212 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90213             Bruno Haible  <bruno@clisp.org>
90214
90215         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90216         Reported by John Hughes, see
90217         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90218
90219 2003-02-20  Bruno Haible  <bruno@clisp.org>
90220
90221         * MODULES.html.sh (func_all_modules): Add poll.
90222
90223 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90224
90225         * modules/poll: New file.
90226
90227 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90228
90229         * lib/poll_.h: New file.
90230         * lib/poll.c: New file.
90231
90232 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90233
90234         * m4/poll.m4: New file.
90235
90236 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90237
90238         * modules/mathl: New file.
90239
90240 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90241
90242         * lib/mathl.h: New file.
90243         * lib/acosl.c: New file.
90244         * lib/asinl.c: New file.
90245         * lib/atanl.c: New file.
90246         * lib/ceill.c: New file.
90247         * lib/cosl.c: New file.
90248         * lib/expl.c: New file.
90249         * lib/floorl.c: New file.
90250         * lib/frexpl.c: New file.
90251         * lib/ldexpl.c: New file.
90252         * lib/logl.c: New file.
90253         * lib/sincosl.c: New file.
90254         * lib/sinl.c: New file.
90255         * lib/sqrtl.c: New file.
90256         * lib/tanl.c: New file.
90257         * lib/trigl.c: New file.
90258         * lib/trigl.h: New file.
90259
90260 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90261
90262         * m4/mathl.m4: New file.
90263
90264 2003-02-18  Bruno Haible  <bruno@clisp.org>
90265
90266         * MODULES.html.sh (func_all_modules): Add mathl.
90267
90268 2003-02-17  Bruno Haible  <bruno@clisp.org>
90269
90270         * modules/mkdtemp: New module.
90271         * MODULES.html.sh (func_all_modules): Add it.
90272
90273 2003-02-17  Bruno Haible  <bruno@clisp.org>
90274
90275         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90276
90277 2003-02-17  Bruno Haible  <bruno@clisp.org>
90278
90279         * lib/mkdtemp.h: New file, from GNU gettext.
90280         * lib/mkdtemp.c: New file, from GNU gettext.
90281
90282 2003-02-02  Jim Meyering  <jim@meyering.net>
90283
90284         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90285         e.g. glibc-2.2.93.
90286
90287 2003-01-31  Bruno Haible  <bruno@clisp.org>
90288
90289         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90290         'rpl_rename'.
90291         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90292         'rpl_strnlen'.
90293         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90294         'rpl_strtod'.
90295         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90296         'rpl_utime'.
90297
90298 2003-01-31  Bruno Haible  <bruno@clisp.org>
90299
90300         * lib/rename.c: #undef rename before defining rpl_rename.
90301         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90302
90303 2003-01-30  Bruno Haible  <bruno@clisp.org>
90304
90305         * modules/vasnprintf, modules/vasprintf: New modules.
90306         * MODULES.html.sh (func_all_modules): Add them.
90307
90308 2003-01-30  Bruno Haible  <bruno@clisp.org>
90309
90310         * m4/signed.m4: New file, from GNU gettext.
90311         * m4/longdouble.m4: New file, from GNU gettext.
90312         * m4/wchar_t.m4: New file, from GNU gettext.
90313         * m4/wint_t.m4: New file, from GNU gettext.
90314         * m4/vasnprintf.m4: New file.
90315         * m4/vasprintf.m4: New file.
90316
90317 2003-01-30  Bruno Haible  <bruno@clisp.org>
90318
90319         * lib/printf-args.h: New file, from GNU gettext.
90320         * lib/printf-args.c: New file, from GNU gettext.
90321         * lib/printf-parse.h: New file, from GNU gettext.
90322         * lib/printf-parse.c: New file, from GNU gettext.
90323         * lib/vasnprintf.h: New file, from GNU gettext.
90324         * lib/vasnprintf.c: New file, from GNU gettext.
90325         * lib/asnprintf.c: New file, from GNU gettext.
90326         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90327         * lib/vasprintf.c: New file, from GNU gettext.
90328         * lib/asprintf.c: New file, from GNU gettext.
90329
90330 2003-01-29  Bruno Haible  <bruno@clisp.org>
90331
90332         * modules/stpncpy: New module.
90333         * MODULES.html.sh (func_all_modules): Add it.
90334
90335 2003-01-29  Bruno Haible  <bruno@clisp.org>
90336
90337         * m4/stpncpy.m4: New file.
90338
90339 2003-01-29  Bruno Haible  <bruno@clisp.org>
90340
90341         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90342         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90343
90344 2003-01-28  Bruno Haible  <bruno@clisp.org>
90345
90346         * modules/c-ctype: New module.
90347         * MODULES.html.sh (func_all_modules): Add it.
90348
90349 2003-01-28  Bruno Haible  <bruno@clisp.org>
90350
90351         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90352         Paul Eggert.
90353         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90354         Paul Eggert.
90355
90356 2003-01-27  Bruno Haible  <bruno@clisp.org>
90357
90358         * modules/xsetenv: New module.
90359         * MODULES.html.sh (func_all_modules): Add it.
90360
90361 2003-01-27  Bruno Haible  <bruno@clisp.org>
90362
90363         * lib/xsetenv.h: New file, from GNU gettext.
90364         * lib/xsetenv.c: New file, from GNU gettext.
90365
90366 2003-01-23  Jim Meyering  <jim@meyering.net>
90367
90368         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90369         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90370
90371 2003-01-23  Bruno Haible  <bruno@clisp.org>
90372
90373         * modules/minmax: New module.
90374         * MODULES.html.sh (func_all_modules): Add it.
90375
90376 2003-01-23  Bruno Haible  <bruno@clisp.org>
90377
90378         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90379         Eggert.
90380
90381 2003-01-22  Bruno Haible  <bruno@clisp.org>
90382
90383         * modules/exit: New module.
90384         * MODULES.html.sh (func_all_modules): Add it.
90385
90386 2003-01-22  Bruno Haible  <bruno@clisp.org>
90387
90388         * lib/exit.h: New file, from GNU gettext.
90389
90390 2003-01-19  Bruno Haible  <bruno@clisp.org>
90391
90392         * gnulib-tool: Recognize option --extract-maintainer.
90393         (func_get_maintainer): New function.
90394         * modules/*: Add Maintainer entry.
90395
90396 2003-01-16  Jim Meyering  <jim@meyering.net>
90397
90398         * m4/regex.m4: The `regex' struct is both input and output.
90399         Initialize it before each use.  Patch by Tim Waugh.
90400
90401 2003-01-16  Bruno Haible  <bruno@clisp.org>
90402
90403         * MODULES.html.sh: Add a table of contents. Add the module name as
90404         leftmost column. Add hyperlinks.
90405
90406 2003-01-15  Bruno Haible  <bruno@clisp.org>
90407
90408         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90409
90410 2003-01-15  Bruno Haible  <bruno@clisp.org>
90411
90412         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90413         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90414         suffix.
90415
90416 2003-01-15  Bruno Haible  <bruno@clisp.org>
90417
90418         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90419
90420 2003-01-15  Bruno Haible  <bruno@clisp.org>
90421
90422         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90423         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90424
90425 2003-01-14  Jim Meyering  <jim@meyering.net>
90426
90427         * lib/same.c (same_name): Tweak a comment.
90428
90429 2003-01-14  Bruno Haible  <bruno@clisp.org>
90430
90431         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90432         when a string comparison is sufficient.
90433
90434 2003-01-14  Bruno Haible  <bruno@clisp.org>
90435
90436         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90437         'unsigned int'.
90438
90439 2003-01-14  Bruno Haible  <bruno@clisp.org>
90440
90441         * lib/hash-pjw.c: Add comment about low quality of this function.
90442
90443 2003-01-13  Bruno Haible  <bruno@clisp.org>
90444
90445         * modules/stpcpy: Distribute lib/stpcpy.h.
90446         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90447
90448 2003-01-13  Bruno Haible  <bruno@clisp.org>
90449
90450         * modules/*: Add a description.
90451         * modules/strpbrk: Fix Makefile.am snippet.
90452         * modules/strtoimax: Fix dependencies.
90453         * modules/strtoumax: Likewise.
90454
90455 2003-01-13  Bruno Haible  <bruno@clisp.org>
90456
90457         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90458         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90459         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90460
90461 2003-01-13  Bruno Haible  <bruno@clisp.org>
90462
90463         * gnulib-tool (func_create_testdir): Store config/* files in the main
90464         directory.
90465         * config.rpath: Move to ...
90466         * config/config.rpath: ... here.
90467         * modules/gettext: Contains config/config.rpath, not config.rpath.
90468         * modules/iconv: Likewise.
90469
90470 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90471
90472         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90473         to avoid collisions with libcurses and libreadline.
90474
90475         * m4/getstr.m4: Remove.
90476         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90477
90478 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90479
90480         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90481         to avoid collisions with libcurses and libreadline.
90482
90483         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90484         * lib/getstr.h, getstr.c: Remove.
90485         * lib/getline.c: Include "getline.h", to check interface.
90486         Move body of old getstr.c here: this defines MIN_CHUNK and
90487         declares getdelim2, which is renamed from getstr.
90488         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90489
90490         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90491         All uses changed.
90492         * lib/linebuffer.h: Likewise.
90493         (readline): Remove backward-compatibility macro.
90494
90495 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90496
90497         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90498         to avoid collisions with libcurses and libreadline.
90499         * getstr: Remove.
90500         * MODULES.html.sh: Remove getstr.
90501         * modules/getline: Depend on unlocked-io, not getstr.
90502
90503 2003-01-12  Jim Meyering  <jim@meyering.net>
90504
90505         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90506
90507 2003-01-10  Bruno Haible  <bruno@clisp.org>
90508
90509         * modules/alloca: Change Makefile.am requirements. Simplify Include
90510         requirements. Add lib/alloca_.h to file list.
90511
90512 2003-01-10  Bruno Haible  <bruno@clisp.org>
90513
90514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90515
90516 2003-01-10  Bruno Haible  <bruno@clisp.org>
90517
90518         * lib/alloca_.h: New file.
90519         * lib/getdate.y: Unconditionally include alloca.h.
90520         * lib/makepath.c: Likewise.
90521         * lib/setenv.c: Likewise.
90522         * lib/userspec.c: Likewise.
90523
90524 2003-01-09  Karl Berry  <karl@gnu.org>
90525
90526         * MODULES.html.sh: include `dirname $0` in PATH, to find
90527         gnulib-tool.
90528
90529 2003-01-09  Bruno Haible  <bruno@clisp.org>
90530
90531         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90532         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90533
90534 2003-01-09  Bruno Haible  <bruno@clisp.org>
90535
90536         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90537
90538 2003-01-09  Bruno Haible  <bruno@clisp.org>
90539
90540         * lib/stdbool.h.in: New file.
90541
90542 2003-01-09  Bruno Haible  <bruno@clisp.org>
90543
90544         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90545         * MODULES.html.sh: Likewise.
90546
90547 2003-01-08  Jim Meyering  <jim@meyering.net>
90548
90549         * lib/full-write.c: Undefine and define-away `const' after inclusion
90550         of errno.h, not before.  Suggestion from Bruno Haible.
90551
90552 2003-01-08  Bruno Haible  <bruno@clisp.org>
90553
90554         * modules/full-read: Depend on full-write.
90555
90556 2003-01-08  Bruno Haible  <bruno@clisp.org>
90557
90558         * lib/safe-read.c: Include specification header first, to ensure its
90559         selfcontainedness.
90560         * lib/full-write.c: Likewise.
90561
90562 2003-01-07  Jim Meyering  <jim@meyering.net>
90563
90564         * lib/full-write.c: Rework so that it may serve to define full_read,
90565         too.
90566         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90567
90568 2003-01-07  Bruno Haible  <bruno@clisp.org>
90569
90570         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90571         <inttypes.h>.
90572         * lib/xstrtol.h: Likewise.
90573         * lib/xstrtoimax.c: Likewise.
90574         * lib/xstrtoumax.c: Likewise.
90575         * lib/human.h: Likewise.
90576
90577         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90578         on systems that have <inttypes.h> but not <stdint.h>.
90579
90580 2003-01-07  Bruno Haible  <bruno@clisp.org>
90581
90582         * MODULES.html.sh: Add copyright notice.
90583         (missed_files): Omit CVS directory entries.
90584         (func_module): Make it work with sed-3.02.
90585         * MODULES.txt: Remove file.
90586
90587 2003-01-06  Jim Meyering  <jim@meyering.net>
90588
90589         * lib/version-etc.c: Update year in translatable copyright string.
90590
90591 2003-01-03  Karl Berry  <karl@gnu.org>
90592
90593         * config/config.{guess,sub}: update from prep.
90594
90595 2003-01-02  Karl Berry  <karl@gnu.org>
90596
90597         * doc/COPYING.DOC: belatedly updated to 1.2.
90598
90599 2003-01-01  Karl Berry  <karl@gnu.org>
90600
90601         * gnulib-tool (func_verify_module): report module name $module in
90602         error message, not $1.
90603         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90604         be created, only if it doesn't exist.
90605         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90606
90607 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90608
90609         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90610
90611 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90612
90613         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90614         memcmp if strcoll doesn't work.
90615
90616 2002-12-31  Bruno Haible  <bruno@clisp.org>
90617
90618         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90619         nonempty.
90620
90621 2002-12-31  Bruno Haible  <bruno@clisp.org>
90622
90623         * lib/memcoll.c (STRCOLL): New macro.
90624         (memcoll): Use it.
90625
90626 2002-12-31  Bruno Haible  <bruno@clisp.org>
90627
90628         * lib/localcharset.h: New file.
90629         * lib/localcharset.c: Include it.
90630         * lib/unicodeio.c: Likewise.
90631
90632 2002-12-31  Bruno Haible  <bruno@clisp.org>
90633
90634         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90635         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90636
90637 2002-12-31  Bruno Haible  <bruno@clisp.org>
90638
90639         * lib/getline.h: Include <stddef.h>, for size_t.
90640
90641         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90642         * lib/unicodeio.c: Don't include <stddef.h>.
90643
90644 2002-12-31  Bruno Haible  <bruno@clisp.org>
90645
90646         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90647         HAVE_TM_ZONE.
90648
90649 2002-12-24  Karl Berry  <karl@gnu.org>
90650
90651         * config/config.guess: update from prep.
90652
90653 2002-12-24  Bruno Haible  <bruno@clisp.org>
90654
90655         General infrasructure.
90656         * m4/README: Rewritten.
90657         * m4/onceonly.m4: New file.
90658         * m4/onceonly_2_57.m4: New file.
90659
90660         Module atexit.
90661         * m4/atexit.m4: New file.
90662
90663         Module strtod.
90664         * m4/strtod.m4: New file.
90665
90666         Module strtol.
90667         * m4/strtol.m4: New file.
90668
90669         Module strtoul.
90670         * m4/strtoul.m4: New file.
90671
90672         Module memchr.
90673         * m4/memchr.m4: New file.
90674
90675         Module memcmp.
90676         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90677         (jm_FUNC_MEMCMP): Invoke it.
90678
90679         Module memcpy.
90680         * m4/memcpy.m4: New file.
90681
90682         Module memmove.
90683         * m4/memmove.m4: New file.
90684
90685         Module memset.
90686         * m4/memset.m4: New file.
90687
90688         Module strcspn.
90689         * m4/strcspn.m4: New file.
90690
90691         Module strpbrk.
90692         * m4/strpbrk.m4: New file.
90693
90694         Module strstr.
90695         * m4/strstr.m4: New file.
90696
90697         Module strerror.
90698         * m4/strerror.m4: New file.
90699
90700         Module mktime.
90701         * m4/mktime.m4: Renamed from jm-mktime.m4.
90702         (gl_PREREQ_MKTIME): New macro.
90703         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90704
90705         Module malloc.
90706         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90707         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90708         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90709
90710         Module realloc.
90711         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90712         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90713         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90714
90715         Module strftime.
90716         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90718         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90719         gl_TM_GMTOFF.
90720         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90721
90722         Module xalloc.
90723         * m4/xalloc.m4: New file.
90724
90725         Module alloca.
90726         * m4/alloca.m4: New file.
90727
90728         Module putenv.
90729         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90730         (jm_FUNC_PUTENV): Invoke it.
90731
90732         Module setenv.
90733         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90734         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90735         when invoked twice.
90736         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90737         gt_FUNC_SETENV.
90738
90739         Module memrchr.
90740         * m4/memrchr.m4: New file.
90741
90742         Module stpcpy.
90743         * m4/stpcpy.m4: New file.
90744
90745         Module strcase.
90746         * m4/strcase.m4: New file.
90747
90748         Module strdup.
90749         * m4/strdup.m4: New file.
90750
90751         Module strnlen.
90752         * m4/strnlen.m4: New file.
90753
90754         Module strndup.
90755         * m4/strndup.m4: New file.
90756
90757         Module xstrtod.
90758         * m4/xstrtod.m4: New file.
90759
90760         Module xstrtol.
90761         * m4/xstrtol.m4: New file.
90762
90763         Module getdate.
90764         * m4/getdate.m4: New file.
90765
90766         Module unlocked-io.
90767         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90768         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90769         * m4/jm-glibc-io.m4n: Remove file.
90770
90771         Module long-options.
90772         * m4/long-options.m4: New file.
90773
90774         Module md5.
90775         * m4/md5.m4: New file.
90776
90777         Module sha.
90778         * m4/sha.m4: New file.
90779
90780         Module getstr.
90781         * m4/getstr.m4: New file.
90782
90783         Module getline.
90784         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90785         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90786         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90787         simply getline. Infoke gl_PREREQ_GETLINE.
90788
90789         Module obstack.
90790         * m4/obstack.m4: New file.
90791
90792         Module hash.
90793         * m4/hash.m4: New file.
90794
90795         Module readtokens.
90796         * m4/readtokens.m4: New file.
90797
90798         Module strverscmp.
90799         * m4/strverscmp.m4: New file.
90800
90801         Module stdbool.
90802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90803         OSF/1.
90804
90805         Module strtoll.
90806         * m4/strtoll.m4: New file.
90807
90808         Module strtoull.
90809         * m4/strtoull.m4: New file.
90810
90811         Module strtoimax.
90812         * m4/strtoimax.m4: New file.
90813
90814         Module strtoumax.
90815         * m4/strtoumax.m4: New file.
90816
90817         Module xstrtoimax.
90818         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90819         jm_AC_PREREQ_XSTRTOIMAX.
90820         Moved the strtol prerequisites to strtol.m4.
90821         Moved the strtoll prerequisites to strtoll.m4.
90822         Moved the strtoimax prerequisites to strtoimax.m4.
90823
90824         Module xstrtoumax.
90825         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90826         jm_AC_PREREQ_XSTRTOUMAX.
90827         Moved the strtoul prerequisites to strtoul.m4.
90828         Moved the strtoull prerequisites to strtoull.m4.
90829         Moved the strtoumax prerequisites to strtoumax.m4.
90830
90831         Module chown.
90832         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90833         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90834
90835         Module dup2.
90836         * m4/dup2.m4: New file.
90837
90838         Module ftruncate.
90839         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90840         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90841
90842         Module getgroups.
90843         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90844         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90845
90846         Module gettimeofday.
90847         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90848         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90849         gl_PREREQ_GETTIMEOFDAY.
90850
90851         Module mkdir.
90852         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90853         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90854
90855         Module mkstemp.
90856         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90857         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90858         jm_AC_TYPE_UINTMAX_T.
90859         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90860
90861         Module stat.
90862         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90863         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90864
90865         Module lstat.
90866         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90867         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90868
90869         Module timespec.
90870         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90871         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90872         * m4/st_mtim.m4: Indentation.
90873
90874         Module nanosleep.
90875         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90876         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90877         gl_PREREQ_NANOSLEEP.
90878
90879         Module regex.
90880         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90881         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90882         (gl_REGEX): New macro.
90883
90884         Module rename.
90885         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90886         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90887
90888         Module rmdir.
90889         * m4/rmdir.m4: New file.
90890
90891         Module utime.
90892         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90893         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90894         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90895
90896         Module dirname.
90897         * m4/dirname.m4: New file.
90898
90899         Module getopt.
90900         * m4/getopt.m4: New file.
90901
90902         Module unistd-safer.
90903         * m4/unistd-safer.m4: New file.
90904
90905         Module fnmatch.
90906         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90907         declaration.
90908         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90909         (gl_FUNC_FNMATCH_POSIX): New macro.
90910         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90911         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90912         simply fnmatch.
90913
90914         Module exclude.
90915         * m4/exclude.m4: New file.
90916
90917         Module human.
90918         * m4/human.m4: New file.
90919
90920         Module acl.
90921         * m4/acl.m4: Nop.
90922
90923         Module backupfile.
90924         * m4/backupfile.m4: New file.
90925         * m4/d-ino.m4: Indentation.
90926
90927         Module fsusage.
90928         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90929         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90930         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90931
90932         Module dirfd.
90933         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90934         requirements.
90935
90936         Module euidaccess.
90937         * m4/euidaccess.m4: New file.
90938
90939         Module file-type.
90940         * m4/file-type.m4: New file.
90941
90942         Module fileblocks.
90943         * m4/fileblocks.m4: New file.
90944
90945         Module filemode.
90946         * m4/filemode.m4: New file.
90947
90948         Module isdir.
90949         * m4/isdir.m4: New file.
90950
90951         Module lchown.
90952         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90953         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90954
90955         Module makepath.
90956         * m4/makepath.m4: New file.
90957
90958         Module modechange.
90959         * m4/modechange.m4: New file.
90960
90961         Module mountlist.
90962         * m4/mountlist.m4: New file.
90963         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90964         Indentation.
90965
90966         Module path-concat.
90967         * m4/path-concat.m4: New file.
90968
90969         Module pathmax.
90970         * m4/pathmax.m4: New file.
90971
90972         Module same.
90973         * m4/same.m4: New file.
90974
90975         Module save-cwd.
90976         * m4/save-cwd.m4: New file.
90977
90978         Module savedir.
90979         * m4/savedir.m4: New file.
90980
90981         Module xgetcwd.
90982         * m4/xgetcwd.m4: New file.
90983         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90984
90985         Module xreadlink.
90986         * m4/xreadlink.m4: New file.
90987
90988         Module safe-read.
90989         * m4/safe-read.m4: New file.
90990
90991         Module safe-write.
90992         * m4/safe-write.m4: New file.
90993
90994         Module closeout.
90995         * m4/closeout.m4: New file.
90996
90997         Module stdio-safer.
90998         * m4/stdio-safer.m4: New file.
90999
91000         Module getpass.
91001         * m4/getpass.m4: New file.
91002
91003         Module getugroups.
91004         * m4/getugroups.m4: New file.
91005
91006         Module group-member.
91007         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91008         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91009
91010         Module idcache.
91011         * m4/idcache.m4: New file.
91012
91013         Module userspec.
91014         * m4/userspec.m4: New file.
91015
91016         Module gettime.
91017         * m4/clock_time.m4: New file.
91018         * m4/gettime.m4: New file.
91019
91020         Module settime.
91021         * m4/settime.m4: New file.
91022
91023         Module posixtm.
91024         * m4/posixtm.m4: New file.
91025
91026         Module gethostname.
91027         * m4/gethostname.m4: New file.
91028
91029         Module canon-host.
91030         * m4/canon-host.m4: New file.
91031
91032         Module gettext.
91033         * m4/codeset.m4: New file, from gettext-0.11.5.
91034         * m4/gettext.m4: New file, from gettext-0.11.5.
91035         * m4/glibc21.m4: New file, from gettext-0.11.5.
91036         * m4/iconv.m4: New file, from gettext-0.11.5.
91037         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91038         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91039         * m4/inttypes.m4: New file, from gettext-0.11.5.
91040         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91041         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91042         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91043         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91044         * m4/lib-link.m4: New file, from gettext-0.11.5.
91045         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91046         * m4/progtest.m4: New file, from gettext-0.11.5.
91047         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91048         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91049         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91050
91051         Module localcharset.
91052         * m4/localcharset.m4: New file.
91053
91054         Module hard-locale.
91055         * m4/hard-locale.m4: New file.
91056
91057         Module mbswidth.
91058         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91059         onceonly macros.
91060         * m4/mbrtowc.m4: Add comment.
91061
91062         Module memcasecmp.
91063         * m4/memcasecmp.m4: New file.
91064
91065         Module memcoll.
91066         * m4/memcoll.m4: New file.
91067
91068         Module unicodeio.
91069         * m4/unicodeio.m4: New file.
91070
91071         Module rpmatch.
91072         * m4/rpmatch.m4: New file.
91073
91074         Module yesno.
91075         * m4/yesno.m4: New file.
91076
91077         Module exitfail.
91078         * m4/exitfail.m4: New file.
91079
91080         Module c-stack.
91081         * m4/c-stack.m4 (gl_C_STACK): New macro.
91082         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91083
91084         Module error.
91085         * m4/error.m4 (gl_ERROR): New macro.
91086         (jm_PREREQ_ERROR): Use onceonly macros.
91087
91088         Module fatal.
91089         * m4/fatal.m4: New file.
91090
91091         Module getloadavg.
91092         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91093         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91094
91095         Module getpagesize.
91096         * m4/getpagesize.m4: New file.
91097
91098         Module getusershell.
91099         * m4/getusershell.m4: New file.
91100
91101         Module physmem.
91102         * m4/physmem.m4: New file.
91103
91104         Module posixver.
91105         * m4/posixver.m4: New file.
91106
91107         Module quotearg.
91108         * m4/quotearg.m4: New file.
91109
91110         Module quote.
91111         * m4/quote.m4: New file.
91112
91113         Module readutmp.
91114         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91115
91116         Module sig2str.
91117         * m4/sig2str.m4: New file.
91118
91119         Other.
91120         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91121         ulonglong.m4.
91122         * m4/intmax_t.m4: New file.
91123         * m4/d-type.m4: Indentation.
91124         * m4/jm-macros.m4: Update.
91125         * m4/prereq.m4 (jm_PREREQ): Update.
91126         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91127         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91128         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91129         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91130         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91131         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91132         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91133         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91134         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91135         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91136         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91137         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91138         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91139         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91140         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91141         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91142         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91143         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91144         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91145
91146 2002-12-24  Bruno Haible  <bruno@clisp.org>
91147
91148         * MODULES.txt: Update according to m4/ changes.
91149
91150         Module gettext.
91151         * config.rpath: New file, from gettext-0.11.5.
91152
91153         * modules/*: New module descriptions.
91154         * gnulib-tool: New file.
91155         * MODULES.html.sh: New file.
91156
91157 2002-12-21  Karl Berry  <karl@gnu.org>
91158
91159         * doc/fdl.texi: update to version 1.2.
91160
91161 2002-12-19  Karl Berry  <karl@gnu.org>
91162
91163         * config/config.guess: update from prep.
91164
91165 2002-12-18  Bruno Haible  <bruno@clisp.org>
91166
91167         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91168         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91169
91170 2002-12-17  Bruno Haible  <bruno@clisp.org>
91171
91172         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91173         stdlib.h, string.h.
91174
91175 2002-12-17  Bruno Haible  <bruno@clisp.org>
91176
91177         * lib/canon-host.c (strdup): Remove unused declaration.
91178
91179         * lib/fsusage.c: Include full_read.h.
91180         (get_fs_usage): Use full_read instead of safe_read.
91181
91182         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91183
91184 2002-12-12  Karl Berry  <karl@gnu.org>
91185
91186         * config/config.guess: update from prep.
91187
91188 2002-12-11  Bruno Haible  <bruno@clisp.org>
91189
91190         * m4/setenv.m4: New file, from gettext-0.11.5.
91191
91192 2002-12-11  Bruno Haible  <bruno@clisp.org>
91193
91194         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91195         not unsetenv().
91196         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91197         modifications:
91198
91199         2002-12-11  Bruno Haible  <bruno@clisp.org>
91200
91201                 * setenv.c (alloca): Fall back to malloc.
91202                 (freea): New macro.
91203                 (setenv): Use freea() to free memory allocated with alloca().
91204
91205         2002-11-13  Bruno Haible  <bruno@clisp.org>
91206
91207                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91208                 function declarations.
91209                 * unsetenv.c (unsetenv): Likewise.
91210
91211         2002-03-04  Bruno Haible  <bruno@clisp.org>
91212
91213                 Portability to AIX 4.3.3.
91214                 * unsetenv.c: New file, extracted from setenv.c.
91215                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91216
91217         2001-12-20  Bruno Haible  <bruno@clisp.org>
91218
91219                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91220                 use malloc instead. For SunOS 4.
91221
91222         2001-12-11  Bruno Haible  <bruno@clisp.org>
91223
91224                 * setenv.c: Declare alloca.
91225                 (compar_fn_t): New typedef.
91226                 (KNOWN_VALUE, STORE_VALUE): Use it.
91227
91228         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91229         setenv.h.
91230
91231 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91232
91233         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91234         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91235         Choose values that are less likely to collide with system fnmatch
91236         options.
91237         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91238         defined (e.g., a pure POSIX system).
91239         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91240         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91241
91242 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91243
91244         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91245         a pain in practice to deal with generated m4 files.  This change
91246         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91247
91248         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91249         and jm-glibc-io.m4, as they are no longer a special case.
91250         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91251         kludge and the auto-generation stuff.  Check only whether the
91252         functions are declared, not whether they exist, since older hosts
91253         that don't declare the functions can't use the optimization anyway.
91254
91255 2002-12-06  Jim Meyering  <jim@meyering.net>
91256
91257         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91258
91259         Merge in changes from libc's misc/error.c, in preparation
91260         for the merge of gnulib's changes back into libc.
91261
91262         * lib/error.c (_): Define only if not already defined.
91263         Move definition to follow all #include directives.
91264         Include unlocked-io.h only if !_LIBC.
91265         [_LIBC]: Include <libio/libioP.h>.
91266         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91267         (fflush): Tweak definition to use INTUSE.
91268         (putc): Define.
91269
91270 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91271
91272         * lib/alloca.c [defined emacs]: Include "lisp.h".
91273         (xalloc_die) [defined emacs]: New macro.
91274         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91275         [! defined emacs]: Include <xalloc.h>.
91276         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91277         (pointer): Typedef to POINTER_TYPE *.
91278         (malloc): Remove decl; we now always use xmalloc.
91279         (alloca): Use old-style definition, since Emacs needs this.
91280         Check for arithmetic overflow when computing combined size.
91281
91282 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91283
91284         Do not generate unlocked-io.h automatically, since it's easier to
91285         maintain it by hand.
91286
91287         * lib/unlocked-io.h: New file, from GNU diffutils,
91288         but with proper copyright notice and attribution.
91289         * lib/gen-uio: Remove.
91290         * lib/Makefile.am: Add copyright notice.
91291         (libfetish_a_SOURCES): Add unlocked-io.h.
91292         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91293         (DISTCLEANFILES, io_functions): Remove macros.
91294         (EXTRA_DIST): Remove gen_uio.
91295         (unlocked-io.h): Remove rule.
91296
91297 2002-12-04  Jim Meyering  <jim@meyering.net>
91298
91299         Reflect the fact that stat.c and lstat.c are no longer generated.
91300         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91301         (DISTCLEANFILES): Likewise.
91302         (EXTRA_DIST): Likewise.
91303         (all_local): Don't depend on stat.c or lstat.c.
91304         (stat.c, lstat.c): Remove rules.
91305         (EXTRA_DIST): Remove xstat.in.
91306
91307         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91308         * lib/stat.c: New file.  Contents mostly from xstat.in.
91309         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91310         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91311
91312         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91313         too.
91314         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91315
91316 2002-12-03  Jim Meyering  <jim@meyering.net>
91317
91318         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91319         but not semantics, to minimize the differences between these two files.
91320         (safe_read): Change comment to mention SAFE_READ_ERROR.
91321
91322         * lib/safe-read.c (IS_EINTR): Define.
91323         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91324
91325 2002-12-02  Jim Meyering  <jim@meyering.net>
91326
91327         * lib/safe-read.c (EINTR): Define.
91328         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91329         (INT_MAX): Provide fallback.
91330         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91331
91332         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91333
91334 2002-12-02  Bruno Haible  <bruno@clisp.org>
91335
91336         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91337         Define, taken from safe-read.c.
91338         (INT_MAX): Provide fallback.
91339         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91340         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91341
91342         * lib/safe-read.c (EINTR): Remove definition.
91343         (safe_read): Don't use EINTR if it is absent.
91344
91345 2002-12-01  Jim Meyering  <jim@meyering.net>
91346
91347         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91348         zero.
91349         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91350
91351 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91352
91353         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91354         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91355         with `if (! (value < limit)) abort ();', for readability.
91356
91357 2002-11-26  Karl Berry  <karl@gnu.org>
91358
91359         * lib/strdup.c: copy from libc again, with jim's ok.
91360         * lib/.cppi-disable: re-add strdup.c
91361
91362 2002-11-25  Karl Berry  <karl@gnu.org>
91363
91364         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91365         instead of "strtol.c".
91366
91367 2002-11-25  Karl Berry  <karl@gnu.org>
91368
91369         * config/install-sh: update from automake for variable quoting, $0 in
91370         error msgs, etc.
91371
91372         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91373         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91374         entry.
91375
91376 2002-11-25  Jim Meyering  <jim@meyering.net>
91377
91378         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91379
91380 2002-11-24  Karl Berry  <karl@gnu.org>
91381
91382         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91383         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91384
91385 2002-11-24  Jim Meyering  <jim@meyering.net>
91386
91387         Update from coreutils:
91388
91389         * lib/mktime.c: Merge in changes from libc.
91390
91391         Avoid a link-time failure on some Linux systems.
91392         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91393         (otherwise).
91394         (__mon_yday): Declare with the STATIC attribute.
91395         (__mktime_internal): Likewise.
91396         Based on a report from Greg Schafer.
91397
91398 2002-11-23  Jim Meyering  <jim@meyering.net>
91399
91400         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91401         Use `unsigned', not `int', as type of index.
91402
91403         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91404
91405         * lib/fsusage.c: Remove unneeded parentheses around operands of
91406         `defined'.
91407
91408 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91409
91410         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91411         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91412         so that we can be included first.
91413         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91414         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91415         No need to include stddef.h or sys/types.h any more.
91416         Surround local include files with "", not "<>".
91417         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91418         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91419         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91420         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91421         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91422         (ISPRINT): Remove; no longer needed now that we assume C89.
91423
91424         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91425         Preserve errno.
91426
91427         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91428         quotearg_char): Use SIZE_MAX rather than
91429         (size_t) -1 when we are talking about "infinity".
91430
91431         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91432
91433 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91434
91435         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91436         hint that one should use `if (! x) abort ();' rather than `assert
91437         (x);', and anyway it's one less thing to worry about configuring.
91438         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91439         hash_rehash, hash_insert): Use abort rather than assert.
91440
91441 2002-11-22  Bruno Haible  <bruno@clisp.org>
91442
91443         * lib/safe-read.h: Assume C89. Add comments.
91444         (safe_read): Change return type to size_t.
91445         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91446         byte counts > SSIZE_MAX correctly.
91447         * lib/safe-write.h: New file.
91448         * lib/safe-write.c: New file.
91449         * lib/full-read.h: New file.
91450         * lib/full-read.c: New file.
91451         * lib/full-write.h: Assume C89. Add comments.
91452         * lib/full-write.c: Include safe-write.h.
91453         (full_write): Rewritten to use safe_write.
91454         Suggested by Jim Meyering and Paul Eggert.
91455
91456 2002-11-21  Jim Meyering  <jim@meyering.net>
91457
91458         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91459
91460         Merge in changes from the coreutils.
91461
91462         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91463         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91464         <stdint.h>.
91465         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91466         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91467         int.  Work more efficiently if X is the same width as uintmax_t.
91468         Do not compare X to -1, to avoid bogus compiler warning.
91469         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91470         Don't assume that f_frsize and f_bsize are the same type.
91471
91472         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91473         warning on FreeBSD.
91474
91475         * lib/makepath.c (make_path): Restore umask *before* creating the final
91476         component.
91477         (make_path): Minor reformatting.
91478
91479         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91480         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91481         HAVE_MALLOC/HAVE_REALLOC.
91482
91483         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91484         dummy ones.  At least on GNU/Linux systems, `auto' means something
91485         else.
91486         From Michael Stone.
91487
91488 2002-11-21  Bruno Haible  <bruno@clisp.org>
91489
91490         Remove case insensitive option matching.
91491         * lib/argmatch.h (argcasematch): Remove declaration.
91492         (ARGCASEMATCH): Remove macro.
91493         (__xargmatch_internal): Remove case_sensitive argument.
91494         (XARGMATCH): Update.
91495         (XARGCASEMATCH): Remove macro.
91496         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91497         case_sensitive argument.
91498         (argcasematch): Remove function.
91499         (__xargmatch_internal): Remove case_sensitive argument.
91500         (main): Use XARGMATCH instead of XARGCASEMATCH.
91501
91502         * lib/xmalloc.c: Change compile-time error message. Add comment about
91503         required autoconf version.
91504
91505 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91506
91507         Merge argmatch cleanups from Bison.  Assume C89.
91508
91509         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91510         Include stdlib.h, for EXIT_FAILURE.
91511         Always include <string.h>, since we assume C89.
91512         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91513         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91514         Include <stddef.h> instead, since it's all we need for size_t.
91515         (PARAMS): Remove.  All uses removed.
91516         (ARRAY_CARDINALITY): Do not bother to #undef.
91517         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91518         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91519         Remove unnecessary parentheses.
91520         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91521         Insert necessary parentheses.
91522         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91523         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91524
91525 2002-11-19  Bruno Haible  <bruno@clisp.org>
91526
91527         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91528         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91529
91530         * lib/mbswidth.h (PARAMS): Remove macro.
91531         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91532         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91533
91534         * lib/gcd.h (PARAMS): Remove macro.
91535         (gcd): Use ANSI C function declarations.
91536         * lib/gcd.c (gcd): Likewise.
91537
91538 2002-11-15  Bruno Haible  <bruno@clisp.org>
91539
91540         * lib/strcspn.c: Include <stddef.h>.
91541         (strcspn): Use ANSI C function declaration. Change return type to
91542         size_t. Use NULL.
91543         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91544         (strpbrk): Use NULL.
91545         * lib/strpbrk.h (PARAMS): Remove macro.
91546         (strpbrk): Use ANSI C function declaration.
91547         * lib/strstr.c: Don't include <sys/types.h>.
91548         * lib/strstr.h (PARAMS): Remove macro.
91549         (strstr): Use ANSI C function declarations.
91550
91551 2002-11-14  Karl Berry  <karl@gnu.org>
91552
91553         * config/mkinstalldirs: `do' on separate line, instead of
91554         `for var; do'.
91555
91556 2002-11-06  Bruno Haible  <bruno@clisp.org>
91557
91558         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91559         * lib/gcd.c (gcd): Likewise.
91560
91561 2002-11-05  Bruno Haible  <bruno@clisp.org>
91562
91563         * lib/gcd.h: New file, from gettext-0.11.5.
91564         * lib/gcd.c: New file, from gettext-0.11.5.
91565
91566 2002-11-05  Bruno Haible  <bruno@clisp.org>
91567
91568         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91569         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91570         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91571         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91572
91573         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91574         <libintl.h>.
91575         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91576         <libintl.h>.
91577
91578         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91579         * lib/human.c: Include gettext.h instead of <libintl.h>.
91580         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91581         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91582         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91583         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91584         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91585         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91586         (textdomain): Remove definition.
91587         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91588
91589         * lib/long-options.c: Remove include of <libintl.h> and definition of
91590         _.
91591         * lib/same.c: Remove include of <libintl.h> and definition of _.
91592
91593 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91594
91595         * lib/config.charset: A few additions for Solaris.
91596
91597 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91598
91599         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91600         * lib/localcharset.c (locale_charset): Declare as extern "C".
91601
91602 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91603
91604         * lib/config.charset: msdos in uk_UA uses CP1125.
91605
91606 2002-11-04  Bruno Haible  <bruno@clisp.org>
91607
91608         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91609         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91610         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91611         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91612         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91613
91614 2002-11-04  Bruno Haible  <bruno@clisp.org>
91615
91616         * lib/localcharset.c (locale_charset): Don't return an empty string.
91617
91618 2002-11-04  Bruno Haible  <bruno@clisp.org>
91619
91620         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91621         aliases.
91622
91623 2002-11-04  Bruno Haible  <bruno@clisp.org>
91624
91625         * lib/config.charset: Update for newest glibc. Add canonical names
91626         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91627
91628 2002-11-04  Bruno Haible  <bruno@clisp.org>
91629
91630         * lib/config.charset: Add support for NetBSD.
91631
91632 2002-11-04  Bruno Haible  <bruno@clisp.org>
91633
91634         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91635
91636 2002-11-01  Bruno Haible  <bruno@clisp.org>
91637
91638         * configure.in: Add AC_CONFIG_AUX_DIR call.
91639         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91640         test/Makefile.
91641         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91642
91643 2002-09-28  Karl Berry  <karl@gnu.org>
91644
91645         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91646         installed automake until the next release, since changes have been
91647         made.
91648
91649 2002-09-25  Karl Berry  <karl@gnu.org>
91650
91651         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91652         * lib/getopt*: copy from libc/posix.
91653         * lib/gettext.h: copy from gettext.
91654         * lib/.cppi-disable: add strdup.c, gettext.h.
91655
91656 2002-09-25  Karl Berry  <karl@gnu.org>
91657
91658         * config/srclist.txt: enable gettext.h check.
91659         * config/config.{guess,sub}: update from prep.
91660         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91661                 from automake 1.6.3.
91662         See srclist*.
91663
91664 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91665
91666         * regex.c (PATFETCH): Remove the translating fetch.
91667         (PATFETCH_RAW): Rename to PATFETCH.
91668         (set_image_of_range): New fun.
91669         (SET_RANGE_TABLE_WORK_AREA): Use it.
91670         (regex_compile): Don't translate the pattern chars so eagerly.
91671         Only do it when inserting an `exactn' bytecode or when handling
91672         a char-range.
91673         (mutually_exclusive_p): Avoid empty statement.
91674
91675 2002-07-06  Jim Meyering  <meyering@lucent.com>
91676
91677         * m4/README: Don't mention Makefile.am.in.
91678         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91679
91680 2002-07-01  Jim Meyering  <meyering@lucent.com>
91681
91682         * lib/c-stack.c: Include sys/time.h.
91683         From Volker Borchert.
91684
91685 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91686
91687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91688
91689 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91690
91691         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91692         New macro.  Use it uniformly instead of
91693         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91694         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91695         reported by Vin Shelton.
91696
91697 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91698
91699         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91700         Do not assume SA_SIGINFO behavior.
91701         Bug reported by Jim Meyering on NetBSD 1.5.2.
91702
91703 2002-06-22  Jim Meyering  <meyering@lucent.com>
91704
91705         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91707
91708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91709         now that configure.ac uses AC_GNU_SOURCE.
91710         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91711         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91712
91713         Update to latest tools.  Suggestions from Paul Eggert.
91714         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91715         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91716         * m4/fnmatch.m4: Likewise.
91717         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91718         to AC_HEADER_STDBOOL
91719
91720 2002-06-22  Jim Meyering  <meyering@lucent.com>
91721
91722         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91723         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91724
91725 2002-06-22  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91728
91729         * lib/exitfail.c, exitfail.h: Likewise.
91730         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91731
91732         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91733         of fnmatch.h.
91734         (EXTRA_DIST): Add fnmatch_loop.c.
91735         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91736
91737         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91738         * lib/fnmatch.c: Update from diffutils-2.8.2.
91739         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91740         * lib/fnmatch.h: Remove file.
91741
91742 2002-06-21  Jim Meyering  <meyering@lucent.com>
91743
91744         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91745         * m4/mbrtowc.m4: Likewise.
91746
91747         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91748         * m4/mbswidth.m4: Reflect name change:
91749         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91750         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91751
91752         * m4/lib-link.m4: Update from gettext-0.11.2.
91753         * m4/gettext.m4: Likewise.
91754
91755         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91756         From Alfred M. Szmidt.
91757
91758 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91759
91760         * lib/file-type.h: Report an error if neither S_ISREG nor
91761         S_IFREG is defined, instead of using a test specific to glibc
91762         2.2.  This should be safe, since POSIX requires S_ISREG and
91763         Unix Version 7 had S_IFREG.  We don't need to check for
91764         <sys/types.h> since we don't use any symbols that it defines.
91765
91766 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91767
91768         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91769         $@-t, so that each temporary file name is unique and valid in the first
91770         8 characters, for operation under DOS.
91771
91772 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91773
91774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91775
91776 2002-06-15  Jim Meyering  <meyering@lucent.com>
91777
91778         Work even with DJGPP 2.03, which lacks support for symlinks.
91779         From Richard Dawe.
91780         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91781         is defined.
91782         * lib/lchown.c (S_ISLNK): Likewise.
91783
91784 2002-06-15  Jim Meyering  <meyering@lucent.com>
91785
91786         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91787         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91788         have been included before this file.
91789
91790 2002-06-14  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/file-type.h: Use the version from diffutils-2.8.2.
91793         * lib/file-type.c: Likewise.
91794
91795 2002-06-07  Jim Meyering  <meyering@lucent.com>
91796
91797         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91798         They're needed at least for NetBSD 1.5.2.
91799         ($statxfs_includes): Include those same headers.
91800         ($statxfs_includes): Include sys/vfs.h if available.
91801         ($statxfs_includes): Likewise for sys/statvfs.h.
91802         Check for the following members in both structs statfs and statvfs:
91803         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91804
91805 2002-06-01  Jim Meyering  <meyering@lucent.com>
91806
91807         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91808         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91809
91810 2002-05-28  Jim Meyering  <meyering@lucent.com>
91811
91812         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91813         Reported by Volker Borchert.
91814
91815 2002-05-27  Jim Meyering  <meyering@lucent.com>
91816
91817         Fix a problem seen only on nonconforming systems whereby ls.c's
91818         use of localtime, and then of gettimeofday would cause trouble:
91819         the localtime call used to initialize rpl_gettimeofday's save
91820         mechanism would clobber ls's current local time information so
91821         that in any long listing the first file would always be listed
91822         with date 1970-01-01.  Analysis by Volker Borchert.
91823
91824         * lib/gettimeofday.c (localtime): Undefine.
91825         (rpl_localtime): New function.
91826
91827 2002-05-27  Jim Meyering  <meyering@lucent.com>
91828
91829         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91830         localtime.
91831
91832         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91833         use the replacement function; it wouldn't resolve at link time.
91834         Reported by Volker Borchert.
91835
91836 2002-05-22  Jim Meyering  <meyering@lucent.com>
91837
91838         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91839         file-type.h.
91840         * lib/file-type.h: New file.
91841         * lib/file-type.c (file_type): New file/function.  Extracted from
91842         diffutils.
91843
91844 2002-04-30  Jim Meyering  <meyering@lucent.com>
91845
91846         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91847
91848 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91849
91850         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91851
91852 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91853
91854         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91855         Do not check for alloca.h (no longer used) or stdbool.h (was never
91856         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91857
91858 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91861
91862 2002-04-29  Jim Meyering  <meyering@lucent.com>
91863
91864         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91865         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91866         Use AC_FUNC_STRNLEN here instead.
91867
91868         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91869         With autoconf-2.53a, it's part of AC_PROG_CC.
91870
91871 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91872
91873         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91874         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91875
91876 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91877
91878         * lib/sig2str.h, lib/sig2str.c: New files.
91879         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91880
91881 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91884         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91885         of 127, since 64 is the largest conceivable number for ancient
91886         nonstandard hosts.
91887         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91888
91889 2002-04-28  Jim Meyering  <meyering@lucent.com>
91890
91891         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91892
91893 2002-04-24  Jim Meyering  <meyering@lucent.com>
91894
91895         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91896         (jm_PREREQ): Use it.
91897
91898         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91899         mach/mach.h fcntl.h.
91900         Check for this function: setlocale.
91901
91902 2002-04-24  Jim Meyering  <meyering@lucent.com>
91903
91904         * lib/gettext.h: New file, from Gettext.
91905         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91906         (libfetish_a_SOURCES): Add gettext.h.
91907
91908 2002-04-16  Jim Meyering  <meyering@lucent.com>
91909
91910         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91911         ut_pid, ut_id, ut_exit.
91912
91913 2002-04-16  Jim Meyering  <meyering@lucent.com>
91914
91915         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91916         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91917         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91918
91919 2002-04-12  Jim Meyering  <meyering@lucent.com>
91920
91921         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91922         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91923         existence of the getmntinfo function.  Needed for Darwin 5.3.
91924
91925         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91926         This is necessary at least on Darwin 5.3.
91927
91928         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91929         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91930         strnlen.o in the library, and that makes some versions of ranlib
91931         object.
91932
91933 2002-04-12  Jim Meyering  <meyering@lucent.com>
91934
91935         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91936
91937 2002-04-09  Jim Meyering  <meyering@lucent.com>
91938
91939         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91940         to be more precise.  Rather than saying we're checking whether the
91941         function `works', say what we're testing.
91942         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91943         Reported by Bruno Haible.
91944
91945 2002-03-10  Jim Meyering  <meyering@lucent.com>
91946
91947         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91948         Suggestion from Santiago Vila.
91949
91950 2002-03-08  Jim Meyering  <meyering@lucent.com>
91951
91952         * lib/rename.c: Mention that this wrapper is needed also on
91953         mips-dec-ultrix4.4 systems.
91954
91955 2002-03-02  Jim Meyering  <meyering@lucent.com>
91956
91957         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91958         not HAVE_CLOCK_SETTIME.
91959
91960 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91963         Check for clock_settime.
91964
91965 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91966
91967         * lib/nanosleep.h: Rename to....
91968         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91969
91970         * lib/gettime.c: New file.
91971         * lib/settime.c: New file.
91972         * lib/stime.c: Remove.
91973
91974         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91975         timespec.h.  Remove nanosleep.h.
91976
91977 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91978
91979         * m4/acl.m4: New file.
91980         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91981         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91982
91983 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91984
91985         * lib/acl.c, lib/acl.h: New files.
91986         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91987
91988 2002-02-24  Jim Meyering  <meyering@lucent.com>
91989
91990         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91991         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91992         cause trouble.  Reported by Nelson Beebe.
91993
91994 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91995
91996         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91997         compilers that don't know that xalloc_die never returns.
91998
91999 2002-02-20  Jim Meyering  <meyering@lucent.com>
92000
92001         * lib/getdate.c: Regenerate using bison-1.33.
92002
92003 2002-02-17  Jim Meyering  <meyering@lucent.com>
92004
92005         * config/config.guess (main): Don't use `head -1'; it's no longer
92006         portable. Use `sed 1q' instead.
92007
92008 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92009
92010         * m4/codeset.m4: Upgrade to gettext-0.11.
92011         * m4/gettext.m4: Upgrade to gettext-0.11.
92012         * m4/glibc21.m4: Upgrade to gettext-0.11.
92013         * m4/iconv.m4: Upgrade to gettext-0.11.
92014         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92015         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92016         * m4/lib-ld.m4: New file, from gettext-0.11.
92017         * m4/lib-link.m4: New file, from gettext-0.11.
92018         * m4/lib-prefix.m4: New file, from gettext-0.11.
92019         * m4/progtest.m4: Upgrade to gettext-0.11.
92020
92021 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92022
92023         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92024         (jm_PREREQ): Use it.
92025
92026 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/posixver.c, lib/posixver.h: New files.
92029         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92030
92031 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92032             Bruno Haible  <bruno@clisp.org>
92033
92034         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92035         (fwrite_success_callback): New declaration.
92036         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92037         print_unicode_char. Call failure callback instead of error.
92038         (fwrite_success_callback): New function.
92039         (exit_failure_callback): New function.
92040         (fallback_failure_callback): New function.
92041         (print_unicode_char): Call unicode_to_mb.
92042
92043 2002-01-26  Jim Meyering  <meyering@lucent.com>
92044
92045         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92046         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92047
92048 2002-01-26  Jim Meyering  <meyering@lucent.com>
92049
92050         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92051
92052 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92053
92054         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92055
92056 2002-01-22  Jim Meyering  <meyering@lucent.com>
92057
92058         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92059         Otherwise, some versions of automake would omit the rule that makes
92060         Makefile from Makefile.in.
92061
92062 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92063
92064         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92065         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92066         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92067         (memcoll): Set errno to zero if there is no error.
92068
92069         * lib/quotearg.c (quotearg_buffer_restyled):
92070         Fix bug with quoting buffers containing NUL when backslashing escapes.
92071         This bug was exposed by the other changes in this patch.
92072         (quotearg_n_options): New arg ARGSIZE.
92073         All callers changed.
92074         (quoting_options_from_style): New function.
92075         (quotearg_n_style): Use it.
92076         (quotearg_n_style_mem): New function.
92077
92078         * lib/quotearg.h (quotearg_n_style_mem): New function.
92079
92080 2002-01-19  Jim Meyering  <meyering@lucent.com>
92081
92082         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92083         Remove useless quotes: DF_PROG="df".
92084         * m4/strnlen.m4: New file.
92085
92086 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92087
92088         * lib/backupfile.c (ISDIGIT): Comment fix.
92089         * lib/getdate.y (ISDIGIT): Likewise.
92090         * lib/posixtm.c (ISDIGIT, year): Likewise.
92091         * lib/strverscmp.c (ISDIGIT): Likewise.
92092         * lib/userspec.c (ISDIGIT): Likewise.
92093
92094 2002-01-16  Jim Meyering  <meyering@lucent.com>
92095
92096         * lib/getdate.y: Add three semicolons, each just before a closing
92097         brace. Bison (as of version 1.31) no longer papers over that mistake.
92098
92099 2002-01-05  Jim Meyering  <meyering@lucent.com>
92100
92101         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92102
92103 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92104
92105         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92106         not silently exit merely because the output buffer happens to
92107         have nothing pending.
92108
92109 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92110
92111         See the big note in ../ChangeLog.
92112         * lib/human.c (suffixes): Prefer K to k for 1024.
92113         (generate_suffix_backwards): New function.
92114         (human_readable_inexact): Use it.
92115         * lib/xstrtol.c (__xstrtol): If there is no number but there
92116         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92117         Accept 'K' as well as 'k'.
92118
92119 2001-12-15  Jim Meyering  <meyering@lucent.com>
92120
92121         * lib/regex.h (__restrict_arr): Update from libc.
92122
92123         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92124         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92125         (STREQ): Define.
92126
92127 2001-12-14  Jim Meyering  <meyering@lucent.com>
92128
92129         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92130         Suggestion from Bruno Haible.
92131
92132 2001-12-10  Jim Meyering  <meyering@lucent.com>
92133
92134         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92135         xrealloc, Instead, include "xalloc.h".
92136         (initbuffer): Don't cast xmalloc return value to char*.
92137         (readline): Reword comment.
92138         Don't cast xrealloc return value to char*
92139         Return NULL, not 0.
92140
92141 2001-12-09  Jim Meyering  <meyering@lucent.com>
92142
92143         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92144         about `signed and unsigned type in conditional expression'.
92145         * lib/posixtm.c (posix_time_parse): Likewise.
92146
92147         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92148
92149         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92150         to avoid a pedantic warning.
92151
92152         * lib/getstr.c: Don't include assert.h.
92153         (getstr): Remove warning-evoking assertions.
92154         Return -1 if offset parameter is out of bounds.
92155         Change the type of a local from int to size_t.
92156
92157         * lib/strftime.c (my_strftime_localtime_r): Include this function
92158         definition in the `#if ! HAVE_TM_GMTOFF' block.
92159
92160         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92161         Include xalloc.h instead.
92162
92163 2001-12-02  Jim Meyering  <meyering@lucent.com>
92164
92165         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92166         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92167         included.
92168
92169         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92170         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92171
92172 2001-11-30  Akim Demaille  <akim@epita.fr>
92173
92174         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92175         before being defined.
92176
92177 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92178
92179         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92180         First arg is int, not unsigned.
92181         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92182         (SIZE_MAX, UINT_MAX): New macros.
92183         (quotearg_n_options): Abort if N is negative.
92184         Avoid overflow check on hosts where size_t is 64 bits and int
92185         is 32 bits, as overflow is impossible there.
92186         Fix off-by-one typo that caused unnecessary reallocation.
92187
92188 2001-11-27  Jim Meyering  <meyering@lucent.com>
92189
92190         * lib/tempname.c: Merge with version from libc.
92191         * lib/regex.c: Likewise.
92192
92193         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92194         systems for which STDC_HEADERS is 0, it was not included, resulting in
92195         a warning about an integer-to-pointer conversion problem with getenv.
92196         Reported by Volker Borchert.
92197
92198 2001-11-26  Jim Meyering  <meyering@lucent.com>
92199
92200         * lib/gtod.h: Remove file.
92201         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92202         * lib/gettimeofday.c: Don't include gtod.h.
92203         (GTOD_init): Remove function.
92204         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92205         Suggestion from Volker Borchert.
92206
92207 2001-11-23  Jim Meyering  <meyering@lucent.com>
92208
92209         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92210         it.
92211         * lib/hash.c (struct hash_table): Define it here instead.
92212
92213 2001-11-22  Jim Meyering  <meyering@lucent.com>
92214
92215         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92216
92217 2001-11-20  Jim Meyering  <meyering@lucent.com>
92218
92219         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92220         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92221
92222 2001-11-19  Jim Meyering  <meyering@lucent.com>
92223
92224         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92225         directory.  Use "conftestXXXXXX" as the template.
92226         Suggestion from Paul Eggert.
92227
92228         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92229         immediately, so the test doesn't mistakenly hit the max-open-files
92230         limit.
92231
92232 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92233
92234         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92235         (TEMPORARIES): New macro.
92236         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92237         removes an artificial limitation (e.g. HP-UX 10.20, where
92238         TMP_MAX is 17576).
92239
92240 2001-11-18  Jim Meyering  <meyering@lucent.com>
92241
92242         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92243
92244 2001-11-18  Jim Meyering  <meyering@lucent.com>
92245
92246         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92247         on SunOS 4.
92248
92249         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92250         files will be created before anything else.
92251
92252 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92253
92254         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92255         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92256
92257 2001-11-17  Jim Meyering  <meyering@lucent.com>
92258
92259         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92260         Prompted by a report from Bob Proulx.
92261
92262         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92263         Instead, require UTILS_FUNC_MKSTEMP.
92264
92265 2001-11-17  Jim Meyering  <meyering@lucent.com>
92266
92267         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92268         Now, that's done as part of AC_FUNC_STRTOD.
92269
92270 2001-11-17  Jim Meyering  <meyering@lucent.com>
92271
92272         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92273         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92274         rather than group writable.  Patch by Juan F. Codagnone.
92275
92276         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92277         xrealloc, Instead, include "xalloc.h".
92278
92279         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92280         Remove explicit declarations of xmalloc, xrealloc,
92281         and xstrdup.  Instead, include "xalloc.h".
92282
92283         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92284         unlocked-io.h.
92285         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92286         Likewise.
92287         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92288
92289         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92290         Reported by Padraig Brady.
92291
92292         * lib/mkstemp.c: #undef mkstemp.
92293         Include config.h.
92294         (rpl_mkstemp): Rename from mkstemp.
92295         Protoize.
92296
92297 2001-11-16  Jim Meyering  <meyering@lucent.com>
92298
92299         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92300         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92301         determine the amount of total physical memory, use pstat_getstatic.
92302         HPUX-11 doesn't define _SC_PHYS_PAGES.
92303         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92304         If sysconf couldn't be used to determine the amount of available
92305         physical memory, use both pstat_getstatic and pstat_getdynamic.
92306         Based on a patch from Bob Proulx.
92307
92308 2001-11-10  Jim Meyering  <meyering@lucent.com>
92309
92310         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92311         (jm_PREREQ): Use it.
92312
92313 2001-11-09  Jim Meyering  <meyering@lucent.com>
92314
92315         * m4/jm-macros.m4: Require autoconf-2.52f.
92316         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92317         Use these AC_-prefixed names, not the AM_-prefixed ones.
92318
92319         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92320
92321 2001-11-05  Jim Meyering  <meyering@lucent.com>
92322
92323         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92324
92325 2001-11-04  Jim Meyering  <meyering@lucent.com>
92326
92327         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92328         $DEFS.
92329
92330 2001-11-03  Jim Meyering  <meyering@lucent.com>
92331
92332         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92333         of AC_DEFUN.
92334
92335         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92336         know the name of the variable in the macro definition.
92337
92338 2001-11-03  Jim Meyering  <meyering@lucent.com>
92339
92340         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92341         in argmatch_to_argument call.
92342
92343         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92344         argument.
92345
92346         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92347         e.g., a fault due to an attempt to free a NULL pointer.
92348
92349 2001-11-01  Jim Meyering  <meyering@lucent.com>
92350
92351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92352         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92353
92354 2001-11-01  Jim Meyering  <meyering@lucent.com>
92355
92356         * lib/dirfd.c, lib/dirfd.h: New files.
92357         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92358
92359         * lib/hash.c (hash_print) [TESTING]: Clean up.
92360
92361 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92362
92363         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92364         to avoid a warning if -Wall.
92365
92366 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92367
92368         * README: New file
92369         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92370         (per RMS's instructions, this is now the canonical source)
92371         * lgpl/, gpl/: New directories.
92372
92373 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92376
92377 2001-10-21  Jim Meyering  <meyering@lucent.com>
92378
92379         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92380         this code would end up calling gettext even in packages built
92381         with --disable-nls.
92382         * lib/getopt.c (_): Likewise.
92383         * lib/regex.c (_): Likewise.
92384
92385 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92386
92387         * m4/error.m4 (jm_PREREQ_ERROR):
92388         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92389         AC_FUNC_STRERROR_R does that.
92390         Check for strerror declaration.
92391
92392         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92393         are supposed to have them these days.
92394         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92395         Merge changes from latest Autoconf CVS.
92396         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92397         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92398         POSIX decided to standardize on the int flavor of strerror_r.
92399
92400 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92401
92402         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92403         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92404         Use strerror_r that is only a macro, even if it is not a function.
92405         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92406         (private_strerror): Use prototypes, not old-style function definition.
92407         (print_errno_message): New function.
92408         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92409         char*-flavored one.
92410         (error_tail, error, error_at_line): Use it.
92411
92412 2001-10-11  Jim Meyering  <meyering@lucent.com>
92413
92414         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92415         and quote_n (1, ... to avoid clobbering a buffer.
92416
92417 2001-10-05  Jim Meyering  <meyering@lucent.com>
92418
92419         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92420         hash-pjw.h.
92421         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92422         * lib/hash-pjw.h: New file.
92423
92424 2001-09-30  Jim Meyering  <meyering@lucent.com>
92425
92426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92427         `struct fsstat' has the `f_fstypename' member.
92428         Use that to define FS_TYPE, which is now used to make
92429         the getfsstat link test tighter.
92430
92431 2001-09-30  Jim Meyering  <meyering@lucent.com>
92432
92433         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92434         Include <sys/ucred.h>, for Apple Darwin.
92435         Include sys/mount.h and sys/fs_types.h only if available.
92436         (FS_TYPE): Define.
92437         (read_filesystem_list): Use FS_TYPE.
92438
92439 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92440
92441         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92442         a boolean context.
92443
92444 2001-09-29  Jim Meyering  <meyering@lucent.com>
92445
92446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92447         [one-argument getmntent function]): Include stdio.h before mntent.h.
92448         SunOS 4.1.x needs it for the declaration of `FILE'.
92449         Patch by Volker Borchert.
92450
92451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92452         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92453         sys/fs_types.h, and make the link-test for getfsstat guard #include
92454         directives with appropriate #if HAVE_*_H tests so that we can
92455         detect getfsstat on Apple Darwin1.3.7 systems.
92456         Reported by Nelson Beebe.
92457         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92458
92459 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92460
92461         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92462         #defines strtoimax.  Also treat the other strto* functions
92463         like strtoimax.
92464
92465         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92466         Check for strtoul and strtoumax,
92467         as those declarations are made even in the signed case.
92468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92469         Likewise, for strtol and strtoimax.
92470
92471 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92472
92473         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92474         #defines strtoimax.  Also treat the other strto* functions
92475         like strtoimax.
92476
92477         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92478         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92479         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92480
92481 2001-09-26  Jim Meyering  <meyering@lucent.com>
92482
92483         Most macros in unlocked-io.h had the wrong number of arguments.
92484         * lib/gen-uio: New script.
92485         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92486         * lib/unlocked-io.hin: Remove file.
92487         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92488         rather than trying to embed it here.
92489         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92490         Reported by Padraig Brady.
92491
92492 2001-09-25  Volker Borchert  <bt@teknon.de>
92493
92494         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92495         `result'.
92496
92497 2001-09-24  Jim Meyering  <meyering@lucent.com>
92498
92499         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92500
92501 2001-09-23  Jim Meyering  <meyering@lucent.com>
92502
92503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92504         instead of the mere test for existence of mntent.h.  The latter
92505         would get a false-positive on AIX 3.4 systems.
92506         In the outer getmntent if-block, don't die if neither of the getmntent
92507         tests succeeds.  Instead, just fall through and continue with the
92508         remaining tests.
92509
92510 2001-09-23  Jim Meyering  <meyering@lucent.com>
92511
92512         * lib/mountlist.c: Remove useless parentheses in #if directives.
92513         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92514         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92515
92516 2001-09-22  Jim Meyering  <meyering@lucent.com>
92517
92518         * m4/gettext.m4: New file.  From gettext.
92519         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92520         * m4/progtest.m4: Likewise
92521         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92522         * m4/glibc21.m4: Likewise.
92523
92524         * m4/libintl.m4: Remove.  No longer used.
92525
92526 2001-09-22  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/localcharset.c: Update from latest gettext.
92529         * lib/config.charset: Likewise.
92530
92531 2001-09-20  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92534         strtoimax.
92535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92536         strtoumax.
92537
92538 2001-09-20  Jim Meyering  <meyering@lucent.com>
92539
92540         * lib/xstrtol.c (strtoimax): Guard declaration with
92541         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92542         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92543         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92544         (strtoumax): Likewise, for completeness (it wasn't necessary).
92545
92546 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92547
92548         * lib/strtoimax.c (HAVE_LONG_LONG):
92549         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92550         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92551         to work around bug in IBM C compiler.
92552
92553 2001-09-17  Jim Meyering  <meyering@lucent.com>
92554
92555         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92556         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92557         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92558         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92559         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92560         whenever the right hand side need not be expanded by the shell.
92561
92562 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92563
92564         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92565         library.  It's not correct, as some older glibcs are buggy.
92566         fnmatch wasn't fixed until glibc 2.2.
92567
92568         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92569         special shell magic here.
92570
92571 2001-09-16  Jim Meyering  <meyering@lucent.com>
92572
92573         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92574         * m4/jm-macros.m4: Require it.
92575
92576 2001-09-16  Jim Meyering  <meyering@lucent.com>
92577
92578         * lib/mkdir.c: New file.
92579
92580 2001-09-15  Jim Meyering  <meyering@lucent.com>
92581
92582         * m4/jm-macros.m4: Check for help2man.
92583
92584 2001-09-11  Jim Meyering  <meyering@lucent.com>
92585
92586         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92587         The body, by Paul Eggert, was moved here from configure.in.
92588         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92589
92590 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92591
92592         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92593         (jm_PREREQ): Use it.
92594
92595 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92596
92597         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92598         Use ssize_t, not int, to store result of readlink.
92599         Check for ssize_t overflow as well as size_t overflow,
92600         as POSIX says the result of readlink is implementation-defined
92601         when ssize_t overflows.
92602         Remove unnecessary cast to char*.
92603         Use free+malloc instead of realloc, as the storage doesn't need
92604         to be preserved and it's clearer and can be more efficient that way.
92605         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92606         * lib/xreadlink.h (xreadlink): Update prototype.
92607
92608 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92609
92610         * lib/xgetcwd.c: Revert some of the previous change; intead,
92611         fix the HAVE_GETCWD_NULL code to behave more like the
92612         !HAVE_GETCWD_NULL code used to.
92613
92614         Include "xalloc.h".
92615         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92616         invoke xalloc_die.
92617
92618 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92619
92620         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92621         sys/param.h, as pathmax.h includes them.
92622
92623 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92624
92625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92626         (jm_PREREQ_XGETCWD): New macro.
92627
92628         * m4/getcwd.m4: New file.
92629
92630 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92631
92632         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92633         like the HAVE_GETCWD_NULL code.
92634         Include pathmax.h if not HAVE_GETCWD.
92635         Do not include xalloc.h.
92636         (INITIAL_BUFFER_SIZE): New symbol.
92637         Do not use xmalloc / xrealloc, since the caller is responsible for
92638         handling errors.  Preserve errno around `free' during failure.
92639         Do not overrun buffer when using getwd.
92640
92641 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92642
92643         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92644         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92645         getcwd (NULL, 0).
92646
92647 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92648
92649         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92650         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92651         spotted by Jim Meyering.
92652
92653 2001-09-03  Jim Meyering  <meyering@lucent.com>
92654
92655         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92656         failure.
92657
92658 2001-09-02  Jim Meyering  <meyering@lucent.com>
92659
92660         * lib/error.c: Update from GNU libc.
92661
92662 2001-09-01  Jim Meyering  <meyering@lucent.com>
92663
92664         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92665         Used by df.
92666
92667 2001-09-01  Jim Meyering  <meyering@lucent.com>
92668
92669         * lib/xreadlink.c: New file.
92670         * lib/xreadlink.h: New file.
92671         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92672         xreadlink.h.
92673
92674         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92675         doesn't conflict with sparc Solaris 7's definition in
92676         /usr/include/sys/int_types.h.
92677
92678         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92679         files.
92680         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92681         and strncasecmp as r-values.  Unixware didn't have declarations.
92682
92683 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92684
92685         * lib/xstrtol.h: Add copyright notice.
92686         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92687         LONGINT_INVALID_SUFFIX_CHAR.
92688
92689 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92690
92691         * lib/xstrtol.c (strtoimax): New decl.
92692
92693 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92694
92695         * lib/xgetcwd.c: Don't include pathmax.h.
92696         Include stdlib.h and unistd.h if available.
92697         Include xalloc.h.
92698         (xmalloc, xstrdup, free): Remove decls.
92699         (xgetcwd): Don't assume sizes fit in unsigned.
92700         Check for overflow when computing sizes.
92701         Simplify reallocation code.
92702
92703 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92704
92705         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92706         a directory's st_size can have an arbitrary value, so the old
92707         usage could waste an arbitrary amount of memory.  All uses
92708         changed.
92709         * lib/savedir.h: Update prototype.
92710
92711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92712
92713         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92714
92715         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92716         old strtoimax.c.
92717
92718         Also, make the following further changes to make this file's
92719         configuration more similar to that of strtol.c:
92720         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92721         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92722         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92723         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92724         changed to signed values.
92725
92726         And make the following changes as well:
92727         Fix copyright notice, as 1999 was missing.
92728         (verify): New macro.
92729         (strtoimax): Check sizes at compile-time, not run-time.
92730         Prefer strtol to strtoll if both work.
92731         (main): Remove; it was not that useful and was a pain to maintain.
92732
92733         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92734
92735 2001-08-31  Jim Meyering  <meyering@lucent.com>
92736
92737         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92738         Use an initial, malloc'd, buffer of length 128 rather than
92739         a statically allocated one of length 1024.
92740
92741 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92742
92743         Simplify code, partly by assuming autoconf 2.52 semantics.
92744
92745         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92746
92747         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92748         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92749         All uses removed.
92750         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92751         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92752         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92753         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92754         jm_AC_HEADER_INTTYPES_H.
92755         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92756
92757         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92758
92759         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92760         Quote first arg of AC_DEFUN.
92761         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92762         since they are needed to parse the include file even if we need
92763         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92765         but with opposite signedness.
92766
92767 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92768
92769         Merge 'exclude' changes from tar 1.13.22.
92770         This fixes one or two unlikely storage allocation overflow bugs,
92771         but doesn't change user-visible behavior otherwise.
92772
92773 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92774
92775         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92776         (jm_PREREQ_EXCLUDE): New macro.
92777
92778 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92779
92780         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92781         tm to be declared.
92782
92783 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92784
92785         * lib/hash.c: Remove '2001' from copyright notice.
92786
92787 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92788
92789         * lib/full-write.h: New file.
92790         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92791         * lib/full-write.c: Correct credits, as cccp.c no longer
92792         exists and anyway it was so heavily changed from the old cccp
92793         code as to be unrecognizable.  Include full-write.h.
92794         (full_write): Return size_t, with short writes meaning failure.
92795         All callers changed.  This fixes a bug with large buffers
92796         on 64-bit hosts.
92797         * lib/utime.c: Include full-write.h.
92798
92799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92800
92801         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92802         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92803         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92804         Include if available.
92805         (<xalloc.h>): Include
92806         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92807         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92808         collide with FNM macros.
92809         (struct patopts): New struct.
92810         (struct exclude): Use it, as exclude patterns now come with options.
92811         (new_exclude): Support above changes.
92812         (new_exclude, add_exclude_file):
92813         Initial size must now be a power of two to simplify overflow checking.
92814         (free_exclude, fnmatch_no_wildcards): New function.
92815         (excluded_filename): No longer requires options arg, as the options
92816         are determined by add_exclude.  Now returns bool, not int.
92817         (excluded_filename, add_exclude):
92818         Add support for the fancy new exclusion options.
92819         (add_exclude, add_exclude_file): Now takes int options arg.
92820         Check for arithmetic overflow when computing sizes.
92821         (add_exclude_file): xrealloc might modify errno, so don't
92822         realloc until after errno might be used.
92823
92824         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92825         New macros.
92826         (free_exclude): New decl.
92827         (add_exclude, add_exclude_file): Now takes int options arg.
92828         (excluded_filename): No longer requires options arg, as the options
92829         are determined by add_exclude.  Now returns bool, not int.
92830
92831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92832
92833         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92834
92835 2001-08-27  Jim Meyering  <meyering@lucent.com>
92836
92837         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92838
92839         * lib/version-etc.c (N_): Remove definition.
92840         Revert most of last change.
92841         Instead, simply don't mark the `Copyright...' string for translation.
92842         Based on advice from Paul Eggert.
92843
92844         * lib/strtoxmax.c: Tweak comment.
92845
92846 2001-08-26  Jim Meyering  <meyering@lucent.com>
92847
92848         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92849
92850         * m4/xstrtoimax.m4: New file.
92851         * m4/xstrtoumax.m4: Add comments explaining why we
92852         AC_REPLACE_FUNCS(strtol).
92853
92854 2001-08-26  Jim Meyering  <meyering@lucent.com>
92855
92856         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92857         of copyright with `%s' so translators don't get an untranslated
92858         message in 2002.
92859         (COPYRIGHT_YEAR): Define.
92860         (version_etc): Use fprintf rather than fputs.
92861         Suggestion from Ulrich Drepper.
92862
92863         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92864
92865         * lib/strtoll.c: New file, from GNU libc.
92866         * lib/xstrtoimax.c: New file.
92867
92868         * lib/xstrtol.h: Add xstrtoimax.
92869         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92870         * lib/strtoimax.c: New file.  Likewise, but first define
92871         STRTOUXMAX_SIGNED.
92872
92873         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92874         ...
92875         * lib/strtoxmax.c: ... then renamed to this.
92876
92877 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92878
92879         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92880         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92881         (jm_AC_TYPE_INTMAX_T): New macro.
92882         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92883
92884         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92885
92886         * m4/longlong.m4: Renamed from ulonglong.m4.
92887         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92888         * m4/uintmax_t.m4: Removed.
92889
92890 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92891
92892         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92893         Port to Solaris 8, where 'sed' requires a space after the 'r'
92894         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92895         Redirect output to $tmp just once.
92896
92897 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92898
92899         * lib/addext.c (<errno.h>): Include.
92900         (errno): Declare if not defined.
92901         (addext): Work correctly when pathconf returns -1 and leaves
92902         errno alone because there is no limit.  Also, work even if
92903         pathconf returns a value greater than SIZE_MAX.
92904
92905 2001-08-12  Jim Meyering  <meyering@lucent.com>
92906
92907         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92908         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92909         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92910         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92911         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92912         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92913         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92914         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92915         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92916         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92917         utime.m4, utimes.m4, xstrtoumax.m4:
92918         Quote the first argument in each use of AC_DEFUN.
92919
92920 2001-08-12  Jim Meyering  <meyering@lucent.com>
92921
92922         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92923         Simply `return getcwd (NULL, 0);'.
92924         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92925         Use 1300 as initial value for length, not PATH_MAX.
92926
92927         * lib/pathmax.h: Clean up cpp syntax.
92928
92929 2001-08-12  Jim Meyering  <meyering@lucent.com>
92930
92931         * lib/gettimeofday.c: New file.
92932         * lib/gtod.h: New file.
92933         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92934
92935 2001-08-05  Jim Meyering  <meyering@lucent.com>
92936
92937         * m4/jm-macros.m4: Require autoconf-2.52.
92938
92939 2001-08-04  Jim Meyering  <meyering@lucent.com>
92940
92941         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92942         stmt, to get in sync with glibc.
92943
92944 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92945
92946         The following changes are from gettext 0.10.39 as maintained by
92947         Bruno Haible.
92948
92949         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92950         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92951         with inverted sense.  All uses changed.
92952
92953         * lib/mbswidth.c: Don't include <limits.h>.
92954         Include <stdlib.h> and <string.h> unconditionally.
92955         (iswcntrl, mbsinit, ISCNTRL): New macros.
92956         (mbsnwidth): Use K&R style function declarations.
92957         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92958         can optimize it when MB_CUR_MAX == 1.
92959         The width of control characters is zero, not 1.
92960
92961 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92962
92963         The following changes are from gettext 0.10.39 as maintained by
92964         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92965
92966         * m4/codeset.m4: Upgrade to serial AM1.
92967         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92968         all uses changed.  Quote first arg of AC_DEFUN.
92969         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92970
92971         * m4/iconv.m4: Upgrade to serial AM2.
92972         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92973         Add --with-libconv-prefix.
92974         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92975         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92976         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92977         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92978         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92979
92980         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92981         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92982         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92983         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92984         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92985         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92986         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92987         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92988         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92989
92990         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92991         string.h any more.
92992
92993         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92994         not the default value.
92995
92996         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92997         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92998         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92999         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93000         Also check for iswcntrl, used for wcwidth fallback.
93001         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93002         to Autoconf 2.13.
93003
93004 2001-08-03  Jim Meyering  <meyering@lucent.com>
93005
93006         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93007         as it was in the original.  Reported by Paul Eggert.
93008
93009 2001-07-16  Jim Meyering  <meyering@lucent.com>
93010
93011         * m4/gettimeofday.m4: New file.
93012         Prompted by a report from Bernhard Baehr.
93013
93014 2001-07-15  Jim Meyering  <meyering@lucent.com>
93015
93016         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93017         stuff. Now it's in ../Makefile.cfg.
93018
93019 2001-07-15  Jim Meyering  <meyering@lucent.com>
93020
93021         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93022         (BUILT_SOURCES): Add unlocked-io.h.
93023         (io_functions): Define.
93024         (unlocked-io.h): New rule.
93025         (DISTCLEANFILES): Add unlocked-io.h.
93026         (all-local): Depend on unlocked-io.h, to ensure it is created.
93027
93028         * lib/unlocked-io.hin: New file
93029
93030         * lib/regex.c: Update from glibc.
93031
93032 2001-07-05  Jim Meyering  <meyering@lucent.com>
93033
93034         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93035         recommendation.
93036         (libfetish_a_SOURCES): Put all .h files here instead.
93037         Remove a thus-exposed (better checks in automake) duplicate and
93038         two unnecessary .h files.
93039
93040 2001-07-04  Jim Meyering  <meyering@lucent.com>
93041
93042         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93043         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93044         distcheck failure.
93045
93046 2001-07-02  Jim Meyering  <meyering@lucent.com>
93047
93048         The following changes were prompted by suggestions from Bruno Haible.
93049
93050         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93051         is now generated.
93052         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93053         definition of EXTRA_DIST.
93054         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93055         ensure that the generated file is created/updated whenever the list
93056         of $(unlocked_functions) is changed.
93057         (jm-glibc-io.m4): New rule.
93058         (unlocked-io.h): New rule -- currently unused.
93059
93060 2001-06-24  Jim Meyering  <meyering@lucent.com>
93061
93062         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93063         unmatched right bracket, rather than kludging it with an extra,
93064         falsely-matching quote in a comment.  Patch by Akim Demaille.
93065
93066 2001-06-11  Jim Meyering  <meyering@lucent.com>
93067
93068         * lib/regex.c: Update from GNU libc.
93069
93070 2001-05-27  Jim Meyering  <meyering@lucent.com>
93071
93072         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93073         Check for ut_type in struct utmp.
93074
93075 2001-05-27  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/readutmp.h (UT_TYPE): Define.
93078
93079 2001-05-24  Jim Meyering  <meyering@lucent.com>
93080
93081         * lib/argmatch.c: Include "quote.h".
93082         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93083         quote function.  Reported by Göran Uddeborg.
93084
93085 2001-05-22  Jim Meyering  <meyering@lucent.com>
93086
93087         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93088         now that we use the package-supplied version unconditionally.
93089         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93090
93091 2001-05-21  Jim Meyering  <meyering@lucent.com>
93092
93093         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93094         shell syntax errors.
93095
93096 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93097
93098         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93099
93100 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93101
93102         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93103         Don't bother to check library strftime, since
93104         we'll be using our own my_strftime function anyway.
93105         Define my_strftime instead of strftime.
93106
93107 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93108
93109         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93110         which is not yet declared.
93111
93112 2001-05-15  Jim Meyering  <meyering@lucent.com>
93113
93114         * m4/regex.m4: Use proper quoting so brackets appear in the test
93115         program.
93116         Reported by, and with help from, Bruno Haible.
93117
93118 2001-05-13  Jim Meyering  <meyering@lucent.com>
93119
93120         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93121         undefined.
93122
93123 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93124
93125         dirname code cleanup.  base_name now behaves more compatibly
93126         with POSIX basename when given file names that have trailing
93127         slashes, and similarly for dir_name.  Add new primitives
93128         base_len and dir_len.  Put the directory-name-related decls
93129         into dirname.h.
93130
93131         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93132         * lib/backupfile.c (base_name): Likewise.
93133         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93134         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93135         * lib/makepath.c (strip_trailing_slashes): Likewise.
93136         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93137         ISSLASH): Likewise.
93138         * lib/rename.c (strip_trailing_slashes): Likewise.
93139         * lib/same.c (base_name): Likewise.
93140         * lib/stripslash.c (ISSLASH): Likewise.
93141
93142         * lib/addext.c: Include <dirname.h> after size_t is defined.
93143         * lib/backupfile.c: Likewise.
93144
93145         * lib/addext.c (addext): Use base_len to trim redundant
93146         trailing slashes instead of doing it ourselves.
93147         But do not trim the last slash if it is not redundant.
93148
93149         * lib/backupfile.c (find_backup_file_name,
93150         max_backup_version): Use base_len instead of rolling it ourselves.
93151         Handle the case of "" and (on DOS) "C:" correctly.
93152
93153         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93154         needed. Include <string.h>, <dirname.h>.
93155         (base_name): Allow file names ending in slashes, other than names
93156         that are all slashes.  In this case, return the basename followed
93157         by the slashes.  This is more general, and can be used in places
93158         where the original base_name purposely had an assertion failure.
93159         (base_len): New function.
93160
93161         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93162         Do not include <assert.h>; no longer needed.
93163         Include xalloc.h.
93164         (memrchr): Remove decl.
93165         (dir_name_r): Remove.
93166         (dir_len): Renamed from dirlen.  All callers changed.
93167         Rewrite in terms of base_name, for simplicity and consistency.
93168         (dir_name): Never return NULL.  All callers changed.
93169         Do not include <stdlib.h> in test program; no longer needed.
93170         return 0; is fine for test program.
93171
93172         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93173         New macros.
93174         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93175
93176         * lib/path-concat.c (path_concat): Use base_len to compute
93177         base length, not strlen; this means we cannot rely on memcpy
93178         to null-terminate.
93179
93180         * lib/same.c (STREQ): Remove.
93181         (same_name): Handle the case where the basename ends in trailing '/'.
93182
93183         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93184         a slash was stripped.  Do not strip the last slash after a
93185         file system prefix.
93186
93187 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93188
93189         * lib/Makefile.am (libfetish_a_SOURCES):
93190         Add strftime.c, since we now compile it on all hosts.
93191
93192         * lib/strftime.c (my_strftime):
93193         Define to nstrftime if emacs, but only if my_strftime is not defined.
93194         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93195         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93196         Add one more extra argument: a nanoseconds value.
93197         All uses changed.
93198         (ns): New macro.
93199         (my_strftime function): Add %N format.
93200         (emacs_strftimeu): Renamed from emacs_strftime,
93201         with extra ut argument.
93202
93203 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93204
93205         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93206
93207 2001-04-21  Jim Meyering  <meyering@lucent.com>
93208
93209         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93210         doesn't interfere.
93211
93212 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93213
93214         * m4/ftruncate.m4: Check for chsize.
93215         Link with ftruncate.o unconditionally if ftruncate is missing.
93216         This was required when cross-compiling to i586-mingw32msvc.
93217
93218 2001-04-08  Jim Meyering  <meyering@lucent.com>
93219
93220         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93221         recomputed; that's necessary when the offset spans a DST transition.
93222         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93223
93224 2001-04-02  Jim Meyering  <meyering@lucent.com>
93225
93226         * lib/regex.h, regex.c: Update from GNU libc.
93227
93228 2001-03-24  Jim Meyering  <meyering@lucent.com>
93229
93230         * m4/jm-macros.m4: Require autoconf-2.49d.
93231
93232 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93233
93234         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93235
93236 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93237
93238         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93239
93240 2001-03-17  Jim Meyering  <meyering@lucent.com>
93241
93242         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93243         now that the version in autoconf is equivalent.
93244         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93245
93246         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93247         Suggestion from Akim Demaille.
93248
93249         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93250         (jm_PREREQ_TEMPNAME): New function.
93251
93252 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93253
93254         * lib/tempname.c (uint64_t): Define to uintmax_t if
93255         not defined, and if UINT64_MAX is not defined.
93256         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93257         Reported by John David Anglin.
93258
93259 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93260
93261         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93262         resolve alias if codeset is empty.
93263         * lib/config.charset (BeOS): Use wildcard syntax.
93264
93265 2001-03-13  Jim Meyering  <meyering@lucent.com>
93266
93267         * lib/path-concat.c (path_concat)
93268         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93269         concatenating e.g., `C:' and `foo'.
93270         From Bruno Haible.
93271
93272 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93273
93274         * lib/localcharset.c (locale_charset): Don't use
93275         setlocale(LC_CTYPE,NULL). Don't return NULL.
93276         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93277
93278 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93279
93280         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93281         support for DOS/DJGPP.
93282
93283 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93284
93285         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93286         lacks mkstemp.  Compile our own tempname.c if we compile our own
93287         mkstemp.c, as mkstemp relies on tempname.
93288
93289 2001-03-01  Jim Meyering  <meyering@lucent.com>
93290
93291         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93292         AH_VERBATIM really does output its argument verbatim.
93293
93294 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93295
93296         * lib/Makefile.am (libfetish_a_SOURCES):
93297         Add dup-safer.c, fopen-safer.c.
93298         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93299
93300         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93301         * lib/unistd-safer.h: New files.
93302
93303 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93304
93305         The mkstemp replacement is taken from glibc 2.2.2, with some
93306         portability fixes for use outside glibc, as follows:
93307
93308         * lib/tempname.c (struct_stat64): New macro.
93309         (direxists, __gen_tempname): Use it.
93310         This avoids a portability problem with Solaris 8.
93311
93312         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93313         (<stddef.h>, <stdint.h>, <string.h>):
93314         Include only if STDC_HEADERS || _LIBC.
93315         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93316         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93317         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93318         (__set_errno): Define this macro if <errno.h> doesn't.
93319         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93320         Define these macros if <stdio.h> doesn't.
93321         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93322         Define these macros if <sys/stat.h>
93323         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93324         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93325         __xstat64): Define if not _LIBC.
93326         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93327         (__gen_tempname): Invoke gettimeofday only if
93328         HAVE_GETTIMEOFDAY || _LIBC;
93329         otherwise, fall back on plain "time".
93330         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93331
93332         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93333
93334         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93335
93336 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93337
93338         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93339
93340 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93341
93342         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93343         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93344         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93345         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93346
93347 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93348
93349         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93350         Remove workaround macros for hosts that have mbrtowc but not
93351         mbstate_t, as we now insist on proper declarations for both
93352         before using mbrtowc.
93353
93354 2001-02-17  Jim Meyering  <meyering@lucent.com>
93355
93356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93357         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93358         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93359         UnixWare 7.1.1.
93360
93361         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93362         rather than AC_CACHE_VAL.
93363
93364 2001-02-17  Jim Meyering  <meyering@lucent.com>
93365
93366         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93367         around included file name.
93368
93369         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93370
93371         * lib/strftime.c: Update from GNU libc (the only changes were to
93372         comments).
93373
93374 2001-02-17  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/regex.c: Update from libc.
93377
93378 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93379
93380         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93381         clash.
93382
93383 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93384
93385         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93386         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93387         Reported by Mark Hounschell via Paul Eggert.
93388
93389 2001-02-07  Jim Meyering  <meyering@lucent.com>
93390
93391         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93392
93393 2001-02-05  Jim Meyering  <meyering@lucent.com>
93394
93395         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93396         it includes the patch required for `large file' support with at least
93397         HP-UX's 10.20 /bin/cc.
93398
93399 2001-02-03  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93402         AS_IF, now that it works once again (mysteriously).
93403         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93404
93405 2001-01-30  Jim Meyering  <meyering@lucent.com>
93406
93407         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93408         * m4/chown.m4: Rename conftestchown to conftest.chown.
93409         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93410         s/conftestdir2/conftest.d2/.
93411         * m4/utimes.m4: s/conftestdata/conftest.data/
93412         Inspired by Pavel Roskin's change in autoconf.
93413
93414 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93415
93416         * lib/config.charset: Update for FreeBSD 4.2.
93417
93418 2001-01-27  Jim Meyering  <meyering@lucent.com>
93419
93420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93421         a use of AS_IF.
93422         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93423
93424 2001-01-26  Jim Meyering  <meyering@lucent.com>
93425
93426         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93427         quotearg.c includes it.
93428
93429 2001-01-26  Jim Meyering  <meyering@lucent.com>
93430
93431         * lib/quotearg.c: Include stddef.h.
93432         * lib/quote.c: Include stddef.h.
93433         Reported by Axel Kittenberger.
93434
93435         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93436         line in double quotes so that it evokes a better diagnostic.
93437         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93438         Reported by Axel Kittenberger.
93439
93440 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93441
93442         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93443         as if it was a `charset'.
93444
93445 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93446
93447         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93448         has const.
93449
93450 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93451
93452         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93453         to avoid a warning.  Add back 'const' to inptr.
93454
93455 2001-01-20  Jim Meyering  <meyering@lucent.com>
93456
93457         Be sure that headers are checked before used in code compiled
93458         for the type checks.
93459         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93460         In place of that, invoke jm_CHECK_ALL_TYPES.
93461         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93462         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93463         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93464         The check for ssize_t was mistakenly run before the test for unistd.h.
93465
93466         The configure-time check for stdbool.h was missing.
93467         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93468         (jm_PREREQ_HASH): New function.
93469
93470 2001-01-17  Jim Meyering  <meyering@lucent.com>
93471
93472         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93473         for autoconf-2.49c.
93474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93475
93476 2001-01-16  Jim Meyering  <meyering@lucent.com>
93477
93478         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93479         From Bruno Haible.
93480
93481 2001-01-14  Jim Meyering  <meyering@lucent.com>
93482
93483         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93484         foo and bar.  Create conftestdir/ in the script, not in the C code.
93485         Remove directories in the script, not in the C code.
93486         Remove conftestdir{,2} before trying to create the directory.
93487         Make the entire configure script fail if the mkdir fails.
93488
93489 2001-01-14  Jim Meyering  <meyering@lucent.com>
93490
93491         * lib/rename.c: New file.  From Volker Borchert.
93492         Include stdlib.h, string.h or strings.h, and xalloc.h.
93493         Use strip_trailing_slashes rather than open-coding it.
93494
93495 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93496
93497         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93498
93499 2001-01-03  Jim Meyering  <meyering@lucent.com>
93500
93501         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93502         of local `inptr' to avoid warning with some system declarations of
93503         iconv.
93504
93505 2001-01-02  Volker Borchert  <bt@teknon.de>
93506
93507         * m4/rename.m4: New file.
93508         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93509
93510 2001-01-01  Jim Meyering  <meyering@lucent.com>
93511
93512         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93513         even on systems with utmpx.h.  It's necessary for the declaration of
93514         utmp's ut_user member.  Reported by Andreas Jaeger.
93515
93516         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93517         available. They are required for the declarations of getgrgid and
93518         getpwuid resp.
93519         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93520         Reported by Andreas Jaeger.
93521
93522 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93523
93524         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93525         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93526         so `make install' also works in VPATH builds.
93527
93528 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93529
93530         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93531         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93532         can be used in subdirectories.
93533
93534 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93535
93536         * lib/modechange.c: Do not assume that mode_t uses the
93537         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93538         the other-execute bit of FOO even if S_IXOTH != 1.
93539
93540         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93541         WOTH, XOTH, ALLM): New macros.
93542         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93543          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93544         Use them.
93545         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93546         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93547         (mode_compile):
93548         No need to use uintmax_t; unsigned long is long enough.
93549         Don't bother to get suffix since we don't use it.
93550
93551 2000-12-26  Jim Meyering  <meyering@lucent.com>
93552
93553         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93554         better with autoheader.
93555
93556 2000-12-24  Jim Meyering  <meyering@lucent.com>
93557
93558         * lib/hash.c (is_prime): Return explicit boolean values.
93559         (hash_get_first): Return NULL to appease Irix5.6's 89.
93560         Reported by Nelson Beebe.
93561
93562 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93563
93564         * lib/localcharset.c (locale_charset): Add support for Win32.
93565
93566 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93567
93568         * lib/physmem.h, lib/physmem.c: New files.
93569
93570         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93571         (noinst_HEADERS): Add physmem.h.
93572
93573         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93574         't' for compatibility with Solaris 8 sort.
93575
93576 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93577
93578         * lib/config.charset: Add support for BeOS.
93579
93580 2000-12-17  Jim Meyering  <meyering@lucent.com>
93581
93582         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93583         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93584
93585 2000-12-16  Jim Meyering  <meyering@lucent.com>
93586
93587         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93588         N and M) would have treated it like `chown N:N FILE'.
93589
93590         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93591
93592 2000-12-16  Jim Meyering  <meyering@lucent.com>
93593
93594         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93595         SHELLS_FILE to a file name that's useful on djgpp systems.
93596         Include stdlib.h.
93597         (ADDITIONAL_DEFAULT_SHELLS): Define.
93598         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93599         Based mostly on a patch from Prashant TR.
93600
93601 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93602
93603         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93604         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93605         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93606
93607 2000-12-08  Andreas Schwab  <schwab@suse.de>
93608
93609         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93610         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93611
93612 2000-12-07  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/stripslash.c (ISSLASH): Define.
93615         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93616         `/'.
93617         From Prashant TR.
93618
93619         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93620         (dir_name_r): Declare this function as static.
93621         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93622         manifest itself on a name containing a mix of slashes and
93623         backslashes.
93624         Make this function work with names starting with a DOS-style
93625         drive letter and colon prefix.
93626         (dir_name): Append `.' if necessary.
93627         Based mostly on patches from Prashant TR and Eli Zaretskii.
93628
93629         * lib/dirname.h (dir_name_r): Remove prototype.
93630
93631 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93632
93633         * m4/off_t-format.m4: Remove this file.
93634         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93635
93636 2000-12-06  Jim Meyering  <meyering@lucent.com>
93637
93638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93639         replacement strtoull, we may well need the replacement strtoul, too.
93640         Check for declarations of strtoul and strtoull.
93641         Check for strtol.  Mainly as a cue to cause automake to include
93642         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93643         Check for limits.h -- strtol.c needs it.
93644
93645 2000-12-05  Jim Meyering  <meyering@lucent.com>
93646
93647         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93648
93649 2000-12-04  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93652         Also include memory.h, stdlib.h, unistd.h if appropriate.
93653         Reported by Andreas Jaeger (conflicting declaration of malloc).
93654
93655 2000-12-02  Jim Meyering  <meyering@lucent.com>
93656
93657         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93658         * m4/jm-macros.m4 (jm_MACROS): require it.
93659
93660 2000-12-02  Jim Meyering  <meyering@lucent.com>
93661
93662         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93663
93664 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93665
93666         * lib/memrchr.c: Include <config.h> before any system include file.
93667
93668 2000-11-30  Jim Meyering  <meyering@lucent.com>
93669
93670         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93671
93672 2000-11-30  Jim Meyering  <meyering@lucent.com>
93673
93674         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93675
93676 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93677
93678         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93679
93680 2000-11-26  Jim Meyering  <meyering@lucent.com>
93681
93682         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93683
93684 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93685
93686         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93687         size of (size_t) -1; it's not portable.
93688
93689 2000-11-17  Jim Meyering  <meyering@lucent.com>
93690
93691         * lib/strstr.c: Update from GNU libc.
93692
93693 2000-11-17  Akim Demaille  <akim@epita.fr>
93694
93695         * lib/obstack.h: Formatting changes.
93696         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93697         prevent type checking.
93698         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93699         cast the value to (void *): assigning a `foo *' to a `void *'
93700         variable is valid.
93701         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93702
93703 2000-11-16  Jim Meyering  <meyering@lucent.com>
93704
93705         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93706
93707 2000-11-11  Jim Meyering  <meyering@lucent.com>
93708
93709         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93710
93711 2000-11-10  Jim Meyering  <meyering@lucent.com>
93712
93713         * lib/obstack.h: Update from GNU libc.
93714         * lib/obstack.c: Likewise.
93715
93716 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93717
93718         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93719
93720 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/getusershell.c (setusershell): Use rewind rather than
93723         fseek/fseeko, to avoid configuration hassles with fseeko.
93724         Don't bother opening SHELLS_FILE if shellstream is NULL;
93725         it's not necessary.
93726
93727 2000-11-05  Jim Meyering  <meyering@lucent.com>
93728
93729         * lib/makepath.h (make_dir): Declare.
93730         * lib/makepath.c (make_dir): Remove `static' attribute.
93731         Tweak a comment.
93732
93733 2000-11-04  Jim Meyering  <meyering@lucent.com>
93734
93735         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93736
93737 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93738
93739         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93740         last one in a bucket, advance to the next bucket.
93741
93742 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93743
93744         * lib/fnmatch.c: Do not comment out all the code if we are using
93745         the GNU C library, because in some cases we are replacing buggy
93746         code in the GNU C library itself.
93747
93748 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93749
93750         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93751         (regex_compile): Catch bogus \(\1\).
93752
93753 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93754
93755         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93756         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93757         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93758
93759 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93760
93761         * lib/error.h, getline.h, modechange.h:
93762         Remove "2000" from Copyright line, as the file hasn't been
93763         changed this year other than in the copyright notice.
93764
93765         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93766         was changed this year.
93767
93768 2000-10-29  Jim Meyering  <meyering@lucent.com>
93769
93770         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93771         renaming.
93772         * m4/ls-mntd-fs.m4: Likewise
93773
93774 2000-10-29  Jim Meyering  <meyering@lucent.com>
93775
93776         * lib/xstat.in: Fix grammar in comment.
93777
93778 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93779
93780         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93781         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93782         doesn't define __restrict_arr.
93783
93784 2000-10-28  Jim Meyering  <meyering@lucent.com>
93785
93786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93787         (jm_PREREQ_MEMCHR): New function.
93788
93789 2000-10-28  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/memchr.c: Update from libc.
93792         Adjust for portability:
93793         [HAVE_STDLIB_H]: Include stdlib.h.
93794         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93795         Undef __memchr, too.
93796         [!weak_alias]: Define __memchr to memchr.
93797
93798         * lib/regex.c: Update from libc.
93799         * lib/regex.h: Likewise.
93800         * lib/getopt1.c: Likewise.
93801         * lib/memcmp.c: Likewise.
93802
93803         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93804         Avoid using fseek, when possible -- it's broken by design.
93805         Patch by Ulrich Drepper.
93806
93807 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93808
93809         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93810         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93811         Giving in to popular pressure to shut up the compiler with casts.
93812
93813 2000-10-26  Jim Meyering  <meyering@lucent.com>
93814
93815         * lib/strftime.c: Update from libc.
93816
93817 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93818
93819         * regex.c: More `unsigned char' -> `re_char' changes.
93820         Also change several `int' into `re_wchar_t'.
93821         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93822         (PUSH_FAILURE_POINTER): Don't cast any more.
93823         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93824         We want GCC to complain, since this piece of code makes
93825         re_match non-reentrant, which *should* be fixed.
93826         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93827         (EXTEND_BUFFER): Use RETALLOC.
93828         (SET_LIST_BIT): Don't cast.
93829         (re_wchar_t): New type.
93830         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93831         that those two functions will always properly return.
93832         (IMMEDIATE_QUIT_CHECK): Cast to void.
93833         (analyse_first): Use recursion rather than an explicit stack.
93834         (re_compile_fastmap): Can't fail anymore.
93835         (re_search_2): Don't check re_compile_fastmap for failure.
93836         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93837         Now also sets the new value (passed in a new argument).
93838         (re_match_2_internal): Use it.
93839         Also, use a new var `reg' of type size_t when looping through regs
93840         rather than reuse the inappropriate `mcnt'.
93841
93842 2000-10-25  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/obstack.c: Update from libc.
93845
93846 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93847
93848         * regex.c (regex_compile): Change the way of handling a range from
93849         a char less than 256 to a char not less than 256.
93850
93851 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93852
93853         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93854         NT-Emacs only.
93855         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93856         so that re_search functions only quit when callers expect them to.
93857
93858 2000-10-23  Jim Meyering  <meyering@lucent.com>
93859
93860         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93861         wrong.  That set_locale call must not have any side effects.
93862         From Paul Eggert.
93863
93864 2000-10-22  Jim Meyering  <meyering@lucent.com>
93865
93866         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93867         [CYCLIC]: Remove now-unused definition.
93868
93869         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93870         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93871         Suggestion from Ulrich Drepper.
93872
93873 2000-10-21  Jim Meyering  <meyering@lucent.com>
93874
93875         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93876         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93877         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93878
93879 2000-10-21  Jim Meyering  <meyering@lucent.com>
93880
93881         * lib/dirname.c (memrchr): Declare if necessary.
93882         (dir_name): Remove the restriction that there be no
93883         trailing slashes.  Now, this code skips past them, effectively
93884         ignoring them.
93885         [TEST_DIRNAME] (main): New unit tests.
93886
93887         * lib/memrchr.c: New file from GNU libc.
93888         Undef __memrchr, too.
93889         [!weak_alias]: Define __memrchr to memrchr.
93890         Guard weak_alias use with `#ifdef weak_alias'.
93891
93892 2000-10-21  Jim Meyering  <meyering@lucent.com>
93893
93894         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93895         (dir_name): Use dir_name_r.
93896         * lib/dirname.h (dir_name_r): Declare it.
93897
93898 2000-10-17  Jim Meyering  <meyering@lucent.com>
93899
93900         * lib/quote.h (PARAMS): Define and use.
93901         Reported by Akim Demaille.
93902
93903         * lib/getopt.c: Update from libc.
93904
93905 2000-10-16  Jim Meyering  <meyering@lucent.com>
93906
93907         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93908         setlocale.
93909         From Jan Fedak.
93910
93911 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93912
93913         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93914
93915 2000-09-25  Jim Meyering  <meyering@lucent.com>
93916
93917         * lib/md5.h (rol): Define (from GnuPG).
93918
93919         * lib/sha.c: Give credit (GnuPG) where due.
93920         (M): Use rol rather than open-coding it.
93921         Add a FIXME comment.
93922
93923 2000-09-21  Jim Meyering  <meyering@lucent.com>
93924
93925         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93926         Reported by Michael Stone.
93927
93928 2000-09-20  Jim Meyering  <meyering@lucent.com>
93929
93930         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93931         (noinst_HEADERS): Add sha.h.
93932         Based on code from Scott G. Miller and from GnuPG.
93933
93934 2000-09-18  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93937         LIBS. Otherwise, everyone ends up linking with -lelf for some
93938         configurations.
93939         Reported by Mike Stone.
93940
93941 2000-09-15  Jim Meyering  <meyering@lucent.com>
93942
93943         * lib/regex.c: Update from libc.
93944
93945 2000-09-10  Jim Meyering  <meyering@lucent.com>
93946
93947         * lib/getopt.c (_getopt_internal): Update from glibc.
93948
93949 2000-09-09  Jim Meyering  <meyering@lucent.com>
93950
93951         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93952         think it should be used as a general replacement for isascii.
93953         * lib/fnmatch.c: Likewise.
93954         * lib/mbswidth.c: Likewise
93955         * lib/regex.c: Likewise.
93956
93957         Don't use atoi.
93958         * lib/userspec.c: Include sys/param.h and limits.h.
93959         Include xstrtol.h.
93960         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93961         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93962         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93963         UID, GID.  Check range.
93964
93965 2000-09-06  Jim Meyering  <meyering@lucent.com>
93966
93967         * lib/getopt.c (_getopt_internal): Update from glibc.
93968
93969 2000-08-30  Jim Meyering  <meyering@lucent.com>
93970
93971         * lib/strftime.c: Merge in changes from GNU libc.
93972
93973 2000-08-26  Jim Meyering  <meyering@lucent.com>
93974
93975         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93976         * m4/fpending.m4: New file.
93977
93978 2000-08-26  Jim Meyering  <meyering@lucent.com>
93979
93980         * lib/closeout.c: Include "__fpending.h".
93981         (close_stdout_status): Return right away if there's nothing to flush.
93982
93983         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93984         * lib/__fpending.c: New file.
93985         * lib/__fpending.h: New file.
93986
93987 2000-08-20  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93990         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93991         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93992
93993 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93994
93995         Improve fileutils installation on systems where running
93996         programs (like install) can't be unlinked.
93997         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93998         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93999
94000 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94001
94002         Standardize on "memory exhausted" instead of "Memory exhausted"
94003         or "virtual memory exhausted".
94004         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94005         "virtual memory exhausted".
94006         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94007         our own message.
94008         * lib/userspec.c (parse_user_spec): Likewise.
94009         * lib/bumpalloc.h: comment fix
94010         * lib/same.c, userspec.c: Include xalloc.h.
94011
94012         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94013         not char *const and pointing to a constant array.
94014         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94015         (xrealloc): Comment fix.
94016
94017         * lib/userspec.c (parse_user_spec):
94018         Don't translate a message until just before returning,
94019         to avoid unnecessary translation.
94020
94021 2000-08-07  Jim Meyering  <meyering@lucent.com>
94022
94023         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94024         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94025         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94026         getgroups.c, gethostname.c, getopt.h, group-member.c,
94027         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94028         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94029         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94030         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94031         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94032         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94033         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94034         yesno.c: Back out Copyright date changes for each file with no change
94035         this year.  This eases coordination with other programs using the same
94036         source code modules.  From Paul Eggert.
94037
94038 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94039
94040         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94041         not char, for compatibility with glibc 2.1.3 strftime.c.
94042
94043 2000-08-03  Greg McGary  <greg@mcgary.org>
94044
94045         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94046         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94047         (EXTEND_BUFFER): Use them.
94048
94049 2000-08-01  Jim Meyering  <meyering@lucent.com>
94050
94051         * lib/dirname.c (ISSLASH): Define.
94052         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94053         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94054         both `\' and `/' may be use as path separators.
94055         Based on a patch from Prashant TR.
94056
94057 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94058
94059         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94060         slot vector a constant, since it might get modified.
94061
94062 2000-07-31  Jim Meyering  <meyering@lucent.com>
94063
94064         * lib/xmalloc.c: Use `virtual memory exhausted', not
94065         `Memory exhausted'.
94066         * lib/obstack.c (print_and_abort): Likewise.
94067
94068 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94069
94070         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94071         buffer, so that the caller can always quote one small
94072         component of a "memory exhausted" message in slot 0.
94073         From a suggestion by Jim Meyering.
94074
94075 2000-07-30  Jim Meyering  <meyering@lucent.com>
94076
94077         * lib/makepath.c (make_path): Quote the other instance, too.
94078
94079         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94080         (STATIC_BUF_SIZE): Define.
94081         (quotearg_n_options): Use only statically allocated storage when
94082         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94083         than STATIC_BUF_SIZE.
94084
94085 2000-07-29  Jim Meyering  <meyering@lucent.com>
94086
94087         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94088         * lib/dirname.c (dir_name): Likewise.
94089
94090         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94091         `/'.
94092
94093         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94094         (dir_name): Assert that there are no trailing slashes.
94095
94096 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94097
94098         * lib/mbswidth.h (mbswidth): Add a flags argument.
94099         (mbswidth): New declaration.
94100         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94101         * lib/mbswidth.c (mbswidth): Add a flags argument.
94102         (mbsnwidth): New function.
94103
94104 2000-07-24  Jim Meyering  <meyering@lucent.com>
94105
94106         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94107
94108 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94109
94110         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94111
94112 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94113
94114         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94115         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94116         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94117         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94118         invoke multibyte primitives.
94119
94120 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94121
94122         * lib/quotearg.c:
94123         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94124         so that mbstate_t is always defined.
94125
94126         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94127         be 1 in at least one GCC installation, and this configuration
94128         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94129         performance on hosts that have mbrtowc but have only unibyte
94130         locales, but I assume these hosts are rare.
94131
94132 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94133
94134         * lib/mbswidth.c (_XOPEN_SOURCE):
94135         Don't define; this causes problems on Solaris 7.
94136         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94137
94138 2000-07-23  Jim Meyering  <meyering@lucent.com>
94139
94140         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94141         too: getgrgid, getpwuid, getuid.
94142
94143 2000-07-23  Jim Meyering  <meyering@lucent.com>
94144
94145         * lib/basename.c (base_name): Add an assertion.
94146
94147 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94148
94149         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94150         shadow its mbsinit function.
94151
94152 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94153
94154         * lib/mbswidth.h: New file.
94155         * lib/mbswidth.c: New file.
94156         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94157         (noinst_HEADERS): Add mbswidth.h.
94158
94159 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94160
94161         * lib/config.charset: Add support for FreeBSD. Improve support for
94162         HP-UX and IRIX 6.
94163
94164 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94165
94166         * m4/mbswidth.m4: New file.
94167         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94168
94169 2000-07-15  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/makepath.c: Include quote.h.
94172         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94173         corresponding argument in a `quote (...)' call.
94174         Give better diagnostics.
94175
94176         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94177         (noinst_HEADERS): Add quote.h.
94178
94179         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94180         from tar's src/misc.c.
94181         * lib/quote.h: New file.  Prototypes for same.
94182
94183 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94184
94185         From a suggestion by Bruno Haible.
94186         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94187         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94188         to decide whether to define the BeOS workaround macro;
94189         this adjusts to the change to AC_MBSTATE_T.
94190
94191 2000-07-14  Jim Meyering  <meyering@lucent.com>
94192
94193         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94194         jm_AC_TYPE_UINTMAX_T.
94195
94196 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94197
94198         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94199
94200         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94201         quotearg_buffer_restyled): Add support for
94202         clocale_quoting_style.  Undo previous change to
94203         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94204         and "{RIGHT QUOTATION MARK}" msgids.
94205
94206 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94207
94208         From a suggestion by Bruno Haible.
94209         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94210         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94211         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94212         and mbstate_t, to a single-part test that simply defines mbstate_t.
94213         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94214         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94215
94216 2000-07-10  Jim Meyering  <meyering@lucent.com>
94217
94218         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94219
94220         * m4/gnu-source.m4: Output to confdefs.h directly.
94221         Suggestion from Akim Demaille.
94222
94223 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94224
94225         The old behavior of quoting `like this' doesn't look good with
94226         newer, ISO-style fonts.  See:
94227         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94228
94229         Instead, quote "like this" by default.  Let the translator
94230         tailor the locale-specific quoting behavior by providing
94231         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94232
94233         * lib/quotearg.c (N_): New macro.
94234         (gettext_default): New function.
94235         (quotearg_buffer_restyled): Use
94236         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94237         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94238
94239 2000-07-09  Jim Meyering  <meyering@lucent.com>
94240
94241         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94242         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94243
94244         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94246
94247 2000-07-09  Jim Meyering  <meyering@lucent.com>
94248
94249         * lib/Most files: Update copyright dates to include 2000.
94250
94251 2000-07-08  Jim Meyering  <meyering@lucent.com>
94252
94253         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94254         if not defined.
94255         (xgethostname): Remove now-unnecessary #ifdef.
94256         Move declaration of `err' into loop where it's used.
94257
94258 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94259         and Bruno Haible  <haible@clisp.cons.org>
94260
94261         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94262         only if the test for an object-type mbstate_t fails.  This
94263         prevents us from mistakenly reporting that mbstate_t is a
94264         system object type after we "#define mbstate_t int" to work
94265         around its lack.
94266
94267 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94268         and Bruno Haible  <haible@clisp.cons.org>
94269
94270         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94271
94272 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94273
94274         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94275         to strerror_r.
94276         Include <ctype.h> for use of isalpha.
94277
94278 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94279
94280         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94281         by allocating a larger buffer. Test the gethostname return value for
94282         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94283         returns an error and ENAMETOOLONG isn't defined.
94284
94285 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94286
94287         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94288         dimension.
94289
94290 2000-07-04  Jim Meyering  <meyering@lucent.com>
94291
94292         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94293         of the deprecated AC_CHECKING.
94294
94295 2000-07-04  Jim Meyering  <meyering@lucent.com>
94296
94297         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94298         Reported by Bruno Haible.
94299
94300 2000-07-04  Jim Meyering  <meyering@lucent.com>
94301
94302         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94303         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94304         lacks mbrtowc.
94305
94306 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94307
94308         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94309         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94310
94311 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94312         and Bruno Haible  <haible@clisp.cons.org>
94313
94314         * lib/quotearg.c (mbrtowc):
94315         Assign to *pwc, and return 1 only if result is nonzero.
94316         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94317
94318 2000-07-03  Jim Meyering  <meyering@lucent.com>
94319
94320         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94321
94322 2000-07-03  Jim Meyering  <meyering@lucent.com>
94323
94324         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94325         This is necessary to get a definition of e.g., UTMP_FILE on
94326         HP-UX 10.20.
94327         From Bob Proulx.
94328
94329 2000-07-02  Jim Meyering  <meyering@lucent.com>
94330
94331         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94332
94333         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94334         AC_LIBOBJ(function_name).
94335         * m4/chown.m4: Likewise.
94336         * m4/fnmatch.m4: Likewise.
94337         * m4/ftruncate.m4: Likewise.
94338         * m4/getgroups.m4: Likewise.
94339         * m4/getline.m4: Likewise.
94340         * m4/group-member.m4: Likewise.
94341         * m4/jm-macros.m4: Likewise.
94342         * m4/lstat.m4: Likewise.
94343         * m4/malloc.m4: Likewise.
94344         * m4/memcmp.m4: Likewise.
94345         * m4/nanosleep.m4: Likewise.
94346         * m4/putenv.m4: Likewise.
94347         * m4/realloc.m4: Likewise.
94348         * m4/regex.m4: Likewise.
94349         * m4/stat.m4: Likewise.
94350         * m4/strftime.m4: Likewise.
94351
94352 2000-07-02  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/quotearg.c (mbstate_t): Don't define here.
94355
94356 2000-07-02  Jim Meyering  <meyering@lucent.com>
94357
94358         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94359
94360 2000-07-01  Jim Meyering  <meyering@lucent.com>
94361
94362         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94363
94364 2000-07-01  Jim Meyering  <meyering@lucent.com>
94365
94366         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94367         problem.
94368
94369 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94370
94371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94372         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94373
94374 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94375
94376         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94377         per change in ../m4/ls-mntd-fs.m4.
94378         (read_filesystem_list): Ignore symbolic links.
94379
94380 2000-06-29  Jim Meyering  <meyering@lucent.com>
94381
94382         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94383         for declaration of strcmp.
94384
94385         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94386
94387         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94388         Avoid warning by casting result to `char *' to remove `const'.
94389
94390 2000-06-28  Jim Meyering  <meyering@lucent.com>
94391
94392         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94393         included by quotearg.c, for which we perform this test.  From
94394         Bruno Haible.
94395
94396 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94397
94398         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94399         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94400         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94401
94402 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94403
94404         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94405
94406 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94407
94408         savedir now sets errno on failure and invokes xmalloc to get memory.
94409         Fix a couple of other minor bugs while we're at it.
94410
94411         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94412         (NAMLEN): Remove macro.
94413         (malloc, realloc): Remove decls.
94414         (stpcpy): Likewise.
94415         ("xalloc.h"): Include.
94416         (NAME_SIZE_DEFAULT): New macro.
94417         (savedir): Use xmalloc / xrealloc to allocate memory.
94418         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94419         Skip "" directory entries.
94420         Use strlen to calculate directory entry length, since the old method
94421         is rarely used these days and isn't worth supporting.
94422         Don't use a pointer after freeing it.
94423         Check for integer overflow when calculating allocation size.
94424         Use memcpy to copy entries, instead of stpcpy.
94425         Set errno properly when returning NULL.
94426         Check for readdir error.
94427
94428 2000-06-26  Jim Meyering  <meyering@lucent.com>
94429
94430         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94431
94432 2000-06-25  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94435         Linux header bug when _XOPEN_SOURCE is defined to 500.
94436
94437 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94438
94439         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94440         deficiency.
94441
94442 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94443
94444         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94445         Include xalloc.h.
94446         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94447
94448 2000-06-24  Jim Meyering  <meyering@lucent.com>
94449
94450         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94451         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94452         for which strerror does return char*, but which lacks a conveniently
94453         accessible declaration of the function.  If the compile-test says
94454         strerror_r doesn't work, then resort to a `run'-test that works on
94455         BeOS and segfaults on DEC Unix.
94456
94457 2000-06-24  Jim Meyering  <meyering@lucent.com>
94458
94459         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94460
94461 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94462
94463         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94464         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94465
94466 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94467
94468         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94469         (mbrtowc, mbstate_t): Define substitutes if
94470         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94471         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94472         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94473
94474 2000-06-23  Jim Meyering  <meyering@lucent.com>
94475
94476         * m4/afs.m4: Add missing AC_MSG_RESULT.
94477         Reported by Bruno Haible.
94478
94479         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94480         Suggestion from Bruno Haible.
94481
94482 2000-06-23  Jim Meyering  <meyering@lucent.com>
94483
94484         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94485
94486 2000-06-21  Jim Meyering  <meyering@lucent.com>
94487
94488         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94489
94490 2000-06-21  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94493         (noinst_HEADERS): Add getstr.h.
94494
94495         * lib/getline.c (getstr): Move into a separate file.
94496         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94497         the following changes: new parameter, delim2; both delim[12]
94498         parameters have type `int', not `char'.  The latter would lose
94499         with 8-bit delimiters.
94500         * lib/getstr.h: New file.
94501
94502 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94503
94504         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94505         than 1024, return a memory chunk of least possible size, instead
94506         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94507         Use free/xmalloc instead of xrealloc to avoid copying for very long
94508         paths.
94509
94510 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94511
94512         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94513         the empty string.
94514
94515 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94516
94517         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94518         address, not strdup.  Include <stdlib.h> and don't declare free().
94519
94520 2000-06-19  Jim Meyering  <meyering@lucent.com>
94521
94522         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94523
94524 2000-06-18  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94527
94528         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94529         `checking whether...' message to be consistent with that of the
94530         lstat test.
94531
94532 2000-06-18  Jim Meyering  <meyering@lucent.com>
94533
94534         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94535         Besides, these days every porting target provides a mkdir function.
94536
94537         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94538         needed. (this snippet comes from src/system.h).
94539
94540 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94541
94542         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94543
94544 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94545
94546         * lib/human.c (adjust_value): New function.
94547         (human_readable_inexact): Apply rounding style even when
94548         printing approximate values.
94549
94550 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94551
94552         * lib/human.c (human_readable_inexact): Allow an input block
94553         size that is not a multiple of the output block size, and vice versa.
94554         Reported by Piergiorgio Sartor.
94555
94556 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94557
94558         * lib/getdate.y (get_date): Apply relative times after time
94559         zone indicator, not before.  Reported by Todd A. Jacobs.
94560
94561 2000-06-13  Jim Meyering  <meyering@lucent.com>
94562
94563         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94564
94565         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94566
94567 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94568
94569         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94570
94571 2000-06-12  Jim Meyering  <meyering@lucent.com>
94572
94573         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94574         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94575         optional argument.
94576         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94577         the optional argument, `lib'.
94578
94579 2000-06-08  Jim Meyering  <meyering@lucent.com>
94580
94581         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94582
94583 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94584
94585         Rewrite largefile configuration so that we don't need to run
94586         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94587         AC_CANONICAL_HOST in configure.in -- jmm]
94588
94589         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94590         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94591         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94592         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94593         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94594         All uses changed.
94595         Instead of inspecting the output of getconf, try to compile the
94596         test program without and with the macro definition.
94597         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94598         for getconf.  Instead, check for the needed flags by compiling
94599         test programs.
94600
94601 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94602
94603         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94604
94605 2000-06-04  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94608         SunOS 4.1.4 for which gid_t is an unsigned type.
94609
94610 2000-06-03  Jim Meyering  <meyering@lucent.com>
94611
94612         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94613         now that autoconf requires that.
94614
94615         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94616         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94617         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94618
94619 2000-06-03  Jim Meyering  <meyering@lucent.com>
94620
94621         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94622
94623 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94624
94625         * m4/glibc21.m4: New file.
94626         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94627
94628 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94629
94630         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94631         newer, don't install charset.alias.
94632         * lib/config.charset: Change the Linux/glibc rules so they become empty
94633         on glibc-2.1 or newer.
94634
94635 2000-06-02  Jim Meyering  <meyering@lucent.com>
94636
94637         * lib/mountlist.c: Back out last change.  Instead, do this...
94638         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94639         me_dummy member using the same `ignore'-testing code.
94640         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94641         fs_type strings.
94642         From Mark D. Roth.
94643
94644 2000-05-29  Jim Meyering  <meyering@lucent.com>
94645
94646         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94647         mounts with the `ignore' attribute.  Based on a patch from
94648         Mark D. Roth.
94649
94650 2000-05-28  Jim Meyering  <meyering@lucent.com>
94651
94652         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94653         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94654         * m4/stat.m4: Likewise.
94655         * m4/lstat.m4: Likewise.
94656         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94657
94658         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94659         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94660
94661 2000-05-26  Jim Meyering  <meyering@lucent.com>
94662
94663         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94664
94665 2000-05-24  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94668         autoconf requires that.
94669         * m4/lib-check.m4: Likewise.
94670         * m4/jm-macros.m4: Likewise.
94671         * m4/strftime.m4: Likewise.
94672
94673         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94674         AC_CHECK_DECLS, now that autoconf requires that.
94675
94676 2000-05-22  Jim Meyering  <meyering@lucent.com>
94677
94678         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94679         * m4/lstat.m4: Likewise.
94680
94681 2000-05-22  Jim Meyering  <meyering@lucent.com>
94682
94683         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94684
94685 2000-05-20  Jim Meyering  <meyering@lucent.com>
94686
94687         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94688         (jm_PREREQ): Use it.
94689
94690 2000-05-18  Jim Meyering  <meyering@lucent.com>
94691
94692         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94693         back, too, since it may have been modified by allocate_entry.
94694         (hash_delete): Rewrite to use neither the assignment operator
94695         nor the comma operator in an if-expression.
94696
94697 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94698
94699         * lib/closeout.c:
94700         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94701         Remove; no longer needed.
94702         "quotearg.h": Add include.
94703         (file_name): Do not bother to explicitly initialize to NULL; it's less
94704         efficient on some hosts.
94705         (close_stdout_status): Remove test as to whether stdout was already
94706         closed; it breaks for the case "echo x | sort >&-".
94707         Quote file name colons.
94708         Do not assume that _("write error") lacks format strings.
94709
94710 2000-05-15  Jim Meyering  <meyering@lucent.com>
94711
94712         * lib/version-etc.c (version_etc_copyright): Update the copyright
94713         string used in all --version output.
94714
94715 2000-05-14  Jim Meyering  <meyering@lucent.com>
94716
94717         * lib/closeout.c (close_stdout_set_file_name): New function.
94718         (close_stdout_status): Use new file-scoped global.
94719         Return right away if fstat says the stdout file descriptor is invalid.
94720         * lib/closeout.h (close_stdout_set_file_name): Declare.
94721
94722 2000-05-10  Jim Meyering  <meyering@lucent.com>
94723
94724         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94725         (close_stdout_set_status): New function.
94726         * lib/closeout.h (close_stdout_set_status): Declare.
94727
94728 2000-05-09  Jim Meyering  <meyering@lucent.com>
94729
94730         * m4/gettext.m4: Rename this...
94731         * m4/libintl.m4: ...to this.
94732
94733 2000-05-08  Jim Meyering  <meyering@lucent.com>
94734
94735         * lib/long-options.c: Don't include closeout.h.
94736         (parse_long_options): Don't call close_stdout for --version.
94737
94738 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94739
94740         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94741         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94742         2.1.3 bug.  This avoids a clash when files like regex.c define
94743         _GNU_SOURCE.
94744
94745 2000-05-06  Jim Meyering  <meyering@lucent.com>
94746
94747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94748         (AC_REPLACE_FUNCS): Add strnlen.
94749
94750         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94751         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94752
94753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94754         AC_SEARCH_LIBS call for nanosleep.
94755         (LIB_NANOSLEEP): Set and AC_SUBST.
94756
94757 2000-05-06  Jim Meyering  <meyering@lucent.com>
94758
94759         * lib/strnlen.c: Undefine __strnlen and strnlen.
94760         [!weak_alias]: Define __strnlen to strnlen.
94761
94762         * lib/atexit.c: New file, from libiberty.
94763
94764 2000-05-06  Jim Meyering  <meyering@lucent.com>
94765
94766         * lib/closeout.c (close_stdout_status): Also check for errors on the
94767         stderr stream.
94768
94769 2000-05-05  Jim Meyering  <meyering@lucent.com>
94770
94771         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94772         AC_SEARCH_LIBS call for clock_gettime.
94773         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94774
94775         * m4/search-libs.m4: Update from autoconf.
94776
94777         su doesn't work on Solaris 2.6.
94778         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94779         <shadow.h>.  Reported by Dragos Harabor.
94780
94781 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94782
94783         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94784         memcpy instead of xmalloc, xrealloc, path_concat.
94785         (locale_charset): Treat empty environment variables as absent.
94786         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94787
94788 2000-05-04  Jim Meyering  <meyering@lucent.com>
94789
94790         * lib/getopt.c: Update from glibc.
94791         * lib/obstack.c: Likewise.
94792         * lib/obstack.h: Likewise.
94793         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94794         file
94795
94796         * lib/regex.h: Likewise.
94797         * lib/strndup.c: Likewise.
94798         * lib/strnlen.c: New file, from glibc.
94799
94800 2000-05-03  Jim Meyering  <meyering@lucent.com>
94801
94802         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94803
94804 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94805
94806         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94807         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94808         compile-time test, rather than inspecting host and OS, to
94809         decide whether to define _LARGEFILE_SOURCE.
94810
94811 2000-05-01  Jim Meyering  <meyering@lucent.com>
94812
94813         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94814
94815         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94816         Based on a patch from Bruno Haible.
94817
94818 2000-05-01  Jim Meyering  <meyering@lucent.com>
94819
94820         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94821
94822 2000-04-29  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/path-concat.c: Declare strdup only if it's not defined.
94825         * lib/canon-host.c: Likewise.
94826
94827 2000-04-28  Jim Meyering  <meyering@lucent.com>
94828
94829         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94830         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94831         is included first, then limits.h is included by locale.h by libintl.h.
94832         From John David Anglin.
94833
94834 2000-04-25  Jim Meyering  <meyering@lucent.com>
94835
94836         * lib/makepath.c (S_IRWXUGO): Define.
94837         (make_path): Always perform explicit chmod if MODE specifies any
94838         of the `special' permission bits.  Prompted by a bug report against
94839         install from Mate Wierdl and Joost van Baal.
94840
94841 2000-04-18  Jim Meyering  <meyering@lucent.com>
94842
94843         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94844         (jm_PREREQ): Use it.
94845
94846 2000-04-18  Jim Meyering  <meyering@lucent.com>
94847
94848         * lib/README: New file.
94849
94850         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94851         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94852
94853 2000-04-17  Jim Meyering  <meyering@lucent.com>
94854
94855         Get it right :-)
94856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94857         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94858         Suggestion from Akim Demaille.
94859
94860 2000-04-17  Jim Meyering  <meyering@lucent.com>
94861
94862         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94863         the definition of it to rpl_strftime also defined-away the system's
94864         declaration.
94865
94866 2000-04-15  Jim Meyering  <meyering@lucent.com>
94867
94868         Use `C' to denote so-called `contiguous' files, the same way
94869         that tar does.
94870         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94871         (ftypelet): Use S_ISCTG.
94872         From Michael Deutschmann.
94873
94874 2000-04-14  Jim Meyering  <meyering@lucent.com>
94875
94876         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94877         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94878         clobbered.
94879
94880 2000-04-14  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94883
94884 2000-04-13  Jim Meyering  <meyering@lucent.com>
94885
94886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94887         AH_VERBATIM to insert required #ifndef into config.h.in.
94888         Suggestion from Akim Demaille.
94889
94890 2000-04-12  Jim Meyering  <meyering@lucent.com>
94891
94892         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94893         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94894         Christian Krackowizer.
94895
94896         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94897         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94898         (AC_SYS_LARGEFILE): Require.
94899         (AM_C_PROTOTYPES): Require.
94900
94901 2000-04-08  Jim Meyering  <meyering@lucent.com>
94902
94903         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94904         names don't conflict.  Reported by Eli Zaretskii.
94905
94906 2000-04-07  Jim Meyering  <meyering@lucent.com>
94907
94908         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94909         sys/types.h, to work around system header problems on AIX 3.2.5.
94910         From Bruno Haible.
94911
94912 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94913
94914         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94915         bug.  Deal with the different error behavior of Irix iconv.
94916
94917 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94918
94919         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94920         IRIX if the installer said otherwise.
94921
94922 2000-04-05  Jim Meyering  <meyering@lucent.com>
94923
94924         Portability tweaks required for ultrix4.3.
94925         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94926         (jm_CHECK_DECLS): Add getutent to the list of functions.
94927         (_jm_DECL_HEADERS): Add utmpx.h.
94928         From John David Anglin.
94929
94930         * m4/strftime.m4: Back out the 2000-04-02 change.
94931         Instead of that change, simply undefine putenv in the test program.
94932
94933 2000-04-05  Jim Meyering  <meyering@lucent.com>
94934
94935         Portability tweaks required for ultrix4.3.
94936         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94937         getutent.
94938         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94939         * lib/canon-host.c: Declare strdup.
94940         * lib/path-concat.c: Likewise.
94941         From John David Anglin.
94942
94943 2000-04-04  Jim Meyering  <meyering@lucent.com>
94944
94945         Be more DOS 8.3-friendly.
94946         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94947         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94948         * lib/Makefile.am: Reflect renaming.
94949         Reported by Eli Zaretskii.
94950
94951         Use a temporary file name that won't clash with `charset.alias'
94952         in the DOS 8.3 name space.
94953         * lib/Makefile.am (charset_tmp): Define.
94954         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94955         (uninstall-local): Likewise.
94956         Reported by Eli Zaretskii.
94957
94958 2000-04-03  Jim Meyering  <meyering@lucent.com>
94959
94960         * m4/gettext.m4: Fix typo in comment.
94961
94962         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94963         textutils/configure.in).  Suggestion from Paul Eggert.
94964         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94965
94966 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94967
94968         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94969         variable in the shell rather than using putenv, which isn't
94970         portable.  This avoids the configure-time inter-test dependency
94971         on the potentially-renamed putenv function.
94972
94973 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94974
94975         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94976         before checking struct stat.st_blksize, so that
94977         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94978
94979 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94980
94981         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94982         since strftime.c uses HAVE_STRFTIME to decide whether to use
94983         the underlying strftime.
94984
94985 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94986
94987         * lib/time/strftime.c (my_strftime): Make sure we call the system
94988         strftime, not ourselves, when invoking the underlying strftime.
94989
94990 2000-03-24  Jim Meyering  <meyering@lucent.com>
94991
94992         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94993         (charset_alias): Define.
94994         (install-exec-local): Factor out common code.
94995         (uninstall-local): Split lines longer than 80.
94996         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94997         (SUFFIXES): Define.
94998         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94999         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95000
95001 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95002
95003         * lib/config.charset: Output a line containing "Packages using this
95004         file".
95005         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95006         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95007         ref-del.sed): New rules.
95008
95009 2000-03-17  Jim Meyering  <meyering@lucent.com>
95010
95011         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95012         Otherwise, include <strings.h>
95013
95014 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95015
95016         * lib/unicodeio.c (utf8_wctomb): New function.
95017         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95018         format instead of in UCS-4 with platform dependent endianness.
95019
95020 2000-03-10  Jim Meyering  <meyering@lucent.com>
95021
95022         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95023         From Marco Franzen.
95024
95025 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95026
95027         * lib/savedir.c (savedir): Work even if directory size is
95028         negative; this can happen with some screwy NFS configurations.
95029
95030 2000-03-06  Jim Meyering  <meyering@lucent.com>
95031
95032         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95033         if it's NULL (because we ran out of memory).  From Bruno Haible.
95034
95035 2000-03-05  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/localcharset.c ("path-concat.h"): Include.
95038         (get_charset_aliases): Use path_concat instead of ANSI string
95039         concatenation.
95040
95041         * lib/unicodeio.h (PARAMS): Define.
95042         Use it to guard prototype.
95043
95044 2000-03-04  Jim Meyering  <meyering@lucent.com>
95045
95046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95047         for lib/localcharset.c.
95048
95049 2000-03-04  Jim Meyering  <meyering@lucent.com>
95050
95051         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95052         installing into it.
95053         (uninstall-local): Uncomment this rule so `make distcheck' works
95054         once again.
95055
95056         * lib/unicodeio.c (<errno.h>): Include it.
95057         (errno): Declare if not defined.
95058
95059         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95060
95061         * lib/config.charset: New version, incorporating remarks from a linux
95062         i18n mailing list.  From Bruno Haible.
95063
95064 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95065
95066         * m4/codeset.m4: New file.
95067         * m4/iconv.m4: New file.
95068         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95069
95070 2000-03-03  Jim Meyering  <meyering@lucent.com>
95071
95072         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95073
95074 2000-03-02  Jim Meyering  <meyering@lucent.com>
95075
95076         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95077         the messages come out on separate lines.
95078
95079         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95080         rather than jm_CHECK_DECLARATIONS.
95081         * m4/decl.m4: Remove now-unused file.
95082
95083         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95084         geteuid.
95085
95086 2000-03-02  Jim Meyering  <meyering@lucent.com>
95087
95088         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95089
95090 2000-03-01  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95093         * lib/unicodeio.c: Likewise.
95094
95095 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95096
95097         * lib/config.charset: New file.
95098         * lib/localcharset.c: New file.
95099         * lib/unicodeio.h, lib/unicodeio.c: New files.
95100         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95101         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95102         (noinst_HEADERS): Add unicodeio.h.
95103         (all-local, install-exec-local, charset.alias): New targets.
95104
95105 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95106
95107         * lib/quotearg.c (ALERT_CHAR): New macro.
95108         (quotearg_buffer_restyled): Use it.
95109
95110 2000-02-27  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/check-decl.m4: Add getenv to the list.
95113
95114 2000-02-27  Jim Meyering  <meyering@lucent.com>
95115
95116         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95117         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95118
95119         * lib/backupfile.c: Guard inclusion of stdlib.h with
95120         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95121         Declare malloc if needed.
95122
95123         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95124         `#ifndef HAVE_DECL..'
95125         now that autoconf always defines the HAVE_DECL_ symbols.
95126         * lib/human.c: Likewise.
95127         * lib/same.c: Likewise.
95128         * lib/strtoumax.c: Likewise.
95129
95130         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95131         declaration check was not run.
95132         * lib/hash.c: Likewise.
95133         * lib/human.c: Likewise.
95134         * lib/same.c: Likewise.
95135         * lib/strtoumax.c: Likewise.
95136
95137         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95138         `.', then first look up the entire `.'-containing string as a login
95139         name.
95140
95141 2000-02-23  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95144         in place of my hack.
95145
95146 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95147
95148         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95149         (textint): New typedef.
95150         (parser_control): Member year changed from int to textint.
95151         All uses changed.
95152         (YYSTYPE): Removed; replaced by %union with int and textint members.
95153         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95154         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95155         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95156         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95157         (date, number, to_year): Use width of number in digits, not its value,
95158         to determine whether it's a 2-digit year, or a 2-digit time.
95159         (yylex): Store number of digits of numeric tokens.
95160         Reported by John Kendall.
95161
95162         (parser_control): Changed from struct parser_control to typedef (for
95163         consistency).  All uses changed.
95164
95165         (tID): Removed; not used.
95166         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95167
95168 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95169
95170         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95171         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95172
95173 2000-02-12  Jim Meyering  <meyering@lucent.com>
95174
95175         * lib/userspec.c (ISDIGIT): Define it.
95176         (isdigit): Remove definition.
95177         (is_number): Use ISDIGIT, not isdigit.
95178         <libintl.h>: Include.
95179         (_ and N_): Define.
95180         (parse_user_spec): Mark translatable strings.
95181
95182 2000-02-10  Jim Meyering  <meyering@lucent.com>
95183
95184         With these changes, nanosleep.[ch] are finally enough like the other
95185         lib/* replacement files to compile on a few more losing systems.
95186
95187         * lib/nanosleep.h: Don't include config.h.
95188         Remove prototype from declaration of nanosleep.
95189         (PARAMS): Remove now-unneeded definition.
95190         * lib/nanosleep.c: #undef nanosleep.
95191         (rpl_nanosleep): Rename from nanosleep.
95192
95193 2000-02-10  Jim Meyering  <meyering@lucent.com>
95194
95195         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95196         gnu_nanosleep to rpl_nanosleep.
95197
95198 2000-02-09  Jim Meyering  <meyering@lucent.com>
95199
95200         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95201         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95202
95203 2000-02-08  Akim Demaille  <akim@epita.fr>
95204
95205         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95206         `[' and `]' and remove uses of `changequote'.
95207         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95208         (AC_SYS_LARGEFILE): Likewise.
95209         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95210         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95211         of changequote.
95212         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95213         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95214         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95215         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95216
95217 2000-02-05  Jim Meyering  <meyering@lucent.com>
95218
95219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95220         Remove explicit use of AC_HEADER_TIME.  It is required by
95221         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95222         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95223         in autoconf whereby the expansion of the latter ended up preceding
95224         the expansion of its prerequisite, AC_HEADER_TIME.
95225         Reported by Volker Borchert.
95226
95227 2000-02-03  Jim Meyering  <meyering@lucent.com>
95228
95229         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95230
95231 2000-02-03  Jim Meyering  <meyering@lucent.com>
95232
95233         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95234         rather than with `#if HAVE_UTMPNAME'.
95235
95236 2000-02-02  Jim Meyering  <meyering@lucent.com>
95237
95238         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95239         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95240         Reported by Eli Zaretskii.
95241
95242 2000-02-01  Jim Meyering  <meyering@lucent.com>
95243
95244         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95245
95246 2000-01-31  Jim Meyering  <meyering@lucent.com>
95247
95248         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95249         functions.  Add the time.h and sys/time.h headers along with the
95250         AC_REQUIRE'ment of AC_HEADER_TIME.
95251
95252 2000-01-31  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/nanosleep.h (nanosleep): Guard declaration with
95255         `#if ! HAVE_DECL_NANOSLEEP'.
95256         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95257         the declaration in that vendor's sys/timers.h.
95258         Reported by Christian Krackowizer.
95259
95260         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95261         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95262         (ISPRINT): Likewise.
95263         Reported by Tom Tromey.
95264
95265 2000-01-30  Jim Meyering  <meyering@lucent.com>
95266
95267         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95268
95269         * m4/prereq.m4 (utmp_includes): Define.
95270         Check for ut_user and ut_name members in both struct utmpx
95271         and struct utmp.
95272
95273 2000-01-30  Jim Meyering  <meyering@lucent.com>
95274
95275         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95276         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95277         header files where only utmpx.ut_user is declared.
95278
95279         * lib/readutmp.h (UT_USER): Define.
95280
95281 2000-01-29  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/lib-check.m4: New file containing library-related checks from
95284         fileutils and sh-utils (textutils had none).
95285
95286 2000-01-28  Jim Meyering  <meyering@lucent.com>
95287
95288         * m4/perl.m4: Change format of warning message to look more like that
95289         from the missing script.  Suggestion from François Pinard.
95290
95291 2000-01-25  Jim Meyering  <meyering@lucent.com>
95292
95293         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95294         well as time.h in the compile check.
95295         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95296         Fix typo in cross-compiling case: s/yes/no/.
95297
95298 2000-01-23  Jim Meyering  <meyering@lucent.com>
95299
95300         * m4/jm-macros.m4: Move df-related tests here from
95301         fileutils/configure.in
95302
95303         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95304         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95305
95306         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95307         s/space/ac_fsusage_space/.
95308         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95309
95310         * m4/ftruncate.m4: New file (derived from part of
95311         fileutils/configure.in).
95312         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95313         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95314
95315         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95316         AC_SUBST these here, rather than just in sh-util/configure.in, so
95317         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95318         all the same.
95319         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95320         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95321         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95322         (AC_SUBST(POW_LIBM)): Likewise.
95323         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95324
95325 2000-01-23  Jim Meyering  <meyering@lucent.com>
95326
95327         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95328         obstack.c.
95329
95330 2000-01-22  Jim Meyering  <meyering@lucent.com>
95331
95332         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95333
95334         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95335
95336         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95337         configure.in
95338         (AC_CHECK_HEADERS): Likewise for sh-utils.
95339         (AC_CHECK_HEADERS): Likewise for textutils.
95340         Merge the three lists of headers.
95341
95342         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95343         from fileutils' configure.in.
95344
95345         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95346         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95347         check-decl.m4.
95348
95349         * m4/check-decl.m4: Use #if rather than #ifdef.
95350         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95351         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95352         (_jm_DECL_HEADERS): Define new function.
95353         (jm_CHECK_DECLARATIONS): Require it.
95354
95355 2000-01-22  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95358         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95359         Required for some AIX systems.  Reported by Christian Krackowizer.
95360         [TESTING] (main): New function.
95361
95362         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95363         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95364         letters.
95365
95366         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95367         iswprint.
95368
95369         * lib/strverscmp.c (ISDIGIT): Define.
95370         (strverscmp): Use ISDIGIT, not isdigit.
95371
95372 2000-01-19  Jim Meyering  <meyering@lucent.com>
95373
95374         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95375         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95376         defines `struct timespec' in <sys/time.h>
95377
95378         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95379         Thanks to Akim for explaining.
95380
95381 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95382
95383         * lib/nanosleep.c (nanosleep):
95384         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95385         POSIX.1 doesn't require SA_INTERRUPT and some systems
95386         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95387         it's been part of POSIX.1 since day 1 (in 1988).
95388
95389 2000-01-17  Jim Meyering  <meyering@lucent.com>
95390
95391         * lib/interlock: Remove unused file.  Reported by François Pinard.
95392
95393 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95394
95395         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95396         alert, backslash, formfeed, and vertical tab unnecessarily in
95397         shell quoting style.
95398
95399 2000-01-16  Jim Meyering  <meyering@lucent.com>
95400
95401         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95402         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95403         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95404         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95405
95406 2000-01-16  Jim Meyering  <meyering@lucent.com>
95407
95408         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95409         because the latter didn't work.
95410
95411 2000-01-15  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95414         (AC_REPLACE_FUNCS): Add memcpy and memset.
95415         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95416         Add strpbrk.
95417         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95418
95419 2000-01-12  Jim Meyering  <meyering@lucent.com>
95420
95421         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95422         (jm_PREREQ): Use it.
95423         (jm_PREREQ_READUTMP): New macro.
95424         (jm_PREREQ): Use it.
95425
95426 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95427
95428         Quote multibyte characters correctly.
95429         * m4/c-bs-a.m4: New file.
95430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95431         (jm_PREREQ): Use it.
95432
95433 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95434
95435         * m4/uintmax_t.m4: Port to autoconf 2.13.
95436
95437 2000-01-08  Jim Meyering  <meyering@ascend.com>
95438
95439         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95440         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95441
95442 2000-01-04  Jim Meyering  <meyering@ascend.com>
95443
95444         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95445         jm_STRUCT_DIRENT_D_TYPE.
95446         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95447         jm_STRUCT_DIRENT_D_INO.
95448         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95449         jm_STRUCT_UTIMBUF.
95450         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95451         renamings.
95452         * m4/utime.m4: Likewise.
95453
95454         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95455         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95456
95457 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95458
95459         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95460         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95461
95462 2000-01-02  Jim Meyering  <meyering@ascend.com>
95463
95464         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95465         remember if this is necessary.
95466
95467 1999-12-26  Jim Meyering  <meyering@ascend.com>
95468
95469         * m4/jm-macros.m4: Use it here.
95470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95471
95472 1999-12-23  Jim Meyering  <meyering@ascend.com>
95473
95474         * m4/jm-macros.m4: Check for clock_gettime (moved from
95475         fileutils/configure.in)
95476         Check for gettimeofday.
95477
95478 1999-12-20  Jim Meyering  <meyering@ascend.com>
95479
95480         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95481         autoconf-2.14a-1999-12-20.
95482
95483 1999-12-19  Jim Meyering  <meyering@ascend.com>
95484
95485         * m4/lstat-slash.m4: New file.
95486         * m4/jm-macros.m4: Use the new macro:
95487         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95488
95489 1999-12-07  Jim Meyering  <meyering@ascend.com>
95490
95491         * m4/perl.m4: Require that File::Compare be available, too.
95492         Too many systems seem to lack it.
95493
95494         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95495         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95496
95497 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95498
95499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95500         problem with the QNX 4.25 shell, which doesn't propagate exit
95501         status of failed commands inside shell assignments.
95502
95503 1999-11-17  Jim Meyering  <meyering@ascend.com>
95504
95505         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95506
95507 1999-11-07  Jim Meyering  <meyering@ascend.com>
95508
95509         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95510
95511 1999-11-06  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95514         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95515
95516 1999-11-05  Jim Meyering  <meyering@ascend.com>
95517
95518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95519         configure.in of textutils, fileutils, and sh-utils into this one
95520         (shared between those packages) file.
95521         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95522         AC_STRUCT_ST_BLKSIZE.
95523
95524 1999-11-03  Jim Meyering  <meyering@ascend.com>
95525
95526         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95527         of AC_CHECK_TYPE checks includes unistd.h.
95528         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95529         Suggestion from Akim Demaille.
95530
95531 1999-10-30  Jim Meyering  <meyering@ascend.com>
95532
95533         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95534         m4-quoted string.
95535         * m4/ls-mntd-fs.m4: Likewise.
95536         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95537         * m4/jm-winsz1.m4: Likewise.
95538
95539         * m4/const.m4: Remove file, since the fix made it into the experimental
95540         version of autoconf.
95541         * m4/mktime.m4: Likewise.
95542
95543         * m4/check-type.m4: Remove file, now that the latest version of
95544         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95545
95546         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95547         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95548         AC_CHECK_TYPE.
95549
95550 1999-10-04  Jim Meyering  <meyering@ascend.com>
95551
95552         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95553
95554 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95555
95556         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95557         2.95.1 bug with HP-UX 10.20.
95558
95559 1999-09-17  Jim Meyering  <meyering@ascend.com>
95560
95561         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95562         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95563         due to missing strdup (against sh-utils-2.0).
95564
95565 1999-08-29  Jim Meyering  <meyering@ascend.com>
95566
95567         * m4/jm-macros.m4: Require jm_BISON.
95568         * m4/bison.m4: New file.
95569
95570 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95571
95572         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95573         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95574
95575 1999-08-05  Jim Meyering  <meyering@ascend.com>
95576
95577         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95578         to avoid conflicts with `conftest' on 8+3 filesystems.
95579         Suggestion from Eli Zaretskii.
95580
95581 1999-08-04  Jim Meyering  <meyering@ascend.com>
95582
95583         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95584         fileutils and sh-utils (textutils's getline test was inadequate).
95585         (AM_FUNC_GETLINE): Run this test.
95586         (AC_CHECK_FUNCS): Check for getdelim.
95587         Reported by Bob Proulx.
95588
95589 1999-08-02  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/jm-macros.m4: Add a comment.
95592
95593 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95594
95595         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95596         <inttypes.h> defines strtoumax as a macro (and not as a
95597         function).
95598
95599 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95600
95601         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95602         that we can shift, multiply and divide unsigned long long
95603         values; Ultrix cc can't do it.
95604
95605 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95606
95607         * m4/mktime.m4: New file, which is a preview of what should appear
95608         in the next public autoconf release.
95609
95610 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95611
95612         * m4/lfs.m4: Remove this file.
95613         * m4/largefile.m4: New file.  It contains the old contents of
95614         lfs.m4, except that all names with prefix AC_LFS have been
95615         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95616         compatible with future autoconf versions.  Also, some minor m4
95617         quoting problems have been fixed.
95618
95619 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95620
95621         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95622         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95623         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95624         and simplify the shell code.
95625
95626 1999-08-01  Jim Meyering  <meyering@ascend.com>
95627
95628         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95629         m4.
95630
95631 1999-07-20  Jim Meyering  <meyering@ascend.com>
95632
95633         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95634
95635 1999-07-15  Jim Meyering  <meyering@ascend.com>
95636
95637         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95638
95639 1999-05-22  Jim Meyering  <meyering@ascend.com>
95640
95641         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95642
95643 1999-05-20  Jim Meyering  <meyering@ascend.com>
95644
95645         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95646         Add a colon after each `then' in case $4 is empty.
95647
95648 1999-05-16  Jim Meyering  <meyering@ascend.com>
95649
95650         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95651
95652 1999-05-10  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95655
95656         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95657         AC_FUNC_MKTIME.
95658
95659 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95660
95661         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95662
95663 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95664
95665         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95666         not CPPFLAGS, so that linking works correctly in IRIX.
95667
95668 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95669
95670         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95671
95672 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95673
95674         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95675         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95677         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95678         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95679
95680         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95681
95682 1999-04-20  Jim Meyering  <meyering@ascend.com>
95683
95684         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95685         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95686         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95687
95688 1999-04-18  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95691         * m4/jm-macros.m4: Use it.
95692
95693 1999-04-06  Jim Meyering  <meyering@ascend.com>
95694
95695         * m4/strftime.m4: Remove test for %f.
95696
95697 1999-03-29  Jim Meyering  <meyering@ascend.com>
95698
95699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95700         superset of the AC_TYPE_* checks in the textutils, fileutils,
95701         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95702         AC_TYPE_PID_T.
95703
95704 1999-03-28  Jim Meyering  <meyering@ascend.com>
95705
95706         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95707         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95708         replaced e.g., in the *.sh files of the sh-utils.
95709
95710 1999-03-20  Jim Meyering  <meyering@ascend.com>
95711
95712         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95713         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95714         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95715
95716 1999-03-19  Jim Meyering  <meyering@ascend.com>
95717
95718         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95719
95720 1999-03-12  Jim Meyering  <meyering@ascend.com>
95721
95722         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95723
95724 1999-03-07  Jim Meyering  <meyering@ascend.com>
95725
95726         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95727         declared.
95728
95729 1999-02-17  Jim Meyering  <meyering@ascend.com>
95730
95731         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95732         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95733
95734 1999-02-07  Jim Meyering  <meyering@ascend.com>
95735
95736         * m4/group-member.m4: New file -- extracted from sh-utils'
95737         configure.in.
95738
95739         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95740         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95741
95742 1999-02-06  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95745         * m4/fnmatch.m4: Likewise.
95746         * m4/getgroups.m4: Likewise.
95747         * m4/lstat.m4: Likewise.
95748         * m4/malloc.m4: Likewise.
95749         * m4/putenv.m4: Likewise.
95750         * m4/realloc.m4: Likewise.
95751         * m4/regex.m4: Likewise.
95752         * m4/stat.m4: Likewise.
95753         * m4/strftime.m4: Likewise.
95754         Suggestion from Alain Magloire.
95755
95756         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95757         * m4/fnmatch.m4: Likewise.
95758         * m4/getgroups.m4: Likewise.
95759         * m4/getline.m4: Likewise.
95760         * m4/lstat.m4: Likewise.
95761         * m4/malloc.m4: Likewise.
95762         * m4/memcmp.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/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95771         an argument.
95772
95773         * m4/regex.m4: Add a run-time Test for proper operation of
95774         re_compile_pattern.
95775
95776 1999-01-31  Jim Meyering  <meyering@ascend.com>
95777
95778         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95779
95780 1999-01-30  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95783
95784         * m4/jm-mktime.m4: Make this a wrapper around the official
95785         AM_FUNC_MKTIME rather than my private copy, now that the official one
95786         is up to date.
95787         * m4/mktime.m4: Remove file.
95788
95789         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95790         * m4/uptime.m4: Likewise.
95791         * m4/uintmax_t.m4: Likewise.
95792
95793 1999-01-28  Jim Meyering  <meyering@ascend.com>
95794
95795         * m4/jm-macros.m4: Use jm_AFS.
95796         * m4/afs.m4: New file (from fileutils' configure.in).
95797
95798         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95799         * m4/chown.m4: Likewise.
95800         * m4/d-ino.m4: Likewise.
95801         * m4/d-type.m4: Likewise.
95802         * m4/fnmatch.m4: Likewise.
95803         * m4/getgroups.m4: Likewise.
95804         * m4/gettext.m4: Likewise.
95805         * m4/jm-mktime.m4: Likewise.
95806         * m4/jm-winsz2.m4: Likewise.
95807         * m4/lcmessage.m4: Likewise.
95808         * m4/ls-mntd-fs.m4: Likewise.
95809         * m4/malloc.m4: Likewise.
95810         * m4/memcmp.m4: Likewise.
95811         * m4/putenv.m4: Likewise.
95812         * m4/realloc.m4: Likewise.
95813         * m4/st_mtim.m4: Likewise.
95814         * m4/strftime.m4: Likewise.
95815
95816 1999-01-16  Jim Meyering  <meyering@ascend.com>
95817
95818         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95819         (ARGMATCH_DIE_DECL): Define.
95820
95821 1999-01-12  Jim Meyering  <meyering@ascend.com>
95822
95823         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95824         Reported by Lars Hecking.
95825
95826 1999-01-10  Jim Meyering  <meyering@ascend.com>
95827
95828         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95829         gross kludge.
95830         * m4/inttypes_h.m4: Likewise.
95831         * m4/lstat.m4: Likewise.
95832         * m4/malloc.m4: Likewise.
95833         * m4/readdir.m4: Likewise.
95834         * m4/realloc.m4: Likewise.
95835         * m4/st_dm_mode.m4: Likewise.
95836         * m4/stat.m4: Likewise.
95837         * m4/utimbuf.m4: Likewise.
95838         * m4/utimes.m4: Likewise.
95839
95840         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95841         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95842         comments in config.h.in are meaningful.
95843
95844         * m4/jm-macros.m4: Require autoconf-2.13 here.
95845
95846         * m4/regex.m4: By default, don't use the included regex.c on systems
95847         with glibc 2.  Suggestion from Uli Drepper.
95848
95849 1999-01-02  Jim Meyering  <meyering@ascend.com>
95850
95851         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95852
95853 1998-12-18  Jim Meyering  <meyering@ascend.com>
95854
95855         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95856         Based on a suggestion from Lars Hecking.
95857
95858 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95859
95860         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95861
95862 1998-11-16  Jim Meyering  <meyering@ascend.com>
95863
95864         * m4/lfs.m4: Double-quote the `uname...` expression.
95865
95866 1998-11-14  Jim Meyering  <meyering@ascend.com>
95867
95868         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95869         * m4/stat.m4: Likewise.
95870
95871 1998-11-03  Jim Meyering  <meyering@ascend.com>
95872
95873         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95874         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95875
95876 1998-10-18  Jim Meyering  <meyering@ascend.com>
95877
95878         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95879
95880 1998-10-17  Jim Meyering  <meyering@ascend.com>
95881
95882         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95883         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95884         calls for those previously hard-coded headers.  Instead, take a new
95885         parameter.
95886         (jm_CHECK_DECLARATIONS): Reflect interface change.
95887         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95888         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95889
95890         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95891
95892 1998-10-14  Jim Meyering  <meyering@ascend.com>
95893
95894         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95895         instead of "TZ=America/Vancouver".  From Paul Eggert.
95896
95897 1998-10-11  Jim Meyering  <meyering@ascend.com>
95898
95899         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95900         This adds a test for a recently added compatibility fix for mktime.c.
95901         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95902
95903 1998-09-27  Jim Meyering  <meyering@ascend.com>
95904
95905         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95906
95907         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95908         ../configure.in, including a change from Gordon Matzigkeit to allow
95909         cross-compiling for the Hurd.
95910
95911         * m4/glibc.m4: New file/macro to test for the GNU C Library
95912         versions 1 and 2.  From Gordon Matzigkeit.
95913         Indent.
95914
95915 1998-09-21  Jim Meyering  <meyering@ascend.com>
95916
95917         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95918
95919 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95920
95921         Port nanosecond-resolution times to UnixWare 2.1.2 and
95922         pedantic Solaris 2.6.
95923
95924         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95925         AC_STRUCT_ST_MTIM.
95926         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95927         Generate name of ns member, instead of just 1 or undef.
95928         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95929
95930 1998-08-15  Jim Meyering  <meyering@ascend.com>
95931
95932         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95933         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95934         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95935         instead of jm_TYPE_SSIZE_T.
95936
95937 1998-08-12  Jim Meyering  <meyering@ascend.com>
95938
95939         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95940
95941 1998-08-02  Jim Meyering  <meyering@ascend.com>
95942
95943         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95944         in acconfig.h manually.
95945
95946 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95947
95948         * m4/st_mtim.m4: New file.
95949
95950 1998-07-28  Jim Meyering  <meyering@ascend.com>
95951
95952         * m4/utimes.m4: Undef stat.
95953
95954 1998-07-25  Jim Meyering  <meyering@ascend.com>
95955
95956         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95957         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95958
95959 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95960
95961         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95962         uid and gid actually remain unchanged.
95963
95964 1998-07-07  Jim Meyering  <meyering@ascend.com>
95965
95966         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95967
95968 1998-07-04  Jim Meyering  <meyering@ascend.com>
95969
95970         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95971         to prove that this macro can be used in packages without regex.c.
95972
95973 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95974
95975         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95976         is to be used.
95977
95978 1998-07-03  Jim Meyering  <meyering@ascend.com>
95979
95980         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95981
95982         * m4/gettext.m4: New file -- from gettext-0.10.35.
95983         * m4/lcmessage.m4: Likewise.
95984         * m4/progtest.m4: Likewise.
95985
95986         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95987         * m4/jm-macros.m4: Require the new macro.
95988
95989 1998-06-29  Jim Meyering  <meyering@ascend.com>
95990
95991         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95992         for the definition of NGROUPS (used in a system header included
95993         by sys/mount.h).
95994
95995 1998-06-28  Jim Meyering  <meyering@ascend.com>
95996
95997         * m4/ls-mntd-fs.m4: New file.
95998         * m4/fstypename.m4: New file.
95999
96000         * m4/jm-macros.m4: Require the new macro.
96001         * m4/jm-glibc-io.m4: New file.
96002
96003 1998-05-19  Jim Meyering  <meyering@ascend.com>
96004
96005         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96006         * m4/lchown.m4: New file.
96007
96008         * m4/Makefile.am.in: New file.
96009         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96010
96011 1998-05-14  Jim Meyering  <meyering@ascend.com>
96012
96013         * m4/Makefile.am (EXTRA_DIST): Add them.
96014         * m4/jm-macros.m4: New file.
96015         * m4/utimbuf.m4: New file.
96016
96017 1998-05-12  Jim Meyering  <meyering@ascend.com>
96018
96019         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96020
96021 1998-05-11  Jim Meyering  <meyering@ascend.com>
96022
96023         * m4/isc-posix.m4: New file.
96024
96025 1998-05-10  Jim Meyering  <meyering@ascend.com>
96026
96027         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96028
96029 1998-05-09  Jim Meyering  <meyering@ascend.com>
96030
96031         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96032         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96033         with automake.
96034
96035         * m4/ssize_t.m4: New file.
96036         * m4/mktime.m4: Remove file -- the new automake has this now.
96037
96038 1998-04-26  Jim Meyering  <meyering@ascend.com>
96039
96040         * m4/assert.m4: New file.
96041         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96042
96043 1998-04-05  Jim Meyering  <meyering@ascend.com>
96044
96045         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96046         (jm_PREREQ): Use it here.
96047
96048 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96049
96050         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96051         in acconfig.h.
96052
96053 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96054
96055         * m4/prereq.m4: New file.
96056         * m4/error.m4: New file.
96057         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96058
96059 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96060
96061         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96062         cache-check for the same variable -- that defeated the purpose of
96063         the test; the test program was never run.  This was a problem only
96064         on systems with losing getline functions -- HP-UX 10.20 is one.
96065         Reported by Bjorn Helgaas.
96066
96067 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96068
96069         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96070
96071 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96072
96073         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96074
96075         * m4/const.m4: New file.  Use an initializer in this declaration
96076         typedef int charset[2]; const charset x;
96077         Reported by Bob Glickstein.
96078
96079 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96080
96081         * m4/chown.m4: Fix reversed types on -1 args to chown.
96082         From Kaveh Ghazi.
96083
96084 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96085
96086         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96087         Add lseek and memchr.
96088
96089         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96090         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96091         have a 20-character limit on names.
96092
96093 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96094
96095         * m4/inttypes_h.m4: New file.
96096         * m4/uintmax_t.m4: New file.
96097         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96098
96099
96100         -----
96101
96102         Local Variables:
96103         coding: utf-8
96104         End:
96105
96106         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96107
96108         Copying and distribution of this file, with or without
96109         modification, are permitted provided the copyright notice
96110         and this notice are preserved.